Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / sha1 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libsha1 1.21.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
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='libsha1'
730 PACKAGE_TARNAME='libsha1'
731 PACKAGE_VERSION='1.21'
732 PACKAGE_STRING='libsha1 1.21'
733 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735 ac_unique_file="hmac.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 HMACC_TRUE
832 HMACC_FALSE
833 CC
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
849 LN_S
850 build
851 build_cpu
852 build_vendor
853 build_os
854 host
855 host_cpu
856 host_vendor
857 host_os
858 SED
859 GREP
860 EGREP
861 ECHO
862 AR
863 RANLIB
864 CPP
865 CXX
866 CXXFLAGS
867 ac_ct_CXX
868 CXXDEPMODE
869 am__fastdepCXX_TRUE
870 am__fastdepCXX_FALSE
871 CXXCPP
872 F77
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 LIBOBJS
877 LTLIBOBJS'
878 ac_subst_files=''
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CC
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
887 CPP
888 CXX
889 CXXFLAGS
890 CCC
891 CXXCPP
892 F77
893 FFLAGS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
988
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277 fi
1278
1279 # Be sure to have absolute directory names.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 echo X"$0" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures libsha1 1.21 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libsha1]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of libsha1 1.21:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-pic try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --with-tags[=TAGS] include additional configurations [automatic]
1488 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1489 ( default is 'unsigned')
1490
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CPP C preprocessor
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1503 F77 Fortran 77 compiler command
1504 FFLAGS Fortran 77 compiler flags
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to <courier-users@lists.sourceforge.net>.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 libsha1 configure 1.21
1571 generated by GNU Autoconf 2.61
1572
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by libsha1 $as_me 1.21, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1586
1587 $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
1655 *\'*)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 ;;
1679 esac
1680 done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
1702 (
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
1717 (set) 2>&1 |
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1720 sed -n \
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
1724 *)
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726 ;;
1727 esac |
1728 sort
1729 )
1730 echo
1731
1732 cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
1745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
1762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772 echo
1773 cat confdefs.h
1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1849 esac
1850 fi
1851 else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897 done
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938 >confdefs.h # Kill PACKAGE_ macros
1939
1940
1941 ac_config_headers="$ac_config_headers config.h"
1942
1943 am__api_version='1.10'
1944
1945 ac_aux_dir=
1946 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1947 if test -f "$ac_dir/install-sh"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 break
1951 elif test -f "$ac_dir/install.sh"; then
1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 break
1955 elif test -f "$ac_dir/shtool"; then
1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 break
1959 fi
1960 done
1961 if test -z "$ac_aux_dir"; then
1962 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1964 { (exit 1); exit 1; }; }
1965 fi
1966
1967 # These three variables are undocumented and unsupported,
1968 # and are intended to be withdrawn in a future Autoconf release.
1969 # They can cause serious problems if a builder's source tree is in a directory
1970 # whose full name contains unusual characters.
1971 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1972 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1973 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974
1975
1976 # Find a good install program. We prefer a C program (faster),
1977 # so one script is as good as another. But avoid the broken or
1978 # incompatible versions:
1979 # SysV /etc/install, /usr/sbin/install
1980 # SunOS /usr/etc/install
1981 # IRIX /sbin/install
1982 # AIX /bin/install
1983 # AmigaOS /C/install, which installs bootblocks on floppy discs
1984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987 # OS/2's system install, which has a completely different semantic
1988 # ./install, which can be erroneously created by make from ./install.sh.
1989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1991 if test -z "$INSTALL"; then
1992 if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2001 case $as_dir/ in
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 /usr/ucb/* ) ;;
2006 *)
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2009 # by default.
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2016 :
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2020 :
2021 else
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 break 3
2024 fi
2025 fi
2026 done
2027 done
2028 ;;
2029 esac
2030 done
2031 IFS=$as_save_IFS
2032
2033
2034 fi
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2037 else
2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
2040 # break other packages using the cache if that directory is
2041 # removed, or if the value is a relative name.
2042 INSTALL=$ac_install_sh
2043 fi
2044 fi
2045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6; }
2047
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055
2056 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2058 # Just in case
2059 sleep 1
2060 echo timestamp > conftest.file
2061 # Do `set' in a subshell so we don't clobber the current shell's
2062 # arguments. Must try -L first in case configure is actually a
2063 # symlink; some systems play weird games with the mod time of symlinks
2064 # (eg FreeBSD returns the mod time of the symlink's containing
2065 # directory).
2066 if (
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2069 # -L didn't work.
2070 set X `ls -t $srcdir/configure conftest.file`
2071 fi
2072 rm -f conftest.file
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2075
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&5
2082 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083 alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2085 fi
2086
2087 test "$2" = conftest.file
2088 )
2089 then
2090 # Ok.
2091 :
2092 else
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094 Check your system clock" >&5
2095 echo "$as_me: error: newly created file is older than distributed files!
2096 Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099 { echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6; }
2101 test "$program_prefix" != NONE &&
2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2103 # Use a double $ so make ignores it.
2104 test "$program_suffix" != NONE &&
2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2106 # Double any \ or $. echo might interpret backslashes.
2107 # By default was `s,x,x', remove it if useless.
2108 cat <<\_ACEOF >conftest.sed
2109 s/[\\$]/&&/g;s/;s,x,x,$//
2110 _ACEOF
2111 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2112 rm -f conftest.sed
2113
2114 # expand $ac_aux_dir to an absolute path
2115 am_aux_dir=`cd $ac_aux_dir && pwd`
2116
2117 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118 # Use eval to expand $SHELL
2119 if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2121 else
2122 am_missing_run=
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125 fi
2126
2127 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2128 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2129 if test -z "$MKDIR_P"; then
2130 if test "${ac_cv_path_mkdir+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2135 do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_prog in mkdir gmkdir; do
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2142 'mkdir (GNU coreutils) '* | \
2143 'mkdir (coreutils) '* | \
2144 'mkdir (fileutils) '4.1*)
2145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2146 break 3;;
2147 esac
2148 done
2149 done
2150 done
2151 IFS=$as_save_IFS
2152
2153 fi
2154
2155 if test "${ac_cv_path_mkdir+set}" = set; then
2156 MKDIR_P="$ac_cv_path_mkdir -p"
2157 else
2158 # As a last resort, use the slow shell script. Don't cache a
2159 # value for MKDIR_P within a source directory, because that will
2160 # break other packages using the cache if that directory is
2161 # removed, or if the value is a relative name.
2162 test -d ./--version && rmdir ./--version
2163 MKDIR_P="$ac_install_sh -d"
2164 fi
2165 fi
2166 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2167 echo "${ECHO_T}$MKDIR_P" >&6; }
2168
2169 mkdir_p="$MKDIR_P"
2170 case $mkdir_p in
2171 [\\/$]* | ?:[\\/]*) ;;
2172 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2173 esac
2174
2175 for ac_prog in gawk mawk nawk awk
2176 do
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_AWK+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184 if test -n "$AWK"; then
2185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_AWK="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198 done
2199 done
2200 IFS=$as_save_IFS
2201
2202 fi
2203 fi
2204 AWK=$ac_cv_prog_AWK
2205 if test -n "$AWK"; then
2206 { echo "$as_me:$LINENO: result: $AWK" >&5
2207 echo "${ECHO_T}$AWK" >&6; }
2208 else
2209 { echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6; }
2211 fi
2212
2213
2214 test -n "$AWK" && break
2215 done
2216
2217 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2219 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 cat >conftest.make <<\_ACEOF
2224 SHELL = /bin/sh
2225 all:
2226 @echo '@@@%%%=$(MAKE)=@@@%%%'
2227 _ACEOF
2228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230 *@@@%%%=?*=@@@%%%*)
2231 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 *)
2233 eval ac_cv_prog_make_${ac_make}_set=no;;
2234 esac
2235 rm -f conftest.make
2236 fi
2237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240 SET_MAKE=
2241 else
2242 { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2244 SET_MAKE="MAKE=${MAKE-make}"
2245 fi
2246
2247 rm -rf .tst 2>/dev/null
2248 mkdir .tst 2>/dev/null
2249 if test -d .tst; then
2250 am__leading_dot=.
2251 else
2252 am__leading_dot=_
2253 fi
2254 rmdir .tst 2>/dev/null
2255
2256 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2258 # is not polluted with repeated "-I."
2259 am__isrc=' -I$(srcdir)'
2260 # test to see if srcdir already configured
2261 if test -f $srcdir/config.status; then
2262 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2263 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264 { (exit 1); exit 1; }; }
2265 fi
2266 fi
2267
2268 # test whether we have cygpath
2269 if test -z "$CYGPATH_W"; then
2270 if (cygpath --version) >/dev/null 2>/dev/null; then
2271 CYGPATH_W='cygpath -w'
2272 else
2273 CYGPATH_W=echo
2274 fi
2275 fi
2276
2277
2278 # Define the identity of the package.
2279 PACKAGE='libsha1'
2280 VERSION='1.21'
2281
2282
2283 # Some tools Automake needs.
2284
2285 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286
2287
2288 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2289
2290
2291 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292
2293
2294 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2295
2296
2297 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2298
2299 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2300
2301 # Installed binaries are usually stripped using `strip' when the user
2302 # run `make install-strip'. However `strip' might not be the right
2303 # tool to use in cross-compilation environments, therefore Automake
2304 # will honor the `STRIP' environment variable to overrule this program.
2305 if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}strip; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_STRIP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 STRIP=$ac_cv_prog_STRIP
2335 if test -n "$STRIP"; then
2336 { echo "$as_me:$LINENO: result: $STRIP" >&5
2337 echo "${ECHO_T}$STRIP" >&6; }
2338 else
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343
2344 fi
2345 if test -z "$ac_cv_prog_STRIP"; then
2346 ac_ct_STRIP=$STRIP
2347 # Extract the first word of "strip", so it can be a program name with args.
2348 set dummy strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375 if test -n "$ac_ct_STRIP"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2378 else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2381 fi
2382
2383 if test "x$ac_ct_STRIP" = x; then
2384 STRIP=":"
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387 yes:)
2388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
2391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394 ac_tool_warned=yes ;;
2395 esac
2396 STRIP=$ac_ct_STRIP
2397 fi
2398 else
2399 STRIP="$ac_cv_prog_STRIP"
2400 fi
2401
2402 fi
2403 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2404
2405 # We need awk for the "check" target. The system "awk" is bad on
2406 # some platforms.
2407 # Always define AMTAR for backward compatibility.
2408
2409 AMTAR=${AMTAR-"${am_missing_run}tar"}
2410
2411 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2412
2413
2414
2415
2416
2417
2418 if test -d ${srcdir}/../libhmac; then
2419 HMACC_TRUE=
2420 HMACC_FALSE='#'
2421 else
2422 HMACC_TRUE='#'
2423 HMACC_FALSE=
2424 fi
2425
2426
2427 ac_ext=c
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432 if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 CC=$ac_cv_prog_CC
2461 if test -n "$CC"; then
2462 { echo "$as_me:$LINENO: result: $CC" >&5
2463 echo "${ECHO_T}$CC" >&6; }
2464 else
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2467 fi
2468
2469
2470 fi
2471 if test -z "$ac_cv_prog_CC"; then
2472 ac_ct_CC=$CC
2473 # Extract the first word of "gcc", so it can be a program name with args.
2474 set dummy gcc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 if test -n "$ac_ct_CC"; then
2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_ac_ct_CC="gcc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501 if test -n "$ac_ct_CC"; then
2502 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503 echo "${ECHO_T}$ac_ct_CC" >&6; }
2504 else
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2507 fi
2508
2509 if test "x$ac_ct_CC" = x; then
2510 CC=""
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513 yes:)
2514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&5
2517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520 ac_tool_warned=yes ;;
2521 esac
2522 CC=$ac_ct_CC
2523 fi
2524 else
2525 CC="$ac_cv_prog_CC"
2526 fi
2527
2528 if test -z "$CC"; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_CC="${ac_tool_prefix}cc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559 { echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6; }
2561 else
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2564 fi
2565
2566
2567 fi
2568 fi
2569 if test -z "$CC"; then
2570 # Extract the first word of "cc", so it can be a program name with args.
2571 set dummy cc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 ac_prog_rejected=no
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2589 ac_prog_rejected=yes
2590 continue
2591 fi
2592 ac_cv_prog_CC="cc"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 if test $ac_prog_rejected = yes; then
2601 # We found a bogon in the path, so make sure we never use it.
2602 set dummy $ac_cv_prog_CC
2603 shift
2604 if test $# != 0; then
2605 # We chose a different compiler from the bogus one.
2606 # However, it has the same basename, so the bogon will be chosen
2607 # first if we set CC to just the basename; use the full file name.
2608 shift
2609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 fi
2611 fi
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2618 else
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623
2624 fi
2625 if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
2627 for ac_prog in cl.exe
2628 do
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650 done
2651 done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { echo "$as_me:$LINENO: result: $CC" >&5
2659 echo "${ECHO_T}$CC" >&6; }
2660 else
2661 { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2663 fi
2664
2665
2666 test -n "$CC" && break
2667 done
2668 fi
2669 if test -z "$CC"; then
2670 ac_ct_CC=$CC
2671 for ac_prog in cl.exe
2672 do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_ac_ct_CC="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703 echo "${ECHO_T}$ac_ct_CC" >&6; }
2704 else
2705 { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2707 fi
2708
2709
2710 test -n "$ac_ct_CC" && break
2711 done
2712
2713 if test "x$ac_ct_CC" = x; then
2714 CC=""
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724 ac_tool_warned=yes ;;
2725 esac
2726 CC=$ac_ct_CC
2727 fi
2728 fi
2729
2730 fi
2731
2732
2733 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2734 See \`config.log' for more details." >&5
2735 echo "$as_me: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
2738
2739 # Provide some information about the compiler.
2740 echo "$as_me:$LINENO: checking for C compiler version" >&5
2741 ac_compiler=`set X $ac_compile; echo $2`
2742 { (ac_try="$ac_compiler --version >&5"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler --version >&5") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752 { (ac_try="$ac_compiler -v >&5"
2753 case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -v >&5") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762 { (ac_try="$ac_compiler -V >&5"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compiler -V >&5") 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2772
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2779
2780 int
2781 main ()
2782 {
2783
2784 ;
2785 return 0;
2786 }
2787 _ACEOF
2788 ac_clean_files_save=$ac_clean_files
2789 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2790 # Try to create an executable without -o first, disregard a.out.
2791 # It will help us diagnose broken compilers, and finding out an intuition
2792 # of exeext.
2793 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2794 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2795 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2796 #
2797 # List of possible output files, starting from the most likely.
2798 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2799 # only as a last resort. b.out is created by i960 compilers.
2800 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2801 #
2802 # The IRIX 6 linker writes into existing files which may not be
2803 # executable, retaining their permissions. Remove them first so a
2804 # subsequent execution test works.
2805 ac_rmfiles=
2806 for ac_file in $ac_files
2807 do
2808 case $ac_file in
2809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2810 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811 esac
2812 done
2813 rm -f $ac_rmfiles
2814
2815 if { (ac_try="$ac_link_default"
2816 case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_link_default") 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; then
2825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2828 # so that the user can short-circuit this test for compilers unknown to
2829 # Autoconf.
2830 for ac_file in $ac_files ''
2831 do
2832 test -f "$ac_file" || continue
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2835 ;;
2836 [ab].out )
2837 # We found the default executable, but exeext='' is most
2838 # certainly right.
2839 break;;
2840 *.* )
2841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842 then :; else
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 fi
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2849 # actually working.
2850 break;;
2851 * )
2852 break;;
2853 esac
2854 done
2855 test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
2857 else
2858 ac_file=''
2859 fi
2860
2861 { echo "$as_me:$LINENO: result: $ac_file" >&5
2862 echo "${ECHO_T}$ac_file" >&6; }
2863 if test -z "$ac_file"; then
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&2;}
2871 { (exit 77); exit 77; }; }
2872 fi
2873
2874 ac_exeext=$ac_cv_exeext
2875
2876 # Check that the compiler produces executables we can run. If not, either
2877 # the compiler is broken, or we cross compile.
2878 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2879 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2880 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2881 # If not cross compiling, check that we can run a simple program.
2882 if test "$cross_compiling" != yes; then
2883 if { ac_try='./$ac_file'
2884 { (case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_try") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 cross_compiling=no
2894 else
2895 if test "$cross_compiling" = maybe; then
2896 cross_compiling=yes
2897 else
2898 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2899 If you meant to cross compile, use \`--host'.
2900 See \`config.log' for more details." >&5
2901 echo "$as_me: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2905 fi
2906 fi
2907 fi
2908 { echo "$as_me:$LINENO: result: yes" >&5
2909 echo "${ECHO_T}yes" >&6; }
2910
2911 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2912 ac_clean_files=$ac_clean_files_save
2913 # Check that the compiler produces executables we can run. If not, either
2914 # the compiler is broken, or we cross compile.
2915 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2916 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2917 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2918 echo "${ECHO_T}$cross_compiling" >&6; }
2919
2920 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2921 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2922 if { (ac_try="$ac_link"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_link") 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; then
2932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2933 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2934 # work properly (i.e., refer to `conftest.exe'), while it won't with
2935 # `rm'.
2936 for ac_file in conftest.exe conftest conftest.*; do
2937 test -f "$ac_file" || continue
2938 case $ac_file in
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941 break;;
2942 * ) break;;
2943 esac
2944 done
2945 else
2946 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }
2951 fi
2952
2953 rm -f conftest$ac_cv_exeext
2954 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2955 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956
2957 rm -f conftest.$ac_ext
2958 EXEEXT=$ac_cv_exeext
2959 ac_exeext=$EXEEXT
2960 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2961 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2962 if test "${ac_cv_objext+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971
2972 int
2973 main ()
2974 {
2975
2976 ;
2977 return 0;
2978 }
2979 _ACEOF
2980 rm -f conftest.o conftest.obj
2981 if { (ac_try="$ac_compile"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 for ac_file in conftest.o conftest.obj conftest.*; do
2992 test -f "$ac_file" || continue;
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2995 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996 break;;
2997 esac
2998 done
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3008 fi
3009
3010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 fi
3012 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3013 echo "${ECHO_T}$ac_cv_objext" >&6; }
3014 OBJEXT=$ac_cv_objext
3015 ac_objext=$OBJEXT
3016 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3018 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021 cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h. */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3027
3028 int
3029 main ()
3030 {
3031 #ifndef __GNUC__
3032 choke me
3033 #endif
3034
3035 ;
3036 return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3056 ac_compiler_gnu=yes
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 ac_compiler_gnu=no
3062 fi
3063
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066
3067 fi
3068 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3070 GCC=`test $ac_compiler_gnu = yes && echo yes`
3071 ac_test_CFLAGS=${CFLAGS+set}
3072 ac_save_CFLAGS=$CFLAGS
3073 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3074 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_cc_g+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 ac_save_c_werror_flag=$ac_c_werror_flag
3079 ac_c_werror_flag=yes
3080 ac_cv_prog_cc_g=no
3081 CFLAGS="-g"
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088
3089 int
3090 main ()
3091 {
3092
3093 ;
3094 return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3114 ac_cv_prog_cc_g=yes
3115 else
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 CFLAGS=""
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126
3127 int
3128 main ()
3129 {
3130
3131 ;
3132 return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 :
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3158 CFLAGS="-g"
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3165
3166 int
3167 main ()
3168 {
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 ac_cv_prog_cc_g=yes
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3210 if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212 elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
3215 else
3216 CFLAGS="-g"
3217 fi
3218 else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3223 fi
3224 fi
3225 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3226 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3227 if test "${ac_cv_prog_cc_c89+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 ac_cv_prog_cc_c89=no
3231 ac_save_CC=$CC
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 #include <stdarg.h>
3239 #include <stdio.h>
3240 #include <sys/types.h>
3241 #include <sys/stat.h>
3242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3243 struct buf { int x; };
3244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245 static char *e (p, i)
3246 char **p;
3247 int i;
3248 {
3249 return p[i];
3250 }
3251 static char *f (char * (*g) (char **, int), char **p, ...)
3252 {
3253 char *s;
3254 va_list v;
3255 va_start (v,p);
3256 s = g (p, va_arg (v,int));
3257 va_end (v);
3258 return s;
3259 }
3260
3261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3262 function prototypes and stuff, but not '\xHH' hex character constants.
3263 These don't provoke an error unfortunately, instead are silently treated
3264 as 'x'. The following induces an error, until -std is added to get
3265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3266 array size at least. It's necessary to write '\x00'==0 to get something
3267 that's true only with -std. */
3268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3269
3270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3271 inside strings and character constants. */
3272 #define FOO(x) 'x'
3273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3274
3275 int test (int i, double x);
3276 struct s1 {int (*f) (int a);};
3277 struct s2 {int (*f) (double a);};
3278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279 int argc;
3280 char **argv;
3281 int
3282 main ()
3283 {
3284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 ;
3286 return 0;
3287 }
3288 _ACEOF
3289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3291 do
3292 CC="$ac_save_CC $ac_arg"
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compile") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } && {
3307 test -z "$ac_c_werror_flag" ||
3308 test ! -s conftest.err
3309 } && test -s conftest.$ac_objext; then
3310 ac_cv_prog_cc_c89=$ac_arg
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315
3316 fi
3317
3318 rm -f core conftest.err conftest.$ac_objext
3319 test "x$ac_cv_prog_cc_c89" != "xno" && break
3320 done
3321 rm -f conftest.$ac_ext
3322 CC=$ac_save_CC
3323
3324 fi
3325 # AC_CACHE_VAL
3326 case "x$ac_cv_prog_cc_c89" in
3327 x)
3328 { echo "$as_me:$LINENO: result: none needed" >&5
3329 echo "${ECHO_T}none needed" >&6; } ;;
3330 xno)
3331 { echo "$as_me:$LINENO: result: unsupported" >&5
3332 echo "${ECHO_T}unsupported" >&6; } ;;
3333 *)
3334 CC="$CC $ac_cv_prog_cc_c89"
3335 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3336 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3337 esac
3338
3339
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 DEPDIR="${am__leading_dot}deps"
3346
3347 ac_config_commands="$ac_config_commands depfiles"
3348
3349
3350 am_make=${MAKE-make}
3351 cat > confinc << 'END'
3352 am__doit:
3353 @echo done
3354 .PHONY: am__doit
3355 END
3356 # If we don't find an include directive, just comment out the code.
3357 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3358 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3359 am__include="#"
3360 am__quote=
3361 _am_result=none
3362 # First try GNU make style include.
3363 echo "include confinc" > confmf
3364 # We grep out `Entering directory' and `Leaving directory'
3365 # messages which can occur if `w' ends up in MAKEFLAGS.
3366 # In particular we don't look at `^make:' because GNU make might
3367 # be invoked under some other name (usually "gmake"), in which
3368 # case it prints its new name instead of `make'.
3369 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3370 am__include=include
3371 am__quote=
3372 _am_result=GNU
3373 fi
3374 # Now try BSD make style include.
3375 if test "$am__include" = "#"; then
3376 echo '.include "confinc"' > confmf
3377 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3378 am__include=.include
3379 am__quote="\""
3380 _am_result=BSD
3381 fi
3382 fi
3383
3384
3385 { echo "$as_me:$LINENO: result: $_am_result" >&5
3386 echo "${ECHO_T}$_am_result" >&6; }
3387 rm -f confinc confmf
3388
3389 # Check whether --enable-dependency-tracking was given.
3390 if test "${enable_dependency_tracking+set}" = set; then
3391 enableval=$enable_dependency_tracking;
3392 fi
3393
3394 if test "x$enable_dependency_tracking" != xno; then
3395 am_depcomp="$ac_aux_dir/depcomp"
3396 AMDEPBACKSLASH='\'
3397 fi
3398 if test "x$enable_dependency_tracking" != xno; then
3399 AMDEP_TRUE=
3400 AMDEP_FALSE='#'
3401 else
3402 AMDEP_TRUE='#'
3403 AMDEP_FALSE=
3404 fi
3405
3406
3407
3408 depcc="$CC" am_compiler_list=
3409
3410 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3411 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3412 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3416 # We make a subdir and do the tests there. Otherwise we can end up
3417 # making bogus files that we don't know about and never remove. For
3418 # instance it was reported that on HP-UX the gcc test will end up
3419 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # in D'.
3421 mkdir conftest.dir
3422 # Copy depcomp to subdir because otherwise we won't find it if we're
3423 # using a relative directory.
3424 cp "$am_depcomp" conftest.dir
3425 cd conftest.dir
3426 # We will build objects and dependencies in a subdirectory because
3427 # it helps to detect inapplicable dependency modes. For instance
3428 # both Tru64's cc and ICC support -MD to output dependencies as a
3429 # side effect of compilation, but ICC will put the dependencies in
3430 # the current directory while Tru64 will put them in the object
3431 # directory.
3432 mkdir sub
3433
3434 am_cv_CC_dependencies_compiler_type=none
3435 if test "$am_compiler_list" = ""; then
3436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3437 fi
3438 for depmode in $am_compiler_list; do
3439 # Setup a source with many dependencies, because some compilers
3440 # like to wrap large dependency lists on column 80 (with \), and
3441 # we should not choose a depcomp mode which is confused by this.
3442 #
3443 # We need to recreate these files for each test, as the compiler may
3444 # overwrite some of them when testing with obscure command lines.
3445 # This happens at least with the AIX C compiler.
3446 : > sub/conftest.c
3447 for i in 1 2 3 4 5 6; do
3448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450 # Solaris 8's {/usr,}/bin/sh.
3451 touch sub/conftst$i.h
3452 done
3453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454
3455 case $depmode in
3456 nosideeffect)
3457 # after this tag, mechanisms are not by side-effect, so they'll
3458 # only be used when explicitly requested
3459 if test "x$enable_dependency_tracking" = xyes; then
3460 continue
3461 else
3462 break
3463 fi
3464 ;;
3465 none) break ;;
3466 esac
3467 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3468 # mode. It turns out that the SunPro C++ compiler does not properly
3469 # handle `-M -o', and we need to detect this.
3470 if depmode=$depmode \
3471 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3473 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3474 >/dev/null 2>conftest.err &&
3475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3477 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3479 # icc doesn't choke on unknown options, it will just issue warnings
3480 # or remarks (even with -Werror). So we grep stderr for any message
3481 # that says an option was ignored or not supported.
3482 # When given -MP, icc 7.0 and 7.1 complain thusly:
3483 # icc: Command line warning: ignoring option '-M'; no argument required
3484 # The diagnosis changed in icc 8.0:
3485 # icc: Command line remark: option '-MP' not supported
3486 if (grep 'ignoring option' conftest.err ||
3487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3488 am_cv_CC_dependencies_compiler_type=$depmode
3489 break
3490 fi
3491 fi
3492 done
3493
3494 cd ..
3495 rm -rf conftest.dir
3496 else
3497 am_cv_CC_dependencies_compiler_type=none
3498 fi
3499
3500 fi
3501 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3502 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3503 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3504
3505 if
3506 test "x$enable_dependency_tracking" != xno \
3507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3508 am__fastdepCC_TRUE=
3509 am__fastdepCC_FALSE='#'
3510 else
3511 am__fastdepCC_TRUE='#'
3512 am__fastdepCC_FALSE=
3513 fi
3514
3515
3516 # Find a good install program. We prefer a C program (faster),
3517 # so one script is as good as another. But avoid the broken or
3518 # incompatible versions:
3519 # SysV /etc/install, /usr/sbin/install
3520 # SunOS /usr/etc/install
3521 # IRIX /sbin/install
3522 # AIX /bin/install
3523 # AmigaOS /C/install, which installs bootblocks on floppy discs
3524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3527 # OS/2's system install, which has a completely different semantic
3528 # ./install, which can be erroneously created by make from ./install.sh.
3529 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3530 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3531 if test -z "$INSTALL"; then
3532 if test "${ac_cv_path_install+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 # Account for people who put trailing slashes in PATH elements.
3541 case $as_dir/ in
3542 ./ | .// | /cC/* | \
3543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3544 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3545 /usr/ucb/* ) ;;
3546 *)
3547 # OSF1 and SCO ODT 3.0 have their own names for install.
3548 # Don't use installbsd from OSF since it installs stuff as root
3549 # by default.
3550 for ac_prog in ginstall scoinst install; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3553 if test $ac_prog = install &&
3554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3555 # AIX install. It has an incompatible calling convention.
3556 :
3557 elif test $ac_prog = install &&
3558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559 # program-specific install script used by HP pwplus--don't use.
3560 :
3561 else
3562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3563 break 3
3564 fi
3565 fi
3566 done
3567 done
3568 ;;
3569 esac
3570 done
3571 IFS=$as_save_IFS
3572
3573
3574 fi
3575 if test "${ac_cv_path_install+set}" = set; then
3576 INSTALL=$ac_cv_path_install
3577 else
3578 # As a last resort, use the slow shell script. Don't cache a
3579 # value for INSTALL within a source directory, because that will
3580 # break other packages using the cache if that directory is
3581 # removed, or if the value is a relative name.
3582 INSTALL=$ac_install_sh
3583 fi
3584 fi
3585 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3586 echo "${ECHO_T}$INSTALL" >&6; }
3587
3588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3589 # It thinks the first close brace ends the variable substitution.
3590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3591
3592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3593
3594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3595
3596 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3597 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3598 LN_S=$as_ln_s
3599 if test "$LN_S" = "ln -s"; then
3600 { echo "$as_me:$LINENO: result: yes" >&5
3601 echo "${ECHO_T}yes" >&6; }
3602 else
3603 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3604 echo "${ECHO_T}no, using $LN_S" >&6; }
3605 fi
3606
3607 # Check whether --enable-shared was given.
3608 if test "${enable_shared+set}" = set; then
3609 enableval=$enable_shared; p=${PACKAGE-default}
3610 case $enableval in
3611 yes) enable_shared=yes ;;
3612 no) enable_shared=no ;;
3613 *)
3614 enable_shared=no
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3618 IFS="$lt_save_ifs"
3619 if test "X$pkg" = "X$p"; then
3620 enable_shared=yes
3621 fi
3622 done
3623 IFS="$lt_save_ifs"
3624 ;;
3625 esac
3626 else
3627 enable_shared=yes
3628 fi
3629
3630
3631 # Check whether --enable-static was given.
3632 if test "${enable_static+set}" = set; then
3633 enableval=$enable_static; p=${PACKAGE-default}
3634 case $enableval in
3635 yes) enable_static=yes ;;
3636 no) enable_static=no ;;
3637 *)
3638 enable_static=no
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3642 IFS="$lt_save_ifs"
3643 if test "X$pkg" = "X$p"; then
3644 enable_static=yes
3645 fi
3646 done
3647 IFS="$lt_save_ifs"
3648 ;;
3649 esac
3650 else
3651 enable_static=yes
3652 fi
3653
3654
3655 # Check whether --enable-fast-install was given.
3656 if test "${enable_fast_install+set}" = set; then
3657 enableval=$enable_fast_install; p=${PACKAGE-default}
3658 case $enableval in
3659 yes) enable_fast_install=yes ;;
3660 no) enable_fast_install=no ;;
3661 *)
3662 enable_fast_install=no
3663 # Look at the argument we got. We use all the common list separators.
3664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3665 for pkg in $enableval; do
3666 IFS="$lt_save_ifs"
3667 if test "X$pkg" = "X$p"; then
3668 enable_fast_install=yes
3669 fi
3670 done
3671 IFS="$lt_save_ifs"
3672 ;;
3673 esac
3674 else
3675 enable_fast_install=yes
3676 fi
3677
3678
3679 # Make sure we can run config.sub.
3680 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3681 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3682 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3683 { (exit 1); exit 1; }; }
3684
3685 { echo "$as_me:$LINENO: checking build system type" >&5
3686 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3687 if test "${ac_cv_build+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 ac_build_alias=$build_alias
3691 test "x$ac_build_alias" = x &&
3692 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3693 test "x$ac_build_alias" = x &&
3694 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3695 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3696 { (exit 1); exit 1; }; }
3697 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3698 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3699 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3700 { (exit 1); exit 1; }; }
3701
3702 fi
3703 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3704 echo "${ECHO_T}$ac_cv_build" >&6; }
3705 case $ac_cv_build in
3706 *-*-*) ;;
3707 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3708 echo "$as_me: error: invalid value of canonical build" >&2;}
3709 { (exit 1); exit 1; }; };;
3710 esac
3711 build=$ac_cv_build
3712 ac_save_IFS=$IFS; IFS='-'
3713 set x $ac_cv_build
3714 shift
3715 build_cpu=$1
3716 build_vendor=$2
3717 shift; shift
3718 # Remember, the first character of IFS is used to create $*,
3719 # except with old shells:
3720 build_os=$*
3721 IFS=$ac_save_IFS
3722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3723
3724
3725 { echo "$as_me:$LINENO: checking host system type" >&5
3726 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3727 if test "${ac_cv_host+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 if test "x$host_alias" = x; then
3731 ac_cv_host=$ac_cv_build
3732 else
3733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3734 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3735 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3736 { (exit 1); exit 1; }; }
3737 fi
3738
3739 fi
3740 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3741 echo "${ECHO_T}$ac_cv_host" >&6; }
3742 case $ac_cv_host in
3743 *-*-*) ;;
3744 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3745 echo "$as_me: error: invalid value of canonical host" >&2;}
3746 { (exit 1); exit 1; }; };;
3747 esac
3748 host=$ac_cv_host
3749 ac_save_IFS=$IFS; IFS='-'
3750 set x $ac_cv_host
3751 shift
3752 host_cpu=$1
3753 host_vendor=$2
3754 shift; shift
3755 # Remember, the first character of IFS is used to create $*,
3756 # except with old shells:
3757 host_os=$*
3758 IFS=$ac_save_IFS
3759 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3760
3761
3762 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3763 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3764 if test "${lt_cv_path_SED+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767 # Loop through the user's path and test for sed and gsed.
3768 # Then use that list of sed's as ones to test for truncation.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for lt_ac_prog in sed gsed; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3777 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3778 fi
3779 done
3780 done
3781 done
3782 IFS=$as_save_IFS
3783 lt_ac_max=0
3784 lt_ac_count=0
3785 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3786 # along with /bin/sed that truncates output.
3787 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3788 test ! -f $lt_ac_sed && continue
3789 cat /dev/null > conftest.in
3790 lt_ac_count=0
3791 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3792 # Check for GNU sed and select it if it is found.
3793 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3794 lt_cv_path_SED=$lt_ac_sed
3795 break
3796 fi
3797 while true; do
3798 cat conftest.in conftest.in >conftest.tmp
3799 mv conftest.tmp conftest.in
3800 cp conftest.in conftest.nl
3801 echo >>conftest.nl
3802 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3803 cmp -s conftest.out conftest.nl || break
3804 # 10000 chars as input seems more than enough
3805 test $lt_ac_count -gt 10 && break
3806 lt_ac_count=`expr $lt_ac_count + 1`
3807 if test $lt_ac_count -gt $lt_ac_max; then
3808 lt_ac_max=$lt_ac_count
3809 lt_cv_path_SED=$lt_ac_sed
3810 fi
3811 done
3812 done
3813
3814 fi
3815
3816 SED=$lt_cv_path_SED
3817
3818 { echo "$as_me:$LINENO: result: $SED" >&5
3819 echo "${ECHO_T}$SED" >&6; }
3820
3821 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3822 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3823 if test "${ac_cv_path_GREP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 # Extract the first word of "grep ggrep" to use in msg output
3827 if test -z "$GREP"; then
3828 set dummy grep ggrep; ac_prog_name=$2
3829 if test "${ac_cv_path_GREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 ac_path_GREP_found=false
3833 # Loop through the user's path and test for each of PROGNAME-LIST
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836 do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_prog in grep ggrep; do
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3843 # Check for GNU ac_path_GREP and select it if it is found.
3844 # Check for GNU $ac_path_GREP
3845 case `"$ac_path_GREP" --version 2>&1` in
3846 *GNU*)
3847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848 *)
3849 ac_count=0
3850 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3851 while :
3852 do
3853 cat "conftest.in" "conftest.in" >"conftest.tmp"
3854 mv "conftest.tmp" "conftest.in"
3855 cp "conftest.in" "conftest.nl"
3856 echo 'GREP' >> "conftest.nl"
3857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859 ac_count=`expr $ac_count + 1`
3860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861 # Best one so far, save it but keep looking for a better one
3862 ac_cv_path_GREP="$ac_path_GREP"
3863 ac_path_GREP_max=$ac_count
3864 fi
3865 # 10*(2^10) chars as input seems more than enough
3866 test $ac_count -gt 10 && break
3867 done
3868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869 esac
3870
3871
3872 $ac_path_GREP_found && break 3
3873 done
3874 done
3875
3876 done
3877 IFS=$as_save_IFS
3878
3879
3880 fi
3881
3882 GREP="$ac_cv_path_GREP"
3883 if test -z "$GREP"; then
3884 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3885 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3886 { (exit 1); exit 1; }; }
3887 fi
3888
3889 else
3890 ac_cv_path_GREP=$GREP
3891 fi
3892
3893
3894 fi
3895 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3896 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3897 GREP="$ac_cv_path_GREP"
3898
3899
3900 { echo "$as_me:$LINENO: checking for egrep" >&5
3901 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3902 if test "${ac_cv_path_EGREP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906 then ac_cv_path_EGREP="$GREP -E"
3907 else
3908 # Extract the first word of "egrep" to use in msg output
3909 if test -z "$EGREP"; then
3910 set dummy egrep; ac_prog_name=$2
3911 if test "${ac_cv_path_EGREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 ac_path_EGREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in egrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3925 # Check for GNU ac_path_EGREP and select it if it is found.
3926 # Check for GNU $ac_path_EGREP
3927 case `"$ac_path_EGREP" --version 2>&1` in
3928 *GNU*)
3929 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930 *)
3931 ac_count=0
3932 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 echo 'EGREP' >> "conftest.nl"
3939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_EGREP="$ac_path_EGREP"
3945 ac_path_EGREP_max=$ac_count
3946 fi
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 esac
3952
3953
3954 $ac_path_EGREP_found && break 3
3955 done
3956 done
3957
3958 done
3959 IFS=$as_save_IFS
3960
3961
3962 fi
3963
3964 EGREP="$ac_cv_path_EGREP"
3965 if test -z "$EGREP"; then
3966 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968 { (exit 1); exit 1; }; }
3969 fi
3970
3971 else
3972 ac_cv_path_EGREP=$EGREP
3973 fi
3974
3975
3976 fi
3977 fi
3978 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3979 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3980 EGREP="$ac_cv_path_EGREP"
3981
3982
3983
3984 # Check whether --with-gnu-ld was given.
3985 if test "${with_gnu_ld+set}" = set; then
3986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3987 else
3988 with_gnu_ld=no
3989 fi
3990
3991 ac_prog=ld
3992 if test "$GCC" = yes; then
3993 # Check if gcc -print-prog-name=ld gives a path.
3994 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3995 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3996 case $host in
3997 *-*-mingw*)
3998 # gcc leaves a trailing carriage return which upsets mingw
3999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000 *)
4001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4002 esac
4003 case $ac_prog in
4004 # Accept absolute paths.
4005 [\\/]* | ?:[\\/]*)
4006 re_direlt='/[^/][^/]*/\.\./'
4007 # Canonicalize the pathname of ld
4008 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4009 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4010 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4011 done
4012 test -z "$LD" && LD="$ac_prog"
4013 ;;
4014 "")
4015 # If it fails, then pretend we aren't using GCC.
4016 ac_prog=ld
4017 ;;
4018 *)
4019 # If it is relative, then search for the first ld in PATH.
4020 with_gnu_ld=unknown
4021 ;;
4022 esac
4023 elif test "$with_gnu_ld" = yes; then
4024 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4025 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4026 else
4027 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4028 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4029 fi
4030 if test "${lt_cv_path_LD+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033 if test -z "$LD"; then
4034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4035 for ac_dir in $PATH; do
4036 IFS="$lt_save_ifs"
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4039 lt_cv_path_LD="$ac_dir/$ac_prog"
4040 # Check to see if the program is GNU ld. I'd rather use --version,
4041 # but apparently some variants of GNU ld only accept -v.
4042 # Break only if it was the GNU/non-GNU ld that we prefer.
4043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4044 *GNU* | *'with BFD'*)
4045 test "$with_gnu_ld" != no && break
4046 ;;
4047 *)
4048 test "$with_gnu_ld" != yes && break
4049 ;;
4050 esac
4051 fi
4052 done
4053 IFS="$lt_save_ifs"
4054 else
4055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4056 fi
4057 fi
4058
4059 LD="$lt_cv_path_LD"
4060 if test -n "$LD"; then
4061 { echo "$as_me:$LINENO: result: $LD" >&5
4062 echo "${ECHO_T}$LD" >&6; }
4063 else
4064 { echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6; }
4066 fi
4067 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4068 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4069 { (exit 1); exit 1; }; }
4070 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4071 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4072 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4076 case `$LD -v 2>&1 </dev/null` in
4077 *GNU* | *'with BFD'*)
4078 lt_cv_prog_gnu_ld=yes
4079 ;;
4080 *)
4081 lt_cv_prog_gnu_ld=no
4082 ;;
4083 esac
4084 fi
4085 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4086 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4087 with_gnu_ld=$lt_cv_prog_gnu_ld
4088
4089
4090 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4091 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4092 if test "${lt_cv_ld_reload_flag+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 lt_cv_ld_reload_flag='-r'
4096 fi
4097 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4098 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4099 reload_flag=$lt_cv_ld_reload_flag
4100 case $reload_flag in
4101 "" | " "*) ;;
4102 *) reload_flag=" $reload_flag" ;;
4103 esac
4104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105 case $host_os in
4106 darwin*)
4107 if test "$GCC" = yes; then
4108 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4109 else
4110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4111 fi
4112 ;;
4113 esac
4114
4115 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4116 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4117 if test "${lt_cv_path_NM+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$NM"; then
4121 # Let the user override the test.
4122 lt_cv_path_NM="$NM"
4123 else
4124 lt_nm_to_check="${ac_tool_prefix}nm"
4125 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4126 lt_nm_to_check="$lt_nm_to_check nm"
4127 fi
4128 for lt_tmp_nm in $lt_nm_to_check; do
4129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4130 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4131 IFS="$lt_save_ifs"
4132 test -z "$ac_dir" && ac_dir=.
4133 tmp_nm="$ac_dir/$lt_tmp_nm"
4134 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4135 # Check to see if the nm accepts a BSD-compat flag.
4136 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137 # nm: unknown option "B" ignored
4138 # Tru64's nm complains that /dev/null is an invalid object file
4139 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140 */dev/null* | *'Invalid file or object type'*)
4141 lt_cv_path_NM="$tmp_nm -B"
4142 break
4143 ;;
4144 *)
4145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4146 */dev/null*)
4147 lt_cv_path_NM="$tmp_nm -p"
4148 break
4149 ;;
4150 *)
4151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152 continue # so that we can try to find one that supports BSD flags
4153 ;;
4154 esac
4155 ;;
4156 esac
4157 fi
4158 done
4159 IFS="$lt_save_ifs"
4160 done
4161 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4162 fi
4163 fi
4164 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4165 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4166 NM="$lt_cv_path_NM"
4167
4168 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4169 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4170 if test "${lt_cv_deplibs_check_method+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 lt_cv_file_magic_cmd='$MAGIC_CMD'
4174 lt_cv_file_magic_test_file=
4175 lt_cv_deplibs_check_method='unknown'
4176 # Need to set the preceding variable on all platforms that support
4177 # interlibrary dependencies.
4178 # 'none' -- dependencies not supported.
4179 # `unknown' -- same as none, but documents that we really don't know.
4180 # 'pass_all' -- all dependencies passed with no checks.
4181 # 'test_compile' -- check by making test program.
4182 # 'file_magic [[regex]]' -- check by looking for files in library path
4183 # which responds to the $file_magic_cmd with a given extended regex.
4184 # If you have `file' or equivalent on your system and you're not sure
4185 # whether `pass_all' will *always* work, you probably want this one.
4186
4187 case $host_os in
4188 aix4* | aix5*)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
4191
4192 beos*)
4193 lt_cv_deplibs_check_method=pass_all
4194 ;;
4195
4196 bsdi[45]*)
4197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4198 lt_cv_file_magic_cmd='/usr/bin/file -L'
4199 lt_cv_file_magic_test_file=/shlib/libc.so
4200 ;;
4201
4202 cygwin*)
4203 # func_win32_libid is a shell function defined in ltmain.sh
4204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4205 lt_cv_file_magic_cmd='func_win32_libid'
4206 ;;
4207
4208 mingw* | pw32*)
4209 # Base MSYS/MinGW do not provide the 'file' command needed by
4210 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4211 # unless we find 'file', for example because we are cross-compiling.
4212 if ( file / ) >/dev/null 2>&1; then
4213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214 lt_cv_file_magic_cmd='func_win32_libid'
4215 else
4216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217 lt_cv_file_magic_cmd='$OBJDUMP -f'
4218 fi
4219 ;;
4220
4221 darwin* | rhapsody*)
4222 lt_cv_deplibs_check_method=pass_all
4223 ;;
4224
4225 freebsd* | dragonfly*)
4226 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4227 case $host_cpu in
4228 i*86 )
4229 # Not sure whether the presence of OpenBSD here was a mistake.
4230 # Let's accept both of them until this is cleared up.
4231 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4232 lt_cv_file_magic_cmd=/usr/bin/file
4233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4234 ;;
4235 esac
4236 else
4237 lt_cv_deplibs_check_method=pass_all
4238 fi
4239 ;;
4240
4241 gnu*)
4242 lt_cv_deplibs_check_method=pass_all
4243 ;;
4244
4245 hpux10.20* | hpux11*)
4246 lt_cv_file_magic_cmd=/usr/bin/file
4247 case $host_cpu in
4248 ia64*)
4249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4250 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4251 ;;
4252 hppa*64*)
4253 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]'
4254 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4255 ;;
4256 *)
4257 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4258 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4259 ;;
4260 esac
4261 ;;
4262
4263 interix[3-9]*)
4264 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4266 ;;
4267
4268 irix5* | irix6* | nonstopux*)
4269 case $LD in
4270 *-32|*"-32 ") libmagic=32-bit;;
4271 *-n32|*"-n32 ") libmagic=N32;;
4272 *-64|*"-64 ") libmagic=64-bit;;
4273 *) libmagic=never-match;;
4274 esac
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278 # This must be Linux ELF.
4279 linux* | k*bsd*-gnu)
4280 lt_cv_deplibs_check_method=pass_all
4281 ;;
4282
4283 netbsd*)
4284 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4286 else
4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4288 fi
4289 ;;
4290
4291 newos6*)
4292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4293 lt_cv_file_magic_cmd=/usr/bin/file
4294 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4295 ;;
4296
4297 nto-qnx*)
4298 lt_cv_deplibs_check_method=unknown
4299 ;;
4300
4301 openbsd*)
4302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4304 else
4305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4306 fi
4307 ;;
4308
4309 osf3* | osf4* | osf5*)
4310 lt_cv_deplibs_check_method=pass_all
4311 ;;
4312
4313 rdos*)
4314 lt_cv_deplibs_check_method=pass_all
4315 ;;
4316
4317 solaris*)
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320
4321 sysv4 | sysv4.3*)
4322 case $host_vendor in
4323 motorola)
4324 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]'
4325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4326 ;;
4327 ncr)
4328 lt_cv_deplibs_check_method=pass_all
4329 ;;
4330 sequent)
4331 lt_cv_file_magic_cmd='/bin/file'
4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4333 ;;
4334 sni)
4335 lt_cv_file_magic_cmd='/bin/file'
4336 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4337 lt_cv_file_magic_test_file=/lib/libc.so
4338 ;;
4339 siemens)
4340 lt_cv_deplibs_check_method=pass_all
4341 ;;
4342 pc)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345 esac
4346 ;;
4347
4348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4349 lt_cv_deplibs_check_method=pass_all
4350 ;;
4351 esac
4352
4353 fi
4354 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4355 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4356 file_magic_cmd=$lt_cv_file_magic_cmd
4357 deplibs_check_method=$lt_cv_deplibs_check_method
4358 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4359
4360
4361
4362
4363 # If no C compiler was specified, use CC.
4364 LTCC=${LTCC-"$CC"}
4365
4366 # If no C compiler flags were specified, use CFLAGS.
4367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4368
4369 # Allow CC to be a program name with arguments.
4370 compiler=$CC
4371
4372
4373 # Check whether --enable-libtool-lock was given.
4374 if test "${enable_libtool_lock+set}" = set; then
4375 enableval=$enable_libtool_lock;
4376 fi
4377
4378 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4379
4380 # Some flags need to be propagated to the compiler or linker for good
4381 # libtool support.
4382 case $host in
4383 ia64-*-hpux*)
4384 # Find out which ABI we are using.
4385 echo 'int i;' > conftest.$ac_ext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; then
4391 case `/usr/bin/file conftest.$ac_objext` in
4392 *ELF-32*)
4393 HPUX_IA64_MODE="32"
4394 ;;
4395 *ELF-64*)
4396 HPUX_IA64_MODE="64"
4397 ;;
4398 esac
4399 fi
4400 rm -rf conftest*
4401 ;;
4402 *-*-irix6*)
4403 # Find out which ABI we are using.
4404 echo '#line 4404 "configure"' > conftest.$ac_ext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
4410 if test "$lt_cv_prog_gnu_ld" = yes; then
4411 case `/usr/bin/file conftest.$ac_objext` in
4412 *32-bit*)
4413 LD="${LD-ld} -melf32bsmip"
4414 ;;
4415 *N32*)
4416 LD="${LD-ld} -melf32bmipn32"
4417 ;;
4418 *64-bit*)
4419 LD="${LD-ld} -melf64bmip"
4420 ;;
4421 esac
4422 else
4423 case `/usr/bin/file conftest.$ac_objext` in
4424 *32-bit*)
4425 LD="${LD-ld} -32"
4426 ;;
4427 *N32*)
4428 LD="${LD-ld} -n32"
4429 ;;
4430 *64-bit*)
4431 LD="${LD-ld} -64"
4432 ;;
4433 esac
4434 fi
4435 fi
4436 rm -rf conftest*
4437 ;;
4438
4439 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4440 s390*-*linux*|sparc*-*linux*)
4441 # Find out which ABI we are using.
4442 echo 'int i;' > conftest.$ac_ext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
4448 case `/usr/bin/file conftest.o` in
4449 *32-bit*)
4450 case $host in
4451 x86_64-*kfreebsd*-gnu)
4452 LD="${LD-ld} -m elf_i386_fbsd"
4453 ;;
4454 x86_64-*linux*)
4455 LD="${LD-ld} -m elf_i386"
4456 ;;
4457 ppc64-*linux*|powerpc64-*linux*)
4458 LD="${LD-ld} -m elf32ppclinux"
4459 ;;
4460 s390x-*linux*)
4461 LD="${LD-ld} -m elf_s390"
4462 ;;
4463 sparc64-*linux*)
4464 LD="${LD-ld} -m elf32_sparc"
4465 ;;
4466 esac
4467 ;;
4468 *64-bit*)
4469 libsuff=64
4470 case $host in
4471 x86_64-*kfreebsd*-gnu)
4472 LD="${LD-ld} -m elf_x86_64_fbsd"
4473 ;;
4474 x86_64-*linux*)
4475 LD="${LD-ld} -m elf_x86_64"
4476 ;;
4477 ppc*-*linux*|powerpc*-*linux*)
4478 LD="${LD-ld} -m elf64ppc"
4479 ;;
4480 s390*-*linux*)
4481 LD="${LD-ld} -m elf64_s390"
4482 ;;
4483 sparc*-*linux*)
4484 LD="${LD-ld} -m elf64_sparc"
4485 ;;
4486 esac
4487 ;;
4488 esac
4489 fi
4490 rm -rf conftest*
4491 ;;
4492
4493 *-*-sco3.2v5*)
4494 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4495 SAVE_CFLAGS="$CFLAGS"
4496 CFLAGS="$CFLAGS -belf"
4497 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4498 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4499 if test "${lt_cv_cc_needs_belf+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 ac_ext=c
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514
4515 int
4516 main ()
4517 {
4518
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext conftest$ac_exeext
4524 if { (ac_try="$ac_link"
4525 case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528 esac
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_link") 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } && {
4537 test -z "$ac_c_werror_flag" ||
4538 test ! -s conftest.err
4539 } && test -s conftest$ac_exeext &&
4540 $as_test_x conftest$ac_exeext; then
4541 lt_cv_cc_needs_belf=yes
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 lt_cv_cc_needs_belf=no
4547 fi
4548
4549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4550 conftest$ac_exeext conftest.$ac_ext
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557 fi
4558 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4559 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4562 CFLAGS="$SAVE_CFLAGS"
4563 fi
4564 ;;
4565 sparc*-*solaris*)
4566 # Find out which ABI we are using.
4567 echo 'int i;' > conftest.$ac_ext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; then
4573 case `/usr/bin/file conftest.o` in
4574 *64-bit*)
4575 case $lt_cv_prog_gnu_ld in
4576 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4577 *) LD="${LD-ld} -64" ;;
4578 esac
4579 ;;
4580 esac
4581 fi
4582 rm -rf conftest*
4583 ;;
4584
4585
4586 esac
4587
4588 need_locks="$enable_libtool_lock"
4589
4590
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4597 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4598 # On Suns, sometimes $CPP names a directory.
4599 if test -n "$CPP" && test -d "$CPP"; then
4600 CPP=
4601 fi
4602 if test -z "$CPP"; then
4603 if test "${ac_cv_prog_CPP+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 # Double quotes because CPP needs to be expanded
4607 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4608 do
4609 ac_preproc_ok=false
4610 for ac_c_preproc_warn_flag in '' yes
4611 do
4612 # Use a header file that comes with gcc, so configuring glibc
4613 # with a fresh cross-compiler works.
4614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 # <limits.h> exists even on freestanding compilers.
4616 # On the NeXT, cc -E runs the code through the compiler's parser,
4617 # not just through cpp. "Syntax error" is here to catch this case.
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 #ifdef __STDC__
4625 # include <limits.h>
4626 #else
4627 # include <assert.h>
4628 #endif
4629 Syntax error
4630 _ACEOF
4631 if { (ac_try="$ac_cpp conftest.$ac_ext"
4632 case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null && {
4644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4645 test ! -s conftest.err
4646 }; then
4647 :
4648 else
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 # Broken: fails on valid input.
4653 continue
4654 fi
4655
4656 rm -f conftest.err conftest.$ac_ext
4657
4658 # OK, works on sane cases. Now check whether nonexistent headers
4659 # can be detected and how.
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 #include <ac_nonexistent.h>
4667 _ACEOF
4668 if { (ac_try="$ac_cpp conftest.$ac_ext"
4669 case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4672 esac
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } >/dev/null && {
4681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 }; then
4684 # Broken: success on invalid input.
4685 continue
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 # Passes both tests.
4691 ac_preproc_ok=:
4692 break
4693 fi
4694
4695 rm -f conftest.err conftest.$ac_ext
4696
4697 done
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then
4701 break
4702 fi
4703
4704 done
4705 ac_cv_prog_CPP=$CPP
4706
4707 fi
4708 CPP=$ac_cv_prog_CPP
4709 else
4710 ac_cv_prog_CPP=$CPP
4711 fi
4712 { echo "$as_me:$LINENO: result: $CPP" >&5
4713 echo "${ECHO_T}$CPP" >&6; }
4714 ac_preproc_ok=false
4715 for ac_c_preproc_warn_flag in '' yes
4716 do
4717 # Use a header file that comes with gcc, so configuring glibc
4718 # with a fresh cross-compiler works.
4719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4720 # <limits.h> exists even on freestanding compilers.
4721 # On the NeXT, cc -E runs the code through the compiler's parser,
4722 # not just through cpp. "Syntax error" is here to catch this case.
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 #ifdef __STDC__
4730 # include <limits.h>
4731 #else
4732 # include <assert.h>
4733 #endif
4734 Syntax error
4735 _ACEOF
4736 if { (ac_try="$ac_cpp conftest.$ac_ext"
4737 case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null && {
4749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4751 }; then
4752 :
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 # Broken: fails on valid input.
4758 continue
4759 fi
4760
4761 rm -f conftest.err conftest.$ac_ext
4762
4763 # OK, works on sane cases. Now check whether nonexistent headers
4764 # can be detected and how.
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 #include <ac_nonexistent.h>
4772 _ACEOF
4773 if { (ac_try="$ac_cpp conftest.$ac_ext"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } >/dev/null && {
4786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4787 test ! -s conftest.err
4788 }; then
4789 # Broken: success on invalid input.
4790 continue
4791 else
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 # Passes both tests.
4796 ac_preproc_ok=:
4797 break
4798 fi
4799
4800 rm -f conftest.err conftest.$ac_ext
4801
4802 done
4803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4804 rm -f conftest.err conftest.$ac_ext
4805 if $ac_preproc_ok; then
4806 :
4807 else
4808 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4809 See \`config.log' for more details." >&5
4810 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4811 See \`config.log' for more details." >&2;}
4812 { (exit 1); exit 1; }; }
4813 fi
4814
4815 ac_ext=c
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820
4821
4822 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4823 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4824 if test "${ac_cv_header_stdc+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #include <stdlib.h>
4834 #include <stdarg.h>
4835 #include <string.h>
4836 #include <float.h>
4837
4838 int
4839 main ()
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_compile") 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest.$ac_objext; then
4863 ac_cv_header_stdc=yes
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 ac_cv_header_stdc=no
4869 fi
4870
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872
4873 if test $ac_cv_header_stdc = yes; then
4874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 #include <string.h>
4882
4883 _ACEOF
4884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4885 $EGREP "memchr" >/dev/null 2>&1; then
4886 :
4887 else
4888 ac_cv_header_stdc=no
4889 fi
4890 rm -f conftest*
4891
4892 fi
4893
4894 if test $ac_cv_header_stdc = yes; then
4895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4896 cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h. */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4902 #include <stdlib.h>
4903
4904 _ACEOF
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 $EGREP "free" >/dev/null 2>&1; then
4907 :
4908 else
4909 ac_cv_header_stdc=no
4910 fi
4911 rm -f conftest*
4912
4913 fi
4914
4915 if test $ac_cv_header_stdc = yes; then
4916 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4917 if test "$cross_compiling" = yes; then
4918 :
4919 else
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 #include <ctype.h>
4927 #include <stdlib.h>
4928 #if ((' ' & 0x0FF) == 0x020)
4929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4931 #else
4932 # define ISLOWER(c) \
4933 (('a' <= (c) && (c) <= 'i') \
4934 || ('j' <= (c) && (c) <= 'r') \
4935 || ('s' <= (c) && (c) <= 'z'))
4936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4937 #endif
4938
4939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4940 int
4941 main ()
4942 {
4943 int i;
4944 for (i = 0; i < 256; i++)
4945 if (XOR (islower (i), ISLOWER (i))
4946 || toupper (i) != TOUPPER (i))
4947 return 2;
4948 return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4953 case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_link") 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4962 { (case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_try") 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 :
4972 else
4973 echo "$as_me: program exited with status $ac_status" >&5
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 ( exit $ac_status )
4978 ac_cv_header_stdc=no
4979 fi
4980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4981 fi
4982
4983
4984 fi
4985 fi
4986 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4987 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4988 if test $ac_cv_header_stdc = yes; then
4989
4990 cat >>confdefs.h <<\_ACEOF
4991 #define STDC_HEADERS 1
4992 _ACEOF
4993
4994 fi
4995
4996 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5007 inttypes.h stdint.h unistd.h
5008 do
5009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h. */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 $ac_includes_default
5022
5023 #include <$ac_header>
5024 _ACEOF
5025 rm -f conftest.$ac_objext
5026 if { (ac_try="$ac_compile"
5027 case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5030 esac
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_compile") 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } && {
5039 test -z "$ac_c_werror_flag" ||
5040 test ! -s conftest.err
5041 } && test -s conftest.$ac_objext; then
5042 eval "$as_ac_Header=yes"
5043 else
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 eval "$as_ac_Header=no"
5048 fi
5049
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 fi
5052 ac_res=`eval echo '${'$as_ac_Header'}'`
5053 { echo "$as_me:$LINENO: result: $ac_res" >&5
5054 echo "${ECHO_T}$ac_res" >&6; }
5055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5056 cat >>confdefs.h <<_ACEOF
5057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5058 _ACEOF
5059
5060 fi
5061
5062 done
5063
5064
5065
5066 for ac_header in dlfcn.h
5067 do
5068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 fi
5075 ac_res=`eval echo '${'$as_ac_Header'}'`
5076 { echo "$as_me:$LINENO: result: $ac_res" >&5
5077 echo "${ECHO_T}$ac_res" >&6; }
5078 else
5079 # Is the header compilable?
5080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5082 cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 $ac_includes_default
5089 #include <$ac_header>
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_header_compiler=yes
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ac_header_compiler=no
5114 fi
5115
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118 echo "${ECHO_T}$ac_header_compiler" >&6; }
5119
5120 # Is the header present?
5121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #include <$ac_header>
5130 _ACEOF
5131 if { (ac_try="$ac_cpp conftest.$ac_ext"
5132 case "(($ac_try" in
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5135 esac
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null && {
5144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5145 test ! -s conftest.err
5146 }; then
5147 ac_header_preproc=yes
5148 else
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ac_header_preproc=no
5153 fi
5154
5155 rm -f conftest.err conftest.$ac_ext
5156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5157 echo "${ECHO_T}$ac_header_preproc" >&6; }
5158
5159 # So? What about this header?
5160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5161 yes:no: )
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5166 ac_header_preproc=yes
5167 ;;
5168 no:yes:* )
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5181 ( cat <<\_ASBOX
5182 ## -------------------------------------------------- ##
5183 ## Report this to courier-users@lists.sourceforge.net ##
5184 ## -------------------------------------------------- ##
5185 _ASBOX
5186 ) | sed "s/^/$as_me: WARNING: /" >&2
5187 ;;
5188 esac
5189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 eval "$as_ac_Header=\$ac_header_preproc"
5195 fi
5196 ac_res=`eval echo '${'$as_ac_Header'}'`
5197 { echo "$as_me:$LINENO: result: $ac_res" >&5
5198 echo "${ECHO_T}$ac_res" >&6; }
5199
5200 fi
5201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5202 cat >>confdefs.h <<_ACEOF
5203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5204 _ACEOF
5205
5206 fi
5207
5208 done
5209
5210 ac_ext=cpp
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215 if test -z "$CXX"; then
5216 if test -n "$CCC"; then
5217 CXX=$CCC
5218 else
5219 if test -n "$ac_tool_prefix"; then
5220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5221 do
5222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_prog_CXX+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 if test -n "$CXX"; then
5230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243 done
5244 done
5245 IFS=$as_save_IFS
5246
5247 fi
5248 fi
5249 CXX=$ac_cv_prog_CXX
5250 if test -n "$CXX"; then
5251 { echo "$as_me:$LINENO: result: $CXX" >&5
5252 echo "${ECHO_T}$CXX" >&6; }
5253 else
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5256 fi
5257
5258
5259 test -n "$CXX" && break
5260 done
5261 fi
5262 if test -z "$CXX"; then
5263 ac_ct_CXX=$CXX
5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5265 do
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 if test -n "$ac_ct_CXX"; then
5274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_CXX="$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287 done
5288 done
5289 IFS=$as_save_IFS
5290
5291 fi
5292 fi
5293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5294 if test -n "$ac_ct_CXX"; then
5295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5297 else
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5300 fi
5301
5302
5303 test -n "$ac_ct_CXX" && break
5304 done
5305
5306 if test "x$ac_ct_CXX" = x; then
5307 CXX="g++"
5308 else
5309 case $cross_compiling:$ac_tool_warned in
5310 yes:)
5311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5312 whose name does not start with the host triplet. If you think this
5313 configuration is useful to you, please write to autoconf@gnu.org." >&5
5314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5315 whose name does not start with the host triplet. If you think this
5316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5317 ac_tool_warned=yes ;;
5318 esac
5319 CXX=$ac_ct_CXX
5320 fi
5321 fi
5322
5323 fi
5324 fi
5325 # Provide some information about the compiler.
5326 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5327 ac_compiler=`set X $ac_compile; echo $2`
5328 { (ac_try="$ac_compiler --version >&5"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compiler --version >&5") 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }
5338 { (ac_try="$ac_compiler -v >&5"
5339 case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compiler -v >&5") 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }
5348 { (ac_try="$ac_compiler -V >&5"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compiler -V >&5") 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }
5358
5359 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370
5371 int
5372 main ()
5373 {
5374 #ifndef __GNUC__
5375 choke me
5376 #endif
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 ac_compiler_gnu=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_compiler_gnu=no
5405 fi
5406
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5409
5410 fi
5411 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5412 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5413 GXX=`test $ac_compiler_gnu = yes && echo yes`
5414 ac_test_CXXFLAGS=${CXXFLAGS+set}
5415 ac_save_CXXFLAGS=$CXXFLAGS
5416 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5417 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5418 if test "${ac_cv_prog_cxx_g+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5422 ac_cxx_werror_flag=yes
5423 ac_cv_prog_cxx_g=no
5424 CXXFLAGS="-g"
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431
5432 int
5433 main ()
5434 {
5435
5436 ;
5437 return 0;
5438 }
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5457 ac_cv_prog_cxx_g=yes
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462 CXXFLAGS=""
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469
5470 int
5471 main ()
5472 {
5473
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_cxx_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5495 :
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5501 CXXFLAGS="-g"
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508
5509 int
5510 main ()
5511 {
5512
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_cxx_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 ac_cv_prog_cxx_g=yes
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539
5540 fi
5541
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 fi
5544
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 fi
5547
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5550 fi
5551 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5552 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5553 if test "$ac_test_CXXFLAGS" = set; then
5554 CXXFLAGS=$ac_save_CXXFLAGS
5555 elif test $ac_cv_prog_cxx_g = yes; then
5556 if test "$GXX" = yes; then
5557 CXXFLAGS="-g -O2"
5558 else
5559 CXXFLAGS="-g"
5560 fi
5561 else
5562 if test "$GXX" = yes; then
5563 CXXFLAGS="-O2"
5564 else
5565 CXXFLAGS=
5566 fi
5567 fi
5568 ac_ext=cpp
5569 ac_cpp='$CXXCPP $CPPFLAGS'
5570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5573
5574 depcc="$CXX" am_compiler_list=
5575
5576 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5577 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5578 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5582 # We make a subdir and do the tests there. Otherwise we can end up
5583 # making bogus files that we don't know about and never remove. For
5584 # instance it was reported that on HP-UX the gcc test will end up
5585 # making a dummy file named `D' -- because `-MD' means `put the output
5586 # in D'.
5587 mkdir conftest.dir
5588 # Copy depcomp to subdir because otherwise we won't find it if we're
5589 # using a relative directory.
5590 cp "$am_depcomp" conftest.dir
5591 cd conftest.dir
5592 # We will build objects and dependencies in a subdirectory because
5593 # it helps to detect inapplicable dependency modes. For instance
5594 # both Tru64's cc and ICC support -MD to output dependencies as a
5595 # side effect of compilation, but ICC will put the dependencies in
5596 # the current directory while Tru64 will put them in the object
5597 # directory.
5598 mkdir sub
5599
5600 am_cv_CXX_dependencies_compiler_type=none
5601 if test "$am_compiler_list" = ""; then
5602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5603 fi
5604 for depmode in $am_compiler_list; do
5605 # Setup a source with many dependencies, because some compilers
5606 # like to wrap large dependency lists on column 80 (with \), and
5607 # we should not choose a depcomp mode which is confused by this.
5608 #
5609 # We need to recreate these files for each test, as the compiler may
5610 # overwrite some of them when testing with obscure command lines.
5611 # This happens at least with the AIX C compiler.
5612 : > sub/conftest.c
5613 for i in 1 2 3 4 5 6; do
5614 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5615 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5616 # Solaris 8's {/usr,}/bin/sh.
5617 touch sub/conftst$i.h
5618 done
5619 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5620
5621 case $depmode in
5622 nosideeffect)
5623 # after this tag, mechanisms are not by side-effect, so they'll
5624 # only be used when explicitly requested
5625 if test "x$enable_dependency_tracking" = xyes; then
5626 continue
5627 else
5628 break
5629 fi
5630 ;;
5631 none) break ;;
5632 esac
5633 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5634 # mode. It turns out that the SunPro C++ compiler does not properly
5635 # handle `-M -o', and we need to detect this.
5636 if depmode=$depmode \
5637 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5639 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5640 >/dev/null 2>conftest.err &&
5641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5643 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5645 # icc doesn't choke on unknown options, it will just issue warnings
5646 # or remarks (even with -Werror). So we grep stderr for any message
5647 # that says an option was ignored or not supported.
5648 # When given -MP, icc 7.0 and 7.1 complain thusly:
5649 # icc: Command line warning: ignoring option '-M'; no argument required
5650 # The diagnosis changed in icc 8.0:
5651 # icc: Command line remark: option '-MP' not supported
5652 if (grep 'ignoring option' conftest.err ||
5653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5654 am_cv_CXX_dependencies_compiler_type=$depmode
5655 break
5656 fi
5657 fi
5658 done
5659
5660 cd ..
5661 rm -rf conftest.dir
5662 else
5663 am_cv_CXX_dependencies_compiler_type=none
5664 fi
5665
5666 fi
5667 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5668 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5670
5671 if
5672 test "x$enable_dependency_tracking" != xno \
5673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5674 am__fastdepCXX_TRUE=
5675 am__fastdepCXX_FALSE='#'
5676 else
5677 am__fastdepCXX_TRUE='#'
5678 am__fastdepCXX_FALSE=
5679 fi
5680
5681
5682
5683
5684 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5685 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5686 (test "X$CXX" != "Xg++"))) ; then
5687 ac_ext=cpp
5688 ac_cpp='$CXXCPP $CPPFLAGS'
5689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5692 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5693 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5694 if test -z "$CXXCPP"; then
5695 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 # Double quotes because CXXCPP needs to be expanded
5699 for CXXCPP in "$CXX -E" "/lib/cpp"
5700 do
5701 ac_preproc_ok=false
5702 for ac_cxx_preproc_warn_flag in '' yes
5703 do
5704 # Use a header file that comes with gcc, so configuring glibc
5705 # with a fresh cross-compiler works.
5706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707 # <limits.h> exists even on freestanding compilers.
5708 # On the NeXT, cc -E runs the code through the compiler's parser,
5709 # not just through cpp. "Syntax error" is here to catch this case.
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #ifdef __STDC__
5717 # include <limits.h>
5718 #else
5719 # include <assert.h>
5720 #endif
5721 Syntax error
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5737 test ! -s conftest.err
5738 }; then
5739 :
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 # Broken: fails on valid input.
5745 continue
5746 fi
5747
5748 rm -f conftest.err conftest.$ac_ext
5749
5750 # OK, works on sane cases. Now check whether nonexistent headers
5751 # can be detected and how.
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <ac_nonexistent.h>
5759 _ACEOF
5760 if { (ac_try="$ac_cpp conftest.$ac_ext"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } >/dev/null && {
5773 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5774 test ! -s conftest.err
5775 }; then
5776 # Broken: success on invalid input.
5777 continue
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 # Passes both tests.
5783 ac_preproc_ok=:
5784 break
5785 fi
5786
5787 rm -f conftest.err conftest.$ac_ext
5788
5789 done
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.$ac_ext
5792 if $ac_preproc_ok; then
5793 break
5794 fi
5795
5796 done
5797 ac_cv_prog_CXXCPP=$CXXCPP
5798
5799 fi
5800 CXXCPP=$ac_cv_prog_CXXCPP
5801 else
5802 ac_cv_prog_CXXCPP=$CXXCPP
5803 fi
5804 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5805 echo "${ECHO_T}$CXXCPP" >&6; }
5806 ac_preproc_ok=false
5807 for ac_cxx_preproc_warn_flag in '' yes
5808 do
5809 # Use a header file that comes with gcc, so configuring glibc
5810 # with a fresh cross-compiler works.
5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812 # <limits.h> exists even on freestanding compilers.
5813 # On the NeXT, cc -E runs the code through the compiler's parser,
5814 # not just through cpp. "Syntax error" is here to catch this case.
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #ifdef __STDC__
5822 # include <limits.h>
5823 #else
5824 # include <assert.h>
5825 #endif
5826 Syntax error
5827 _ACEOF
5828 if { (ac_try="$ac_cpp conftest.$ac_ext"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } >/dev/null && {
5841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5842 test ! -s conftest.err
5843 }; then
5844 :
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 # Broken: fails on valid input.
5850 continue
5851 fi
5852
5853 rm -f conftest.err conftest.$ac_ext
5854
5855 # OK, works on sane cases. Now check whether nonexistent headers
5856 # can be detected and how.
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <ac_nonexistent.h>
5864 _ACEOF
5865 if { (ac_try="$ac_cpp conftest.$ac_ext"
5866 case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } >/dev/null && {
5878 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5879 test ! -s conftest.err
5880 }; then
5881 # Broken: success on invalid input.
5882 continue
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 # Passes both tests.
5888 ac_preproc_ok=:
5889 break
5890 fi
5891
5892 rm -f conftest.err conftest.$ac_ext
5893
5894 done
5895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5896 rm -f conftest.err conftest.$ac_ext
5897 if $ac_preproc_ok; then
5898 :
5899 else
5900 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5903 See \`config.log' for more details." >&2;}
5904 { (exit 1); exit 1; }; }
5905 fi
5906
5907 ac_ext=cpp
5908 ac_cpp='$CXXCPP $CPPFLAGS'
5909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5912
5913 fi
5914
5915
5916 ac_ext=f
5917 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5918 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5920 if test -n "$ac_tool_prefix"; then
5921 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
5922 do
5923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_prog_F77+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 if test -n "$F77"; then
5931 ac_cv_prog_F77="$F77" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 F77=$ac_cv_prog_F77
5951 if test -n "$F77"; then
5952 { echo "$as_me:$LINENO: result: $F77" >&5
5953 echo "${ECHO_T}$F77" >&6; }
5954 else
5955 { echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6; }
5957 fi
5958
5959
5960 test -n "$F77" && break
5961 done
5962 fi
5963 if test -z "$F77"; then
5964 ac_ct_F77=$F77
5965 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
5966 do
5967 # Extract the first word of "$ac_prog", so it can be a program name with args.
5968 set dummy $ac_prog; ac_word=$2
5969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 if test -n "$ac_ct_F77"; then
5975 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_ac_ct_F77="$ac_prog"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5995 if test -n "$ac_ct_F77"; then
5996 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5997 echo "${ECHO_T}$ac_ct_F77" >&6; }
5998 else
5999 { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6001 fi
6002
6003
6004 test -n "$ac_ct_F77" && break
6005 done
6006
6007 if test "x$ac_ct_F77" = x; then
6008 F77=""
6009 else
6010 case $cross_compiling:$ac_tool_warned in
6011 yes:)
6012 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6013 whose name does not start with the host triplet. If you think this
6014 configuration is useful to you, please write to autoconf@gnu.org." >&5
6015 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6016 whose name does not start with the host triplet. If you think this
6017 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6018 ac_tool_warned=yes ;;
6019 esac
6020 F77=$ac_ct_F77
6021 fi
6022 fi
6023
6024
6025 # Provide some information about the compiler.
6026 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6027 ac_compiler=`set X $ac_compile; echo $2`
6028 { (ac_try="$ac_compiler --version >&5"
6029 case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_compiler --version >&5") 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }
6038 { (ac_try="$ac_compiler -v >&5"
6039 case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042 esac
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compiler -v >&5") 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }
6048 { (ac_try="$ac_compiler -V >&5"
6049 case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compiler -V >&5") 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }
6058 rm -f a.out
6059
6060 # If we don't use `.F' as extension, the preprocessor is not run on the
6061 # input file. (Note that this only needs to work for GNU compilers.)
6062 ac_save_ext=$ac_ext
6063 ac_ext=F
6064 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6065 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6066 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069 cat >conftest.$ac_ext <<_ACEOF
6070 program main
6071 #ifndef __GNUC__
6072 choke me
6073 #endif
6074
6075 end
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6079 case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082 esac
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_f77_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest.$ac_objext; then
6094 ac_compiler_gnu=yes
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 ac_compiler_gnu=no
6100 fi
6101
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6104
6105 fi
6106 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6107 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6108 ac_ext=$ac_save_ext
6109 ac_test_FFLAGS=${FFLAGS+set}
6110 ac_save_FFLAGS=$FFLAGS
6111 FFLAGS=
6112 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6113 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6114 if test "${ac_cv_prog_f77_g+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 FFLAGS=-g
6118 cat >conftest.$ac_ext <<_ACEOF
6119 program main
6120
6121 end
6122 _ACEOF
6123 rm -f conftest.$ac_objext
6124 if { (ac_try="$ac_compile"
6125 case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128 esac
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_compile") 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && {
6137 test -z "$ac_f77_werror_flag" ||
6138 test ! -s conftest.err
6139 } && test -s conftest.$ac_objext; then
6140 ac_cv_prog_f77_g=yes
6141 else
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145 ac_cv_prog_f77_g=no
6146 fi
6147
6148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149
6150 fi
6151 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6152 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6153 if test "$ac_test_FFLAGS" = set; then
6154 FFLAGS=$ac_save_FFLAGS
6155 elif test $ac_cv_prog_f77_g = yes; then
6156 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6157 FFLAGS="-g -O2"
6158 else
6159 FFLAGS="-g"
6160 fi
6161 else
6162 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6163 FFLAGS="-O2"
6164 else
6165 FFLAGS=
6166 fi
6167 fi
6168
6169 G77=`test $ac_compiler_gnu = yes && echo yes`
6170 ac_ext=c
6171 ac_cpp='$CPP $CPPFLAGS'
6172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175
6176
6177
6178 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6179
6180 # find the maximum length of command line arguments
6181 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6182 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6183 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186 i=0
6187 teststring="ABCD"
6188
6189 case $build_os in
6190 msdosdjgpp*)
6191 # On DJGPP, this test can blow up pretty badly due to problems in libc
6192 # (any single argument exceeding 2000 bytes causes a buffer overrun
6193 # during glob expansion). Even if it were fixed, the result of this
6194 # check would be larger than it should be.
6195 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6196 ;;
6197
6198 gnu*)
6199 # Under GNU Hurd, this test is not required because there is
6200 # no limit to the length of command line arguments.
6201 # Libtool will interpret -1 as no limit whatsoever
6202 lt_cv_sys_max_cmd_len=-1;
6203 ;;
6204
6205 cygwin* | mingw*)
6206 # On Win9x/ME, this test blows up -- it succeeds, but takes
6207 # about 5 minutes as the teststring grows exponentially.
6208 # Worse, since 9x/ME are not pre-emptively multitasking,
6209 # you end up with a "frozen" computer, even though with patience
6210 # the test eventually succeeds (with a max line length of 256k).
6211 # Instead, let's just punt: use the minimum linelength reported by
6212 # all of the supported platforms: 8192 (on NT/2K/XP).
6213 lt_cv_sys_max_cmd_len=8192;
6214 ;;
6215
6216 amigaos*)
6217 # On AmigaOS with pdksh, this test takes hours, literally.
6218 # So we just punt and use a minimum line length of 8192.
6219 lt_cv_sys_max_cmd_len=8192;
6220 ;;
6221
6222 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6223 # This has been around since 386BSD, at least. Likely further.
6224 if test -x /sbin/sysctl; then
6225 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6226 elif test -x /usr/sbin/sysctl; then
6227 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6228 else
6229 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6230 fi
6231 # And add a safety zone
6232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6234 ;;
6235
6236 interix*)
6237 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6238 lt_cv_sys_max_cmd_len=196608
6239 ;;
6240
6241 osf*)
6242 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6243 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6244 # nice to cause kernel panics so lets avoid the loop below.
6245 # First set a reasonable default.
6246 lt_cv_sys_max_cmd_len=16384
6247 #
6248 if test -x /sbin/sysconfig; then
6249 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6250 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6251 esac
6252 fi
6253 ;;
6254 sco3.2v5*)
6255 lt_cv_sys_max_cmd_len=102400
6256 ;;
6257 sysv5* | sco5v6* | sysv4.2uw2*)
6258 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6259 if test -n "$kargmax"; then
6260 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6261 else
6262 lt_cv_sys_max_cmd_len=32768
6263 fi
6264 ;;
6265 *)
6266 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6267 if test -n "$lt_cv_sys_max_cmd_len"; then
6268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6270 else
6271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6272 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6273 = "XX$teststring") >/dev/null 2>&1 &&
6274 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6275 lt_cv_sys_max_cmd_len=$new_result &&
6276 test $i != 17 # 1/2 MB should be enough
6277 do
6278 i=`expr $i + 1`
6279 teststring=$teststring$teststring
6280 done
6281 teststring=
6282 # Add a significant safety factor because C++ compilers can tack on massive
6283 # amounts of additional arguments before passing them to the linker.
6284 # It appears as though 1/2 is a usable value.
6285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6286 fi
6287 ;;
6288 esac
6289
6290 fi
6291
6292 if test -n $lt_cv_sys_max_cmd_len ; then
6293 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6294 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6295 else
6296 { echo "$as_me:$LINENO: result: none" >&5
6297 echo "${ECHO_T}none" >&6; }
6298 fi
6299
6300
6301
6302
6303
6304 # Check for command to grab the raw symbol name followed by C symbol from nm.
6305 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6306 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6307 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310
6311 # These are sane defaults that work on at least a few old systems.
6312 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6313
6314 # Character class describing NM global symbol codes.
6315 symcode='[BCDEGRST]'
6316
6317 # Regexp to match symbols that can be accessed directly from C.
6318 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6319
6320 # Transform an extracted symbol line into a proper C declaration
6321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6322
6323 # Transform an extracted symbol line into symbol name and symbol address
6324 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'"
6325
6326 # Define system-specific variables.
6327 case $host_os in
6328 aix*)
6329 symcode='[BCDT]'
6330 ;;
6331 cygwin* | mingw* | pw32*)
6332 symcode='[ABCDGISTW]'
6333 ;;
6334 hpux*) # Its linker distinguishes data from code symbols
6335 if test "$host_cpu" = ia64; then
6336 symcode='[ABCDEGRST]'
6337 fi
6338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6339 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'"
6340 ;;
6341 linux* | k*bsd*-gnu)
6342 if test "$host_cpu" = ia64; then
6343 symcode='[ABCDGIRSTW]'
6344 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6345 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'"
6346 fi
6347 ;;
6348 irix* | nonstopux*)
6349 symcode='[BCDEGRST]'
6350 ;;
6351 osf*)
6352 symcode='[BCDEGQRST]'
6353 ;;
6354 solaris*)
6355 symcode='[BDRT]'
6356 ;;
6357 sco3.2v5*)
6358 symcode='[DT]'
6359 ;;
6360 sysv4.2uw2*)
6361 symcode='[DT]'
6362 ;;
6363 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6364 symcode='[ABDT]'
6365 ;;
6366 sysv4)
6367 symcode='[DFNSTU]'
6368 ;;
6369 esac
6370
6371 # Handle CRLF in mingw tool chain
6372 opt_cr=
6373 case $build_os in
6374 mingw*)
6375 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6376 ;;
6377 esac
6378
6379 # If we're using GNU nm, then use its standard symbol codes.
6380 case `$NM -V 2>&1` in
6381 *GNU* | *'with BFD'*)
6382 symcode='[ABCDGIRSTW]' ;;
6383 esac
6384
6385 # Try without a prefix undercore, then with it.
6386 for ac_symprfx in "" "_"; do
6387
6388 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6389 symxfrm="\\1 $ac_symprfx\\2 \\2"
6390
6391 # Write the raw and C identifiers.
6392 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6393
6394 # Check to see that the pipe works correctly.
6395 pipe_works=no
6396
6397 rm -f conftest*
6398 cat > conftest.$ac_ext <<EOF
6399 #ifdef __cplusplus
6400 extern "C" {
6401 #endif
6402 char nm_test_var;
6403 void nm_test_func(){}
6404 #ifdef __cplusplus
6405 }
6406 #endif
6407 int main(){nm_test_var='a';nm_test_func();return(0);}
6408 EOF
6409
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; then
6415 # Now try to grab the symbols.
6416 nlist=conftest.nm
6417 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6418 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && test -s "$nlist"; then
6422 # Try sorting and uniquifying the output.
6423 if sort "$nlist" | uniq > "$nlist"T; then
6424 mv -f "$nlist"T "$nlist"
6425 else
6426 rm -f "$nlist"T
6427 fi
6428
6429 # Make sure that we snagged all the symbols we need.
6430 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6431 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6432 cat <<EOF > conftest.$ac_ext
6433 #ifdef __cplusplus
6434 extern "C" {
6435 #endif
6436
6437 EOF
6438 # Now generate the symbol file.
6439 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6440
6441 cat <<EOF >> conftest.$ac_ext
6442 #if defined (__STDC__) && __STDC__
6443 # define lt_ptr_t void *
6444 #else
6445 # define lt_ptr_t char *
6446 # define const
6447 #endif
6448
6449 /* The mapping between symbol names and symbols. */
6450 const struct {
6451 const char *name;
6452 lt_ptr_t address;
6453 }
6454 lt_preloaded_symbols[] =
6455 {
6456 EOF
6457 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6458 cat <<\EOF >> conftest.$ac_ext
6459 {0, (lt_ptr_t) 0}
6460 };
6461
6462 #ifdef __cplusplus
6463 }
6464 #endif
6465 EOF
6466 # Now try linking the two files.
6467 mv conftest.$ac_objext conftstm.$ac_objext
6468 lt_save_LIBS="$LIBS"
6469 lt_save_CFLAGS="$CFLAGS"
6470 LIBS="conftstm.$ac_objext"
6471 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6477 pipe_works=yes
6478 fi
6479 LIBS="$lt_save_LIBS"
6480 CFLAGS="$lt_save_CFLAGS"
6481 else
6482 echo "cannot find nm_test_func in $nlist" >&5
6483 fi
6484 else
6485 echo "cannot find nm_test_var in $nlist" >&5
6486 fi
6487 else
6488 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6489 fi
6490 else
6491 echo "$progname: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6493 fi
6494 rm -f conftest* conftst*
6495
6496 # Do not use the global_symbol_pipe unless it works.
6497 if test "$pipe_works" = yes; then
6498 break
6499 else
6500 lt_cv_sys_global_symbol_pipe=
6501 fi
6502 done
6503
6504 fi
6505
6506 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6507 lt_cv_sys_global_symbol_to_cdecl=
6508 fi
6509 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6510 { echo "$as_me:$LINENO: result: failed" >&5
6511 echo "${ECHO_T}failed" >&6; }
6512 else
6513 { echo "$as_me:$LINENO: result: ok" >&5
6514 echo "${ECHO_T}ok" >&6; }
6515 fi
6516
6517 { echo "$as_me:$LINENO: checking for objdir" >&5
6518 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6519 if test "${lt_cv_objdir+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 rm -f .libs 2>/dev/null
6523 mkdir .libs 2>/dev/null
6524 if test -d .libs; then
6525 lt_cv_objdir=.libs
6526 else
6527 # MS-DOS does not allow filenames that begin with a dot.
6528 lt_cv_objdir=_libs
6529 fi
6530 rmdir .libs 2>/dev/null
6531 fi
6532 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6533 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6534 objdir=$lt_cv_objdir
6535
6536
6537
6538
6539
6540 case $host_os in
6541 aix3*)
6542 # AIX sometimes has problems with the GCC collect2 program. For some
6543 # reason, if we set the COLLECT_NAMES environment variable, the problems
6544 # vanish in a puff of smoke.
6545 if test "X${COLLECT_NAMES+set}" != Xset; then
6546 COLLECT_NAMES=
6547 export COLLECT_NAMES
6548 fi
6549 ;;
6550 esac
6551
6552 # Sed substitution that helps us do robust quoting. It backslashifies
6553 # metacharacters that are still active within double-quoted strings.
6554 Xsed='sed -e 1s/^X//'
6555 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6556
6557 # Same as above, but do not quote variable references.
6558 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6559
6560 # Sed substitution to delay expansion of an escaped shell variable in a
6561 # double_quote_subst'ed string.
6562 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6563
6564 # Sed substitution to avoid accidental globbing in evaled expressions
6565 no_glob_subst='s/\*/\\\*/g'
6566
6567 # Constants:
6568 rm="rm -f"
6569
6570 # Global variables:
6571 default_ofile=libtool
6572 can_build_shared=yes
6573
6574 # All known linkers require a `.a' archive for static linking (except MSVC,
6575 # which needs '.lib').
6576 libext=a
6577 ltmain="$ac_aux_dir/ltmain.sh"
6578 ofile="$default_ofile"
6579 with_gnu_ld="$lt_cv_prog_gnu_ld"
6580
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6583 set dummy ${ac_tool_prefix}ar; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_prog_AR+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 if test -n "$AR"; then
6590 ac_cv_prog_AR="$AR" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_prog_AR="${ac_tool_prefix}ar"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607 fi
6608 fi
6609 AR=$ac_cv_prog_AR
6610 if test -n "$AR"; then
6611 { echo "$as_me:$LINENO: result: $AR" >&5
6612 echo "${ECHO_T}$AR" >&6; }
6613 else
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6616 fi
6617
6618
6619 fi
6620 if test -z "$ac_cv_prog_AR"; then
6621 ac_ct_AR=$AR
6622 # Extract the first word of "ar", so it can be a program name with args.
6623 set dummy ar; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 if test -n "$ac_ct_AR"; then
6630 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_ac_ct_AR="ar"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6650 if test -n "$ac_ct_AR"; then
6651 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6652 echo "${ECHO_T}$ac_ct_AR" >&6; }
6653 else
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658 if test "x$ac_ct_AR" = x; then
6659 AR="false"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6664 whose name does not start with the host triplet. If you think this
6665 configuration is useful to you, please write to autoconf@gnu.org." >&5
6666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6667 whose name does not start with the host triplet. If you think this
6668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6669 ac_tool_warned=yes ;;
6670 esac
6671 AR=$ac_ct_AR
6672 fi
6673 else
6674 AR="$ac_cv_prog_AR"
6675 fi
6676
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_prog_RANLIB+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 if test -n "$RANLIB"; then
6686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 RANLIB=$ac_cv_prog_RANLIB
6706 if test -n "$RANLIB"; then
6707 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6708 echo "${ECHO_T}$RANLIB" >&6; }
6709 else
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6712 fi
6713
6714
6715 fi
6716 if test -z "$ac_cv_prog_RANLIB"; then
6717 ac_ct_RANLIB=$RANLIB
6718 # Extract the first word of "ranlib", so it can be a program name with args.
6719 set dummy ranlib; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 if test -n "$ac_ct_RANLIB"; then
6726 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_ac_ct_RANLIB="ranlib"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6746 if test -n "$ac_ct_RANLIB"; then
6747 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6748 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6749 else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754 if test "x$ac_ct_RANLIB" = x; then
6755 RANLIB=":"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet. If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&5
6762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767 RANLIB=$ac_ct_RANLIB
6768 fi
6769 else
6770 RANLIB="$ac_cv_prog_RANLIB"
6771 fi
6772
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}strip; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_STRIP+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 if test -n "$STRIP"; then
6782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 STRIP=$ac_cv_prog_STRIP
6802 if test -n "$STRIP"; then
6803 { echo "$as_me:$LINENO: result: $STRIP" >&5
6804 echo "${ECHO_T}$STRIP" >&6; }
6805 else
6806 { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_STRIP"; then
6813 ac_ct_STRIP=$STRIP
6814 # Extract the first word of "strip", so it can be a program name with args.
6815 set dummy strip; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 if test -n "$ac_ct_STRIP"; then
6822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_STRIP="strip"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6842 if test -n "$ac_ct_STRIP"; then
6843 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6844 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6845 else
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850 if test "x$ac_ct_STRIP" = x; then
6851 STRIP=":"
6852 else
6853 case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet. If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&5
6858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863 STRIP=$ac_ct_STRIP
6864 fi
6865 else
6866 STRIP="$ac_cv_prog_STRIP"
6867 fi
6868
6869
6870 old_CC="$CC"
6871 old_CFLAGS="$CFLAGS"
6872
6873 # Set sane defaults for various variables
6874 test -z "$AR" && AR=ar
6875 test -z "$AR_FLAGS" && AR_FLAGS=cru
6876 test -z "$AS" && AS=as
6877 test -z "$CC" && CC=cc
6878 test -z "$LTCC" && LTCC=$CC
6879 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6880 test -z "$DLLTOOL" && DLLTOOL=dlltool
6881 test -z "$LD" && LD=ld
6882 test -z "$LN_S" && LN_S="ln -s"
6883 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6884 test -z "$NM" && NM=nm
6885 test -z "$SED" && SED=sed
6886 test -z "$OBJDUMP" && OBJDUMP=objdump
6887 test -z "$RANLIB" && RANLIB=:
6888 test -z "$STRIP" && STRIP=:
6889 test -z "$ac_objext" && ac_objext=o
6890
6891 # Determine commands to create old-style static archives.
6892 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6893 old_postinstall_cmds='chmod 644 $oldlib'
6894 old_postuninstall_cmds=
6895
6896 if test -n "$RANLIB"; then
6897 case $host_os in
6898 openbsd*)
6899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6900 ;;
6901 *)
6902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6903 ;;
6904 esac
6905 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6906 fi
6907
6908 for cc_temp in $compiler""; do
6909 case $cc_temp in
6910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6912 \-*) ;;
6913 *) break;;
6914 esac
6915 done
6916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6917
6918
6919 # Only perform the check for file, if the check method requires it
6920 case $deplibs_check_method in
6921 file_magic*)
6922 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6923 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6924 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6925 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 case $MAGIC_CMD in
6929 [\\/*] | ?:[\\/]*)
6930 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6931 ;;
6932 *)
6933 lt_save_MAGIC_CMD="$MAGIC_CMD"
6934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6935 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6936 for ac_dir in $ac_dummy; do
6937 IFS="$lt_save_ifs"
6938 test -z "$ac_dir" && ac_dir=.
6939 if test -f $ac_dir/${ac_tool_prefix}file; then
6940 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6941 if test -n "$file_magic_test_file"; then
6942 case $deplibs_check_method in
6943 "file_magic "*)
6944 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6946 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6947 $EGREP "$file_magic_regex" > /dev/null; then
6948 :
6949 else
6950 cat <<EOF 1>&2
6951
6952 *** Warning: the command libtool uses to detect shared libraries,
6953 *** $file_magic_cmd, produces output that libtool cannot recognize.
6954 *** The result is that libtool may fail to recognize shared libraries
6955 *** as such. This will affect the creation of libtool libraries that
6956 *** depend on shared libraries, but programs linked with such libtool
6957 *** libraries will work regardless of this problem. Nevertheless, you
6958 *** may want to report the problem to your system manager and/or to
6959 *** bug-libtool@gnu.org
6960
6961 EOF
6962 fi ;;
6963 esac
6964 fi
6965 break
6966 fi
6967 done
6968 IFS="$lt_save_ifs"
6969 MAGIC_CMD="$lt_save_MAGIC_CMD"
6970 ;;
6971 esac
6972 fi
6973
6974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6975 if test -n "$MAGIC_CMD"; then
6976 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6977 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6978 else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6981 fi
6982
6983 if test -z "$lt_cv_path_MAGIC_CMD"; then
6984 if test -n "$ac_tool_prefix"; then
6985 { echo "$as_me:$LINENO: checking for file" >&5
6986 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6987 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 case $MAGIC_CMD in
6991 [\\/*] | ?:[\\/]*)
6992 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6993 ;;
6994 *)
6995 lt_save_MAGIC_CMD="$MAGIC_CMD"
6996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6998 for ac_dir in $ac_dummy; do
6999 IFS="$lt_save_ifs"
7000 test -z "$ac_dir" && ac_dir=.
7001 if test -f $ac_dir/file; then
7002 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7003 if test -n "$file_magic_test_file"; then
7004 case $deplibs_check_method in
7005 "file_magic "*)
7006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7009 $EGREP "$file_magic_regex" > /dev/null; then
7010 :
7011 else
7012 cat <<EOF 1>&2
7013
7014 *** Warning: the command libtool uses to detect shared libraries,
7015 *** $file_magic_cmd, produces output that libtool cannot recognize.
7016 *** The result is that libtool may fail to recognize shared libraries
7017 *** as such. This will affect the creation of libtool libraries that
7018 *** depend on shared libraries, but programs linked with such libtool
7019 *** libraries will work regardless of this problem. Nevertheless, you
7020 *** may want to report the problem to your system manager and/or to
7021 *** bug-libtool@gnu.org
7022
7023 EOF
7024 fi ;;
7025 esac
7026 fi
7027 break
7028 fi
7029 done
7030 IFS="$lt_save_ifs"
7031 MAGIC_CMD="$lt_save_MAGIC_CMD"
7032 ;;
7033 esac
7034 fi
7035
7036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7037 if test -n "$MAGIC_CMD"; then
7038 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7039 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7040 else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7043 fi
7044
7045 else
7046 MAGIC_CMD=:
7047 fi
7048 fi
7049
7050 fi
7051 ;;
7052 esac
7053
7054 enable_dlopen=no
7055 enable_win32_dll=no
7056
7057 # Check whether --enable-libtool-lock was given.
7058 if test "${enable_libtool_lock+set}" = set; then
7059 enableval=$enable_libtool_lock;
7060 fi
7061
7062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7063
7064
7065 # Check whether --with-pic was given.
7066 if test "${with_pic+set}" = set; then
7067 withval=$with_pic; pic_mode="$withval"
7068 else
7069 pic_mode=default
7070 fi
7071
7072 test -z "$pic_mode" && pic_mode=default
7073
7074 # Use C for the default configuration in the libtool script
7075 tagname=
7076 lt_save_CC="$CC"
7077 ac_ext=c
7078 ac_cpp='$CPP $CPPFLAGS'
7079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082
7083
7084 # Source file extension for C test sources.
7085 ac_ext=c
7086
7087 # Object file extension for compiled C test sources.
7088 objext=o
7089 objext=$objext
7090
7091 # Code to be used in simple compile tests
7092 lt_simple_compile_test_code="int some_variable = 0;"
7093
7094 # Code to be used in simple link tests
7095 lt_simple_link_test_code='int main(){return(0);}'
7096
7097
7098 # If no C compiler was specified, use CC.
7099 LTCC=${LTCC-"$CC"}
7100
7101 # If no C compiler flags were specified, use CFLAGS.
7102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7103
7104 # Allow CC to be a program name with arguments.
7105 compiler=$CC
7106
7107
7108 # save warnings/boilerplate of simple test code
7109 ac_outfile=conftest.$ac_objext
7110 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7111 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7112 _lt_compiler_boilerplate=`cat conftest.err`
7113 $rm conftest*
7114
7115 ac_outfile=conftest.$ac_objext
7116 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7117 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7118 _lt_linker_boilerplate=`cat conftest.err`
7119 $rm conftest*
7120
7121
7122
7123 lt_prog_compiler_no_builtin_flag=
7124
7125 if test "$GCC" = yes; then
7126 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7127
7128
7129 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7130 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7131 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 lt_cv_prog_compiler_rtti_exceptions=no
7135 ac_outfile=conftest.$ac_objext
7136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7137 lt_compiler_flag="-fno-rtti -fno-exceptions"
7138 # Insert the option either (1) after the last *FLAGS variable, or
7139 # (2) before a word containing "conftest.", or (3) at the end.
7140 # Note that $ac_compile itself does not contain backslashes and begins
7141 # with a dollar sign (not a hyphen), so the echo should work correctly.
7142 # The option is referenced via a variable to avoid confusing sed.
7143 lt_compile=`echo "$ac_compile" | $SED \
7144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7146 -e 's:$: $lt_compiler_flag:'`
7147 (eval echo "\"\$as_me:7147: $lt_compile\"" >&5)
7148 (eval "$lt_compile" 2>conftest.err)
7149 ac_status=$?
7150 cat conftest.err >&5
7151 echo "$as_me:7151: \$? = $ac_status" >&5
7152 if (exit $ac_status) && test -s "$ac_outfile"; then
7153 # The compiler can only warn and ignore the option if not recognized
7154 # So say no if there are warnings other than the usual output.
7155 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7158 lt_cv_prog_compiler_rtti_exceptions=yes
7159 fi
7160 fi
7161 $rm conftest*
7162
7163 fi
7164 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7165 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7166
7167 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7168 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7169 else
7170 :
7171 fi
7172
7173 fi
7174
7175 lt_prog_compiler_wl=
7176 lt_prog_compiler_pic=
7177 lt_prog_compiler_static=
7178
7179 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7180 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7181
7182 if test "$GCC" = yes; then
7183 lt_prog_compiler_wl='-Wl,'
7184 lt_prog_compiler_static='-static'
7185
7186 case $host_os in
7187 aix*)
7188 # All AIX code is PIC.
7189 if test "$host_cpu" = ia64; then
7190 # AIX 5 now supports IA64 processor
7191 lt_prog_compiler_static='-Bstatic'
7192 fi
7193 ;;
7194
7195 amigaos*)
7196 # FIXME: we need at least 68020 code to build shared libraries, but
7197 # adding the `-m68020' flag to GCC prevents building anything better,
7198 # like `-m68040'.
7199 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7200 ;;
7201
7202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7203 # PIC is the default for these OSes.
7204 ;;
7205
7206 mingw* | cygwin* | pw32* | os2*)
7207 # This hack is so that the source file can tell whether it is being
7208 # built for inclusion in a dll (and should export symbols for example).
7209 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7210 # (--disable-auto-import) libraries
7211 lt_prog_compiler_pic='-DDLL_EXPORT'
7212 ;;
7213
7214 darwin* | rhapsody*)
7215 # PIC is the default on this platform
7216 # Common symbols not allowed in MH_DYLIB files
7217 lt_prog_compiler_pic='-fno-common'
7218 ;;
7219
7220 interix[3-9]*)
7221 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7222 # Instead, we relocate shared libraries at runtime.
7223 ;;
7224
7225 msdosdjgpp*)
7226 # Just because we use GCC doesn't mean we suddenly get shared libraries
7227 # on systems that don't support them.
7228 lt_prog_compiler_can_build_shared=no
7229 enable_shared=no
7230 ;;
7231
7232 sysv4*MP*)
7233 if test -d /usr/nec; then
7234 lt_prog_compiler_pic=-Kconform_pic
7235 fi
7236 ;;
7237
7238 hpux*)
7239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7240 # not for PA HP-UX.
7241 case $host_cpu in
7242 hppa*64*|ia64*)
7243 # +Z the default
7244 ;;
7245 *)
7246 lt_prog_compiler_pic='-fPIC'
7247 ;;
7248 esac
7249 ;;
7250
7251 *)
7252 lt_prog_compiler_pic='-fPIC'
7253 ;;
7254 esac
7255 else
7256 # PORTME Check for flag to pass linker flags through the system compiler.
7257 case $host_os in
7258 aix*)
7259 lt_prog_compiler_wl='-Wl,'
7260 if test "$host_cpu" = ia64; then
7261 # AIX 5 now supports IA64 processor
7262 lt_prog_compiler_static='-Bstatic'
7263 else
7264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7265 fi
7266 ;;
7267 darwin*)
7268 # PIC is the default on this platform
7269 # Common symbols not allowed in MH_DYLIB files
7270 case $cc_basename in
7271 xlc*)
7272 lt_prog_compiler_pic='-qnocommon'
7273 lt_prog_compiler_wl='-Wl,'
7274 ;;
7275 esac
7276 ;;
7277
7278 mingw* | cygwin* | pw32* | os2*)
7279 # This hack is so that the source file can tell whether it is being
7280 # built for inclusion in a dll (and should export symbols for example).
7281 lt_prog_compiler_pic='-DDLL_EXPORT'
7282 ;;
7283
7284 hpux9* | hpux10* | hpux11*)
7285 lt_prog_compiler_wl='-Wl,'
7286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7287 # not for PA HP-UX.
7288 case $host_cpu in
7289 hppa*64*|ia64*)
7290 # +Z the default
7291 ;;
7292 *)
7293 lt_prog_compiler_pic='+Z'
7294 ;;
7295 esac
7296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7297 lt_prog_compiler_static='${wl}-a ${wl}archive'
7298 ;;
7299
7300 irix5* | irix6* | nonstopux*)
7301 lt_prog_compiler_wl='-Wl,'
7302 # PIC (with -KPIC) is the default.
7303 lt_prog_compiler_static='-non_shared'
7304 ;;
7305
7306 newsos6)
7307 lt_prog_compiler_pic='-KPIC'
7308 lt_prog_compiler_static='-Bstatic'
7309 ;;
7310
7311 linux* | k*bsd*-gnu)
7312 case $cc_basename in
7313 icc* | ecc*)
7314 lt_prog_compiler_wl='-Wl,'
7315 lt_prog_compiler_pic='-KPIC'
7316 lt_prog_compiler_static='-static'
7317 ;;
7318 pgcc* | pgf77* | pgf90* | pgf95*)
7319 # Portland Group compilers (*not* the Pentium gcc compiler,
7320 # which looks to be a dead project)
7321 lt_prog_compiler_wl='-Wl,'
7322 lt_prog_compiler_pic='-fpic'
7323 lt_prog_compiler_static='-Bstatic'
7324 ;;
7325 ccc*)
7326 lt_prog_compiler_wl='-Wl,'
7327 # All Alpha code is PIC.
7328 lt_prog_compiler_static='-non_shared'
7329 ;;
7330 *)
7331 case `$CC -V 2>&1 | sed 5q` in
7332 *Sun\ C*)
7333 # Sun C 5.9
7334 lt_prog_compiler_pic='-KPIC'
7335 lt_prog_compiler_static='-Bstatic'
7336 lt_prog_compiler_wl='-Wl,'
7337 ;;
7338 *Sun\ F*)
7339 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7340 lt_prog_compiler_pic='-KPIC'
7341 lt_prog_compiler_static='-Bstatic'
7342 lt_prog_compiler_wl=''
7343 ;;
7344 esac
7345 ;;
7346 esac
7347 ;;
7348
7349 osf3* | osf4* | osf5*)
7350 lt_prog_compiler_wl='-Wl,'
7351 # All OSF/1 code is PIC.
7352 lt_prog_compiler_static='-non_shared'
7353 ;;
7354
7355 rdos*)
7356 lt_prog_compiler_static='-non_shared'
7357 ;;
7358
7359 solaris*)
7360 lt_prog_compiler_pic='-KPIC'
7361 lt_prog_compiler_static='-Bstatic'
7362 case $cc_basename in
7363 f77* | f90* | f95*)
7364 lt_prog_compiler_wl='-Qoption ld ';;
7365 *)
7366 lt_prog_compiler_wl='-Wl,';;
7367 esac
7368 ;;
7369
7370 sunos4*)
7371 lt_prog_compiler_wl='-Qoption ld '
7372 lt_prog_compiler_pic='-PIC'
7373 lt_prog_compiler_static='-Bstatic'
7374 ;;
7375
7376 sysv4 | sysv4.2uw2* | sysv4.3*)
7377 lt_prog_compiler_wl='-Wl,'
7378 lt_prog_compiler_pic='-KPIC'
7379 lt_prog_compiler_static='-Bstatic'
7380 ;;
7381
7382 sysv4*MP*)
7383 if test -d /usr/nec ;then
7384 lt_prog_compiler_pic='-Kconform_pic'
7385 lt_prog_compiler_static='-Bstatic'
7386 fi
7387 ;;
7388
7389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7390 lt_prog_compiler_wl='-Wl,'
7391 lt_prog_compiler_pic='-KPIC'
7392 lt_prog_compiler_static='-Bstatic'
7393 ;;
7394
7395 unicos*)
7396 lt_prog_compiler_wl='-Wl,'
7397 lt_prog_compiler_can_build_shared=no
7398 ;;
7399
7400 uts4*)
7401 lt_prog_compiler_pic='-pic'
7402 lt_prog_compiler_static='-Bstatic'
7403 ;;
7404
7405 *)
7406 lt_prog_compiler_can_build_shared=no
7407 ;;
7408 esac
7409 fi
7410
7411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7412 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7413
7414 #
7415 # Check to make sure the PIC flag actually works.
7416 #
7417 if test -n "$lt_prog_compiler_pic"; then
7418
7419 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7420 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7421 if test "${lt_prog_compiler_pic_works+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424 lt_prog_compiler_pic_works=no
7425 ac_outfile=conftest.$ac_objext
7426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7427 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7428 # Insert the option either (1) after the last *FLAGS variable, or
7429 # (2) before a word containing "conftest.", or (3) at the end.
7430 # Note that $ac_compile itself does not contain backslashes and begins
7431 # with a dollar sign (not a hyphen), so the echo should work correctly.
7432 # The option is referenced via a variable to avoid confusing sed.
7433 lt_compile=`echo "$ac_compile" | $SED \
7434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7436 -e 's:$: $lt_compiler_flag:'`
7437 (eval echo "\"\$as_me:7437: $lt_compile\"" >&5)
7438 (eval "$lt_compile" 2>conftest.err)
7439 ac_status=$?
7440 cat conftest.err >&5
7441 echo "$as_me:7441: \$? = $ac_status" >&5
7442 if (exit $ac_status) && test -s "$ac_outfile"; then
7443 # The compiler can only warn and ignore the option if not recognized
7444 # So say no if there are warnings other than the usual output.
7445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7448 lt_prog_compiler_pic_works=yes
7449 fi
7450 fi
7451 $rm conftest*
7452
7453 fi
7454 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7455 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7456
7457 if test x"$lt_prog_compiler_pic_works" = xyes; then
7458 case $lt_prog_compiler_pic in
7459 "" | " "*) ;;
7460 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7461 esac
7462 else
7463 lt_prog_compiler_pic=
7464 lt_prog_compiler_can_build_shared=no
7465 fi
7466
7467 fi
7468 case $host_os in
7469 # For platforms which do not support PIC, -DPIC is meaningless:
7470 *djgpp*)
7471 lt_prog_compiler_pic=
7472 ;;
7473 *)
7474 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7475 ;;
7476 esac
7477
7478 #
7479 # Check to make sure the static flag actually works.
7480 #
7481 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7482 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7483 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7484 if test "${lt_prog_compiler_static_works+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 lt_prog_compiler_static_works=no
7488 save_LDFLAGS="$LDFLAGS"
7489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7492 # The linker can only warn and ignore the option if not recognized
7493 # So say no if there are warnings
7494 if test -s conftest.err; then
7495 # Append any errors to the config.log.
7496 cat conftest.err 1>&5
7497 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7499 if diff conftest.exp conftest.er2 >/dev/null; then
7500 lt_prog_compiler_static_works=yes
7501 fi
7502 else
7503 lt_prog_compiler_static_works=yes
7504 fi
7505 fi
7506 $rm conftest*
7507 LDFLAGS="$save_LDFLAGS"
7508
7509 fi
7510 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7511 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7512
7513 if test x"$lt_prog_compiler_static_works" = xyes; then
7514 :
7515 else
7516 lt_prog_compiler_static=
7517 fi
7518
7519
7520 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7522 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 lt_cv_prog_compiler_c_o=no
7526 $rm -r conftest 2>/dev/null
7527 mkdir conftest
7528 cd conftest
7529 mkdir out
7530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531
7532 lt_compiler_flag="-o out/conftest2.$ac_objext"
7533 # Insert the option either (1) after the last *FLAGS variable, or
7534 # (2) before a word containing "conftest.", or (3) at the end.
7535 # Note that $ac_compile itself does not contain backslashes and begins
7536 # with a dollar sign (not a hyphen), so the echo should work correctly.
7537 lt_compile=`echo "$ac_compile" | $SED \
7538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7540 -e 's:$: $lt_compiler_flag:'`
7541 (eval echo "\"\$as_me:7541: $lt_compile\"" >&5)
7542 (eval "$lt_compile" 2>out/conftest.err)
7543 ac_status=$?
7544 cat out/conftest.err >&5
7545 echo "$as_me:7545: \$? = $ac_status" >&5
7546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7547 then
7548 # The compiler can only warn and ignore the option if not recognized
7549 # So say no if there are warnings
7550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7553 lt_cv_prog_compiler_c_o=yes
7554 fi
7555 fi
7556 chmod u+w . 2>&5
7557 $rm conftest*
7558 # SGI C++ compiler will create directory out/ii_files/ for
7559 # template instantiation
7560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7561 $rm out/* && rmdir out
7562 cd ..
7563 rmdir conftest
7564 $rm conftest*
7565
7566 fi
7567 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7569
7570
7571 hard_links="nottested"
7572 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7573 # do not overwrite the value of need_locks provided by the user
7574 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7576 hard_links=yes
7577 $rm conftest*
7578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7579 touch conftest.a
7580 ln conftest.a conftest.b 2>&5 || hard_links=no
7581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7582 { echo "$as_me:$LINENO: result: $hard_links" >&5
7583 echo "${ECHO_T}$hard_links" >&6; }
7584 if test "$hard_links" = no; then
7585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7587 need_locks=warn
7588 fi
7589 else
7590 need_locks=no
7591 fi
7592
7593 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7595
7596 runpath_var=
7597 allow_undefined_flag=
7598 enable_shared_with_static_runtimes=no
7599 archive_cmds=
7600 archive_expsym_cmds=
7601 old_archive_From_new_cmds=
7602 old_archive_from_expsyms_cmds=
7603 export_dynamic_flag_spec=
7604 whole_archive_flag_spec=
7605 thread_safe_flag_spec=
7606 hardcode_libdir_flag_spec=
7607 hardcode_libdir_flag_spec_ld=
7608 hardcode_libdir_separator=
7609 hardcode_direct=no
7610 hardcode_minus_L=no
7611 hardcode_shlibpath_var=unsupported
7612 link_all_deplibs=unknown
7613 hardcode_automatic=no
7614 module_cmds=
7615 module_expsym_cmds=
7616 always_export_symbols=no
7617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7618 # include_expsyms should be a list of space-separated symbols to be *always*
7619 # included in the symbol list
7620 include_expsyms=
7621 # exclude_expsyms can be an extended regexp of symbols to exclude
7622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7624 # as well as any symbol that contains `d'.
7625 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7627 # platforms (ab)use it in PIC code, but their linkers get confused if
7628 # the symbol is explicitly referenced. Since portable code cannot
7629 # rely on this symbol name, it's probably fine to never include it in
7630 # preloaded symbol tables.
7631 extract_expsyms_cmds=
7632 # Just being paranoid about ensuring that cc_basename is set.
7633 for cc_temp in $compiler""; do
7634 case $cc_temp in
7635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7637 \-*) ;;
7638 *) break;;
7639 esac
7640 done
7641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7642
7643 case $host_os in
7644 cygwin* | mingw* | pw32*)
7645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7646 # When not using gcc, we currently assume that we are using
7647 # Microsoft Visual C++.
7648 if test "$GCC" != yes; then
7649 with_gnu_ld=no
7650 fi
7651 ;;
7652 interix*)
7653 # we just hope/assume this is gcc and not c89 (= MSVC++)
7654 with_gnu_ld=yes
7655 ;;
7656 openbsd*)
7657 with_gnu_ld=no
7658 ;;
7659 esac
7660
7661 ld_shlibs=yes
7662 if test "$with_gnu_ld" = yes; then
7663 # If archive_cmds runs LD, not CC, wlarc should be empty
7664 wlarc='${wl}'
7665
7666 # Set some defaults for GNU ld with shared library support. These
7667 # are reset later if shared libraries are not supported. Putting them
7668 # here allows them to be overridden if necessary.
7669 runpath_var=LD_RUN_PATH
7670 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7671 export_dynamic_flag_spec='${wl}--export-dynamic'
7672 # ancient GNU ld didn't support --whole-archive et. al.
7673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7674 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7675 else
7676 whole_archive_flag_spec=
7677 fi
7678 supports_anon_versioning=no
7679 case `$LD -v 2>/dev/null` in
7680 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7683 *\ 2.11.*) ;; # other 2.11 versions
7684 *) supports_anon_versioning=yes ;;
7685 esac
7686
7687 # See if GNU ld supports shared libraries.
7688 case $host_os in
7689 aix3* | aix4* | aix5*)
7690 # On AIX/PPC, the GNU linker is very broken
7691 if test "$host_cpu" != ia64; then
7692 ld_shlibs=no
7693 cat <<EOF 1>&2
7694
7695 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7696 *** to be unable to reliably create shared libraries on AIX.
7697 *** Therefore, libtool is disabling shared libraries support. If you
7698 *** really care for shared libraries, you may want to modify your PATH
7699 *** so that a non-GNU linker is found, and then restart.
7700
7701 EOF
7702 fi
7703 ;;
7704
7705 amigaos*)
7706 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)'
7707 hardcode_libdir_flag_spec='-L$libdir'
7708 hardcode_minus_L=yes
7709
7710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7711 # that the semantics of dynamic libraries on AmigaOS, at least up
7712 # to version 4, is to share data among multiple programs linked
7713 # with the same dynamic library. Since this doesn't match the
7714 # behavior of shared libraries on other platforms, we can't use
7715 # them.
7716 ld_shlibs=no
7717 ;;
7718
7719 beos*)
7720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7721 allow_undefined_flag=unsupported
7722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7723 # support --undefined. This deserves some investigation. FIXME
7724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7725 else
7726 ld_shlibs=no
7727 fi
7728 ;;
7729
7730 cygwin* | mingw* | pw32*)
7731 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7732 # as there is no search path for DLLs.
7733 hardcode_libdir_flag_spec='-L$libdir'
7734 allow_undefined_flag=unsupported
7735 always_export_symbols=no
7736 enable_shared_with_static_runtimes=yes
7737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7738
7739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7741 # If the export-symbols file already is a .def file (1st line
7742 # is EXPORTS), use it as is; otherwise, prepend...
7743 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7744 cp $export_symbols $output_objdir/$soname.def;
7745 else
7746 echo EXPORTS > $output_objdir/$soname.def;
7747 cat $export_symbols >> $output_objdir/$soname.def;
7748 fi~
7749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7750 else
7751 ld_shlibs=no
7752 fi
7753 ;;
7754
7755 interix[3-9]*)
7756 hardcode_direct=no
7757 hardcode_shlibpath_var=no
7758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7759 export_dynamic_flag_spec='${wl}-E'
7760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7761 # Instead, shared libraries are loaded at an image base (0x10000000 by
7762 # default) and relocated if they conflict, which is a slow very memory
7763 # consuming and fragmenting process. To avoid this, we pick a random,
7764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7767 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'
7768 ;;
7769
7770 gnu* | linux* | k*bsd*-gnu)
7771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772 tmp_addflag=
7773 case $cc_basename,$host_cpu in
7774 pgcc*) # Portland Group C compiler
7775 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'
7776 tmp_addflag=' $pic_flag'
7777 ;;
7778 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7779 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'
7780 tmp_addflag=' $pic_flag -Mnomain' ;;
7781 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7782 tmp_addflag=' -i_dynamic' ;;
7783 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7784 tmp_addflag=' -i_dynamic -nofor_main' ;;
7785 ifc* | ifort*) # Intel Fortran compiler
7786 tmp_addflag=' -nofor_main' ;;
7787 esac
7788 case `$CC -V 2>&1 | sed 5q` in
7789 *Sun\ C*) # Sun C 5.9
7790 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7791 tmp_sharedflag='-G' ;;
7792 *Sun\ F*) # Sun Fortran 8.3
7793 tmp_sharedflag='-G' ;;
7794 *)
7795 tmp_sharedflag='-shared' ;;
7796 esac
7797 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7798
7799 if test $supports_anon_versioning = yes; then
7800 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7802 $echo "local: *; };" >> $output_objdir/$libname.ver~
7803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7804 fi
7805 else
7806 ld_shlibs=no
7807 fi
7808 ;;
7809
7810 netbsd*)
7811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7812 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7813 wlarc=
7814 else
7815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7817 fi
7818 ;;
7819
7820 solaris*)
7821 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7822 ld_shlibs=no
7823 cat <<EOF 1>&2
7824
7825 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7826 *** create shared libraries on Solaris systems. Therefore, libtool
7827 *** is disabling shared libraries support. We urge you to upgrade GNU
7828 *** binutils to release 2.9.1 or newer. Another option is to modify
7829 *** your PATH or compiler configuration so that the native linker is
7830 *** used, and then restart.
7831
7832 EOF
7833 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7836 else
7837 ld_shlibs=no
7838 fi
7839 ;;
7840
7841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7842 case `$LD -v 2>&1` in
7843 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7844 ld_shlibs=no
7845 cat <<_LT_EOF 1>&2
7846
7847 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7848 *** reliably create shared libraries on SCO systems. Therefore, libtool
7849 *** is disabling shared libraries support. We urge you to upgrade GNU
7850 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7851 *** your PATH or compiler configuration so that the native linker is
7852 *** used, and then restart.
7853
7854 _LT_EOF
7855 ;;
7856 *)
7857 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7858 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7860 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7861 else
7862 ld_shlibs=no
7863 fi
7864 ;;
7865 esac
7866 ;;
7867
7868 sunos4*)
7869 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7870 wlarc=
7871 hardcode_direct=yes
7872 hardcode_shlibpath_var=no
7873 ;;
7874
7875 *)
7876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7879 else
7880 ld_shlibs=no
7881 fi
7882 ;;
7883 esac
7884
7885 if test "$ld_shlibs" = no; then
7886 runpath_var=
7887 hardcode_libdir_flag_spec=
7888 export_dynamic_flag_spec=
7889 whole_archive_flag_spec=
7890 fi
7891 else
7892 # PORTME fill in a description of your system's linker (not GNU ld)
7893 case $host_os in
7894 aix3*)
7895 allow_undefined_flag=unsupported
7896 always_export_symbols=yes
7897 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'
7898 # Note: this linker hardcodes the directories in LIBPATH if there
7899 # are no directories specified by -L.
7900 hardcode_minus_L=yes
7901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7902 # Neither direct hardcoding nor static linking is supported with a
7903 # broken collect2.
7904 hardcode_direct=unsupported
7905 fi
7906 ;;
7907
7908 aix4* | aix5*)
7909 if test "$host_cpu" = ia64; then
7910 # On IA64, the linker does run time linking by default, so we don't
7911 # have to do anything special.
7912 aix_use_runtimelinking=no
7913 exp_sym_flag='-Bexport'
7914 no_entry_flag=""
7915 else
7916 # If we're using GNU nm, then we don't want the "-C" option.
7917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7918 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7919 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'
7920 else
7921 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'
7922 fi
7923 aix_use_runtimelinking=no
7924
7925 # Test if we are trying to use run time linking or normal
7926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7927 # need to do runtime linking.
7928 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7929 for ld_flag in $LDFLAGS; do
7930 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7931 aix_use_runtimelinking=yes
7932 break
7933 fi
7934 done
7935 ;;
7936 esac
7937
7938 exp_sym_flag='-bexport'
7939 no_entry_flag='-bnoentry'
7940 fi
7941
7942 # When large executables or shared objects are built, AIX ld can
7943 # have problems creating the table of contents. If linking a library
7944 # or program results in "error TOC overflow" add -mminimal-toc to
7945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7947
7948 archive_cmds=''
7949 hardcode_direct=yes
7950 hardcode_libdir_separator=':'
7951 link_all_deplibs=yes
7952
7953 if test "$GCC" = yes; then
7954 case $host_os in aix4.[012]|aix4.[012].*)
7955 # We only want to do this on AIX 4.2 and lower, the check
7956 # below for broken collect2 doesn't work under 4.3+
7957 collect2name=`${CC} -print-prog-name=collect2`
7958 if test -f "$collect2name" && \
7959 strings "$collect2name" | grep resolve_lib_name >/dev/null
7960 then
7961 # We have reworked collect2
7962 :
7963 else
7964 # We have old collect2
7965 hardcode_direct=unsupported
7966 # It fails to find uninstalled libraries when the uninstalled
7967 # path is not listed in the libpath. Setting hardcode_minus_L
7968 # to unsupported forces relinking
7969 hardcode_minus_L=yes
7970 hardcode_libdir_flag_spec='-L$libdir'
7971 hardcode_libdir_separator=
7972 fi
7973 ;;
7974 esac
7975 shared_flag='-shared'
7976 if test "$aix_use_runtimelinking" = yes; then
7977 shared_flag="$shared_flag "'${wl}-G'
7978 fi
7979 else
7980 # not using gcc
7981 if test "$host_cpu" = ia64; then
7982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7983 # chokes on -Wl,-G. The following line is correct:
7984 shared_flag='-G'
7985 else
7986 if test "$aix_use_runtimelinking" = yes; then
7987 shared_flag='${wl}-G'
7988 else
7989 shared_flag='${wl}-bM:SRE'
7990 fi
7991 fi
7992 fi
7993
7994 # It seems that -bexpall does not export symbols beginning with
7995 # underscore (_), so it is better to generate a list of symbols to export.
7996 always_export_symbols=yes
7997 if test "$aix_use_runtimelinking" = yes; then
7998 # Warning - without using the other runtime loading flags (-brtl),
7999 # -berok will link without error, but may produce a broken library.
8000 allow_undefined_flag='-berok'
8001 # Determine the default libpath from the value encoded in an empty executable.
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008
8009 int
8010 main ()
8011 {
8012
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext conftest$ac_exeext
8018 if { (ac_try="$ac_link"
8019 case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_link") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest$ac_exeext &&
8034 $as_test_x conftest$ac_exeext; then
8035
8036 lt_aix_libpath_sed='
8037 /Import File Strings/,/^$/ {
8038 /^0/ {
8039 s/^0 *\(.*\)$/\1/
8040 p
8041 }
8042 }'
8043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8044 # Check for a 64-bit object if we didn't find anything.
8045 if test -z "$aix_libpath"; then
8046 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8047 fi
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052
8053 fi
8054
8055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8056 conftest$ac_exeext conftest.$ac_ext
8057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8058
8059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8060 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"
8061 else
8062 if test "$host_cpu" = ia64; then
8063 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8064 allow_undefined_flag="-z nodefs"
8065 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"
8066 else
8067 # Determine the default libpath from the value encoded in an empty executable.
8068 cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h. */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074
8075 int
8076 main ()
8077 {
8078
8079 ;
8080 return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (ac_try="$ac_link"
8085 case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088 esac
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_link") 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest$ac_exeext &&
8100 $as_test_x conftest$ac_exeext; then
8101
8102 lt_aix_libpath_sed='
8103 /Import File Strings/,/^$/ {
8104 /^0/ {
8105 s/^0 *\(.*\)$/\1/
8106 p
8107 }
8108 }'
8109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8110 # Check for a 64-bit object if we didn't find anything.
8111 if test -z "$aix_libpath"; then
8112 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8113 fi
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118
8119 fi
8120
8121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8122 conftest$ac_exeext conftest.$ac_ext
8123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8124
8125 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8126 # Warning - without using the other run time loading flags,
8127 # -berok will link without error, but may produce a broken library.
8128 no_undefined_flag=' ${wl}-bernotok'
8129 allow_undefined_flag=' ${wl}-berok'
8130 # Exported symbols can be pulled into shared objects from archives
8131 whole_archive_flag_spec='$convenience'
8132 archive_cmds_need_lc=yes
8133 # This is similar to how AIX traditionally builds its shared libraries.
8134 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'
8135 fi
8136 fi
8137 ;;
8138
8139 amigaos*)
8140 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)'
8141 hardcode_libdir_flag_spec='-L$libdir'
8142 hardcode_minus_L=yes
8143 # see comment about different semantics on the GNU ld section
8144 ld_shlibs=no
8145 ;;
8146
8147 bsdi[45]*)
8148 export_dynamic_flag_spec=-rdynamic
8149 ;;
8150
8151 cygwin* | mingw* | pw32*)
8152 # When not using gcc, we currently assume that we are using
8153 # Microsoft Visual C++.
8154 # hardcode_libdir_flag_spec is actually meaningless, as there is
8155 # no search path for DLLs.
8156 hardcode_libdir_flag_spec=' '
8157 allow_undefined_flag=unsupported
8158 # Tell ltmain to make .lib files, not .a files.
8159 libext=lib
8160 # Tell ltmain to make .dll files, not .so files.
8161 shrext_cmds=".dll"
8162 # FIXME: Setting linknames here is a bad hack.
8163 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8164 # The linker will automatically build a .lib file if we build a DLL.
8165 old_archive_From_new_cmds='true'
8166 # FIXME: Should let the user specify the lib program.
8167 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8168 fix_srcfile_path='`cygpath -w "$srcfile"`'
8169 enable_shared_with_static_runtimes=yes
8170 ;;
8171
8172 darwin* | rhapsody*)
8173 case $host_os in
8174 rhapsody* | darwin1.[012])
8175 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8176 ;;
8177 *) # Darwin 1.3 on
8178 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8179 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8180 else
8181 case ${MACOSX_DEPLOYMENT_TARGET} in
8182 10.[012])
8183 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8184 ;;
8185 10.*)
8186 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8187 ;;
8188 esac
8189 fi
8190 ;;
8191 esac
8192 archive_cmds_need_lc=no
8193 hardcode_direct=no
8194 hardcode_automatic=yes
8195 hardcode_shlibpath_var=unsupported
8196 whole_archive_flag_spec=''
8197 link_all_deplibs=yes
8198 if test "$GCC" = yes ; then
8199 output_verbose_link_cmd='echo'
8200 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8201 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8202 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8203 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}'
8204 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}'
8205 else
8206 case $cc_basename in
8207 xlc*)
8208 output_verbose_link_cmd='echo'
8209 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8210 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8211 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8212 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8213 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}'
8214 ;;
8215 *)
8216 ld_shlibs=no
8217 ;;
8218 esac
8219 fi
8220 ;;
8221
8222 dgux*)
8223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 hardcode_shlibpath_var=no
8226 ;;
8227
8228 freebsd1*)
8229 ld_shlibs=no
8230 ;;
8231
8232 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8233 # support. Future versions do this automatically, but an explicit c++rt0.o
8234 # does not break anything, and helps significantly (at the cost of a little
8235 # extra space).
8236 freebsd2.2*)
8237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8238 hardcode_libdir_flag_spec='-R$libdir'
8239 hardcode_direct=yes
8240 hardcode_shlibpath_var=no
8241 ;;
8242
8243 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8244 freebsd2*)
8245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246 hardcode_direct=yes
8247 hardcode_minus_L=yes
8248 hardcode_shlibpath_var=no
8249 ;;
8250
8251 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8252 freebsd* | dragonfly*)
8253 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8254 hardcode_libdir_flag_spec='-R$libdir'
8255 hardcode_direct=yes
8256 hardcode_shlibpath_var=no
8257 ;;
8258
8259 hpux9*)
8260 if test "$GCC" = yes; then
8261 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'
8262 else
8263 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'
8264 fi
8265 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8266 hardcode_libdir_separator=:
8267 hardcode_direct=yes
8268
8269 # hardcode_minus_L: Not really in the search PATH,
8270 # but as the default location of the library.
8271 hardcode_minus_L=yes
8272 export_dynamic_flag_spec='${wl}-E'
8273 ;;
8274
8275 hpux10*)
8276 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8277 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8278 else
8279 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8280 fi
8281 if test "$with_gnu_ld" = no; then
8282 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8283 hardcode_libdir_separator=:
8284
8285 hardcode_direct=yes
8286 export_dynamic_flag_spec='${wl}-E'
8287
8288 # hardcode_minus_L: Not really in the search PATH,
8289 # but as the default location of the library.
8290 hardcode_minus_L=yes
8291 fi
8292 ;;
8293
8294 hpux11*)
8295 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8296 case $host_cpu in
8297 hppa*64*)
8298 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8299 ;;
8300 ia64*)
8301 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8302 ;;
8303 *)
8304 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8305 ;;
8306 esac
8307 else
8308 case $host_cpu in
8309 hppa*64*)
8310 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8311 ;;
8312 ia64*)
8313 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8314 ;;
8315 *)
8316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8317 ;;
8318 esac
8319 fi
8320 if test "$with_gnu_ld" = no; then
8321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8322 hardcode_libdir_separator=:
8323
8324 case $host_cpu in
8325 hppa*64*|ia64*)
8326 hardcode_libdir_flag_spec_ld='+b $libdir'
8327 hardcode_direct=no
8328 hardcode_shlibpath_var=no
8329 ;;
8330 *)
8331 hardcode_direct=yes
8332 export_dynamic_flag_spec='${wl}-E'
8333
8334 # hardcode_minus_L: Not really in the search PATH,
8335 # but as the default location of the library.
8336 hardcode_minus_L=yes
8337 ;;
8338 esac
8339 fi
8340 ;;
8341
8342 irix5* | irix6* | nonstopux*)
8343 if test "$GCC" = yes; then
8344 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'
8345 else
8346 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'
8347 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8348 fi
8349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8350 hardcode_libdir_separator=:
8351 link_all_deplibs=yes
8352 ;;
8353
8354 netbsd*)
8355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8357 else
8358 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8359 fi
8360 hardcode_libdir_flag_spec='-R$libdir'
8361 hardcode_direct=yes
8362 hardcode_shlibpath_var=no
8363 ;;
8364
8365 newsos6)
8366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367 hardcode_direct=yes
8368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8369 hardcode_libdir_separator=:
8370 hardcode_shlibpath_var=no
8371 ;;
8372
8373 openbsd*)
8374 if test -f /usr/libexec/ld.so; then
8375 hardcode_direct=yes
8376 hardcode_shlibpath_var=no
8377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8379 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8381 export_dynamic_flag_spec='${wl}-E'
8382 else
8383 case $host_os in
8384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_libdir_flag_spec='-R$libdir'
8387 ;;
8388 *)
8389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8391 ;;
8392 esac
8393 fi
8394 else
8395 ld_shlibs=no
8396 fi
8397 ;;
8398
8399 os2*)
8400 hardcode_libdir_flag_spec='-L$libdir'
8401 hardcode_minus_L=yes
8402 allow_undefined_flag=unsupported
8403 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'
8404 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8405 ;;
8406
8407 osf3*)
8408 if test "$GCC" = yes; then
8409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8410 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'
8411 else
8412 allow_undefined_flag=' -expect_unresolved \*'
8413 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'
8414 fi
8415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416 hardcode_libdir_separator=:
8417 ;;
8418
8419 osf4* | osf5*) # as osf3* with the addition of -msym flag
8420 if test "$GCC" = yes; then
8421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8422 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'
8423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424 else
8425 allow_undefined_flag=' -expect_unresolved \*'
8426 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'
8427 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8428 $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'
8429
8430 # Both c and cxx compiler support -rpath directly
8431 hardcode_libdir_flag_spec='-rpath $libdir'
8432 fi
8433 hardcode_libdir_separator=:
8434 ;;
8435
8436 solaris*)
8437 no_undefined_flag=' -z text'
8438 if test "$GCC" = yes; then
8439 wlarc='${wl}'
8440 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8442 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8443 else
8444 wlarc=''
8445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8448 fi
8449 hardcode_libdir_flag_spec='-R$libdir'
8450 hardcode_shlibpath_var=no
8451 case $host_os in
8452 solaris2.[0-5] | solaris2.[0-5].*) ;;
8453 *)
8454 # The compiler driver will combine and reorder linker options,
8455 # but understands `-z linker_flag'. GCC discards it without `$wl',
8456 # but is careful enough not to reorder.
8457 # Supported since Solaris 2.6 (maybe 2.5.1?)
8458 if test "$GCC" = yes; then
8459 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8460 else
8461 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8462 fi
8463 ;;
8464 esac
8465 link_all_deplibs=yes
8466 ;;
8467
8468 sunos4*)
8469 if test "x$host_vendor" = xsequent; then
8470 # Use $CC to link under sequent, because it throws in some extra .o
8471 # files that make .init and .fini sections work.
8472 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8473 else
8474 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8475 fi
8476 hardcode_libdir_flag_spec='-L$libdir'
8477 hardcode_direct=yes
8478 hardcode_minus_L=yes
8479 hardcode_shlibpath_var=no
8480 ;;
8481
8482 sysv4)
8483 case $host_vendor in
8484 sni)
8485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8486 hardcode_direct=yes # is this really true???
8487 ;;
8488 siemens)
8489 ## LD is ld it makes a PLAMLIB
8490 ## CC just makes a GrossModule.
8491 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8492 reload_cmds='$CC -r -o $output$reload_objs'
8493 hardcode_direct=no
8494 ;;
8495 motorola)
8496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8498 ;;
8499 esac
8500 runpath_var='LD_RUN_PATH'
8501 hardcode_shlibpath_var=no
8502 ;;
8503
8504 sysv4.3*)
8505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8506 hardcode_shlibpath_var=no
8507 export_dynamic_flag_spec='-Bexport'
8508 ;;
8509
8510 sysv4*MP*)
8511 if test -d /usr/nec; then
8512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8513 hardcode_shlibpath_var=no
8514 runpath_var=LD_RUN_PATH
8515 hardcode_runpath_var=yes
8516 ld_shlibs=yes
8517 fi
8518 ;;
8519
8520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8521 no_undefined_flag='${wl}-z,text'
8522 archive_cmds_need_lc=no
8523 hardcode_shlibpath_var=no
8524 runpath_var='LD_RUN_PATH'
8525
8526 if test "$GCC" = yes; then
8527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 else
8530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 fi
8533 ;;
8534
8535 sysv5* | sco3.2v5* | sco5v6*)
8536 # Note: We can NOT use -z defs as we might desire, because we do not
8537 # link with -lc, and that would cause any symbols used from libc to
8538 # always be unresolved, which means just about no library would
8539 # ever link correctly. If we're not using GNU ld we use -z text
8540 # though, which does catch some bad symbols but isn't as heavy-handed
8541 # as -z defs.
8542 no_undefined_flag='${wl}-z,text'
8543 allow_undefined_flag='${wl}-z,nodefs'
8544 archive_cmds_need_lc=no
8545 hardcode_shlibpath_var=no
8546 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8547 hardcode_libdir_separator=':'
8548 link_all_deplibs=yes
8549 export_dynamic_flag_spec='${wl}-Bexport'
8550 runpath_var='LD_RUN_PATH'
8551
8552 if test "$GCC" = yes; then
8553 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555 else
8556 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 fi
8559 ;;
8560
8561 uts4*)
8562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8563 hardcode_libdir_flag_spec='-L$libdir'
8564 hardcode_shlibpath_var=no
8565 ;;
8566
8567 *)
8568 ld_shlibs=no
8569 ;;
8570 esac
8571 fi
8572
8573 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8574 echo "${ECHO_T}$ld_shlibs" >&6; }
8575 test "$ld_shlibs" = no && can_build_shared=no
8576
8577 #
8578 # Do we need to explicitly link libc?
8579 #
8580 case "x$archive_cmds_need_lc" in
8581 x|xyes)
8582 # Assume -lc should be added
8583 archive_cmds_need_lc=yes
8584
8585 if test "$enable_shared" = yes && test "$GCC" = yes; then
8586 case $archive_cmds in
8587 *'~'*)
8588 # FIXME: we may have to deal with multi-command sequences.
8589 ;;
8590 '$CC '*)
8591 # Test whether the compiler implicitly links with -lc since on some
8592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8593 # to ld, don't add -lc before -lgcc.
8594 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8595 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8596 $rm conftest*
8597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } 2>conftest.err; then
8604 soname=conftest
8605 lib=conftest
8606 libobjs=conftest.$ac_objext
8607 deplibs=
8608 wl=$lt_prog_compiler_wl
8609 pic_flag=$lt_prog_compiler_pic
8610 compiler_flags=-v
8611 linker_flags=-v
8612 verstring=
8613 output_objdir=.
8614 libname=conftest
8615 lt_save_allow_undefined_flag=$allow_undefined_flag
8616 allow_undefined_flag=
8617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8618 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }
8622 then
8623 archive_cmds_need_lc=no
8624 else
8625 archive_cmds_need_lc=yes
8626 fi
8627 allow_undefined_flag=$lt_save_allow_undefined_flag
8628 else
8629 cat conftest.err 1>&5
8630 fi
8631 $rm conftest*
8632 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8633 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8634 ;;
8635 esac
8636 fi
8637 ;;
8638 esac
8639
8640 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8642 library_names_spec=
8643 libname_spec='lib$name'
8644 soname_spec=
8645 shrext_cmds=".so"
8646 postinstall_cmds=
8647 postuninstall_cmds=
8648 finish_cmds=
8649 finish_eval=
8650 shlibpath_var=
8651 shlibpath_overrides_runpath=unknown
8652 version_type=none
8653 dynamic_linker="$host_os ld.so"
8654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8655
8656 if test "$GCC" = yes; then
8657 case $host_os in
8658 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8659 *) lt_awk_arg="/^libraries:/" ;;
8660 esac
8661 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8662 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8663 # if the path contains ";" then we assume it to be the separator
8664 # otherwise default to the standard path separator (i.e. ":") - it is
8665 # assumed that no part of a normal pathname contains ";" but that should
8666 # okay in the real world where ";" in dirpaths is itself problematic.
8667 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8668 else
8669 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8670 fi
8671 # Ok, now we have the path, separated by spaces, we can step through it
8672 # and add multilib dir if necessary.
8673 lt_tmp_lt_search_path_spec=
8674 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8675 for lt_sys_path in $lt_search_path_spec; do
8676 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8677 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8678 else
8679 test -d "$lt_sys_path" && \
8680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8681 fi
8682 done
8683 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8684 BEGIN {RS=" "; FS="/|\n";} {
8685 lt_foo="";
8686 lt_count=0;
8687 for (lt_i = NF; lt_i > 0; lt_i--) {
8688 if ($lt_i != "" && $lt_i != ".") {
8689 if ($lt_i == "..") {
8690 lt_count++;
8691 } else {
8692 if (lt_count == 0) {
8693 lt_foo="/" $lt_i lt_foo;
8694 } else {
8695 lt_count--;
8696 }
8697 }
8698 }
8699 }
8700 if (lt_foo != "") { lt_freq[lt_foo]++; }
8701 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8702 }'`
8703 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8704 else
8705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8706 fi
8707 need_lib_prefix=unknown
8708 hardcode_into_libs=no
8709
8710 # when you set need_version to no, make sure it does not cause -set_version
8711 # flags to be left without arguments
8712 need_version=unknown
8713
8714 case $host_os in
8715 aix3*)
8716 version_type=linux
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8718 shlibpath_var=LIBPATH
8719
8720 # AIX 3 has no versioning support, so we append a major version to the name.
8721 soname_spec='${libname}${release}${shared_ext}$major'
8722 ;;
8723
8724 aix4* | aix5*)
8725 version_type=linux
8726 need_lib_prefix=no
8727 need_version=no
8728 hardcode_into_libs=yes
8729 if test "$host_cpu" = ia64; then
8730 # AIX 5 supports IA64
8731 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8732 shlibpath_var=LD_LIBRARY_PATH
8733 else
8734 # With GCC up to 2.95.x, collect2 would create an import file
8735 # for dependence libraries. The import file would start with
8736 # the line `#! .'. This would cause the generated library to
8737 # depend on `.', always an invalid library. This was fixed in
8738 # development snapshots of GCC prior to 3.0.
8739 case $host_os in
8740 aix4 | aix4.[01] | aix4.[01].*)
8741 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8742 echo ' yes '
8743 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8744 :
8745 else
8746 can_build_shared=no
8747 fi
8748 ;;
8749 esac
8750 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8751 # soname into executable. Probably we can add versioning support to
8752 # collect2, so additional links can be useful in future.
8753 if test "$aix_use_runtimelinking" = yes; then
8754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8755 # instead of lib<name>.a to let people know that these are not
8756 # typical AIX shared libraries.
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 else
8759 # We preserve .a as extension for shared libraries through AIX4.2
8760 # and later when we are not doing run time linking.
8761 library_names_spec='${libname}${release}.a $libname.a'
8762 soname_spec='${libname}${release}${shared_ext}$major'
8763 fi
8764 shlibpath_var=LIBPATH
8765 fi
8766 ;;
8767
8768 amigaos*)
8769 library_names_spec='$libname.ixlibrary $libname.a'
8770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8771 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'
8772 ;;
8773
8774 beos*)
8775 library_names_spec='${libname}${shared_ext}'
8776 dynamic_linker="$host_os ld.so"
8777 shlibpath_var=LIBRARY_PATH
8778 ;;
8779
8780 bsdi[45]*)
8781 version_type=linux
8782 need_version=no
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8786 shlibpath_var=LD_LIBRARY_PATH
8787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8789 # the default ld.so.conf also contains /usr/contrib/lib and
8790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8791 # libtool to hard-code these into programs
8792 ;;
8793
8794 cygwin* | mingw* | pw32*)
8795 version_type=windows
8796 shrext_cmds=".dll"
8797 need_version=no
8798 need_lib_prefix=no
8799
8800 case $GCC,$host_os in
8801 yes,cygwin* | yes,mingw* | yes,pw32*)
8802 library_names_spec='$libname.dll.a'
8803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8804 postinstall_cmds='base_file=`basename \${file}`~
8805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8806 dldir=$destdir/`dirname \$dlpath`~
8807 test -d \$dldir || mkdir -p \$dldir~
8808 $install_prog $dir/$dlname \$dldir/$dlname~
8809 chmod a+x \$dldir/$dlname'
8810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8811 dlpath=$dir/\$dldll~
8812 $rm \$dlpath'
8813 shlibpath_overrides_runpath=yes
8814
8815 case $host_os in
8816 cygwin*)
8817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8819 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8820 ;;
8821 mingw*)
8822 # MinGW DLLs use traditional 'lib' prefix
8823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8826 # It is most probably a Windows format PATH printed by
8827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8828 # path with ; separators, and with drive letters. We can handle the
8829 # drive letters (cygwin fileutils understands them), so leave them,
8830 # especially as we might pass files found there to a mingw objdump,
8831 # which wouldn't understand a cygwinified path. Ahh.
8832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8833 else
8834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8835 fi
8836 ;;
8837 pw32*)
8838 # pw32 DLLs use 'pw' prefix rather than 'lib'
8839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8840 ;;
8841 esac
8842 ;;
8843
8844 *)
8845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8846 ;;
8847 esac
8848 dynamic_linker='Win32 ld.exe'
8849 # FIXME: first we should search . and the directory the executable is in
8850 shlibpath_var=PATH
8851 ;;
8852
8853 darwin* | rhapsody*)
8854 dynamic_linker="$host_os dyld"
8855 version_type=darwin
8856 need_lib_prefix=no
8857 need_version=no
8858 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8859 soname_spec='${libname}${release}${major}$shared_ext'
8860 shlibpath_overrides_runpath=yes
8861 shlibpath_var=DYLD_LIBRARY_PATH
8862 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8863
8864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8866 ;;
8867
8868 dgux*)
8869 version_type=linux
8870 need_lib_prefix=no
8871 need_version=no
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 shlibpath_var=LD_LIBRARY_PATH
8875 ;;
8876
8877 freebsd1*)
8878 dynamic_linker=no
8879 ;;
8880
8881 freebsd* | dragonfly*)
8882 # DragonFly does not have aout. When/if they implement a new
8883 # versioning mechanism, adjust this.
8884 if test -x /usr/bin/objformat; then
8885 objformat=`/usr/bin/objformat`
8886 else
8887 case $host_os in
8888 freebsd[123]*) objformat=aout ;;
8889 *) objformat=elf ;;
8890 esac
8891 fi
8892 version_type=freebsd-$objformat
8893 case $version_type in
8894 freebsd-elf*)
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8896 need_version=no
8897 need_lib_prefix=no
8898 ;;
8899 freebsd-*)
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8901 need_version=yes
8902 ;;
8903 esac
8904 shlibpath_var=LD_LIBRARY_PATH
8905 case $host_os in
8906 freebsd2*)
8907 shlibpath_overrides_runpath=yes
8908 ;;
8909 freebsd3.[01]* | freebsdelf3.[01]*)
8910 shlibpath_overrides_runpath=yes
8911 hardcode_into_libs=yes
8912 ;;
8913 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8914 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8917 ;;
8918 *) # from 4.6 on, and DragonFly
8919 shlibpath_overrides_runpath=yes
8920 hardcode_into_libs=yes
8921 ;;
8922 esac
8923 ;;
8924
8925 gnu*)
8926 version_type=linux
8927 need_lib_prefix=no
8928 need_version=no
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 hardcode_into_libs=yes
8933 ;;
8934
8935 hpux9* | hpux10* | hpux11*)
8936 # Give a soname corresponding to the major version so that dld.sl refuses to
8937 # link against other versions.
8938 version_type=sunos
8939 need_lib_prefix=no
8940 need_version=no
8941 case $host_cpu in
8942 ia64*)
8943 shrext_cmds='.so'
8944 hardcode_into_libs=yes
8945 dynamic_linker="$host_os dld.so"
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 if test "X$HPUX_IA64_MODE" = X32; then
8951 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8952 else
8953 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8954 fi
8955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8956 ;;
8957 hppa*64*)
8958 shrext_cmds='.sl'
8959 hardcode_into_libs=yes
8960 dynamic_linker="$host_os dld.sl"
8961 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8967 ;;
8968 *)
8969 shrext_cmds='.sl'
8970 dynamic_linker="$host_os dld.sl"
8971 shlibpath_var=SHLIB_PATH
8972 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 ;;
8976 esac
8977 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8978 postinstall_cmds='chmod 555 $lib'
8979 ;;
8980
8981 interix[3-9]*)
8982 version_type=linux
8983 need_lib_prefix=no
8984 need_version=no
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=no
8990 hardcode_into_libs=yes
8991 ;;
8992
8993 irix5* | irix6* | nonstopux*)
8994 case $host_os in
8995 nonstopux*) version_type=nonstopux ;;
8996 *)
8997 if test "$lt_cv_prog_gnu_ld" = yes; then
8998 version_type=linux
8999 else
9000 version_type=irix
9001 fi ;;
9002 esac
9003 need_lib_prefix=no
9004 need_version=no
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9007 case $host_os in
9008 irix5* | nonstopux*)
9009 libsuff= shlibsuff=
9010 ;;
9011 *)
9012 case $LD in # libtool.m4 will add one of these switches to LD
9013 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9014 libsuff= shlibsuff= libmagic=32-bit;;
9015 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9016 libsuff=32 shlibsuff=N32 libmagic=N32;;
9017 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9018 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9019 *) libsuff= shlibsuff= libmagic=never-match;;
9020 esac
9021 ;;
9022 esac
9023 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9024 shlibpath_overrides_runpath=no
9025 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9026 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9027 hardcode_into_libs=yes
9028 ;;
9029
9030 # No shared lib support for Linux oldld, aout, or coff.
9031 linux*oldld* | linux*aout* | linux*coff*)
9032 dynamic_linker=no
9033 ;;
9034
9035 # This must be Linux ELF.
9036 linux* | k*bsd*-gnu)
9037 version_type=linux
9038 need_lib_prefix=no
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 shlibpath_overrides_runpath=no
9045 # This implies no fast_install, which is unacceptable.
9046 # Some rework will be needed to allow for fast_install
9047 # before this can be enabled.
9048 hardcode_into_libs=yes
9049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9051
9052 # Append ld.so.conf contents to the search path
9053 if test -f /etc/ld.so.conf; then
9054 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9055 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9056 fi
9057
9058 # We used to test for /lib/ld.so.1 and disable shared libraries on
9059 # powerpc, because MkLinux only supported shared libraries with the
9060 # GNU dynamic linker. Since this was broken with cross compilers,
9061 # most powerpc-linux boxes support dynamic linking these days and
9062 # people can always --disable-shared, the test was removed, and we
9063 # assume the GNU/Linux dynamic linker is in use.
9064 dynamic_linker='GNU/Linux ld.so'
9065 ;;
9066
9067 netbsd*)
9068 version_type=sunos
9069 need_lib_prefix=no
9070 need_version=no
9071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9074 dynamic_linker='NetBSD (a.out) ld.so'
9075 else
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 dynamic_linker='NetBSD ld.elf_so'
9079 fi
9080 shlibpath_var=LD_LIBRARY_PATH
9081 shlibpath_overrides_runpath=yes
9082 hardcode_into_libs=yes
9083 ;;
9084
9085 newsos6)
9086 version_type=linux
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 shlibpath_var=LD_LIBRARY_PATH
9089 shlibpath_overrides_runpath=yes
9090 ;;
9091
9092 nto-qnx*)
9093 version_type=linux
9094 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes
9100 ;;
9101
9102 openbsd*)
9103 version_type=sunos
9104 sys_lib_dlsearch_path_spec="/usr/lib"
9105 need_lib_prefix=no
9106 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9107 case $host_os in
9108 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9109 *) need_version=no ;;
9110 esac
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9115 case $host_os in
9116 openbsd2.[89] | openbsd2.[89].*)
9117 shlibpath_overrides_runpath=no
9118 ;;
9119 *)
9120 shlibpath_overrides_runpath=yes
9121 ;;
9122 esac
9123 else
9124 shlibpath_overrides_runpath=yes
9125 fi
9126 ;;
9127
9128 os2*)
9129 libname_spec='$name'
9130 shrext_cmds=".dll"
9131 need_lib_prefix=no
9132 library_names_spec='$libname${shared_ext} $libname.a'
9133 dynamic_linker='OS/2 ld.exe'
9134 shlibpath_var=LIBPATH
9135 ;;
9136
9137 osf3* | osf4* | osf5*)
9138 version_type=osf
9139 need_lib_prefix=no
9140 need_version=no
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9145 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9146 ;;
9147
9148 rdos*)
9149 dynamic_linker=no
9150 ;;
9151
9152 solaris*)
9153 version_type=linux
9154 need_lib_prefix=no
9155 need_version=no
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=yes
9160 hardcode_into_libs=yes
9161 # ldd complains unless libraries are executable
9162 postinstall_cmds='chmod +x $lib'
9163 ;;
9164
9165 sunos4*)
9166 version_type=sunos
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=yes
9171 if test "$with_gnu_ld" = yes; then
9172 need_lib_prefix=no
9173 fi
9174 need_version=yes
9175 ;;
9176
9177 sysv4 | sysv4.3*)
9178 version_type=linux
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 case $host_vendor in
9183 sni)
9184 shlibpath_overrides_runpath=no
9185 need_lib_prefix=no
9186 export_dynamic_flag_spec='${wl}-Blargedynsym'
9187 runpath_var=LD_RUN_PATH
9188 ;;
9189 siemens)
9190 need_lib_prefix=no
9191 ;;
9192 motorola)
9193 need_lib_prefix=no
9194 need_version=no
9195 shlibpath_overrides_runpath=no
9196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9197 ;;
9198 esac
9199 ;;
9200
9201 sysv4*MP*)
9202 if test -d /usr/nec ;then
9203 version_type=linux
9204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9205 soname_spec='$libname${shared_ext}.$major'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 fi
9208 ;;
9209
9210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9211 version_type=freebsd-elf
9212 need_lib_prefix=no
9213 need_version=no
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 hardcode_into_libs=yes
9218 if test "$with_gnu_ld" = yes; then
9219 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9220 shlibpath_overrides_runpath=no
9221 else
9222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9223 shlibpath_overrides_runpath=yes
9224 case $host_os in
9225 sco3.2v5*)
9226 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9227 ;;
9228 esac
9229 fi
9230 sys_lib_dlsearch_path_spec='/usr/lib'
9231 ;;
9232
9233 uts4*)
9234 version_type=linux
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 ;;
9239
9240 *)
9241 dynamic_linker=no
9242 ;;
9243 esac
9244 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9245 echo "${ECHO_T}$dynamic_linker" >&6; }
9246 test "$dynamic_linker" = no && can_build_shared=no
9247
9248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9249 if test "$GCC" = yes; then
9250 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9251 fi
9252
9253 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9254 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9255 hardcode_action=
9256 if test -n "$hardcode_libdir_flag_spec" || \
9257 test -n "$runpath_var" || \
9258 test "X$hardcode_automatic" = "Xyes" ; then
9259
9260 # We can hardcode non-existant directories.
9261 if test "$hardcode_direct" != no &&
9262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9263 # have to relink, otherwise we might link with an installed library
9264 # when we should be linking with a yet-to-be-installed one
9265 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9266 test "$hardcode_minus_L" != no; then
9267 # Linking always hardcodes the temporary library directory.
9268 hardcode_action=relink
9269 else
9270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9271 hardcode_action=immediate
9272 fi
9273 else
9274 # We cannot hardcode anything, or else we can only hardcode existing
9275 # directories.
9276 hardcode_action=unsupported
9277 fi
9278 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9279 echo "${ECHO_T}$hardcode_action" >&6; }
9280
9281 if test "$hardcode_action" = relink; then
9282 # Fast installation is not supported
9283 enable_fast_install=no
9284 elif test "$shlibpath_overrides_runpath" = yes ||
9285 test "$enable_shared" = no; then
9286 # Fast installation is not necessary
9287 enable_fast_install=needless
9288 fi
9289
9290 striplib=
9291 old_striplib=
9292 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9293 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9294 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9295 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9296 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9297 { echo "$as_me:$LINENO: result: yes" >&5
9298 echo "${ECHO_T}yes" >&6; }
9299 else
9300 # FIXME - insert some real tests, host_os isn't really good enough
9301 case $host_os in
9302 darwin*)
9303 if test -n "$STRIP" ; then
9304 striplib="$STRIP -x"
9305 old_striplib="$STRIP -S"
9306 { echo "$as_me:$LINENO: result: yes" >&5
9307 echo "${ECHO_T}yes" >&6; }
9308 else
9309 { echo "$as_me:$LINENO: result: no" >&5
9310 echo "${ECHO_T}no" >&6; }
9311 fi
9312 ;;
9313 *)
9314 { echo "$as_me:$LINENO: result: no" >&5
9315 echo "${ECHO_T}no" >&6; }
9316 ;;
9317 esac
9318 fi
9319
9320 if test "x$enable_dlopen" != xyes; then
9321 enable_dlopen=unknown
9322 enable_dlopen_self=unknown
9323 enable_dlopen_self_static=unknown
9324 else
9325 lt_cv_dlopen=no
9326 lt_cv_dlopen_libs=
9327
9328 case $host_os in
9329 beos*)
9330 lt_cv_dlopen="load_add_on"
9331 lt_cv_dlopen_libs=
9332 lt_cv_dlopen_self=yes
9333 ;;
9334
9335 mingw* | pw32*)
9336 lt_cv_dlopen="LoadLibrary"
9337 lt_cv_dlopen_libs=
9338 ;;
9339
9340 cygwin*)
9341 lt_cv_dlopen="dlopen"
9342 lt_cv_dlopen_libs=
9343 ;;
9344
9345 darwin*)
9346 # if libdl is installed we need to link against it
9347 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-ldl $LIBS"
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char dlopen ();
9368 int
9369 main ()
9370 {
9371 return dlopen ();
9372 ;
9373 return 0;
9374 }
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (ac_try="$ac_link"
9378 case "(($ac_try" in
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9381 esac
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_link") 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } && {
9390 test -z "$ac_c_werror_flag" ||
9391 test ! -s conftest.err
9392 } && test -s conftest$ac_exeext &&
9393 $as_test_x conftest$ac_exeext; then
9394 ac_cv_lib_dl_dlopen=yes
9395 else
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 ac_cv_lib_dl_dlopen=no
9400 fi
9401
9402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403 conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9405 fi
9406 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9408 if test $ac_cv_lib_dl_dlopen = yes; then
9409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9410 else
9411
9412 lt_cv_dlopen="dyld"
9413 lt_cv_dlopen_libs=
9414 lt_cv_dlopen_self=yes
9415
9416 fi
9417
9418 ;;
9419
9420 *)
9421 { echo "$as_me:$LINENO: checking for shl_load" >&5
9422 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9423 if test "${ac_cv_func_shl_load+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9434 #define shl_load innocuous_shl_load
9435
9436 /* System header to define __stub macros and hopefully few prototypes,
9437 which can conflict with char shl_load (); below.
9438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9439 <limits.h> exists even on freestanding compilers. */
9440
9441 #ifdef __STDC__
9442 # include <limits.h>
9443 #else
9444 # include <assert.h>
9445 #endif
9446
9447 #undef shl_load
9448
9449 /* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 char shl_load ();
9456 /* The GNU C library defines this for functions which it implements
9457 to always fail with ENOSYS. Some functions are actually named
9458 something starting with __ and the normal name is an alias. */
9459 #if defined __stub_shl_load || defined __stub___shl_load
9460 choke me
9461 #endif
9462
9463 int
9464 main ()
9465 {
9466 return shl_load ();
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9473 case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest$ac_exeext &&
9488 $as_test_x conftest$ac_exeext; then
9489 ac_cv_func_shl_load=yes
9490 else
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 ac_cv_func_shl_load=no
9495 fi
9496
9497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9498 conftest$ac_exeext conftest.$ac_ext
9499 fi
9500 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9501 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9502 if test $ac_cv_func_shl_load = yes; then
9503 lt_cv_dlopen="shl_load"
9504 else
9505 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9506 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9507 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 ac_check_lib_save_LIBS=$LIBS
9511 LIBS="-ldld $LIBS"
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h. */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518
9519 /* Override any GCC internal prototype to avoid an error.
9520 Use char because int might match the return type of a GCC
9521 builtin and then its argument prototype would still apply. */
9522 #ifdef __cplusplus
9523 extern "C"
9524 #endif
9525 char shl_load ();
9526 int
9527 main ()
9528 {
9529 return shl_load ();
9530 ;
9531 return 0;
9532 }
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9536 case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539 esac
9540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && {
9548 test -z "$ac_c_werror_flag" ||
9549 test ! -s conftest.err
9550 } && test -s conftest$ac_exeext &&
9551 $as_test_x conftest$ac_exeext; then
9552 ac_cv_lib_dld_shl_load=yes
9553 else
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ac_cv_lib_dld_shl_load=no
9558 fi
9559
9560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9561 conftest$ac_exeext conftest.$ac_ext
9562 LIBS=$ac_check_lib_save_LIBS
9563 fi
9564 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9565 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9566 if test $ac_cv_lib_dld_shl_load = yes; then
9567 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9568 else
9569 { echo "$as_me:$LINENO: checking for dlopen" >&5
9570 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9571 if test "${ac_cv_func_dlopen+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9582 #define dlopen innocuous_dlopen
9583
9584 /* System header to define __stub macros and hopefully few prototypes,
9585 which can conflict with char dlopen (); below.
9586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9587 <limits.h> exists even on freestanding compilers. */
9588
9589 #ifdef __STDC__
9590 # include <limits.h>
9591 #else
9592 # include <assert.h>
9593 #endif
9594
9595 #undef dlopen
9596
9597 /* Override any GCC internal prototype to avoid an error.
9598 Use char because int might match the return type of a GCC
9599 builtin and then its argument prototype would still apply. */
9600 #ifdef __cplusplus
9601 extern "C"
9602 #endif
9603 char dlopen ();
9604 /* The GNU C library defines this for functions which it implements
9605 to always fail with ENOSYS. Some functions are actually named
9606 something starting with __ and the normal name is an alias. */
9607 #if defined __stub_dlopen || defined __stub___dlopen
9608 choke me
9609 #endif
9610
9611 int
9612 main ()
9613 {
9614 return dlopen ();
9615 ;
9616 return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_link") 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest$ac_exeext &&
9636 $as_test_x conftest$ac_exeext; then
9637 ac_cv_func_dlopen=yes
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 ac_cv_func_dlopen=no
9643 fi
9644
9645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9646 conftest$ac_exeext conftest.$ac_ext
9647 fi
9648 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9649 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9650 if test $ac_cv_func_dlopen = yes; then
9651 lt_cv_dlopen="dlopen"
9652 else
9653 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 ac_check_lib_save_LIBS=$LIBS
9659 LIBS="-ldl $LIBS"
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666
9667 /* Override any GCC internal prototype to avoid an error.
9668 Use char because int might match the return type of a GCC
9669 builtin and then its argument prototype would still apply. */
9670 #ifdef __cplusplus
9671 extern "C"
9672 #endif
9673 char dlopen ();
9674 int
9675 main ()
9676 {
9677 return dlopen ();
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext conftest$ac_exeext
9683 if { (ac_try="$ac_link"
9684 case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9687 esac
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_link") 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } && {
9696 test -z "$ac_c_werror_flag" ||
9697 test ! -s conftest.err
9698 } && test -s conftest$ac_exeext &&
9699 $as_test_x conftest$ac_exeext; then
9700 ac_cv_lib_dl_dlopen=yes
9701 else
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_cv_lib_dl_dlopen=no
9706 fi
9707
9708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9709 conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9711 fi
9712 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9713 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9714 if test $ac_cv_lib_dl_dlopen = yes; then
9715 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9716 else
9717 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9718 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9719 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-lsvld $LIBS"
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char dlopen ();
9738 int
9739 main ()
9740 {
9741 return dlopen ();
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9748 case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } && {
9760 test -z "$ac_c_werror_flag" ||
9761 test ! -s conftest.err
9762 } && test -s conftest$ac_exeext &&
9763 $as_test_x conftest$ac_exeext; then
9764 ac_cv_lib_svld_dlopen=yes
9765 else
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 ac_cv_lib_svld_dlopen=no
9770 fi
9771
9772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9775 fi
9776 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9777 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9778 if test $ac_cv_lib_svld_dlopen = yes; then
9779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9780 else
9781 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9782 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9783 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786 ac_check_lib_save_LIBS=$LIBS
9787 LIBS="-ldld $LIBS"
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char dld_link ();
9802 int
9803 main ()
9804 {
9805 return dld_link ();
9806 ;
9807 return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 ac_cv_lib_dld_dld_link=yes
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 ac_cv_lib_dld_dld_link=no
9834 fi
9835
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9838 LIBS=$ac_check_lib_save_LIBS
9839 fi
9840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9841 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9842 if test $ac_cv_lib_dld_dld_link = yes; then
9843 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9844 fi
9845
9846
9847 fi
9848
9849
9850 fi
9851
9852
9853 fi
9854
9855
9856 fi
9857
9858
9859 fi
9860
9861 ;;
9862 esac
9863
9864 if test "x$lt_cv_dlopen" != xno; then
9865 enable_dlopen=yes
9866 else
9867 enable_dlopen=no
9868 fi
9869
9870 case $lt_cv_dlopen in
9871 dlopen)
9872 save_CPPFLAGS="$CPPFLAGS"
9873 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9874
9875 save_LDFLAGS="$LDFLAGS"
9876 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9877
9878 save_LIBS="$LIBS"
9879 LIBS="$lt_cv_dlopen_libs $LIBS"
9880
9881 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9882 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9883 if test "${lt_cv_dlopen_self+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 if test "$cross_compiling" = yes; then :
9887 lt_cv_dlopen_self=cross
9888 else
9889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9890 lt_status=$lt_dlunknown
9891 cat > conftest.$ac_ext <<EOF
9892 #line 9892 "configure"
9893 #include "confdefs.h"
9894
9895 #if HAVE_DLFCN_H
9896 #include <dlfcn.h>
9897 #endif
9898
9899 #include <stdio.h>
9900
9901 #ifdef RTLD_GLOBAL
9902 # define LT_DLGLOBAL RTLD_GLOBAL
9903 #else
9904 # ifdef DL_GLOBAL
9905 # define LT_DLGLOBAL DL_GLOBAL
9906 # else
9907 # define LT_DLGLOBAL 0
9908 # endif
9909 #endif
9910
9911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9912 find out it does not work in some platform. */
9913 #ifndef LT_DLLAZY_OR_NOW
9914 # ifdef RTLD_LAZY
9915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9916 # else
9917 # ifdef DL_LAZY
9918 # define LT_DLLAZY_OR_NOW DL_LAZY
9919 # else
9920 # ifdef RTLD_NOW
9921 # define LT_DLLAZY_OR_NOW RTLD_NOW
9922 # else
9923 # ifdef DL_NOW
9924 # define LT_DLLAZY_OR_NOW DL_NOW
9925 # else
9926 # define LT_DLLAZY_OR_NOW 0
9927 # endif
9928 # endif
9929 # endif
9930 # endif
9931 #endif
9932
9933 #ifdef __cplusplus
9934 extern "C" void exit (int);
9935 #endif
9936
9937 void fnord() { int i=42;}
9938 int main ()
9939 {
9940 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9941 int status = $lt_dlunknown;
9942
9943 if (self)
9944 {
9945 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9946 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9947 /* dlclose (self); */
9948 }
9949 else
9950 puts (dlerror ());
9951
9952 exit (status);
9953 }
9954 EOF
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9960 (./conftest; exit; ) >&5 2>/dev/null
9961 lt_status=$?
9962 case x$lt_status in
9963 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9964 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9965 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9966 esac
9967 else :
9968 # compilation failed
9969 lt_cv_dlopen_self=no
9970 fi
9971 fi
9972 rm -fr conftest*
9973
9974
9975 fi
9976 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9977 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9978
9979 if test "x$lt_cv_dlopen_self" = xyes; then
9980 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9981 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9982 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9983 if test "${lt_cv_dlopen_self_static+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986 if test "$cross_compiling" = yes; then :
9987 lt_cv_dlopen_self_static=cross
9988 else
9989 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9990 lt_status=$lt_dlunknown
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9992 "configure"
9993 #include "confdefs.h"
9994
9995 #if HAVE_DLFCN_H
9996 #include <dlfcn.h>
9997 #endif
9998
9999 #include <stdio.h>
10000
10001 #ifdef RTLD_GLOBAL
10002 # define LT_DLGLOBAL RTLD_GLOBAL
10003 #else
10004 # ifdef DL_GLOBAL
10005 # define LT_DLGLOBAL DL_GLOBAL
10006 # else
10007 # define LT_DLGLOBAL 0
10008 # endif
10009 #endif
10010
10011 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10012 find out it does not work in some platform. */
10013 #ifndef LT_DLLAZY_OR_NOW
10014 # ifdef RTLD_LAZY
10015 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10016 # else
10017 # ifdef DL_LAZY
10018 # define LT_DLLAZY_OR_NOW DL_LAZY
10019 # else
10020 # ifdef RTLD_NOW
10021 # define LT_DLLAZY_OR_NOW RTLD_NOW
10022 # else
10023 # ifdef DL_NOW
10024 # define LT_DLLAZY_OR_NOW DL_NOW
10025 # else
10026 # define LT_DLLAZY_OR_NOW 0
10027 # endif
10028 # endif
10029 # endif
10030 # endif
10031 #endif
10032
10033 #ifdef __cplusplus
10034 extern "C" void exit (int);
10035 #endif
10036
10037 void fnord() { int i=42;}
10038 int main ()
10039 {
10040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10041 int status = $lt_dlunknown;
10042
10043 if (self)
10044 {
10045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10046 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10047 /* dlclose (self); */
10048 }
10049 else
10050 puts (dlerror ());
10051
10052 exit (status);
10053 }
10054 EOF
10055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056 (eval $ac_link) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10060 (./conftest; exit; ) >&5 2>/dev/null
10061 lt_status=$?
10062 case x$lt_status in
10063 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10064 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10065 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10066 esac
10067 else :
10068 # compilation failed
10069 lt_cv_dlopen_self_static=no
10070 fi
10071 fi
10072 rm -fr conftest*
10073
10074
10075 fi
10076 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10077 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10078 fi
10079
10080 CPPFLAGS="$save_CPPFLAGS"
10081 LDFLAGS="$save_LDFLAGS"
10082 LIBS="$save_LIBS"
10083 ;;
10084 esac
10085
10086 case $lt_cv_dlopen_self in
10087 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10088 *) enable_dlopen_self=unknown ;;
10089 esac
10090
10091 case $lt_cv_dlopen_self_static in
10092 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10093 *) enable_dlopen_self_static=unknown ;;
10094 esac
10095 fi
10096
10097
10098 # Report which library types will actually be built
10099 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10100 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10101 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10102 echo "${ECHO_T}$can_build_shared" >&6; }
10103
10104 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10105 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10106 test "$can_build_shared" = "no" && enable_shared=no
10107
10108 # On AIX, shared libraries and static libraries use the same namespace, and
10109 # are all built from PIC.
10110 case $host_os in
10111 aix3*)
10112 test "$enable_shared" = yes && enable_static=no
10113 if test -n "$RANLIB"; then
10114 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10115 postinstall_cmds='$RANLIB $lib'
10116 fi
10117 ;;
10118
10119 aix4* | aix5*)
10120 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10121 test "$enable_shared" = yes && enable_static=no
10122 fi
10123 ;;
10124 esac
10125 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10126 echo "${ECHO_T}$enable_shared" >&6; }
10127
10128 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10129 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10130 # Make sure either enable_shared or enable_static is yes.
10131 test "$enable_shared" = yes || enable_static=yes
10132 { echo "$as_me:$LINENO: result: $enable_static" >&5
10133 echo "${ECHO_T}$enable_static" >&6; }
10134
10135 # The else clause should only fire when bootstrapping the
10136 # libtool distribution, otherwise you forgot to ship ltmain.sh
10137 # with your package, and you will get complaints that there are
10138 # no rules to generate ltmain.sh.
10139 if test -f "$ltmain"; then
10140 # See if we are running on zsh, and set the options which allow our commands through
10141 # without removal of \ escapes.
10142 if test -n "${ZSH_VERSION+set}" ; then
10143 setopt NO_GLOB_SUBST
10144 fi
10145 # Now quote all the things that may contain metacharacters while being
10146 # careful not to overquote the AC_SUBSTed values. We take copies of the
10147 # variables and quote the copies for generation of the libtool script.
10148 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10149 SED SHELL STRIP \
10150 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10151 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10152 deplibs_check_method reload_flag reload_cmds need_locks \
10153 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10154 lt_cv_sys_global_symbol_to_c_name_address \
10155 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10156 old_postinstall_cmds old_postuninstall_cmds \
10157 compiler \
10158 CC \
10159 LD \
10160 lt_prog_compiler_wl \
10161 lt_prog_compiler_pic \
10162 lt_prog_compiler_static \
10163 lt_prog_compiler_no_builtin_flag \
10164 export_dynamic_flag_spec \
10165 thread_safe_flag_spec \
10166 whole_archive_flag_spec \
10167 enable_shared_with_static_runtimes \
10168 old_archive_cmds \
10169 old_archive_from_new_cmds \
10170 predep_objects \
10171 postdep_objects \
10172 predeps \
10173 postdeps \
10174 compiler_lib_search_path \
10175 archive_cmds \
10176 archive_expsym_cmds \
10177 postinstall_cmds \
10178 postuninstall_cmds \
10179 old_archive_from_expsyms_cmds \
10180 allow_undefined_flag \
10181 no_undefined_flag \
10182 export_symbols_cmds \
10183 hardcode_libdir_flag_spec \
10184 hardcode_libdir_flag_spec_ld \
10185 hardcode_libdir_separator \
10186 hardcode_automatic \
10187 module_cmds \
10188 module_expsym_cmds \
10189 lt_cv_prog_compiler_c_o \
10190 fix_srcfile_path \
10191 exclude_expsyms \
10192 include_expsyms; do
10193
10194 case $var in
10195 old_archive_cmds | \
10196 old_archive_from_new_cmds | \
10197 archive_cmds | \
10198 archive_expsym_cmds | \
10199 module_cmds | \
10200 module_expsym_cmds | \
10201 old_archive_from_expsyms_cmds | \
10202 export_symbols_cmds | \
10203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10204 postinstall_cmds | postuninstall_cmds | \
10205 old_postinstall_cmds | old_postuninstall_cmds | \
10206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10207 # Double-quote double-evaled strings.
10208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10209 ;;
10210 *)
10211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10212 ;;
10213 esac
10214 done
10215
10216 case $lt_echo in
10217 *'\$0 --fallback-echo"')
10218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10219 ;;
10220 esac
10221
10222 cfgfile="${ofile}T"
10223 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10224 $rm -f "$cfgfile"
10225 { echo "$as_me:$LINENO: creating $ofile" >&5
10226 echo "$as_me: creating $ofile" >&6;}
10227
10228 cat <<__EOF__ >> "$cfgfile"
10229 #! $SHELL
10230
10231 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10232 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10233 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10234 #
10235 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10236 # Free Software Foundation, Inc.
10237 #
10238 # This file is part of GNU Libtool:
10239 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10240 #
10241 # This program is free software; you can redistribute it and/or modify
10242 # it under the terms of the GNU General Public License as published by
10243 # the Free Software Foundation; either version 2 of the License, or
10244 # (at your option) any later version.
10245 #
10246 # This program is distributed in the hope that it will be useful, but
10247 # WITHOUT ANY WARRANTY; without even the implied warranty of
10248 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10249 # General Public License for more details.
10250 #
10251 # You should have received a copy of the GNU General Public License
10252 # along with this program; if not, write to the Free Software
10253 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10254 #
10255 # As a special exception to the GNU General Public License, if you
10256 # distribute this file as part of a program that contains a
10257 # configuration script generated by Autoconf, you may include it under
10258 # the same distribution terms that you use for the rest of that program.
10259
10260 # A sed program that does not truncate output.
10261 SED=$lt_SED
10262
10263 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10264 Xsed="$SED -e 1s/^X//"
10265
10266 # The HP-UX ksh and POSIX shell print the target directory to stdout
10267 # if CDPATH is set.
10268 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10269
10270 # The names of the tagged configurations supported by this script.
10271 available_tags=
10272
10273 # ### BEGIN LIBTOOL CONFIG
10274
10275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10276
10277 # Shell to use when invoking shell scripts.
10278 SHELL=$lt_SHELL
10279
10280 # Whether or not to build shared libraries.
10281 build_libtool_libs=$enable_shared
10282
10283 # Whether or not to build static libraries.
10284 build_old_libs=$enable_static
10285
10286 # Whether or not to add -lc for building shared libraries.
10287 build_libtool_need_lc=$archive_cmds_need_lc
10288
10289 # Whether or not to disallow shared libs when runtime libs are static
10290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10291
10292 # Whether or not to optimize for fast installation.
10293 fast_install=$enable_fast_install
10294
10295 # The host system.
10296 host_alias=$host_alias
10297 host=$host
10298 host_os=$host_os
10299
10300 # The build system.
10301 build_alias=$build_alias
10302 build=$build
10303 build_os=$build_os
10304
10305 # An echo program that does not interpret backslashes.
10306 echo=$lt_echo
10307
10308 # The archiver.
10309 AR=$lt_AR
10310 AR_FLAGS=$lt_AR_FLAGS
10311
10312 # A C compiler.
10313 LTCC=$lt_LTCC
10314
10315 # LTCC compiler flags.
10316 LTCFLAGS=$lt_LTCFLAGS
10317
10318 # A language-specific compiler.
10319 CC=$lt_compiler
10320
10321 # Is the compiler the GNU C compiler?
10322 with_gcc=$GCC
10323
10324 # An ERE matcher.
10325 EGREP=$lt_EGREP
10326
10327 # The linker used to build libraries.
10328 LD=$lt_LD
10329
10330 # Whether we need hard or soft links.
10331 LN_S=$lt_LN_S
10332
10333 # A BSD-compatible nm program.
10334 NM=$lt_NM
10335
10336 # A symbol stripping program
10337 STRIP=$lt_STRIP
10338
10339 # Used to examine libraries when file_magic_cmd begins "file"
10340 MAGIC_CMD=$MAGIC_CMD
10341
10342 # Used on cygwin: DLL creation program.
10343 DLLTOOL="$DLLTOOL"
10344
10345 # Used on cygwin: object dumper.
10346 OBJDUMP="$OBJDUMP"
10347
10348 # Used on cygwin: assembler.
10349 AS="$AS"
10350
10351 # The name of the directory that contains temporary libtool files.
10352 objdir=$objdir
10353
10354 # How to create reloadable object files.
10355 reload_flag=$lt_reload_flag
10356 reload_cmds=$lt_reload_cmds
10357
10358 # How to pass a linker flag through the compiler.
10359 wl=$lt_lt_prog_compiler_wl
10360
10361 # Object file suffix (normally "o").
10362 objext="$ac_objext"
10363
10364 # Old archive suffix (normally "a").
10365 libext="$libext"
10366
10367 # Shared library suffix (normally ".so").
10368 shrext_cmds='$shrext_cmds'
10369
10370 # Executable file suffix (normally "").
10371 exeext="$exeext"
10372
10373 # Additional compiler flags for building library objects.
10374 pic_flag=$lt_lt_prog_compiler_pic
10375 pic_mode=$pic_mode
10376
10377 # What is the maximum length of a command?
10378 max_cmd_len=$lt_cv_sys_max_cmd_len
10379
10380 # Does compiler simultaneously support -c and -o options?
10381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10382
10383 # Must we lock files when doing compilation?
10384 need_locks=$lt_need_locks
10385
10386 # Do we need the lib prefix for modules?
10387 need_lib_prefix=$need_lib_prefix
10388
10389 # Do we need a version for libraries?
10390 need_version=$need_version
10391
10392 # Whether dlopen is supported.
10393 dlopen_support=$enable_dlopen
10394
10395 # Whether dlopen of programs is supported.
10396 dlopen_self=$enable_dlopen_self
10397
10398 # Whether dlopen of statically linked programs is supported.
10399 dlopen_self_static=$enable_dlopen_self_static
10400
10401 # Compiler flag to prevent dynamic linking.
10402 link_static_flag=$lt_lt_prog_compiler_static
10403
10404 # Compiler flag to turn off builtin functions.
10405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10406
10407 # Compiler flag to allow reflexive dlopens.
10408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10409
10410 # Compiler flag to generate shared objects directly from archives.
10411 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10412
10413 # Compiler flag to generate thread-safe objects.
10414 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10415
10416 # Library versioning type.
10417 version_type=$version_type
10418
10419 # Format of library name prefix.
10420 libname_spec=$lt_libname_spec
10421
10422 # List of archive names. First name is the real one, the rest are links.
10423 # The last name is the one that the linker finds with -lNAME.
10424 library_names_spec=$lt_library_names_spec
10425
10426 # The coded name of the library, if different from the real name.
10427 soname_spec=$lt_soname_spec
10428
10429 # Commands used to build and install an old-style archive.
10430 RANLIB=$lt_RANLIB
10431 old_archive_cmds=$lt_old_archive_cmds
10432 old_postinstall_cmds=$lt_old_postinstall_cmds
10433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10434
10435 # Create an old-style archive from a shared archive.
10436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10437
10438 # Create a temporary old-style archive to link instead of a shared archive.
10439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10440
10441 # Commands used to build and install a shared archive.
10442 archive_cmds=$lt_archive_cmds
10443 archive_expsym_cmds=$lt_archive_expsym_cmds
10444 postinstall_cmds=$lt_postinstall_cmds
10445 postuninstall_cmds=$lt_postuninstall_cmds
10446
10447 # Commands used to build a loadable module (assumed same as above if empty)
10448 module_cmds=$lt_module_cmds
10449 module_expsym_cmds=$lt_module_expsym_cmds
10450
10451 # Commands to strip libraries.
10452 old_striplib=$lt_old_striplib
10453 striplib=$lt_striplib
10454
10455 # Dependencies to place before the objects being linked to create a
10456 # shared library.
10457 predep_objects=$lt_predep_objects
10458
10459 # Dependencies to place after the objects being linked to create a
10460 # shared library.
10461 postdep_objects=$lt_postdep_objects
10462
10463 # Dependencies to place before the objects being linked to create a
10464 # shared library.
10465 predeps=$lt_predeps
10466
10467 # Dependencies to place after the objects being linked to create a
10468 # shared library.
10469 postdeps=$lt_postdeps
10470
10471 # The library search path used internally by the compiler when linking
10472 # a shared library.
10473 compiler_lib_search_path=$lt_compiler_lib_search_path
10474
10475 # Method to check whether dependent libraries are shared objects.
10476 deplibs_check_method=$lt_deplibs_check_method
10477
10478 # Command to use when deplibs_check_method == file_magic.
10479 file_magic_cmd=$lt_file_magic_cmd
10480
10481 # Flag that allows shared libraries with undefined symbols to be built.
10482 allow_undefined_flag=$lt_allow_undefined_flag
10483
10484 # Flag that forces no undefined symbols.
10485 no_undefined_flag=$lt_no_undefined_flag
10486
10487 # Commands used to finish a libtool library installation in a directory.
10488 finish_cmds=$lt_finish_cmds
10489
10490 # Same as above, but a single script fragment to be evaled but not shown.
10491 finish_eval=$lt_finish_eval
10492
10493 # Take the output of nm and produce a listing of raw symbols and C names.
10494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10495
10496 # Transform the output of nm in a proper C declaration
10497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10498
10499 # Transform the output of nm in a C name address pair
10500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10501
10502 # This is the shared library runtime path variable.
10503 runpath_var=$runpath_var
10504
10505 # This is the shared library path variable.
10506 shlibpath_var=$shlibpath_var
10507
10508 # Is shlibpath searched before the hard-coded library search path?
10509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10510
10511 # How to hardcode a shared library path into an executable.
10512 hardcode_action=$hardcode_action
10513
10514 # Whether we should hardcode library paths into libraries.
10515 hardcode_into_libs=$hardcode_into_libs
10516
10517 # Flag to hardcode \$libdir into a binary during linking.
10518 # This must work even if \$libdir does not exist.
10519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10520
10521 # If ld is used when linking, flag to hardcode \$libdir into
10522 # a binary during linking. This must work even if \$libdir does
10523 # not exist.
10524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10525
10526 # Whether we need a single -rpath flag with a separated argument.
10527 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10528
10529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10530 # resulting binary.
10531 hardcode_direct=$hardcode_direct
10532
10533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10534 # resulting binary.
10535 hardcode_minus_L=$hardcode_minus_L
10536
10537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10538 # the resulting binary.
10539 hardcode_shlibpath_var=$hardcode_shlibpath_var
10540
10541 # Set to yes if building a shared library automatically hardcodes DIR into the library
10542 # and all subsequent libraries and executables linked against it.
10543 hardcode_automatic=$hardcode_automatic
10544
10545 # Variables whose values should be saved in libtool wrapper scripts and
10546 # restored at relink time.
10547 variables_saved_for_relink="$variables_saved_for_relink"
10548
10549 # Whether libtool must link a program against all its dependency libraries.
10550 link_all_deplibs=$link_all_deplibs
10551
10552 # Compile-time system search path for libraries
10553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10554
10555 # Run-time system search path for libraries
10556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10557
10558 # Fix the shell variable \$srcfile for the compiler.
10559 fix_srcfile_path=$lt_fix_srcfile_path
10560
10561 # Set to yes if exported symbols are required.
10562 always_export_symbols=$always_export_symbols
10563
10564 # The commands to list exported symbols.
10565 export_symbols_cmds=$lt_export_symbols_cmds
10566
10567 # The commands to extract the exported symbol list from a shared archive.
10568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10569
10570 # Symbols that should not be listed in the preloaded symbols.
10571 exclude_expsyms=$lt_exclude_expsyms
10572
10573 # Symbols that must always be exported.
10574 include_expsyms=$lt_include_expsyms
10575
10576 # ### END LIBTOOL CONFIG
10577
10578 __EOF__
10579
10580
10581 case $host_os in
10582 aix3*)
10583 cat <<\EOF >> "$cfgfile"
10584
10585 # AIX sometimes has problems with the GCC collect2 program. For some
10586 # reason, if we set the COLLECT_NAMES environment variable, the problems
10587 # vanish in a puff of smoke.
10588 if test "X${COLLECT_NAMES+set}" != Xset; then
10589 COLLECT_NAMES=
10590 export COLLECT_NAMES
10591 fi
10592 EOF
10593 ;;
10594 esac
10595
10596 # We use sed instead of cat because bash on DJGPP gets confused if
10597 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10598 # text mode, it properly converts lines to CR/LF. This bash problem
10599 # is reportedly fixed, but why not run on old versions too?
10600 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10601
10602 mv -f "$cfgfile" "$ofile" || \
10603 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10604 chmod +x "$ofile"
10605
10606 else
10607 # If there is no Makefile yet, we rely on a make rule to execute
10608 # `config.status --recheck' to rerun these tests and create the
10609 # libtool script then.
10610 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10611 if test -f "$ltmain_in"; then
10612 test -f Makefile && make "$ltmain"
10613 fi
10614 fi
10615
10616
10617 ac_ext=c
10618 ac_cpp='$CPP $CPPFLAGS'
10619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10622
10623 CC="$lt_save_CC"
10624
10625
10626 # Check whether --with-tags was given.
10627 if test "${with_tags+set}" = set; then
10628 withval=$with_tags; tagnames="$withval"
10629 fi
10630
10631
10632 if test -f "$ltmain" && test -n "$tagnames"; then
10633 if test ! -f "${ofile}"; then
10634 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10635 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10636 fi
10637
10638 if test -z "$LTCC"; then
10639 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10640 if test -z "$LTCC"; then
10641 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10642 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10643 else
10644 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10645 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10646 fi
10647 fi
10648 if test -z "$LTCFLAGS"; then
10649 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10650 fi
10651
10652 # Extract list of available tagged configurations in $ofile.
10653 # Note that this assumes the entire list is on one line.
10654 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10655
10656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10657 for tagname in $tagnames; do
10658 IFS="$lt_save_ifs"
10659 # Check whether tagname contains only valid characters
10660 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10661 "") ;;
10662 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10663 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10664 { (exit 1); exit 1; }; }
10665 ;;
10666 esac
10667
10668 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10669 then
10670 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10671 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10672 { (exit 1); exit 1; }; }
10673 fi
10674
10675 # Update the list of available tags.
10676 if test -n "$tagname"; then
10677 echo appending configuration tag \"$tagname\" to $ofile
10678
10679 case $tagname in
10680 CXX)
10681 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10682 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10683 (test "X$CXX" != "Xg++"))) ; then
10684 ac_ext=cpp
10685 ac_cpp='$CXXCPP $CPPFLAGS'
10686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10689
10690
10691
10692
10693 archive_cmds_need_lc_CXX=no
10694 allow_undefined_flag_CXX=
10695 always_export_symbols_CXX=no
10696 archive_expsym_cmds_CXX=
10697 export_dynamic_flag_spec_CXX=
10698 hardcode_direct_CXX=no
10699 hardcode_libdir_flag_spec_CXX=
10700 hardcode_libdir_flag_spec_ld_CXX=
10701 hardcode_libdir_separator_CXX=
10702 hardcode_minus_L_CXX=no
10703 hardcode_shlibpath_var_CXX=unsupported
10704 hardcode_automatic_CXX=no
10705 module_cmds_CXX=
10706 module_expsym_cmds_CXX=
10707 link_all_deplibs_CXX=unknown
10708 old_archive_cmds_CXX=$old_archive_cmds
10709 no_undefined_flag_CXX=
10710 whole_archive_flag_spec_CXX=
10711 enable_shared_with_static_runtimes_CXX=no
10712
10713 # Dependencies to place before and after the object being linked:
10714 predep_objects_CXX=
10715 postdep_objects_CXX=
10716 predeps_CXX=
10717 postdeps_CXX=
10718 compiler_lib_search_path_CXX=
10719
10720 # Source file extension for C++ test sources.
10721 ac_ext=cpp
10722
10723 # Object file extension for compiled C++ test sources.
10724 objext=o
10725 objext_CXX=$objext
10726
10727 # Code to be used in simple compile tests
10728 lt_simple_compile_test_code="int some_variable = 0;"
10729
10730 # Code to be used in simple link tests
10731 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10732
10733 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10734
10735 # If no C compiler was specified, use CC.
10736 LTCC=${LTCC-"$CC"}
10737
10738 # If no C compiler flags were specified, use CFLAGS.
10739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10740
10741 # Allow CC to be a program name with arguments.
10742 compiler=$CC
10743
10744
10745 # save warnings/boilerplate of simple test code
10746 ac_outfile=conftest.$ac_objext
10747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10749 _lt_compiler_boilerplate=`cat conftest.err`
10750 $rm conftest*
10751
10752 ac_outfile=conftest.$ac_objext
10753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10755 _lt_linker_boilerplate=`cat conftest.err`
10756 $rm conftest*
10757
10758
10759 # Allow CC to be a program name with arguments.
10760 lt_save_CC=$CC
10761 lt_save_LD=$LD
10762 lt_save_GCC=$GCC
10763 GCC=$GXX
10764 lt_save_with_gnu_ld=$with_gnu_ld
10765 lt_save_path_LD=$lt_cv_path_LD
10766 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10767 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10768 else
10769 $as_unset lt_cv_prog_gnu_ld
10770 fi
10771 if test -n "${lt_cv_path_LDCXX+set}"; then
10772 lt_cv_path_LD=$lt_cv_path_LDCXX
10773 else
10774 $as_unset lt_cv_path_LD
10775 fi
10776 test -z "${LDCXX+set}" || LD=$LDCXX
10777 CC=${CXX-"c++"}
10778 compiler=$CC
10779 compiler_CXX=$CC
10780 for cc_temp in $compiler""; do
10781 case $cc_temp in
10782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10784 \-*) ;;
10785 *) break;;
10786 esac
10787 done
10788 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10789
10790
10791 # We don't want -fno-exception wen compiling C++ code, so set the
10792 # no_builtin_flag separately
10793 if test "$GXX" = yes; then
10794 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10795 else
10796 lt_prog_compiler_no_builtin_flag_CXX=
10797 fi
10798
10799 if test "$GXX" = yes; then
10800 # Set up default GNU C++ configuration
10801
10802
10803 # Check whether --with-gnu-ld was given.
10804 if test "${with_gnu_ld+set}" = set; then
10805 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10806 else
10807 with_gnu_ld=no
10808 fi
10809
10810 ac_prog=ld
10811 if test "$GCC" = yes; then
10812 # Check if gcc -print-prog-name=ld gives a path.
10813 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10814 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10815 case $host in
10816 *-*-mingw*)
10817 # gcc leaves a trailing carriage return which upsets mingw
10818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10819 *)
10820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10821 esac
10822 case $ac_prog in
10823 # Accept absolute paths.
10824 [\\/]* | ?:[\\/]*)
10825 re_direlt='/[^/][^/]*/\.\./'
10826 # Canonicalize the pathname of ld
10827 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10828 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10829 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10830 done
10831 test -z "$LD" && LD="$ac_prog"
10832 ;;
10833 "")
10834 # If it fails, then pretend we aren't using GCC.
10835 ac_prog=ld
10836 ;;
10837 *)
10838 # If it is relative, then search for the first ld in PATH.
10839 with_gnu_ld=unknown
10840 ;;
10841 esac
10842 elif test "$with_gnu_ld" = yes; then
10843 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10844 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10845 else
10846 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10847 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10848 fi
10849 if test "${lt_cv_path_LD+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852 if test -z "$LD"; then
10853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10854 for ac_dir in $PATH; do
10855 IFS="$lt_save_ifs"
10856 test -z "$ac_dir" && ac_dir=.
10857 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10858 lt_cv_path_LD="$ac_dir/$ac_prog"
10859 # Check to see if the program is GNU ld. I'd rather use --version,
10860 # but apparently some variants of GNU ld only accept -v.
10861 # Break only if it was the GNU/non-GNU ld that we prefer.
10862 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10863 *GNU* | *'with BFD'*)
10864 test "$with_gnu_ld" != no && break
10865 ;;
10866 *)
10867 test "$with_gnu_ld" != yes && break
10868 ;;
10869 esac
10870 fi
10871 done
10872 IFS="$lt_save_ifs"
10873 else
10874 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10875 fi
10876 fi
10877
10878 LD="$lt_cv_path_LD"
10879 if test -n "$LD"; then
10880 { echo "$as_me:$LINENO: result: $LD" >&5
10881 echo "${ECHO_T}$LD" >&6; }
10882 else
10883 { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10885 fi
10886 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10887 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10888 { (exit 1); exit 1; }; }
10889 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10890 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10891 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10895 case `$LD -v 2>&1 </dev/null` in
10896 *GNU* | *'with BFD'*)
10897 lt_cv_prog_gnu_ld=yes
10898 ;;
10899 *)
10900 lt_cv_prog_gnu_ld=no
10901 ;;
10902 esac
10903 fi
10904 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10905 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10906 with_gnu_ld=$lt_cv_prog_gnu_ld
10907
10908
10909
10910 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10911 # archiving commands below assume that GNU ld is being used.
10912 if test "$with_gnu_ld" = yes; then
10913 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10914 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'
10915
10916 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10918
10919 # If archive_cmds runs LD, not CC, wlarc should be empty
10920 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10921 # investigate it a little bit more. (MM)
10922 wlarc='${wl}'
10923
10924 # ancient GNU ld didn't support --whole-archive et. al.
10925 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10926 grep 'no-whole-archive' > /dev/null; then
10927 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10928 else
10929 whole_archive_flag_spec_CXX=
10930 fi
10931 else
10932 with_gnu_ld=no
10933 wlarc=
10934
10935 # A generic and very simple default shared library creation
10936 # command for GNU C++ for the case where it uses the native
10937 # linker, instead of GNU ld. If possible, this setting should
10938 # overridden to take advantage of the native linker features on
10939 # the platform it is being used on.
10940 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10941 fi
10942
10943 # Commands to make compiler produce verbose output that lists
10944 # what "hidden" libraries, object files and flags are used when
10945 # linking a shared library.
10946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10947
10948 else
10949 GXX=no
10950 with_gnu_ld=no
10951 wlarc=
10952 fi
10953
10954 # PORTME: fill in a description of your system's C++ link characteristics
10955 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10957 ld_shlibs_CXX=yes
10958 case $host_os in
10959 aix3*)
10960 # FIXME: insert proper C++ library support
10961 ld_shlibs_CXX=no
10962 ;;
10963 aix4* | aix5*)
10964 if test "$host_cpu" = ia64; then
10965 # On IA64, the linker does run time linking by default, so we don't
10966 # have to do anything special.
10967 aix_use_runtimelinking=no
10968 exp_sym_flag='-Bexport'
10969 no_entry_flag=""
10970 else
10971 aix_use_runtimelinking=no
10972
10973 # Test if we are trying to use run time linking or normal
10974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10975 # need to do runtime linking.
10976 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10977 for ld_flag in $LDFLAGS; do
10978 case $ld_flag in
10979 *-brtl*)
10980 aix_use_runtimelinking=yes
10981 break
10982 ;;
10983 esac
10984 done
10985 ;;
10986 esac
10987
10988 exp_sym_flag='-bexport'
10989 no_entry_flag='-bnoentry'
10990 fi
10991
10992 # When large executables or shared objects are built, AIX ld can
10993 # have problems creating the table of contents. If linking a library
10994 # or program results in "error TOC overflow" add -mminimal-toc to
10995 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10996 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10997
10998 archive_cmds_CXX=''
10999 hardcode_direct_CXX=yes
11000 hardcode_libdir_separator_CXX=':'
11001 link_all_deplibs_CXX=yes
11002
11003 if test "$GXX" = yes; then
11004 case $host_os in aix4.[012]|aix4.[012].*)
11005 # We only want to do this on AIX 4.2 and lower, the check
11006 # below for broken collect2 doesn't work under 4.3+
11007 collect2name=`${CC} -print-prog-name=collect2`
11008 if test -f "$collect2name" && \
11009 strings "$collect2name" | grep resolve_lib_name >/dev/null
11010 then
11011 # We have reworked collect2
11012 :
11013 else
11014 # We have old collect2
11015 hardcode_direct_CXX=unsupported
11016 # It fails to find uninstalled libraries when the uninstalled
11017 # path is not listed in the libpath. Setting hardcode_minus_L
11018 # to unsupported forces relinking
11019 hardcode_minus_L_CXX=yes
11020 hardcode_libdir_flag_spec_CXX='-L$libdir'
11021 hardcode_libdir_separator_CXX=
11022 fi
11023 ;;
11024 esac
11025 shared_flag='-shared'
11026 if test "$aix_use_runtimelinking" = yes; then
11027 shared_flag="$shared_flag "'${wl}-G'
11028 fi
11029 else
11030 # not using gcc
11031 if test "$host_cpu" = ia64; then
11032 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11033 # chokes on -Wl,-G. The following line is correct:
11034 shared_flag='-G'
11035 else
11036 if test "$aix_use_runtimelinking" = yes; then
11037 shared_flag='${wl}-G'
11038 else
11039 shared_flag='${wl}-bM:SRE'
11040 fi
11041 fi
11042 fi
11043
11044 # It seems that -bexpall does not export symbols beginning with
11045 # underscore (_), so it is better to generate a list of symbols to export.
11046 always_export_symbols_CXX=yes
11047 if test "$aix_use_runtimelinking" = yes; then
11048 # Warning - without using the other runtime loading flags (-brtl),
11049 # -berok will link without error, but may produce a broken library.
11050 allow_undefined_flag_CXX='-berok'
11051 # Determine the default libpath from the value encoded in an empty executable.
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h. */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058
11059 int
11060 main ()
11061 {
11062
11063 ;
11064 return 0;
11065 }
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } && {
11081 test -z "$ac_cxx_werror_flag" ||
11082 test ! -s conftest.err
11083 } && test -s conftest$ac_exeext &&
11084 $as_test_x conftest$ac_exeext; then
11085
11086 lt_aix_libpath_sed='
11087 /Import File Strings/,/^$/ {
11088 /^0/ {
11089 s/^0 *\(.*\)$/\1/
11090 p
11091 }
11092 }'
11093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11094 # Check for a 64-bit object if we didn't find anything.
11095 if test -z "$aix_libpath"; then
11096 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11097 fi
11098 else
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102
11103 fi
11104
11105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11106 conftest$ac_exeext conftest.$ac_ext
11107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11108
11109 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11110
11111 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"
11112 else
11113 if test "$host_cpu" = ia64; then
11114 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11115 allow_undefined_flag_CXX="-z nodefs"
11116 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"
11117 else
11118 # Determine the default libpath from the value encoded in an empty executable.
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125
11126 int
11127 main ()
11128 {
11129
11130 ;
11131 return 0;
11132 }
11133 _ACEOF
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_link") 2>conftest.er1
11142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } && {
11148 test -z "$ac_cxx_werror_flag" ||
11149 test ! -s conftest.err
11150 } && test -s conftest$ac_exeext &&
11151 $as_test_x conftest$ac_exeext; then
11152
11153 lt_aix_libpath_sed='
11154 /Import File Strings/,/^$/ {
11155 /^0/ {
11156 s/^0 *\(.*\)$/\1/
11157 p
11158 }
11159 }'
11160 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11161 # Check for a 64-bit object if we didn't find anything.
11162 if test -z "$aix_libpath"; then
11163 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11164 fi
11165 else
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11168
11169
11170 fi
11171
11172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11173 conftest$ac_exeext conftest.$ac_ext
11174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11175
11176 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11177 # Warning - without using the other run time loading flags,
11178 # -berok will link without error, but may produce a broken library.
11179 no_undefined_flag_CXX=' ${wl}-bernotok'
11180 allow_undefined_flag_CXX=' ${wl}-berok'
11181 # Exported symbols can be pulled into shared objects from archives
11182 whole_archive_flag_spec_CXX='$convenience'
11183 archive_cmds_need_lc_CXX=yes
11184 # This is similar to how AIX traditionally builds its shared libraries.
11185 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'
11186 fi
11187 fi
11188 ;;
11189
11190 beos*)
11191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11192 allow_undefined_flag_CXX=unsupported
11193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11194 # support --undefined. This deserves some investigation. FIXME
11195 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11196 else
11197 ld_shlibs_CXX=no
11198 fi
11199 ;;
11200
11201 chorus*)
11202 case $cc_basename in
11203 *)
11204 # FIXME: insert proper C++ library support
11205 ld_shlibs_CXX=no
11206 ;;
11207 esac
11208 ;;
11209
11210 cygwin* | mingw* | pw32*)
11211 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11212 # as there is no search path for DLLs.
11213 hardcode_libdir_flag_spec_CXX='-L$libdir'
11214 allow_undefined_flag_CXX=unsupported
11215 always_export_symbols_CXX=no
11216 enable_shared_with_static_runtimes_CXX=yes
11217
11218 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11219 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'
11220 # If the export-symbols file already is a .def file (1st line
11221 # is EXPORTS), use it as is; otherwise, prepend...
11222 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11223 cp $export_symbols $output_objdir/$soname.def;
11224 else
11225 echo EXPORTS > $output_objdir/$soname.def;
11226 cat $export_symbols >> $output_objdir/$soname.def;
11227 fi~
11228 $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'
11229 else
11230 ld_shlibs_CXX=no
11231 fi
11232 ;;
11233 darwin* | rhapsody*)
11234 case $host_os in
11235 rhapsody* | darwin1.[012])
11236 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11237 ;;
11238 *) # Darwin 1.3 on
11239 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11240 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11241 else
11242 case ${MACOSX_DEPLOYMENT_TARGET} in
11243 10.[012])
11244 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11245 ;;
11246 10.*)
11247 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11248 ;;
11249 esac
11250 fi
11251 ;;
11252 esac
11253 archive_cmds_need_lc_CXX=no
11254 hardcode_direct_CXX=no
11255 hardcode_automatic_CXX=yes
11256 hardcode_shlibpath_var_CXX=unsupported
11257 whole_archive_flag_spec_CXX=''
11258 link_all_deplibs_CXX=yes
11259
11260 if test "$GXX" = yes ; then
11261 lt_int_apple_cc_single_mod=no
11262 output_verbose_link_cmd='echo'
11263 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11264 lt_int_apple_cc_single_mod=yes
11265 fi
11266 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11267 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11268 else
11269 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'
11270 fi
11271 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11272 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11273 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11274 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}'
11275 else
11276 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}'
11277 fi
11278 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}'
11279 else
11280 case $cc_basename in
11281 xlc*)
11282 output_verbose_link_cmd='echo'
11283 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11284 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11285 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11286 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11287 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}'
11288 ;;
11289 *)
11290 ld_shlibs_CXX=no
11291 ;;
11292 esac
11293 fi
11294 ;;
11295
11296 dgux*)
11297 case $cc_basename in
11298 ec++*)
11299 # FIXME: insert proper C++ library support
11300 ld_shlibs_CXX=no
11301 ;;
11302 ghcx*)
11303 # Green Hills C++ Compiler
11304 # FIXME: insert proper C++ library support
11305 ld_shlibs_CXX=no
11306 ;;
11307 *)
11308 # FIXME: insert proper C++ library support
11309 ld_shlibs_CXX=no
11310 ;;
11311 esac
11312 ;;
11313 freebsd[12]*)
11314 # C++ shared libraries reported to be fairly broken before switch to ELF
11315 ld_shlibs_CXX=no
11316 ;;
11317 freebsd-elf*)
11318 archive_cmds_need_lc_CXX=no
11319 ;;
11320 freebsd* | dragonfly*)
11321 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11322 # conventions
11323 ld_shlibs_CXX=yes
11324 ;;
11325 gnu*)
11326 ;;
11327 hpux9*)
11328 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11329 hardcode_libdir_separator_CXX=:
11330 export_dynamic_flag_spec_CXX='${wl}-E'
11331 hardcode_direct_CXX=yes
11332 hardcode_minus_L_CXX=yes # Not in the search PATH,
11333 # but as the default
11334 # location of the library.
11335
11336 case $cc_basename in
11337 CC*)
11338 # FIXME: insert proper C++ library support
11339 ld_shlibs_CXX=no
11340 ;;
11341 aCC*)
11342 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'
11343 # Commands to make compiler produce verbose output that lists
11344 # what "hidden" libraries, object files and flags are used when
11345 # linking a shared library.
11346 #
11347 # There doesn't appear to be a way to prevent this compiler from
11348 # explicitly linking system object files so we need to strip them
11349 # from the output so that they don't get included in the library
11350 # dependencies.
11351 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'
11352 ;;
11353 *)
11354 if test "$GXX" = yes; then
11355 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'
11356 else
11357 # FIXME: insert proper C++ library support
11358 ld_shlibs_CXX=no
11359 fi
11360 ;;
11361 esac
11362 ;;
11363 hpux10*|hpux11*)
11364 if test $with_gnu_ld = no; then
11365 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11366 hardcode_libdir_separator_CXX=:
11367
11368 case $host_cpu in
11369 hppa*64*|ia64*) ;;
11370 *)
11371 export_dynamic_flag_spec_CXX='${wl}-E'
11372 ;;
11373 esac
11374 fi
11375 case $host_cpu in
11376 hppa*64*|ia64*)
11377 hardcode_direct_CXX=no
11378 hardcode_shlibpath_var_CXX=no
11379 ;;
11380 *)
11381 hardcode_direct_CXX=yes
11382 hardcode_minus_L_CXX=yes # Not in the search PATH,
11383 # but as the default
11384 # location of the library.
11385 ;;
11386 esac
11387
11388 case $cc_basename in
11389 CC*)
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 ;;
11393 aCC*)
11394 case $host_cpu in
11395 hppa*64*)
11396 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11397 ;;
11398 ia64*)
11399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11400 ;;
11401 *)
11402 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11403 ;;
11404 esac
11405 # Commands to make compiler produce verbose output that lists
11406 # what "hidden" libraries, object files and flags are used when
11407 # linking a shared library.
11408 #
11409 # There doesn't appear to be a way to prevent this compiler from
11410 # explicitly linking system object files so we need to strip them
11411 # from the output so that they don't get included in the library
11412 # dependencies.
11413 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'
11414 ;;
11415 *)
11416 if test "$GXX" = yes; then
11417 if test $with_gnu_ld = no; then
11418 case $host_cpu in
11419 hppa*64*)
11420 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11421 ;;
11422 ia64*)
11423 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11424 ;;
11425 *)
11426 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'
11427 ;;
11428 esac
11429 fi
11430 else
11431 # FIXME: insert proper C++ library support
11432 ld_shlibs_CXX=no
11433 fi
11434 ;;
11435 esac
11436 ;;
11437 interix[3-9]*)
11438 hardcode_direct_CXX=no
11439 hardcode_shlibpath_var_CXX=no
11440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11441 export_dynamic_flag_spec_CXX='${wl}-E'
11442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11443 # Instead, shared libraries are loaded at an image base (0x10000000 by
11444 # default) and relocated if they conflict, which is a slow very memory
11445 # consuming and fragmenting process. To avoid this, we pick a random,
11446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11447 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11448 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'
11449 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'
11450 ;;
11451 irix5* | irix6*)
11452 case $cc_basename in
11453 CC*)
11454 # SGI C++
11455 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'
11456
11457 # Archives containing C++ object files must be created using
11458 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11459 # necessary to make sure instantiated templates are included
11460 # in the archive.
11461 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11462 ;;
11463 *)
11464 if test "$GXX" = yes; then
11465 if test "$with_gnu_ld" = no; then
11466 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'
11467 else
11468 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'
11469 fi
11470 fi
11471 link_all_deplibs_CXX=yes
11472 ;;
11473 esac
11474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11475 hardcode_libdir_separator_CXX=:
11476 ;;
11477 linux* | k*bsd*-gnu)
11478 case $cc_basename in
11479 KCC*)
11480 # Kuck and Associates, Inc. (KAI) C++ Compiler
11481
11482 # KCC will only create a shared library if the output file
11483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11484 # to its proper name (with version) after linking.
11485 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'
11486 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'
11487 # Commands to make compiler produce verbose output that lists
11488 # what "hidden" libraries, object files and flags are used when
11489 # linking a shared library.
11490 #
11491 # There doesn't appear to be a way to prevent this compiler from
11492 # explicitly linking system object files so we need to strip them
11493 # from the output so that they don't get included in the library
11494 # dependencies.
11495 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'
11496
11497 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11498 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11499
11500 # Archives containing C++ object files must be created using
11501 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11502 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11503 ;;
11504 icpc*)
11505 # Intel C++
11506 with_gnu_ld=yes
11507 # version 8.0 and above of icpc choke on multiply defined symbols
11508 # if we add $predep_objects and $postdep_objects, however 7.1 and
11509 # earlier do not add the objects themselves.
11510 case `$CC -V 2>&1` in
11511 *"Version 7."*)
11512 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11513 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'
11514 ;;
11515 *) # Version 8.0 or newer
11516 tmp_idyn=
11517 case $host_cpu in
11518 ia64*) tmp_idyn=' -i_dynamic';;
11519 esac
11520 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11521 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'
11522 ;;
11523 esac
11524 archive_cmds_need_lc_CXX=no
11525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11526 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11527 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11528 ;;
11529 pgCC*)
11530 # Portland Group C++ compiler
11531 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11532 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'
11533
11534 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11535 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11536 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'
11537 ;;
11538 cxx*)
11539 # Compaq C++
11540 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11541 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'
11542
11543 runpath_var=LD_RUN_PATH
11544 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11545 hardcode_libdir_separator_CXX=:
11546
11547 # Commands to make compiler produce verbose output that lists
11548 # what "hidden" libraries, object files and flags are used when
11549 # linking a shared library.
11550 #
11551 # There doesn't appear to be a way to prevent this compiler from
11552 # explicitly linking system object files so we need to strip them
11553 # from the output so that they don't get included in the library
11554 # dependencies.
11555 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'
11556 ;;
11557 *)
11558 case `$CC -V 2>&1 | sed 5q` in
11559 *Sun\ C*)
11560 # Sun C++ 5.9
11561 no_undefined_flag_CXX=' -zdefs'
11562 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11563 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11564 hardcode_libdir_flag_spec_CXX='-R$libdir'
11565 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11566
11567 # Not sure whether something based on
11568 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11569 # would be better.
11570 output_verbose_link_cmd='echo'
11571
11572 # Archives containing C++ object files must be created using
11573 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11574 # necessary to make sure instantiated templates are included
11575 # in the archive.
11576 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11577 ;;
11578 esac
11579 ;;
11580 esac
11581 ;;
11582 lynxos*)
11583 # FIXME: insert proper C++ library support
11584 ld_shlibs_CXX=no
11585 ;;
11586 m88k*)
11587 # FIXME: insert proper C++ library support
11588 ld_shlibs_CXX=no
11589 ;;
11590 mvs*)
11591 case $cc_basename in
11592 cxx*)
11593 # FIXME: insert proper C++ library support
11594 ld_shlibs_CXX=no
11595 ;;
11596 *)
11597 # FIXME: insert proper C++ library support
11598 ld_shlibs_CXX=no
11599 ;;
11600 esac
11601 ;;
11602 netbsd*)
11603 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11604 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11605 wlarc=
11606 hardcode_libdir_flag_spec_CXX='-R$libdir'
11607 hardcode_direct_CXX=yes
11608 hardcode_shlibpath_var_CXX=no
11609 fi
11610 # Workaround some broken pre-1.5 toolchains
11611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11612 ;;
11613 openbsd2*)
11614 # C++ shared libraries are fairly broken
11615 ld_shlibs_CXX=no
11616 ;;
11617 openbsd*)
11618 if test -f /usr/libexec/ld.so; then
11619 hardcode_direct_CXX=yes
11620 hardcode_shlibpath_var_CXX=no
11621 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11624 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11625 export_dynamic_flag_spec_CXX='${wl}-E'
11626 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11627 fi
11628 output_verbose_link_cmd='echo'
11629 else
11630 ld_shlibs_CXX=no
11631 fi
11632 ;;
11633 osf3*)
11634 case $cc_basename in
11635 KCC*)
11636 # Kuck and Associates, Inc. (KAI) C++ Compiler
11637
11638 # KCC will only create a shared library if the output file
11639 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11640 # to its proper name (with version) after linking.
11641 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'
11642
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11644 hardcode_libdir_separator_CXX=:
11645
11646 # Archives containing C++ object files must be created using
11647 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11648 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11649
11650 ;;
11651 RCC*)
11652 # Rational C++ 2.4.1
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 cxx*)
11657 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11658 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'
11659
11660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11661 hardcode_libdir_separator_CXX=:
11662
11663 # Commands to make compiler produce verbose output that lists
11664 # what "hidden" libraries, object files and flags are used when
11665 # linking a shared library.
11666 #
11667 # There doesn't appear to be a way to prevent this compiler from
11668 # explicitly linking system object files so we need to strip them
11669 # from the output so that they don't get included in the library
11670 # dependencies.
11671 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'
11672 ;;
11673 *)
11674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11676 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'
11677
11678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11679 hardcode_libdir_separator_CXX=:
11680
11681 # Commands to make compiler produce verbose output that lists
11682 # what "hidden" libraries, object files and flags are used when
11683 # linking a shared library.
11684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11685
11686 else
11687 # FIXME: insert proper C++ library support
11688 ld_shlibs_CXX=no
11689 fi
11690 ;;
11691 esac
11692 ;;
11693 osf4* | osf5*)
11694 case $cc_basename in
11695 KCC*)
11696 # Kuck and Associates, Inc. (KAI) C++ Compiler
11697
11698 # KCC will only create a shared library if the output file
11699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11700 # to its proper name (with version) after linking.
11701 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'
11702
11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704 hardcode_libdir_separator_CXX=:
11705
11706 # Archives containing C++ object files must be created using
11707 # the KAI C++ compiler.
11708 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11709 ;;
11710 RCC*)
11711 # Rational C++ 2.4.1
11712 # FIXME: insert proper C++ library support
11713 ld_shlibs_CXX=no
11714 ;;
11715 cxx*)
11716 allow_undefined_flag_CXX=' -expect_unresolved \*'
11717 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'
11718 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11719 echo "-hidden">> $lib.exp~
11720 $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~
11721 $rm $lib.exp'
11722
11723 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11724 hardcode_libdir_separator_CXX=:
11725
11726 # Commands to make compiler produce verbose output that lists
11727 # what "hidden" libraries, object files and flags are used when
11728 # linking a shared library.
11729 #
11730 # There doesn't appear to be a way to prevent this compiler from
11731 # explicitly linking system object files so we need to strip them
11732 # from the output so that they don't get included in the library
11733 # dependencies.
11734 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'
11735 ;;
11736 *)
11737 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11738 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11739 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'
11740
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11742 hardcode_libdir_separator_CXX=:
11743
11744 # Commands to make compiler produce verbose output that lists
11745 # what "hidden" libraries, object files and flags are used when
11746 # linking a shared library.
11747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11748
11749 else
11750 # FIXME: insert proper C++ library support
11751 ld_shlibs_CXX=no
11752 fi
11753 ;;
11754 esac
11755 ;;
11756 psos*)
11757 # FIXME: insert proper C++ library support
11758 ld_shlibs_CXX=no
11759 ;;
11760 sunos4*)
11761 case $cc_basename in
11762 CC*)
11763 # Sun C++ 4.x
11764 # FIXME: insert proper C++ library support
11765 ld_shlibs_CXX=no
11766 ;;
11767 lcc*)
11768 # Lucid
11769 # FIXME: insert proper C++ library support
11770 ld_shlibs_CXX=no
11771 ;;
11772 *)
11773 # FIXME: insert proper C++ library support
11774 ld_shlibs_CXX=no
11775 ;;
11776 esac
11777 ;;
11778 solaris*)
11779 case $cc_basename in
11780 CC*)
11781 # Sun C++ 4.2, 5.x and Centerline C++
11782 archive_cmds_need_lc_CXX=yes
11783 no_undefined_flag_CXX=' -zdefs'
11784 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11785 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11786 $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'
11787
11788 hardcode_libdir_flag_spec_CXX='-R$libdir'
11789 hardcode_shlibpath_var_CXX=no
11790 case $host_os in
11791 solaris2.[0-5] | solaris2.[0-5].*) ;;
11792 *)
11793 # The compiler driver will combine and reorder linker options,
11794 # but understands `-z linker_flag'.
11795 # Supported since Solaris 2.6 (maybe 2.5.1?)
11796 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11797 ;;
11798 esac
11799 link_all_deplibs_CXX=yes
11800
11801 output_verbose_link_cmd='echo'
11802
11803 # Archives containing C++ object files must be created using
11804 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11805 # necessary to make sure instantiated templates are included
11806 # in the archive.
11807 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11808 ;;
11809 gcx*)
11810 # Green Hills C++ Compiler
11811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11812
11813 # The C++ compiler must be used to create the archive.
11814 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11815 ;;
11816 *)
11817 # GNU C++ compiler with Solaris linker
11818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11819 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11820 if $CC --version | grep -v '^2\.7' > /dev/null; then
11821 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11822 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11823 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11824
11825 # Commands to make compiler produce verbose output that lists
11826 # what "hidden" libraries, object files and flags are used when
11827 # linking a shared library.
11828 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11829 else
11830 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11831 # platform.
11832 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11833 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11834 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11835
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11839 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11840 fi
11841
11842 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11843 case $host_os in
11844 solaris2.[0-5] | solaris2.[0-5].*) ;;
11845 *)
11846 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11847 ;;
11848 esac
11849 fi
11850 ;;
11851 esac
11852 ;;
11853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11854 no_undefined_flag_CXX='${wl}-z,text'
11855 archive_cmds_need_lc_CXX=no
11856 hardcode_shlibpath_var_CXX=no
11857 runpath_var='LD_RUN_PATH'
11858
11859 case $cc_basename in
11860 CC*)
11861 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11862 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11863 ;;
11864 *)
11865 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11866 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11867 ;;
11868 esac
11869 ;;
11870 sysv5* | sco3.2v5* | sco5v6*)
11871 # Note: We can NOT use -z defs as we might desire, because we do not
11872 # link with -lc, and that would cause any symbols used from libc to
11873 # always be unresolved, which means just about no library would
11874 # ever link correctly. If we're not using GNU ld we use -z text
11875 # though, which does catch some bad symbols but isn't as heavy-handed
11876 # as -z defs.
11877 # For security reasons, it is highly recommended that you always
11878 # use absolute paths for naming shared libraries, and exclude the
11879 # DT_RUNPATH tag from executables and libraries. But doing so
11880 # requires that you compile everything twice, which is a pain.
11881 # So that behaviour is only enabled if SCOABSPATH is set to a
11882 # non-empty value in the environment. Most likely only useful for
11883 # creating official distributions of packages.
11884 # This is a hack until libtool officially supports absolute path
11885 # names for shared libraries.
11886 no_undefined_flag_CXX='${wl}-z,text'
11887 allow_undefined_flag_CXX='${wl}-z,nodefs'
11888 archive_cmds_need_lc_CXX=no
11889 hardcode_shlibpath_var_CXX=no
11890 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11891 hardcode_libdir_separator_CXX=':'
11892 link_all_deplibs_CXX=yes
11893 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11894 runpath_var='LD_RUN_PATH'
11895
11896 case $cc_basename in
11897 CC*)
11898 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11899 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 ;;
11901 *)
11902 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 ;;
11905 esac
11906 ;;
11907 tandem*)
11908 case $cc_basename in
11909 NCC*)
11910 # NonStop-UX NCC 3.20
11911 # FIXME: insert proper C++ library support
11912 ld_shlibs_CXX=no
11913 ;;
11914 *)
11915 # FIXME: insert proper C++ library support
11916 ld_shlibs_CXX=no
11917 ;;
11918 esac
11919 ;;
11920 vxworks*)
11921 # FIXME: insert proper C++ library support
11922 ld_shlibs_CXX=no
11923 ;;
11924 *)
11925 # FIXME: insert proper C++ library support
11926 ld_shlibs_CXX=no
11927 ;;
11928 esac
11929 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11930 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11931 test "$ld_shlibs_CXX" = no && can_build_shared=no
11932
11933 GCC_CXX="$GXX"
11934 LD_CXX="$LD"
11935
11936
11937 cat > conftest.$ac_ext <<EOF
11938 class Foo
11939 {
11940 public:
11941 Foo (void) { a = 0; }
11942 private:
11943 int a;
11944 };
11945 EOF
11946
11947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11948 (eval $ac_compile) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; then
11952 # Parse the compiler output and extract the necessary
11953 # objects, libraries and library flags.
11954
11955 # Sentinel used to keep track of whether or not we are before
11956 # the conftest object file.
11957 pre_test_object_deps_done=no
11958
11959 # The `*' in the case matches for architectures that use `case' in
11960 # $output_verbose_cmd can trigger glob expansion during the loop
11961 # eval without this substitution.
11962 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11963
11964 for p in `eval $output_verbose_link_cmd`; do
11965 case $p in
11966
11967 -L* | -R* | -l*)
11968 # Some compilers place space between "-{L,R}" and the path.
11969 # Remove the space.
11970 if test $p = "-L" \
11971 || test $p = "-R"; then
11972 prev=$p
11973 continue
11974 else
11975 prev=
11976 fi
11977
11978 if test "$pre_test_object_deps_done" = no; then
11979 case $p in
11980 -L* | -R*)
11981 # Internal compiler library paths should come after those
11982 # provided the user. The postdeps already come after the
11983 # user supplied libs so there is no need to process them.
11984 if test -z "$compiler_lib_search_path_CXX"; then
11985 compiler_lib_search_path_CXX="${prev}${p}"
11986 else
11987 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11988 fi
11989 ;;
11990 # The "-l" case would never come before the object being
11991 # linked, so don't bother handling this case.
11992 esac
11993 else
11994 if test -z "$postdeps_CXX"; then
11995 postdeps_CXX="${prev}${p}"
11996 else
11997 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11998 fi
11999 fi
12000 ;;
12001
12002 *.$objext)
12003 # This assumes that the test object file only shows up
12004 # once in the compiler output.
12005 if test "$p" = "conftest.$objext"; then
12006 pre_test_object_deps_done=yes
12007 continue
12008 fi
12009
12010 if test "$pre_test_object_deps_done" = no; then
12011 if test -z "$predep_objects_CXX"; then
12012 predep_objects_CXX="$p"
12013 else
12014 predep_objects_CXX="$predep_objects_CXX $p"
12015 fi
12016 else
12017 if test -z "$postdep_objects_CXX"; then
12018 postdep_objects_CXX="$p"
12019 else
12020 postdep_objects_CXX="$postdep_objects_CXX $p"
12021 fi
12022 fi
12023 ;;
12024
12025 *) ;; # Ignore the rest.
12026
12027 esac
12028 done
12029
12030 # Clean up.
12031 rm -f a.out a.exe
12032 else
12033 echo "libtool.m4: error: problem compiling CXX test program"
12034 fi
12035
12036 $rm -f confest.$objext
12037
12038 # PORTME: override above test on systems where it is broken
12039 case $host_os in
12040 interix[3-9]*)
12041 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12042 # hack all around it, let's just trust "g++" to DTRT.
12043 predep_objects_CXX=
12044 postdep_objects_CXX=
12045 postdeps_CXX=
12046 ;;
12047
12048 linux*)
12049 case `$CC -V 2>&1 | sed 5q` in
12050 *Sun\ C*)
12051 # Sun C++ 5.9
12052 #
12053 # The more standards-conforming stlport4 library is
12054 # incompatible with the Cstd library. Avoid specifying
12055 # it if it's in CXXFLAGS. Ignore libCrun as
12056 # -library=stlport4 depends on it.
12057 case " $CXX $CXXFLAGS " in
12058 *" -library=stlport4 "*)
12059 solaris_use_stlport4=yes
12060 ;;
12061 esac
12062 if test "$solaris_use_stlport4" != yes; then
12063 postdeps_CXX='-library=Cstd -library=Crun'
12064 fi
12065 ;;
12066 esac
12067 ;;
12068
12069 solaris*)
12070 case $cc_basename in
12071 CC*)
12072 # The more standards-conforming stlport4 library is
12073 # incompatible with the Cstd library. Avoid specifying
12074 # it if it's in CXXFLAGS. Ignore libCrun as
12075 # -library=stlport4 depends on it.
12076 case " $CXX $CXXFLAGS " in
12077 *" -library=stlport4 "*)
12078 solaris_use_stlport4=yes
12079 ;;
12080 esac
12081
12082 # Adding this requires a known-good setup of shared libraries for
12083 # Sun compiler versions before 5.6, else PIC objects from an old
12084 # archive will be linked into the output, leading to subtle bugs.
12085 if test "$solaris_use_stlport4" != yes; then
12086 postdeps_CXX='-library=Cstd -library=Crun'
12087 fi
12088 ;;
12089 esac
12090 ;;
12091 esac
12092
12093
12094 case " $postdeps_CXX " in
12095 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12096 esac
12097
12098 lt_prog_compiler_wl_CXX=
12099 lt_prog_compiler_pic_CXX=
12100 lt_prog_compiler_static_CXX=
12101
12102 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12103 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12104
12105 # C++ specific cases for pic, static, wl, etc.
12106 if test "$GXX" = yes; then
12107 lt_prog_compiler_wl_CXX='-Wl,'
12108 lt_prog_compiler_static_CXX='-static'
12109
12110 case $host_os in
12111 aix*)
12112 # All AIX code is PIC.
12113 if test "$host_cpu" = ia64; then
12114 # AIX 5 now supports IA64 processor
12115 lt_prog_compiler_static_CXX='-Bstatic'
12116 fi
12117 ;;
12118 amigaos*)
12119 # FIXME: we need at least 68020 code to build shared libraries, but
12120 # adding the `-m68020' flag to GCC prevents building anything better,
12121 # like `-m68040'.
12122 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12123 ;;
12124 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12125 # PIC is the default for these OSes.
12126 ;;
12127 mingw* | cygwin* | os2* | pw32*)
12128 # This hack is so that the source file can tell whether it is being
12129 # built for inclusion in a dll (and should export symbols for example).
12130 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12131 # (--disable-auto-import) libraries
12132 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12133 ;;
12134 darwin* | rhapsody*)
12135 # PIC is the default on this platform
12136 # Common symbols not allowed in MH_DYLIB files
12137 lt_prog_compiler_pic_CXX='-fno-common'
12138 ;;
12139 *djgpp*)
12140 # DJGPP does not support shared libraries at all
12141 lt_prog_compiler_pic_CXX=
12142 ;;
12143 interix[3-9]*)
12144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12145 # Instead, we relocate shared libraries at runtime.
12146 ;;
12147 sysv4*MP*)
12148 if test -d /usr/nec; then
12149 lt_prog_compiler_pic_CXX=-Kconform_pic
12150 fi
12151 ;;
12152 hpux*)
12153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12154 # not for PA HP-UX.
12155 case $host_cpu in
12156 hppa*64*|ia64*)
12157 ;;
12158 *)
12159 lt_prog_compiler_pic_CXX='-fPIC'
12160 ;;
12161 esac
12162 ;;
12163 *)
12164 lt_prog_compiler_pic_CXX='-fPIC'
12165 ;;
12166 esac
12167 else
12168 case $host_os in
12169 aix4* | aix5*)
12170 # All AIX code is PIC.
12171 if test "$host_cpu" = ia64; then
12172 # AIX 5 now supports IA64 processor
12173 lt_prog_compiler_static_CXX='-Bstatic'
12174 else
12175 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12176 fi
12177 ;;
12178 chorus*)
12179 case $cc_basename in
12180 cxch68*)
12181 # Green Hills C++ Compiler
12182 # _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"
12183 ;;
12184 esac
12185 ;;
12186 darwin*)
12187 # PIC is the default on this platform
12188 # Common symbols not allowed in MH_DYLIB files
12189 case $cc_basename in
12190 xlc*)
12191 lt_prog_compiler_pic_CXX='-qnocommon'
12192 lt_prog_compiler_wl_CXX='-Wl,'
12193 ;;
12194 esac
12195 ;;
12196 dgux*)
12197 case $cc_basename in
12198 ec++*)
12199 lt_prog_compiler_pic_CXX='-KPIC'
12200 ;;
12201 ghcx*)
12202 # Green Hills C++ Compiler
12203 lt_prog_compiler_pic_CXX='-pic'
12204 ;;
12205 *)
12206 ;;
12207 esac
12208 ;;
12209 freebsd* | dragonfly*)
12210 # FreeBSD uses GNU C++
12211 ;;
12212 hpux9* | hpux10* | hpux11*)
12213 case $cc_basename in
12214 CC*)
12215 lt_prog_compiler_wl_CXX='-Wl,'
12216 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12217 if test "$host_cpu" != ia64; then
12218 lt_prog_compiler_pic_CXX='+Z'
12219 fi
12220 ;;
12221 aCC*)
12222 lt_prog_compiler_wl_CXX='-Wl,'
12223 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12224 case $host_cpu in
12225 hppa*64*|ia64*)
12226 # +Z the default
12227 ;;
12228 *)
12229 lt_prog_compiler_pic_CXX='+Z'
12230 ;;
12231 esac
12232 ;;
12233 *)
12234 ;;
12235 esac
12236 ;;
12237 interix*)
12238 # This is c89, which is MS Visual C++ (no shared libs)
12239 # Anyone wants to do a port?
12240 ;;
12241 irix5* | irix6* | nonstopux*)
12242 case $cc_basename in
12243 CC*)
12244 lt_prog_compiler_wl_CXX='-Wl,'
12245 lt_prog_compiler_static_CXX='-non_shared'
12246 # CC pic flag -KPIC is the default.
12247 ;;
12248 *)
12249 ;;
12250 esac
12251 ;;
12252 linux* | k*bsd*-gnu)
12253 case $cc_basename in
12254 KCC*)
12255 # KAI C++ Compiler
12256 lt_prog_compiler_wl_CXX='--backend -Wl,'
12257 lt_prog_compiler_pic_CXX='-fPIC'
12258 ;;
12259 icpc* | ecpc*)
12260 # Intel C++
12261 lt_prog_compiler_wl_CXX='-Wl,'
12262 lt_prog_compiler_pic_CXX='-KPIC'
12263 lt_prog_compiler_static_CXX='-static'
12264 ;;
12265 pgCC*)
12266 # Portland Group C++ compiler.
12267 lt_prog_compiler_wl_CXX='-Wl,'
12268 lt_prog_compiler_pic_CXX='-fpic'
12269 lt_prog_compiler_static_CXX='-Bstatic'
12270 ;;
12271 cxx*)
12272 # Compaq C++
12273 # Make sure the PIC flag is empty. It appears that all Alpha
12274 # Linux and Compaq Tru64 Unix objects are PIC.
12275 lt_prog_compiler_pic_CXX=
12276 lt_prog_compiler_static_CXX='-non_shared'
12277 ;;
12278 *)
12279 case `$CC -V 2>&1 | sed 5q` in
12280 *Sun\ C*)
12281 # Sun C++ 5.9
12282 lt_prog_compiler_pic_CXX='-KPIC'
12283 lt_prog_compiler_static_CXX='-Bstatic'
12284 lt_prog_compiler_wl_CXX='-Qoption ld '
12285 ;;
12286 esac
12287 ;;
12288 esac
12289 ;;
12290 lynxos*)
12291 ;;
12292 m88k*)
12293 ;;
12294 mvs*)
12295 case $cc_basename in
12296 cxx*)
12297 lt_prog_compiler_pic_CXX='-W c,exportall'
12298 ;;
12299 *)
12300 ;;
12301 esac
12302 ;;
12303 netbsd*)
12304 ;;
12305 osf3* | osf4* | osf5*)
12306 case $cc_basename in
12307 KCC*)
12308 lt_prog_compiler_wl_CXX='--backend -Wl,'
12309 ;;
12310 RCC*)
12311 # Rational C++ 2.4.1
12312 lt_prog_compiler_pic_CXX='-pic'
12313 ;;
12314 cxx*)
12315 # Digital/Compaq C++
12316 lt_prog_compiler_wl_CXX='-Wl,'
12317 # Make sure the PIC flag is empty. It appears that all Alpha
12318 # Linux and Compaq Tru64 Unix objects are PIC.
12319 lt_prog_compiler_pic_CXX=
12320 lt_prog_compiler_static_CXX='-non_shared'
12321 ;;
12322 *)
12323 ;;
12324 esac
12325 ;;
12326 psos*)
12327 ;;
12328 solaris*)
12329 case $cc_basename in
12330 CC*)
12331 # Sun C++ 4.2, 5.x and Centerline C++
12332 lt_prog_compiler_pic_CXX='-KPIC'
12333 lt_prog_compiler_static_CXX='-Bstatic'
12334 lt_prog_compiler_wl_CXX='-Qoption ld '
12335 ;;
12336 gcx*)
12337 # Green Hills C++ Compiler
12338 lt_prog_compiler_pic_CXX='-PIC'
12339 ;;
12340 *)
12341 ;;
12342 esac
12343 ;;
12344 sunos4*)
12345 case $cc_basename in
12346 CC*)
12347 # Sun C++ 4.x
12348 lt_prog_compiler_pic_CXX='-pic'
12349 lt_prog_compiler_static_CXX='-Bstatic'
12350 ;;
12351 lcc*)
12352 # Lucid
12353 lt_prog_compiler_pic_CXX='-pic'
12354 ;;
12355 *)
12356 ;;
12357 esac
12358 ;;
12359 tandem*)
12360 case $cc_basename in
12361 NCC*)
12362 # NonStop-UX NCC 3.20
12363 lt_prog_compiler_pic_CXX='-KPIC'
12364 ;;
12365 *)
12366 ;;
12367 esac
12368 ;;
12369 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12370 case $cc_basename in
12371 CC*)
12372 lt_prog_compiler_wl_CXX='-Wl,'
12373 lt_prog_compiler_pic_CXX='-KPIC'
12374 lt_prog_compiler_static_CXX='-Bstatic'
12375 ;;
12376 esac
12377 ;;
12378 vxworks*)
12379 ;;
12380 *)
12381 lt_prog_compiler_can_build_shared_CXX=no
12382 ;;
12383 esac
12384 fi
12385
12386 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12387 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12388
12389 #
12390 # Check to make sure the PIC flag actually works.
12391 #
12392 if test -n "$lt_prog_compiler_pic_CXX"; then
12393
12394 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12396 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399 lt_prog_compiler_pic_works_CXX=no
12400 ac_outfile=conftest.$ac_objext
12401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12402 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12403 # Insert the option either (1) after the last *FLAGS variable, or
12404 # (2) before a word containing "conftest.", or (3) at the end.
12405 # Note that $ac_compile itself does not contain backslashes and begins
12406 # with a dollar sign (not a hyphen), so the echo should work correctly.
12407 # The option is referenced via a variable to avoid confusing sed.
12408 lt_compile=`echo "$ac_compile" | $SED \
12409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12411 -e 's:$: $lt_compiler_flag:'`
12412 (eval echo "\"\$as_me:12412: $lt_compile\"" >&5)
12413 (eval "$lt_compile" 2>conftest.err)
12414 ac_status=$?
12415 cat conftest.err >&5
12416 echo "$as_me:12416: \$? = $ac_status" >&5
12417 if (exit $ac_status) && test -s "$ac_outfile"; then
12418 # The compiler can only warn and ignore the option if not recognized
12419 # So say no if there are warnings other than the usual output.
12420 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12423 lt_prog_compiler_pic_works_CXX=yes
12424 fi
12425 fi
12426 $rm conftest*
12427
12428 fi
12429 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12430 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12431
12432 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12433 case $lt_prog_compiler_pic_CXX in
12434 "" | " "*) ;;
12435 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12436 esac
12437 else
12438 lt_prog_compiler_pic_CXX=
12439 lt_prog_compiler_can_build_shared_CXX=no
12440 fi
12441
12442 fi
12443 case $host_os in
12444 # For platforms which do not support PIC, -DPIC is meaningless:
12445 *djgpp*)
12446 lt_prog_compiler_pic_CXX=
12447 ;;
12448 *)
12449 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12450 ;;
12451 esac
12452
12453 #
12454 # Check to make sure the static flag actually works.
12455 #
12456 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12457 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12458 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12459 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 lt_prog_compiler_static_works_CXX=no
12463 save_LDFLAGS="$LDFLAGS"
12464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12467 # The linker can only warn and ignore the option if not recognized
12468 # So say no if there are warnings
12469 if test -s conftest.err; then
12470 # Append any errors to the config.log.
12471 cat conftest.err 1>&5
12472 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12474 if diff conftest.exp conftest.er2 >/dev/null; then
12475 lt_prog_compiler_static_works_CXX=yes
12476 fi
12477 else
12478 lt_prog_compiler_static_works_CXX=yes
12479 fi
12480 fi
12481 $rm conftest*
12482 LDFLAGS="$save_LDFLAGS"
12483
12484 fi
12485 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12486 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12487
12488 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12489 :
12490 else
12491 lt_prog_compiler_static_CXX=
12492 fi
12493
12494
12495 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12496 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12497 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500 lt_cv_prog_compiler_c_o_CXX=no
12501 $rm -r conftest 2>/dev/null
12502 mkdir conftest
12503 cd conftest
12504 mkdir out
12505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12506
12507 lt_compiler_flag="-o out/conftest2.$ac_objext"
12508 # Insert the option either (1) after the last *FLAGS variable, or
12509 # (2) before a word containing "conftest.", or (3) at the end.
12510 # Note that $ac_compile itself does not contain backslashes and begins
12511 # with a dollar sign (not a hyphen), so the echo should work correctly.
12512 lt_compile=`echo "$ac_compile" | $SED \
12513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12515 -e 's:$: $lt_compiler_flag:'`
12516 (eval echo "\"\$as_me:12516: $lt_compile\"" >&5)
12517 (eval "$lt_compile" 2>out/conftest.err)
12518 ac_status=$?
12519 cat out/conftest.err >&5
12520 echo "$as_me:12520: \$? = $ac_status" >&5
12521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12522 then
12523 # The compiler can only warn and ignore the option if not recognized
12524 # So say no if there are warnings
12525 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12528 lt_cv_prog_compiler_c_o_CXX=yes
12529 fi
12530 fi
12531 chmod u+w . 2>&5
12532 $rm conftest*
12533 # SGI C++ compiler will create directory out/ii_files/ for
12534 # template instantiation
12535 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12536 $rm out/* && rmdir out
12537 cd ..
12538 rmdir conftest
12539 $rm conftest*
12540
12541 fi
12542 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12543 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12544
12545
12546 hard_links="nottested"
12547 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12548 # do not overwrite the value of need_locks provided by the user
12549 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12550 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12551 hard_links=yes
12552 $rm conftest*
12553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12554 touch conftest.a
12555 ln conftest.a conftest.b 2>&5 || hard_links=no
12556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12557 { echo "$as_me:$LINENO: result: $hard_links" >&5
12558 echo "${ECHO_T}$hard_links" >&6; }
12559 if test "$hard_links" = no; then
12560 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12561 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12562 need_locks=warn
12563 fi
12564 else
12565 need_locks=no
12566 fi
12567
12568 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12569 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12570
12571 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12572 case $host_os in
12573 aix4* | aix5*)
12574 # If we're using GNU nm, then we don't want the "-C" option.
12575 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12576 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12577 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'
12578 else
12579 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'
12580 fi
12581 ;;
12582 pw32*)
12583 export_symbols_cmds_CXX="$ltdll_cmds"
12584 ;;
12585 cygwin* | mingw*)
12586 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'
12587 ;;
12588 *)
12589 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12590 ;;
12591 esac
12592
12593 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12594 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12595 test "$ld_shlibs_CXX" = no && can_build_shared=no
12596
12597 #
12598 # Do we need to explicitly link libc?
12599 #
12600 case "x$archive_cmds_need_lc_CXX" in
12601 x|xyes)
12602 # Assume -lc should be added
12603 archive_cmds_need_lc_CXX=yes
12604
12605 if test "$enable_shared" = yes && test "$GCC" = yes; then
12606 case $archive_cmds_CXX in
12607 *'~'*)
12608 # FIXME: we may have to deal with multi-command sequences.
12609 ;;
12610 '$CC '*)
12611 # Test whether the compiler implicitly links with -lc since on some
12612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12613 # to ld, don't add -lc before -lgcc.
12614 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12615 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12616 $rm conftest*
12617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12618
12619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } 2>conftest.err; then
12624 soname=conftest
12625 lib=conftest
12626 libobjs=conftest.$ac_objext
12627 deplibs=
12628 wl=$lt_prog_compiler_wl_CXX
12629 pic_flag=$lt_prog_compiler_pic_CXX
12630 compiler_flags=-v
12631 linker_flags=-v
12632 verstring=
12633 output_objdir=.
12634 libname=conftest
12635 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12636 allow_undefined_flag_CXX=
12637 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12638 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }
12642 then
12643 archive_cmds_need_lc_CXX=no
12644 else
12645 archive_cmds_need_lc_CXX=yes
12646 fi
12647 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12648 else
12649 cat conftest.err 1>&5
12650 fi
12651 $rm conftest*
12652 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12653 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12654 ;;
12655 esac
12656 fi
12657 ;;
12658 esac
12659
12660 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12661 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12662 library_names_spec=
12663 libname_spec='lib$name'
12664 soname_spec=
12665 shrext_cmds=".so"
12666 postinstall_cmds=
12667 postuninstall_cmds=
12668 finish_cmds=
12669 finish_eval=
12670 shlibpath_var=
12671 shlibpath_overrides_runpath=unknown
12672 version_type=none
12673 dynamic_linker="$host_os ld.so"
12674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12675
12676 need_lib_prefix=unknown
12677 hardcode_into_libs=no
12678
12679 # when you set need_version to no, make sure it does not cause -set_version
12680 # flags to be left without arguments
12681 need_version=unknown
12682
12683 case $host_os in
12684 aix3*)
12685 version_type=linux
12686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12687 shlibpath_var=LIBPATH
12688
12689 # AIX 3 has no versioning support, so we append a major version to the name.
12690 soname_spec='${libname}${release}${shared_ext}$major'
12691 ;;
12692
12693 aix4* | aix5*)
12694 version_type=linux
12695 need_lib_prefix=no
12696 need_version=no
12697 hardcode_into_libs=yes
12698 if test "$host_cpu" = ia64; then
12699 # AIX 5 supports IA64
12700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12701 shlibpath_var=LD_LIBRARY_PATH
12702 else
12703 # With GCC up to 2.95.x, collect2 would create an import file
12704 # for dependence libraries. The import file would start with
12705 # the line `#! .'. This would cause the generated library to
12706 # depend on `.', always an invalid library. This was fixed in
12707 # development snapshots of GCC prior to 3.0.
12708 case $host_os in
12709 aix4 | aix4.[01] | aix4.[01].*)
12710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12711 echo ' yes '
12712 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12713 :
12714 else
12715 can_build_shared=no
12716 fi
12717 ;;
12718 esac
12719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12720 # soname into executable. Probably we can add versioning support to
12721 # collect2, so additional links can be useful in future.
12722 if test "$aix_use_runtimelinking" = yes; then
12723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12724 # instead of lib<name>.a to let people know that these are not
12725 # typical AIX shared libraries.
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12727 else
12728 # We preserve .a as extension for shared libraries through AIX4.2
12729 # and later when we are not doing run time linking.
12730 library_names_spec='${libname}${release}.a $libname.a'
12731 soname_spec='${libname}${release}${shared_ext}$major'
12732 fi
12733 shlibpath_var=LIBPATH
12734 fi
12735 ;;
12736
12737 amigaos*)
12738 library_names_spec='$libname.ixlibrary $libname.a'
12739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12740 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'
12741 ;;
12742
12743 beos*)
12744 library_names_spec='${libname}${shared_ext}'
12745 dynamic_linker="$host_os ld.so"
12746 shlibpath_var=LIBRARY_PATH
12747 ;;
12748
12749 bsdi[45]*)
12750 version_type=linux
12751 need_version=no
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12758 # the default ld.so.conf also contains /usr/contrib/lib and
12759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12760 # libtool to hard-code these into programs
12761 ;;
12762
12763 cygwin* | mingw* | pw32*)
12764 version_type=windows
12765 shrext_cmds=".dll"
12766 need_version=no
12767 need_lib_prefix=no
12768
12769 case $GCC,$host_os in
12770 yes,cygwin* | yes,mingw* | yes,pw32*)
12771 library_names_spec='$libname.dll.a'
12772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12773 postinstall_cmds='base_file=`basename \${file}`~
12774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12775 dldir=$destdir/`dirname \$dlpath`~
12776 test -d \$dldir || mkdir -p \$dldir~
12777 $install_prog $dir/$dlname \$dldir/$dlname~
12778 chmod a+x \$dldir/$dlname'
12779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12780 dlpath=$dir/\$dldll~
12781 $rm \$dlpath'
12782 shlibpath_overrides_runpath=yes
12783
12784 case $host_os in
12785 cygwin*)
12786 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12787 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12788 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12789 ;;
12790 mingw*)
12791 # MinGW DLLs use traditional 'lib' prefix
12792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12794 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12795 # It is most probably a Windows format PATH printed by
12796 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12797 # path with ; separators, and with drive letters. We can handle the
12798 # drive letters (cygwin fileutils understands them), so leave them,
12799 # especially as we might pass files found there to a mingw objdump,
12800 # which wouldn't understand a cygwinified path. Ahh.
12801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12802 else
12803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12804 fi
12805 ;;
12806 pw32*)
12807 # pw32 DLLs use 'pw' prefix rather than 'lib'
12808 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12809 ;;
12810 esac
12811 ;;
12812
12813 *)
12814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12815 ;;
12816 esac
12817 dynamic_linker='Win32 ld.exe'
12818 # FIXME: first we should search . and the directory the executable is in
12819 shlibpath_var=PATH
12820 ;;
12821
12822 darwin* | rhapsody*)
12823 dynamic_linker="$host_os dyld"
12824 version_type=darwin
12825 need_lib_prefix=no
12826 need_version=no
12827 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12828 soname_spec='${libname}${release}${major}$shared_ext'
12829 shlibpath_overrides_runpath=yes
12830 shlibpath_var=DYLD_LIBRARY_PATH
12831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12832
12833 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12834 ;;
12835
12836 dgux*)
12837 version_type=linux
12838 need_lib_prefix=no
12839 need_version=no
12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 shlibpath_var=LD_LIBRARY_PATH
12843 ;;
12844
12845 freebsd1*)
12846 dynamic_linker=no
12847 ;;
12848
12849 freebsd* | dragonfly*)
12850 # DragonFly does not have aout. When/if they implement a new
12851 # versioning mechanism, adjust this.
12852 if test -x /usr/bin/objformat; then
12853 objformat=`/usr/bin/objformat`
12854 else
12855 case $host_os in
12856 freebsd[123]*) objformat=aout ;;
12857 *) objformat=elf ;;
12858 esac
12859 fi
12860 version_type=freebsd-$objformat
12861 case $version_type in
12862 freebsd-elf*)
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12864 need_version=no
12865 need_lib_prefix=no
12866 ;;
12867 freebsd-*)
12868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12869 need_version=yes
12870 ;;
12871 esac
12872 shlibpath_var=LD_LIBRARY_PATH
12873 case $host_os in
12874 freebsd2*)
12875 shlibpath_overrides_runpath=yes
12876 ;;
12877 freebsd3.[01]* | freebsdelf3.[01]*)
12878 shlibpath_overrides_runpath=yes
12879 hardcode_into_libs=yes
12880 ;;
12881 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12882 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12883 shlibpath_overrides_runpath=no
12884 hardcode_into_libs=yes
12885 ;;
12886 *) # from 4.6 on, and DragonFly
12887 shlibpath_overrides_runpath=yes
12888 hardcode_into_libs=yes
12889 ;;
12890 esac
12891 ;;
12892
12893 gnu*)
12894 version_type=linux
12895 need_lib_prefix=no
12896 need_version=no
12897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12898 soname_spec='${libname}${release}${shared_ext}$major'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 hardcode_into_libs=yes
12901 ;;
12902
12903 hpux9* | hpux10* | hpux11*)
12904 # Give a soname corresponding to the major version so that dld.sl refuses to
12905 # link against other versions.
12906 version_type=sunos
12907 need_lib_prefix=no
12908 need_version=no
12909 case $host_cpu in
12910 ia64*)
12911 shrext_cmds='.so'
12912 hardcode_into_libs=yes
12913 dynamic_linker="$host_os dld.so"
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12917 soname_spec='${libname}${release}${shared_ext}$major'
12918 if test "X$HPUX_IA64_MODE" = X32; then
12919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12920 else
12921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12922 fi
12923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12924 ;;
12925 hppa*64*)
12926 shrext_cmds='.sl'
12927 hardcode_into_libs=yes
12928 dynamic_linker="$host_os dld.sl"
12929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12935 ;;
12936 *)
12937 shrext_cmds='.sl'
12938 dynamic_linker="$host_os dld.sl"
12939 shlibpath_var=SHLIB_PATH
12940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12942 soname_spec='${libname}${release}${shared_ext}$major'
12943 ;;
12944 esac
12945 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12946 postinstall_cmds='chmod 555 $lib'
12947 ;;
12948
12949 interix[3-9]*)
12950 version_type=linux
12951 need_lib_prefix=no
12952 need_version=no
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12954 soname_spec='${libname}${release}${shared_ext}$major'
12955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12956 shlibpath_var=LD_LIBRARY_PATH
12957 shlibpath_overrides_runpath=no
12958 hardcode_into_libs=yes
12959 ;;
12960
12961 irix5* | irix6* | nonstopux*)
12962 case $host_os in
12963 nonstopux*) version_type=nonstopux ;;
12964 *)
12965 if test "$lt_cv_prog_gnu_ld" = yes; then
12966 version_type=linux
12967 else
12968 version_type=irix
12969 fi ;;
12970 esac
12971 need_lib_prefix=no
12972 need_version=no
12973 soname_spec='${libname}${release}${shared_ext}$major'
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12975 case $host_os in
12976 irix5* | nonstopux*)
12977 libsuff= shlibsuff=
12978 ;;
12979 *)
12980 case $LD in # libtool.m4 will add one of these switches to LD
12981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12982 libsuff= shlibsuff= libmagic=32-bit;;
12983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12984 libsuff=32 shlibsuff=N32 libmagic=N32;;
12985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12987 *) libsuff= shlibsuff= libmagic=never-match;;
12988 esac
12989 ;;
12990 esac
12991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12992 shlibpath_overrides_runpath=no
12993 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12994 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12995 hardcode_into_libs=yes
12996 ;;
12997
12998 # No shared lib support for Linux oldld, aout, or coff.
12999 linux*oldld* | linux*aout* | linux*coff*)
13000 dynamic_linker=no
13001 ;;
13002
13003 # This must be Linux ELF.
13004 linux* | k*bsd*-gnu)
13005 version_type=linux
13006 need_lib_prefix=no
13007 need_version=no
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 shlibpath_overrides_runpath=no
13013 # This implies no fast_install, which is unacceptable.
13014 # Some rework will be needed to allow for fast_install
13015 # before this can be enabled.
13016 hardcode_into_libs=yes
13017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13019
13020 # Append ld.so.conf contents to the search path
13021 if test -f /etc/ld.so.conf; then
13022 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13023 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13024 fi
13025
13026 # We used to test for /lib/ld.so.1 and disable shared libraries on
13027 # powerpc, because MkLinux only supported shared libraries with the
13028 # GNU dynamic linker. Since this was broken with cross compilers,
13029 # most powerpc-linux boxes support dynamic linking these days and
13030 # people can always --disable-shared, the test was removed, and we
13031 # assume the GNU/Linux dynamic linker is in use.
13032 dynamic_linker='GNU/Linux ld.so'
13033 ;;
13034
13035 netbsd*)
13036 version_type=sunos
13037 need_lib_prefix=no
13038 need_version=no
13039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13042 dynamic_linker='NetBSD (a.out) ld.so'
13043 else
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 dynamic_linker='NetBSD ld.elf_so'
13047 fi
13048 shlibpath_var=LD_LIBRARY_PATH
13049 shlibpath_overrides_runpath=yes
13050 hardcode_into_libs=yes
13051 ;;
13052
13053 newsos6)
13054 version_type=linux
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056 shlibpath_var=LD_LIBRARY_PATH
13057 shlibpath_overrides_runpath=yes
13058 ;;
13059
13060 nto-qnx*)
13061 version_type=linux
13062 need_lib_prefix=no
13063 need_version=no
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 shlibpath_overrides_runpath=yes
13068 ;;
13069
13070 openbsd*)
13071 version_type=sunos
13072 sys_lib_dlsearch_path_spec="/usr/lib"
13073 need_lib_prefix=no
13074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13075 case $host_os in
13076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13077 *) need_version=no ;;
13078 esac
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13083 case $host_os in
13084 openbsd2.[89] | openbsd2.[89].*)
13085 shlibpath_overrides_runpath=no
13086 ;;
13087 *)
13088 shlibpath_overrides_runpath=yes
13089 ;;
13090 esac
13091 else
13092 shlibpath_overrides_runpath=yes
13093 fi
13094 ;;
13095
13096 os2*)
13097 libname_spec='$name'
13098 shrext_cmds=".dll"
13099 need_lib_prefix=no
13100 library_names_spec='$libname${shared_ext} $libname.a'
13101 dynamic_linker='OS/2 ld.exe'
13102 shlibpath_var=LIBPATH
13103 ;;
13104
13105 osf3* | osf4* | osf5*)
13106 version_type=osf
13107 need_lib_prefix=no
13108 need_version=no
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111 shlibpath_var=LD_LIBRARY_PATH
13112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13114 ;;
13115
13116 rdos*)
13117 dynamic_linker=no
13118 ;;
13119
13120 solaris*)
13121 version_type=linux
13122 need_lib_prefix=no
13123 need_version=no
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125 soname_spec='${libname}${release}${shared_ext}$major'
13126 shlibpath_var=LD_LIBRARY_PATH
13127 shlibpath_overrides_runpath=yes
13128 hardcode_into_libs=yes
13129 # ldd complains unless libraries are executable
13130 postinstall_cmds='chmod +x $lib'
13131 ;;
13132
13133 sunos4*)
13134 version_type=sunos
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 shlibpath_overrides_runpath=yes
13139 if test "$with_gnu_ld" = yes; then
13140 need_lib_prefix=no
13141 fi
13142 need_version=yes
13143 ;;
13144
13145 sysv4 | sysv4.3*)
13146 version_type=linux
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148 soname_spec='${libname}${release}${shared_ext}$major'
13149 shlibpath_var=LD_LIBRARY_PATH
13150 case $host_vendor in
13151 sni)
13152 shlibpath_overrides_runpath=no
13153 need_lib_prefix=no
13154 export_dynamic_flag_spec='${wl}-Blargedynsym'
13155 runpath_var=LD_RUN_PATH
13156 ;;
13157 siemens)
13158 need_lib_prefix=no
13159 ;;
13160 motorola)
13161 need_lib_prefix=no
13162 need_version=no
13163 shlibpath_overrides_runpath=no
13164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13165 ;;
13166 esac
13167 ;;
13168
13169 sysv4*MP*)
13170 if test -d /usr/nec ;then
13171 version_type=linux
13172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13173 soname_spec='$libname${shared_ext}.$major'
13174 shlibpath_var=LD_LIBRARY_PATH
13175 fi
13176 ;;
13177
13178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13179 version_type=freebsd-elf
13180 need_lib_prefix=no
13181 need_version=no
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 shlibpath_var=LD_LIBRARY_PATH
13185 hardcode_into_libs=yes
13186 if test "$with_gnu_ld" = yes; then
13187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13188 shlibpath_overrides_runpath=no
13189 else
13190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13191 shlibpath_overrides_runpath=yes
13192 case $host_os in
13193 sco3.2v5*)
13194 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13195 ;;
13196 esac
13197 fi
13198 sys_lib_dlsearch_path_spec='/usr/lib'
13199 ;;
13200
13201 uts4*)
13202 version_type=linux
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204 soname_spec='${libname}${release}${shared_ext}$major'
13205 shlibpath_var=LD_LIBRARY_PATH
13206 ;;
13207
13208 *)
13209 dynamic_linker=no
13210 ;;
13211 esac
13212 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13213 echo "${ECHO_T}$dynamic_linker" >&6; }
13214 test "$dynamic_linker" = no && can_build_shared=no
13215
13216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13217 if test "$GCC" = yes; then
13218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13219 fi
13220
13221 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13222 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13223 hardcode_action_CXX=
13224 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13225 test -n "$runpath_var_CXX" || \
13226 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13227
13228 # We can hardcode non-existant directories.
13229 if test "$hardcode_direct_CXX" != no &&
13230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13231 # have to relink, otherwise we might link with an installed library
13232 # when we should be linking with a yet-to-be-installed one
13233 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13234 test "$hardcode_minus_L_CXX" != no; then
13235 # Linking always hardcodes the temporary library directory.
13236 hardcode_action_CXX=relink
13237 else
13238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13239 hardcode_action_CXX=immediate
13240 fi
13241 else
13242 # We cannot hardcode anything, or else we can only hardcode existing
13243 # directories.
13244 hardcode_action_CXX=unsupported
13245 fi
13246 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13247 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13248
13249 if test "$hardcode_action_CXX" = relink; then
13250 # Fast installation is not supported
13251 enable_fast_install=no
13252 elif test "$shlibpath_overrides_runpath" = yes ||
13253 test "$enable_shared" = no; then
13254 # Fast installation is not necessary
13255 enable_fast_install=needless
13256 fi
13257
13258
13259 # The else clause should only fire when bootstrapping the
13260 # libtool distribution, otherwise you forgot to ship ltmain.sh
13261 # with your package, and you will get complaints that there are
13262 # no rules to generate ltmain.sh.
13263 if test -f "$ltmain"; then
13264 # See if we are running on zsh, and set the options which allow our commands through
13265 # without removal of \ escapes.
13266 if test -n "${ZSH_VERSION+set}" ; then
13267 setopt NO_GLOB_SUBST
13268 fi
13269 # Now quote all the things that may contain metacharacters while being
13270 # careful not to overquote the AC_SUBSTed values. We take copies of the
13271 # variables and quote the copies for generation of the libtool script.
13272 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13273 SED SHELL STRIP \
13274 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13275 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13276 deplibs_check_method reload_flag reload_cmds need_locks \
13277 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13278 lt_cv_sys_global_symbol_to_c_name_address \
13279 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13280 old_postinstall_cmds old_postuninstall_cmds \
13281 compiler_CXX \
13282 CC_CXX \
13283 LD_CXX \
13284 lt_prog_compiler_wl_CXX \
13285 lt_prog_compiler_pic_CXX \
13286 lt_prog_compiler_static_CXX \
13287 lt_prog_compiler_no_builtin_flag_CXX \
13288 export_dynamic_flag_spec_CXX \
13289 thread_safe_flag_spec_CXX \
13290 whole_archive_flag_spec_CXX \
13291 enable_shared_with_static_runtimes_CXX \
13292 old_archive_cmds_CXX \
13293 old_archive_from_new_cmds_CXX \
13294 predep_objects_CXX \
13295 postdep_objects_CXX \
13296 predeps_CXX \
13297 postdeps_CXX \
13298 compiler_lib_search_path_CXX \
13299 archive_cmds_CXX \
13300 archive_expsym_cmds_CXX \
13301 postinstall_cmds_CXX \
13302 postuninstall_cmds_CXX \
13303 old_archive_from_expsyms_cmds_CXX \
13304 allow_undefined_flag_CXX \
13305 no_undefined_flag_CXX \
13306 export_symbols_cmds_CXX \
13307 hardcode_libdir_flag_spec_CXX \
13308 hardcode_libdir_flag_spec_ld_CXX \
13309 hardcode_libdir_separator_CXX \
13310 hardcode_automatic_CXX \
13311 module_cmds_CXX \
13312 module_expsym_cmds_CXX \
13313 lt_cv_prog_compiler_c_o_CXX \
13314 fix_srcfile_path_CXX \
13315 exclude_expsyms_CXX \
13316 include_expsyms_CXX; do
13317
13318 case $var in
13319 old_archive_cmds_CXX | \
13320 old_archive_from_new_cmds_CXX | \
13321 archive_cmds_CXX | \
13322 archive_expsym_cmds_CXX | \
13323 module_cmds_CXX | \
13324 module_expsym_cmds_CXX | \
13325 old_archive_from_expsyms_cmds_CXX | \
13326 export_symbols_cmds_CXX | \
13327 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13328 postinstall_cmds | postuninstall_cmds | \
13329 old_postinstall_cmds | old_postuninstall_cmds | \
13330 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13331 # Double-quote double-evaled strings.
13332 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13333 ;;
13334 *)
13335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13336 ;;
13337 esac
13338 done
13339
13340 case $lt_echo in
13341 *'\$0 --fallback-echo"')
13342 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13343 ;;
13344 esac
13345
13346 cfgfile="$ofile"
13347
13348 cat <<__EOF__ >> "$cfgfile"
13349 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13350
13351 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13352
13353 # Shell to use when invoking shell scripts.
13354 SHELL=$lt_SHELL
13355
13356 # Whether or not to build shared libraries.
13357 build_libtool_libs=$enable_shared
13358
13359 # Whether or not to build static libraries.
13360 build_old_libs=$enable_static
13361
13362 # Whether or not to add -lc for building shared libraries.
13363 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13364
13365 # Whether or not to disallow shared libs when runtime libs are static
13366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13367
13368 # Whether or not to optimize for fast installation.
13369 fast_install=$enable_fast_install
13370
13371 # The host system.
13372 host_alias=$host_alias
13373 host=$host
13374 host_os=$host_os
13375
13376 # The build system.
13377 build_alias=$build_alias
13378 build=$build
13379 build_os=$build_os
13380
13381 # An echo program that does not interpret backslashes.
13382 echo=$lt_echo
13383
13384 # The archiver.
13385 AR=$lt_AR
13386 AR_FLAGS=$lt_AR_FLAGS
13387
13388 # A C compiler.
13389 LTCC=$lt_LTCC
13390
13391 # LTCC compiler flags.
13392 LTCFLAGS=$lt_LTCFLAGS
13393
13394 # A language-specific compiler.
13395 CC=$lt_compiler_CXX
13396
13397 # Is the compiler the GNU C compiler?
13398 with_gcc=$GCC_CXX
13399
13400 # An ERE matcher.
13401 EGREP=$lt_EGREP
13402
13403 # The linker used to build libraries.
13404 LD=$lt_LD_CXX
13405
13406 # Whether we need hard or soft links.
13407 LN_S=$lt_LN_S
13408
13409 # A BSD-compatible nm program.
13410 NM=$lt_NM
13411
13412 # A symbol stripping program
13413 STRIP=$lt_STRIP
13414
13415 # Used to examine libraries when file_magic_cmd begins "file"
13416 MAGIC_CMD=$MAGIC_CMD
13417
13418 # Used on cygwin: DLL creation program.
13419 DLLTOOL="$DLLTOOL"
13420
13421 # Used on cygwin: object dumper.
13422 OBJDUMP="$OBJDUMP"
13423
13424 # Used on cygwin: assembler.
13425 AS="$AS"
13426
13427 # The name of the directory that contains temporary libtool files.
13428 objdir=$objdir
13429
13430 # How to create reloadable object files.
13431 reload_flag=$lt_reload_flag
13432 reload_cmds=$lt_reload_cmds
13433
13434 # How to pass a linker flag through the compiler.
13435 wl=$lt_lt_prog_compiler_wl_CXX
13436
13437 # Object file suffix (normally "o").
13438 objext="$ac_objext"
13439
13440 # Old archive suffix (normally "a").
13441 libext="$libext"
13442
13443 # Shared library suffix (normally ".so").
13444 shrext_cmds='$shrext_cmds'
13445
13446 # Executable file suffix (normally "").
13447 exeext="$exeext"
13448
13449 # Additional compiler flags for building library objects.
13450 pic_flag=$lt_lt_prog_compiler_pic_CXX
13451 pic_mode=$pic_mode
13452
13453 # What is the maximum length of a command?
13454 max_cmd_len=$lt_cv_sys_max_cmd_len
13455
13456 # Does compiler simultaneously support -c and -o options?
13457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13458
13459 # Must we lock files when doing compilation?
13460 need_locks=$lt_need_locks
13461
13462 # Do we need the lib prefix for modules?
13463 need_lib_prefix=$need_lib_prefix
13464
13465 # Do we need a version for libraries?
13466 need_version=$need_version
13467
13468 # Whether dlopen is supported.
13469 dlopen_support=$enable_dlopen
13470
13471 # Whether dlopen of programs is supported.
13472 dlopen_self=$enable_dlopen_self
13473
13474 # Whether dlopen of statically linked programs is supported.
13475 dlopen_self_static=$enable_dlopen_self_static
13476
13477 # Compiler flag to prevent dynamic linking.
13478 link_static_flag=$lt_lt_prog_compiler_static_CXX
13479
13480 # Compiler flag to turn off builtin functions.
13481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13482
13483 # Compiler flag to allow reflexive dlopens.
13484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13485
13486 # Compiler flag to generate shared objects directly from archives.
13487 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13488
13489 # Compiler flag to generate thread-safe objects.
13490 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13491
13492 # Library versioning type.
13493 version_type=$version_type
13494
13495 # Format of library name prefix.
13496 libname_spec=$lt_libname_spec
13497
13498 # List of archive names. First name is the real one, the rest are links.
13499 # The last name is the one that the linker finds with -lNAME.
13500 library_names_spec=$lt_library_names_spec
13501
13502 # The coded name of the library, if different from the real name.
13503 soname_spec=$lt_soname_spec
13504
13505 # Commands used to build and install an old-style archive.
13506 RANLIB=$lt_RANLIB
13507 old_archive_cmds=$lt_old_archive_cmds_CXX
13508 old_postinstall_cmds=$lt_old_postinstall_cmds
13509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13510
13511 # Create an old-style archive from a shared archive.
13512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13513
13514 # Create a temporary old-style archive to link instead of a shared archive.
13515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13516
13517 # Commands used to build and install a shared archive.
13518 archive_cmds=$lt_archive_cmds_CXX
13519 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13520 postinstall_cmds=$lt_postinstall_cmds
13521 postuninstall_cmds=$lt_postuninstall_cmds
13522
13523 # Commands used to build a loadable module (assumed same as above if empty)
13524 module_cmds=$lt_module_cmds_CXX
13525 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13526
13527 # Commands to strip libraries.
13528 old_striplib=$lt_old_striplib
13529 striplib=$lt_striplib
13530
13531 # Dependencies to place before the objects being linked to create a
13532 # shared library.
13533 predep_objects=$lt_predep_objects_CXX
13534
13535 # Dependencies to place after the objects being linked to create a
13536 # shared library.
13537 postdep_objects=$lt_postdep_objects_CXX
13538
13539 # Dependencies to place before the objects being linked to create a
13540 # shared library.
13541 predeps=$lt_predeps_CXX
13542
13543 # Dependencies to place after the objects being linked to create a
13544 # shared library.
13545 postdeps=$lt_postdeps_CXX
13546
13547 # The library search path used internally by the compiler when linking
13548 # a shared library.
13549 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13550
13551 # Method to check whether dependent libraries are shared objects.
13552 deplibs_check_method=$lt_deplibs_check_method
13553
13554 # Command to use when deplibs_check_method == file_magic.
13555 file_magic_cmd=$lt_file_magic_cmd
13556
13557 # Flag that allows shared libraries with undefined symbols to be built.
13558 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13559
13560 # Flag that forces no undefined symbols.
13561 no_undefined_flag=$lt_no_undefined_flag_CXX
13562
13563 # Commands used to finish a libtool library installation in a directory.
13564 finish_cmds=$lt_finish_cmds
13565
13566 # Same as above, but a single script fragment to be evaled but not shown.
13567 finish_eval=$lt_finish_eval
13568
13569 # Take the output of nm and produce a listing of raw symbols and C names.
13570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13571
13572 # Transform the output of nm in a proper C declaration
13573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13574
13575 # Transform the output of nm in a C name address pair
13576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13577
13578 # This is the shared library runtime path variable.
13579 runpath_var=$runpath_var
13580
13581 # This is the shared library path variable.
13582 shlibpath_var=$shlibpath_var
13583
13584 # Is shlibpath searched before the hard-coded library search path?
13585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13586
13587 # How to hardcode a shared library path into an executable.
13588 hardcode_action=$hardcode_action_CXX
13589
13590 # Whether we should hardcode library paths into libraries.
13591 hardcode_into_libs=$hardcode_into_libs
13592
13593 # Flag to hardcode \$libdir into a binary during linking.
13594 # This must work even if \$libdir does not exist.
13595 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13596
13597 # If ld is used when linking, flag to hardcode \$libdir into
13598 # a binary during linking. This must work even if \$libdir does
13599 # not exist.
13600 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13601
13602 # Whether we need a single -rpath flag with a separated argument.
13603 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13604
13605 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13606 # resulting binary.
13607 hardcode_direct=$hardcode_direct_CXX
13608
13609 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13610 # resulting binary.
13611 hardcode_minus_L=$hardcode_minus_L_CXX
13612
13613 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13614 # the resulting binary.
13615 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13616
13617 # Set to yes if building a shared library automatically hardcodes DIR into the library
13618 # and all subsequent libraries and executables linked against it.
13619 hardcode_automatic=$hardcode_automatic_CXX
13620
13621 # Variables whose values should be saved in libtool wrapper scripts and
13622 # restored at relink time.
13623 variables_saved_for_relink="$variables_saved_for_relink"
13624
13625 # Whether libtool must link a program against all its dependency libraries.
13626 link_all_deplibs=$link_all_deplibs_CXX
13627
13628 # Compile-time system search path for libraries
13629 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13630
13631 # Run-time system search path for libraries
13632 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13633
13634 # Fix the shell variable \$srcfile for the compiler.
13635 fix_srcfile_path=$lt_fix_srcfile_path
13636
13637 # Set to yes if exported symbols are required.
13638 always_export_symbols=$always_export_symbols_CXX
13639
13640 # The commands to list exported symbols.
13641 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13642
13643 # The commands to extract the exported symbol list from a shared archive.
13644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13645
13646 # Symbols that should not be listed in the preloaded symbols.
13647 exclude_expsyms=$lt_exclude_expsyms_CXX
13648
13649 # Symbols that must always be exported.
13650 include_expsyms=$lt_include_expsyms_CXX
13651
13652 # ### END LIBTOOL TAG CONFIG: $tagname
13653
13654 __EOF__
13655
13656
13657 else
13658 # If there is no Makefile yet, we rely on a make rule to execute
13659 # `config.status --recheck' to rerun these tests and create the
13660 # libtool script then.
13661 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13662 if test -f "$ltmain_in"; then
13663 test -f Makefile && make "$ltmain"
13664 fi
13665 fi
13666
13667
13668 ac_ext=c
13669 ac_cpp='$CPP $CPPFLAGS'
13670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13673
13674 CC=$lt_save_CC
13675 LDCXX=$LD
13676 LD=$lt_save_LD
13677 GCC=$lt_save_GCC
13678 with_gnu_ldcxx=$with_gnu_ld
13679 with_gnu_ld=$lt_save_with_gnu_ld
13680 lt_cv_path_LDCXX=$lt_cv_path_LD
13681 lt_cv_path_LD=$lt_save_path_LD
13682 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13683 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13684
13685 else
13686 tagname=""
13687 fi
13688 ;;
13689
13690 F77)
13691 if test -n "$F77" && test "X$F77" != "Xno"; then
13692
13693 ac_ext=f
13694 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13695 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13697
13698
13699 archive_cmds_need_lc_F77=no
13700 allow_undefined_flag_F77=
13701 always_export_symbols_F77=no
13702 archive_expsym_cmds_F77=
13703 export_dynamic_flag_spec_F77=
13704 hardcode_direct_F77=no
13705 hardcode_libdir_flag_spec_F77=
13706 hardcode_libdir_flag_spec_ld_F77=
13707 hardcode_libdir_separator_F77=
13708 hardcode_minus_L_F77=no
13709 hardcode_automatic_F77=no
13710 module_cmds_F77=
13711 module_expsym_cmds_F77=
13712 link_all_deplibs_F77=unknown
13713 old_archive_cmds_F77=$old_archive_cmds
13714 no_undefined_flag_F77=
13715 whole_archive_flag_spec_F77=
13716 enable_shared_with_static_runtimes_F77=no
13717
13718 # Source file extension for f77 test sources.
13719 ac_ext=f
13720
13721 # Object file extension for compiled f77 test sources.
13722 objext=o
13723 objext_F77=$objext
13724
13725 # Code to be used in simple compile tests
13726 lt_simple_compile_test_code="\
13727 subroutine t
13728 return
13729 end
13730 "
13731
13732 # Code to be used in simple link tests
13733 lt_simple_link_test_code="\
13734 program t
13735 end
13736 "
13737
13738 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13739
13740 # If no C compiler was specified, use CC.
13741 LTCC=${LTCC-"$CC"}
13742
13743 # If no C compiler flags were specified, use CFLAGS.
13744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13745
13746 # Allow CC to be a program name with arguments.
13747 compiler=$CC
13748
13749
13750 # save warnings/boilerplate of simple test code
13751 ac_outfile=conftest.$ac_objext
13752 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13753 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13754 _lt_compiler_boilerplate=`cat conftest.err`
13755 $rm conftest*
13756
13757 ac_outfile=conftest.$ac_objext
13758 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13759 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13760 _lt_linker_boilerplate=`cat conftest.err`
13761 $rm conftest*
13762
13763
13764 # Allow CC to be a program name with arguments.
13765 lt_save_CC="$CC"
13766 CC=${F77-"f77"}
13767 compiler=$CC
13768 compiler_F77=$CC
13769 for cc_temp in $compiler""; do
13770 case $cc_temp in
13771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13773 \-*) ;;
13774 *) break;;
13775 esac
13776 done
13777 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13778
13779
13780 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13781 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13782 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13783 echo "${ECHO_T}$can_build_shared" >&6; }
13784
13785 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13786 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13787 test "$can_build_shared" = "no" && enable_shared=no
13788
13789 # On AIX, shared libraries and static libraries use the same namespace, and
13790 # are all built from PIC.
13791 case $host_os in
13792 aix3*)
13793 test "$enable_shared" = yes && enable_static=no
13794 if test -n "$RANLIB"; then
13795 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13796 postinstall_cmds='$RANLIB $lib'
13797 fi
13798 ;;
13799 aix4* | aix5*)
13800 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13801 test "$enable_shared" = yes && enable_static=no
13802 fi
13803 ;;
13804 esac
13805 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13806 echo "${ECHO_T}$enable_shared" >&6; }
13807
13808 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13809 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13810 # Make sure either enable_shared or enable_static is yes.
13811 test "$enable_shared" = yes || enable_static=yes
13812 { echo "$as_me:$LINENO: result: $enable_static" >&5
13813 echo "${ECHO_T}$enable_static" >&6; }
13814
13815 GCC_F77="$G77"
13816 LD_F77="$LD"
13817
13818 lt_prog_compiler_wl_F77=
13819 lt_prog_compiler_pic_F77=
13820 lt_prog_compiler_static_F77=
13821
13822 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13823 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13824
13825 if test "$GCC" = yes; then
13826 lt_prog_compiler_wl_F77='-Wl,'
13827 lt_prog_compiler_static_F77='-static'
13828
13829 case $host_os in
13830 aix*)
13831 # All AIX code is PIC.
13832 if test "$host_cpu" = ia64; then
13833 # AIX 5 now supports IA64 processor
13834 lt_prog_compiler_static_F77='-Bstatic'
13835 fi
13836 ;;
13837
13838 amigaos*)
13839 # FIXME: we need at least 68020 code to build shared libraries, but
13840 # adding the `-m68020' flag to GCC prevents building anything better,
13841 # like `-m68040'.
13842 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13843 ;;
13844
13845 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13846 # PIC is the default for these OSes.
13847 ;;
13848
13849 mingw* | cygwin* | pw32* | os2*)
13850 # This hack is so that the source file can tell whether it is being
13851 # built for inclusion in a dll (and should export symbols for example).
13852 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13853 # (--disable-auto-import) libraries
13854 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13855 ;;
13856
13857 darwin* | rhapsody*)
13858 # PIC is the default on this platform
13859 # Common symbols not allowed in MH_DYLIB files
13860 lt_prog_compiler_pic_F77='-fno-common'
13861 ;;
13862
13863 interix[3-9]*)
13864 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13865 # Instead, we relocate shared libraries at runtime.
13866 ;;
13867
13868 msdosdjgpp*)
13869 # Just because we use GCC doesn't mean we suddenly get shared libraries
13870 # on systems that don't support them.
13871 lt_prog_compiler_can_build_shared_F77=no
13872 enable_shared=no
13873 ;;
13874
13875 sysv4*MP*)
13876 if test -d /usr/nec; then
13877 lt_prog_compiler_pic_F77=-Kconform_pic
13878 fi
13879 ;;
13880
13881 hpux*)
13882 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13883 # not for PA HP-UX.
13884 case $host_cpu in
13885 hppa*64*|ia64*)
13886 # +Z the default
13887 ;;
13888 *)
13889 lt_prog_compiler_pic_F77='-fPIC'
13890 ;;
13891 esac
13892 ;;
13893
13894 *)
13895 lt_prog_compiler_pic_F77='-fPIC'
13896 ;;
13897 esac
13898 else
13899 # PORTME Check for flag to pass linker flags through the system compiler.
13900 case $host_os in
13901 aix*)
13902 lt_prog_compiler_wl_F77='-Wl,'
13903 if test "$host_cpu" = ia64; then
13904 # AIX 5 now supports IA64 processor
13905 lt_prog_compiler_static_F77='-Bstatic'
13906 else
13907 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13908 fi
13909 ;;
13910 darwin*)
13911 # PIC is the default on this platform
13912 # Common symbols not allowed in MH_DYLIB files
13913 case $cc_basename in
13914 xlc*)
13915 lt_prog_compiler_pic_F77='-qnocommon'
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 ;;
13918 esac
13919 ;;
13920
13921 mingw* | cygwin* | pw32* | os2*)
13922 # This hack is so that the source file can tell whether it is being
13923 # built for inclusion in a dll (and should export symbols for example).
13924 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13925 ;;
13926
13927 hpux9* | hpux10* | hpux11*)
13928 lt_prog_compiler_wl_F77='-Wl,'
13929 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13930 # not for PA HP-UX.
13931 case $host_cpu in
13932 hppa*64*|ia64*)
13933 # +Z the default
13934 ;;
13935 *)
13936 lt_prog_compiler_pic_F77='+Z'
13937 ;;
13938 esac
13939 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13940 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13941 ;;
13942
13943 irix5* | irix6* | nonstopux*)
13944 lt_prog_compiler_wl_F77='-Wl,'
13945 # PIC (with -KPIC) is the default.
13946 lt_prog_compiler_static_F77='-non_shared'
13947 ;;
13948
13949 newsos6)
13950 lt_prog_compiler_pic_F77='-KPIC'
13951 lt_prog_compiler_static_F77='-Bstatic'
13952 ;;
13953
13954 linux* | k*bsd*-gnu)
13955 case $cc_basename in
13956 icc* | ecc*)
13957 lt_prog_compiler_wl_F77='-Wl,'
13958 lt_prog_compiler_pic_F77='-KPIC'
13959 lt_prog_compiler_static_F77='-static'
13960 ;;
13961 pgcc* | pgf77* | pgf90* | pgf95*)
13962 # Portland Group compilers (*not* the Pentium gcc compiler,
13963 # which looks to be a dead project)
13964 lt_prog_compiler_wl_F77='-Wl,'
13965 lt_prog_compiler_pic_F77='-fpic'
13966 lt_prog_compiler_static_F77='-Bstatic'
13967 ;;
13968 ccc*)
13969 lt_prog_compiler_wl_F77='-Wl,'
13970 # All Alpha code is PIC.
13971 lt_prog_compiler_static_F77='-non_shared'
13972 ;;
13973 *)
13974 case `$CC -V 2>&1 | sed 5q` in
13975 *Sun\ C*)
13976 # Sun C 5.9
13977 lt_prog_compiler_pic_F77='-KPIC'
13978 lt_prog_compiler_static_F77='-Bstatic'
13979 lt_prog_compiler_wl_F77='-Wl,'
13980 ;;
13981 *Sun\ F*)
13982 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13983 lt_prog_compiler_pic_F77='-KPIC'
13984 lt_prog_compiler_static_F77='-Bstatic'
13985 lt_prog_compiler_wl_F77=''
13986 ;;
13987 esac
13988 ;;
13989 esac
13990 ;;
13991
13992 osf3* | osf4* | osf5*)
13993 lt_prog_compiler_wl_F77='-Wl,'
13994 # All OSF/1 code is PIC.
13995 lt_prog_compiler_static_F77='-non_shared'
13996 ;;
13997
13998 rdos*)
13999 lt_prog_compiler_static_F77='-non_shared'
14000 ;;
14001
14002 solaris*)
14003 lt_prog_compiler_pic_F77='-KPIC'
14004 lt_prog_compiler_static_F77='-Bstatic'
14005 case $cc_basename in
14006 f77* | f90* | f95*)
14007 lt_prog_compiler_wl_F77='-Qoption ld ';;
14008 *)
14009 lt_prog_compiler_wl_F77='-Wl,';;
14010 esac
14011 ;;
14012
14013 sunos4*)
14014 lt_prog_compiler_wl_F77='-Qoption ld '
14015 lt_prog_compiler_pic_F77='-PIC'
14016 lt_prog_compiler_static_F77='-Bstatic'
14017 ;;
14018
14019 sysv4 | sysv4.2uw2* | sysv4.3*)
14020 lt_prog_compiler_wl_F77='-Wl,'
14021 lt_prog_compiler_pic_F77='-KPIC'
14022 lt_prog_compiler_static_F77='-Bstatic'
14023 ;;
14024
14025 sysv4*MP*)
14026 if test -d /usr/nec ;then
14027 lt_prog_compiler_pic_F77='-Kconform_pic'
14028 lt_prog_compiler_static_F77='-Bstatic'
14029 fi
14030 ;;
14031
14032 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14033 lt_prog_compiler_wl_F77='-Wl,'
14034 lt_prog_compiler_pic_F77='-KPIC'
14035 lt_prog_compiler_static_F77='-Bstatic'
14036 ;;
14037
14038 unicos*)
14039 lt_prog_compiler_wl_F77='-Wl,'
14040 lt_prog_compiler_can_build_shared_F77=no
14041 ;;
14042
14043 uts4*)
14044 lt_prog_compiler_pic_F77='-pic'
14045 lt_prog_compiler_static_F77='-Bstatic'
14046 ;;
14047
14048 *)
14049 lt_prog_compiler_can_build_shared_F77=no
14050 ;;
14051 esac
14052 fi
14053
14054 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14055 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14056
14057 #
14058 # Check to make sure the PIC flag actually works.
14059 #
14060 if test -n "$lt_prog_compiler_pic_F77"; then
14061
14062 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14063 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14064 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 lt_prog_compiler_pic_works_F77=no
14068 ac_outfile=conftest.$ac_objext
14069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14070 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14071 # Insert the option either (1) after the last *FLAGS variable, or
14072 # (2) before a word containing "conftest.", or (3) at the end.
14073 # Note that $ac_compile itself does not contain backslashes and begins
14074 # with a dollar sign (not a hyphen), so the echo should work correctly.
14075 # The option is referenced via a variable to avoid confusing sed.
14076 lt_compile=`echo "$ac_compile" | $SED \
14077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14079 -e 's:$: $lt_compiler_flag:'`
14080 (eval echo "\"\$as_me:14080: $lt_compile\"" >&5)
14081 (eval "$lt_compile" 2>conftest.err)
14082 ac_status=$?
14083 cat conftest.err >&5
14084 echo "$as_me:14084: \$? = $ac_status" >&5
14085 if (exit $ac_status) && test -s "$ac_outfile"; then
14086 # The compiler can only warn and ignore the option if not recognized
14087 # So say no if there are warnings other than the usual output.
14088 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14091 lt_prog_compiler_pic_works_F77=yes
14092 fi
14093 fi
14094 $rm conftest*
14095
14096 fi
14097 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14098 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14099
14100 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14101 case $lt_prog_compiler_pic_F77 in
14102 "" | " "*) ;;
14103 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14104 esac
14105 else
14106 lt_prog_compiler_pic_F77=
14107 lt_prog_compiler_can_build_shared_F77=no
14108 fi
14109
14110 fi
14111 case $host_os in
14112 # For platforms which do not support PIC, -DPIC is meaningless:
14113 *djgpp*)
14114 lt_prog_compiler_pic_F77=
14115 ;;
14116 *)
14117 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14118 ;;
14119 esac
14120
14121 #
14122 # Check to make sure the static flag actually works.
14123 #
14124 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14125 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14126 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14127 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130 lt_prog_compiler_static_works_F77=no
14131 save_LDFLAGS="$LDFLAGS"
14132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14135 # The linker can only warn and ignore the option if not recognized
14136 # So say no if there are warnings
14137 if test -s conftest.err; then
14138 # Append any errors to the config.log.
14139 cat conftest.err 1>&5
14140 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14142 if diff conftest.exp conftest.er2 >/dev/null; then
14143 lt_prog_compiler_static_works_F77=yes
14144 fi
14145 else
14146 lt_prog_compiler_static_works_F77=yes
14147 fi
14148 fi
14149 $rm conftest*
14150 LDFLAGS="$save_LDFLAGS"
14151
14152 fi
14153 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14154 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14155
14156 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14157 :
14158 else
14159 lt_prog_compiler_static_F77=
14160 fi
14161
14162
14163 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14164 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14165 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168 lt_cv_prog_compiler_c_o_F77=no
14169 $rm -r conftest 2>/dev/null
14170 mkdir conftest
14171 cd conftest
14172 mkdir out
14173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14174
14175 lt_compiler_flag="-o out/conftest2.$ac_objext"
14176 # Insert the option either (1) after the last *FLAGS variable, or
14177 # (2) before a word containing "conftest.", or (3) at the end.
14178 # Note that $ac_compile itself does not contain backslashes and begins
14179 # with a dollar sign (not a hyphen), so the echo should work correctly.
14180 lt_compile=`echo "$ac_compile" | $SED \
14181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14183 -e 's:$: $lt_compiler_flag:'`
14184 (eval echo "\"\$as_me:14184: $lt_compile\"" >&5)
14185 (eval "$lt_compile" 2>out/conftest.err)
14186 ac_status=$?
14187 cat out/conftest.err >&5
14188 echo "$as_me:14188: \$? = $ac_status" >&5
14189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14190 then
14191 # The compiler can only warn and ignore the option if not recognized
14192 # So say no if there are warnings
14193 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14196 lt_cv_prog_compiler_c_o_F77=yes
14197 fi
14198 fi
14199 chmod u+w . 2>&5
14200 $rm conftest*
14201 # SGI C++ compiler will create directory out/ii_files/ for
14202 # template instantiation
14203 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14204 $rm out/* && rmdir out
14205 cd ..
14206 rmdir conftest
14207 $rm conftest*
14208
14209 fi
14210 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14211 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14212
14213
14214 hard_links="nottested"
14215 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14216 # do not overwrite the value of need_locks provided by the user
14217 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14218 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14219 hard_links=yes
14220 $rm conftest*
14221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14222 touch conftest.a
14223 ln conftest.a conftest.b 2>&5 || hard_links=no
14224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14225 { echo "$as_me:$LINENO: result: $hard_links" >&5
14226 echo "${ECHO_T}$hard_links" >&6; }
14227 if test "$hard_links" = no; then
14228 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14229 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14230 need_locks=warn
14231 fi
14232 else
14233 need_locks=no
14234 fi
14235
14236 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14237 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14238
14239 runpath_var=
14240 allow_undefined_flag_F77=
14241 enable_shared_with_static_runtimes_F77=no
14242 archive_cmds_F77=
14243 archive_expsym_cmds_F77=
14244 old_archive_From_new_cmds_F77=
14245 old_archive_from_expsyms_cmds_F77=
14246 export_dynamic_flag_spec_F77=
14247 whole_archive_flag_spec_F77=
14248 thread_safe_flag_spec_F77=
14249 hardcode_libdir_flag_spec_F77=
14250 hardcode_libdir_flag_spec_ld_F77=
14251 hardcode_libdir_separator_F77=
14252 hardcode_direct_F77=no
14253 hardcode_minus_L_F77=no
14254 hardcode_shlibpath_var_F77=unsupported
14255 link_all_deplibs_F77=unknown
14256 hardcode_automatic_F77=no
14257 module_cmds_F77=
14258 module_expsym_cmds_F77=
14259 always_export_symbols_F77=no
14260 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14261 # include_expsyms should be a list of space-separated symbols to be *always*
14262 # included in the symbol list
14263 include_expsyms_F77=
14264 # exclude_expsyms can be an extended regexp of symbols to exclude
14265 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14266 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14267 # as well as any symbol that contains `d'.
14268 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14269 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14270 # platforms (ab)use it in PIC code, but their linkers get confused if
14271 # the symbol is explicitly referenced. Since portable code cannot
14272 # rely on this symbol name, it's probably fine to never include it in
14273 # preloaded symbol tables.
14274 extract_expsyms_cmds=
14275 # Just being paranoid about ensuring that cc_basename is set.
14276 for cc_temp in $compiler""; do
14277 case $cc_temp in
14278 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14279 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14280 \-*) ;;
14281 *) break;;
14282 esac
14283 done
14284 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14285
14286 case $host_os in
14287 cygwin* | mingw* | pw32*)
14288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14289 # When not using gcc, we currently assume that we are using
14290 # Microsoft Visual C++.
14291 if test "$GCC" != yes; then
14292 with_gnu_ld=no
14293 fi
14294 ;;
14295 interix*)
14296 # we just hope/assume this is gcc and not c89 (= MSVC++)
14297 with_gnu_ld=yes
14298 ;;
14299 openbsd*)
14300 with_gnu_ld=no
14301 ;;
14302 esac
14303
14304 ld_shlibs_F77=yes
14305 if test "$with_gnu_ld" = yes; then
14306 # If archive_cmds runs LD, not CC, wlarc should be empty
14307 wlarc='${wl}'
14308
14309 # Set some defaults for GNU ld with shared library support. These
14310 # are reset later if shared libraries are not supported. Putting them
14311 # here allows them to be overridden if necessary.
14312 runpath_var=LD_RUN_PATH
14313 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14314 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14315 # ancient GNU ld didn't support --whole-archive et. al.
14316 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14317 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14318 else
14319 whole_archive_flag_spec_F77=
14320 fi
14321 supports_anon_versioning=no
14322 case `$LD -v 2>/dev/null` in
14323 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14324 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14325 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14326 *\ 2.11.*) ;; # other 2.11 versions
14327 *) supports_anon_versioning=yes ;;
14328 esac
14329
14330 # See if GNU ld supports shared libraries.
14331 case $host_os in
14332 aix3* | aix4* | aix5*)
14333 # On AIX/PPC, the GNU linker is very broken
14334 if test "$host_cpu" != ia64; then
14335 ld_shlibs_F77=no
14336 cat <<EOF 1>&2
14337
14338 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14339 *** to be unable to reliably create shared libraries on AIX.
14340 *** Therefore, libtool is disabling shared libraries support. If you
14341 *** really care for shared libraries, you may want to modify your PATH
14342 *** so that a non-GNU linker is found, and then restart.
14343
14344 EOF
14345 fi
14346 ;;
14347
14348 amigaos*)
14349 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)'
14350 hardcode_libdir_flag_spec_F77='-L$libdir'
14351 hardcode_minus_L_F77=yes
14352
14353 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14354 # that the semantics of dynamic libraries on AmigaOS, at least up
14355 # to version 4, is to share data among multiple programs linked
14356 # with the same dynamic library. Since this doesn't match the
14357 # behavior of shared libraries on other platforms, we can't use
14358 # them.
14359 ld_shlibs_F77=no
14360 ;;
14361
14362 beos*)
14363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14364 allow_undefined_flag_F77=unsupported
14365 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14366 # support --undefined. This deserves some investigation. FIXME
14367 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14368 else
14369 ld_shlibs_F77=no
14370 fi
14371 ;;
14372
14373 cygwin* | mingw* | pw32*)
14374 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14375 # as there is no search path for DLLs.
14376 hardcode_libdir_flag_spec_F77='-L$libdir'
14377 allow_undefined_flag_F77=unsupported
14378 always_export_symbols_F77=no
14379 enable_shared_with_static_runtimes_F77=yes
14380 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14381
14382 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14383 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14384 # If the export-symbols file already is a .def file (1st line
14385 # is EXPORTS), use it as is; otherwise, prepend...
14386 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14387 cp $export_symbols $output_objdir/$soname.def;
14388 else
14389 echo EXPORTS > $output_objdir/$soname.def;
14390 cat $export_symbols >> $output_objdir/$soname.def;
14391 fi~
14392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14393 else
14394 ld_shlibs_F77=no
14395 fi
14396 ;;
14397
14398 interix[3-9]*)
14399 hardcode_direct_F77=no
14400 hardcode_shlibpath_var_F77=no
14401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14402 export_dynamic_flag_spec_F77='${wl}-E'
14403 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14404 # Instead, shared libraries are loaded at an image base (0x10000000 by
14405 # default) and relocated if they conflict, which is a slow very memory
14406 # consuming and fragmenting process. To avoid this, we pick a random,
14407 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14408 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14409 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'
14410 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'
14411 ;;
14412
14413 gnu* | linux* | k*bsd*-gnu)
14414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14415 tmp_addflag=
14416 case $cc_basename,$host_cpu in
14417 pgcc*) # Portland Group C compiler
14418 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'
14419 tmp_addflag=' $pic_flag'
14420 ;;
14421 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14422 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'
14423 tmp_addflag=' $pic_flag -Mnomain' ;;
14424 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14425 tmp_addflag=' -i_dynamic' ;;
14426 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14427 tmp_addflag=' -i_dynamic -nofor_main' ;;
14428 ifc* | ifort*) # Intel Fortran compiler
14429 tmp_addflag=' -nofor_main' ;;
14430 esac
14431 case `$CC -V 2>&1 | sed 5q` in
14432 *Sun\ C*) # Sun C 5.9
14433 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14434 tmp_sharedflag='-G' ;;
14435 *Sun\ F*) # Sun Fortran 8.3
14436 tmp_sharedflag='-G' ;;
14437 *)
14438 tmp_sharedflag='-shared' ;;
14439 esac
14440 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14441
14442 if test $supports_anon_versioning = yes; then
14443 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14445 $echo "local: *; };" >> $output_objdir/$libname.ver~
14446 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14447 fi
14448 else
14449 ld_shlibs_F77=no
14450 fi
14451 ;;
14452
14453 netbsd*)
14454 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14455 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14456 wlarc=
14457 else
14458 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14460 fi
14461 ;;
14462
14463 solaris*)
14464 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14465 ld_shlibs_F77=no
14466 cat <<EOF 1>&2
14467
14468 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14469 *** create shared libraries on Solaris systems. Therefore, libtool
14470 *** is disabling shared libraries support. We urge you to upgrade GNU
14471 *** binutils to release 2.9.1 or newer. Another option is to modify
14472 *** your PATH or compiler configuration so that the native linker is
14473 *** used, and then restart.
14474
14475 EOF
14476 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14477 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14478 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14479 else
14480 ld_shlibs_F77=no
14481 fi
14482 ;;
14483
14484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14485 case `$LD -v 2>&1` in
14486 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14487 ld_shlibs_F77=no
14488 cat <<_LT_EOF 1>&2
14489
14490 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14491 *** reliably create shared libraries on SCO systems. Therefore, libtool
14492 *** is disabling shared libraries support. We urge you to upgrade GNU
14493 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14494 *** your PATH or compiler configuration so that the native linker is
14495 *** used, and then restart.
14496
14497 _LT_EOF
14498 ;;
14499 *)
14500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14501 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14502 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14503 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14504 else
14505 ld_shlibs_F77=no
14506 fi
14507 ;;
14508 esac
14509 ;;
14510
14511 sunos4*)
14512 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14513 wlarc=
14514 hardcode_direct_F77=yes
14515 hardcode_shlibpath_var_F77=no
14516 ;;
14517
14518 *)
14519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14520 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14521 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14522 else
14523 ld_shlibs_F77=no
14524 fi
14525 ;;
14526 esac
14527
14528 if test "$ld_shlibs_F77" = no; then
14529 runpath_var=
14530 hardcode_libdir_flag_spec_F77=
14531 export_dynamic_flag_spec_F77=
14532 whole_archive_flag_spec_F77=
14533 fi
14534 else
14535 # PORTME fill in a description of your system's linker (not GNU ld)
14536 case $host_os in
14537 aix3*)
14538 allow_undefined_flag_F77=unsupported
14539 always_export_symbols_F77=yes
14540 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'
14541 # Note: this linker hardcodes the directories in LIBPATH if there
14542 # are no directories specified by -L.
14543 hardcode_minus_L_F77=yes
14544 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14545 # Neither direct hardcoding nor static linking is supported with a
14546 # broken collect2.
14547 hardcode_direct_F77=unsupported
14548 fi
14549 ;;
14550
14551 aix4* | aix5*)
14552 if test "$host_cpu" = ia64; then
14553 # On IA64, the linker does run time linking by default, so we don't
14554 # have to do anything special.
14555 aix_use_runtimelinking=no
14556 exp_sym_flag='-Bexport'
14557 no_entry_flag=""
14558 else
14559 # If we're using GNU nm, then we don't want the "-C" option.
14560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14561 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14562 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'
14563 else
14564 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'
14565 fi
14566 aix_use_runtimelinking=no
14567
14568 # Test if we are trying to use run time linking or normal
14569 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14570 # need to do runtime linking.
14571 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14572 for ld_flag in $LDFLAGS; do
14573 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14574 aix_use_runtimelinking=yes
14575 break
14576 fi
14577 done
14578 ;;
14579 esac
14580
14581 exp_sym_flag='-bexport'
14582 no_entry_flag='-bnoentry'
14583 fi
14584
14585 # When large executables or shared objects are built, AIX ld can
14586 # have problems creating the table of contents. If linking a library
14587 # or program results in "error TOC overflow" add -mminimal-toc to
14588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14590
14591 archive_cmds_F77=''
14592 hardcode_direct_F77=yes
14593 hardcode_libdir_separator_F77=':'
14594 link_all_deplibs_F77=yes
14595
14596 if test "$GCC" = yes; then
14597 case $host_os in aix4.[012]|aix4.[012].*)
14598 # We only want to do this on AIX 4.2 and lower, the check
14599 # below for broken collect2 doesn't work under 4.3+
14600 collect2name=`${CC} -print-prog-name=collect2`
14601 if test -f "$collect2name" && \
14602 strings "$collect2name" | grep resolve_lib_name >/dev/null
14603 then
14604 # We have reworked collect2
14605 :
14606 else
14607 # We have old collect2
14608 hardcode_direct_F77=unsupported
14609 # It fails to find uninstalled libraries when the uninstalled
14610 # path is not listed in the libpath. Setting hardcode_minus_L
14611 # to unsupported forces relinking
14612 hardcode_minus_L_F77=yes
14613 hardcode_libdir_flag_spec_F77='-L$libdir'
14614 hardcode_libdir_separator_F77=
14615 fi
14616 ;;
14617 esac
14618 shared_flag='-shared'
14619 if test "$aix_use_runtimelinking" = yes; then
14620 shared_flag="$shared_flag "'${wl}-G'
14621 fi
14622 else
14623 # not using gcc
14624 if test "$host_cpu" = ia64; then
14625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14626 # chokes on -Wl,-G. The following line is correct:
14627 shared_flag='-G'
14628 else
14629 if test "$aix_use_runtimelinking" = yes; then
14630 shared_flag='${wl}-G'
14631 else
14632 shared_flag='${wl}-bM:SRE'
14633 fi
14634 fi
14635 fi
14636
14637 # It seems that -bexpall does not export symbols beginning with
14638 # underscore (_), so it is better to generate a list of symbols to export.
14639 always_export_symbols_F77=yes
14640 if test "$aix_use_runtimelinking" = yes; then
14641 # Warning - without using the other runtime loading flags (-brtl),
14642 # -berok will link without error, but may produce a broken library.
14643 allow_undefined_flag_F77='-berok'
14644 # Determine the default libpath from the value encoded in an empty executable.
14645 cat >conftest.$ac_ext <<_ACEOF
14646 program main
14647
14648 end
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (ac_try="$ac_link"
14652 case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_link") 2>conftest.er1
14658 ac_status=$?
14659 grep -v '^ *+' conftest.er1 >conftest.err
14660 rm -f conftest.er1
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } && {
14664 test -z "$ac_f77_werror_flag" ||
14665 test ! -s conftest.err
14666 } && test -s conftest$ac_exeext &&
14667 $as_test_x conftest$ac_exeext; then
14668
14669 lt_aix_libpath_sed='
14670 /Import File Strings/,/^$/ {
14671 /^0/ {
14672 s/^0 *\(.*\)$/\1/
14673 p
14674 }
14675 }'
14676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14677 # Check for a 64-bit object if we didn't find anything.
14678 if test -z "$aix_libpath"; then
14679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14680 fi
14681 else
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685
14686 fi
14687
14688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14689 conftest$ac_exeext conftest.$ac_ext
14690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14691
14692 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14693 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"
14694 else
14695 if test "$host_cpu" = ia64; then
14696 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14697 allow_undefined_flag_F77="-z nodefs"
14698 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"
14699 else
14700 # Determine the default libpath from the value encoded in an empty executable.
14701 cat >conftest.$ac_ext <<_ACEOF
14702 program main
14703
14704 end
14705 _ACEOF
14706 rm -f conftest.$ac_objext conftest$ac_exeext
14707 if { (ac_try="$ac_link"
14708 case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_link") 2>conftest.er1
14714 ac_status=$?
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } && {
14720 test -z "$ac_f77_werror_flag" ||
14721 test ! -s conftest.err
14722 } && test -s conftest$ac_exeext &&
14723 $as_test_x conftest$ac_exeext; then
14724
14725 lt_aix_libpath_sed='
14726 /Import File Strings/,/^$/ {
14727 /^0/ {
14728 s/^0 *\(.*\)$/\1/
14729 p
14730 }
14731 }'
14732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14733 # Check for a 64-bit object if we didn't find anything.
14734 if test -z "$aix_libpath"; then
14735 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14736 fi
14737 else
14738 echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14740
14741
14742 fi
14743
14744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14745 conftest$ac_exeext conftest.$ac_ext
14746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14747
14748 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14749 # Warning - without using the other run time loading flags,
14750 # -berok will link without error, but may produce a broken library.
14751 no_undefined_flag_F77=' ${wl}-bernotok'
14752 allow_undefined_flag_F77=' ${wl}-berok'
14753 # Exported symbols can be pulled into shared objects from archives
14754 whole_archive_flag_spec_F77='$convenience'
14755 archive_cmds_need_lc_F77=yes
14756 # This is similar to how AIX traditionally builds its shared libraries.
14757 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'
14758 fi
14759 fi
14760 ;;
14761
14762 amigaos*)
14763 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)'
14764 hardcode_libdir_flag_spec_F77='-L$libdir'
14765 hardcode_minus_L_F77=yes
14766 # see comment about different semantics on the GNU ld section
14767 ld_shlibs_F77=no
14768 ;;
14769
14770 bsdi[45]*)
14771 export_dynamic_flag_spec_F77=-rdynamic
14772 ;;
14773
14774 cygwin* | mingw* | pw32*)
14775 # When not using gcc, we currently assume that we are using
14776 # Microsoft Visual C++.
14777 # hardcode_libdir_flag_spec is actually meaningless, as there is
14778 # no search path for DLLs.
14779 hardcode_libdir_flag_spec_F77=' '
14780 allow_undefined_flag_F77=unsupported
14781 # Tell ltmain to make .lib files, not .a files.
14782 libext=lib
14783 # Tell ltmain to make .dll files, not .so files.
14784 shrext_cmds=".dll"
14785 # FIXME: Setting linknames here is a bad hack.
14786 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14787 # The linker will automatically build a .lib file if we build a DLL.
14788 old_archive_From_new_cmds_F77='true'
14789 # FIXME: Should let the user specify the lib program.
14790 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14791 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14792 enable_shared_with_static_runtimes_F77=yes
14793 ;;
14794
14795 darwin* | rhapsody*)
14796 case $host_os in
14797 rhapsody* | darwin1.[012])
14798 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14799 ;;
14800 *) # Darwin 1.3 on
14801 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14802 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14803 else
14804 case ${MACOSX_DEPLOYMENT_TARGET} in
14805 10.[012])
14806 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14807 ;;
14808 10.*)
14809 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14810 ;;
14811 esac
14812 fi
14813 ;;
14814 esac
14815 archive_cmds_need_lc_F77=no
14816 hardcode_direct_F77=no
14817 hardcode_automatic_F77=yes
14818 hardcode_shlibpath_var_F77=unsupported
14819 whole_archive_flag_spec_F77=''
14820 link_all_deplibs_F77=yes
14821 if test "$GCC" = yes ; then
14822 output_verbose_link_cmd='echo'
14823 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14824 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14826 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}'
14827 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}'
14828 else
14829 case $cc_basename in
14830 xlc*)
14831 output_verbose_link_cmd='echo'
14832 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14833 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14834 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14835 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14836 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}'
14837 ;;
14838 *)
14839 ld_shlibs_F77=no
14840 ;;
14841 esac
14842 fi
14843 ;;
14844
14845 dgux*)
14846 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14847 hardcode_libdir_flag_spec_F77='-L$libdir'
14848 hardcode_shlibpath_var_F77=no
14849 ;;
14850
14851 freebsd1*)
14852 ld_shlibs_F77=no
14853 ;;
14854
14855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14856 # support. Future versions do this automatically, but an explicit c++rt0.o
14857 # does not break anything, and helps significantly (at the cost of a little
14858 # extra space).
14859 freebsd2.2*)
14860 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14861 hardcode_libdir_flag_spec_F77='-R$libdir'
14862 hardcode_direct_F77=yes
14863 hardcode_shlibpath_var_F77=no
14864 ;;
14865
14866 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14867 freebsd2*)
14868 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14869 hardcode_direct_F77=yes
14870 hardcode_minus_L_F77=yes
14871 hardcode_shlibpath_var_F77=no
14872 ;;
14873
14874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14875 freebsd* | dragonfly*)
14876 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14877 hardcode_libdir_flag_spec_F77='-R$libdir'
14878 hardcode_direct_F77=yes
14879 hardcode_shlibpath_var_F77=no
14880 ;;
14881
14882 hpux9*)
14883 if test "$GCC" = yes; then
14884 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'
14885 else
14886 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'
14887 fi
14888 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14889 hardcode_libdir_separator_F77=:
14890 hardcode_direct_F77=yes
14891
14892 # hardcode_minus_L: Not really in the search PATH,
14893 # but as the default location of the library.
14894 hardcode_minus_L_F77=yes
14895 export_dynamic_flag_spec_F77='${wl}-E'
14896 ;;
14897
14898 hpux10*)
14899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14900 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14901 else
14902 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14903 fi
14904 if test "$with_gnu_ld" = no; then
14905 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14906 hardcode_libdir_separator_F77=:
14907
14908 hardcode_direct_F77=yes
14909 export_dynamic_flag_spec_F77='${wl}-E'
14910
14911 # hardcode_minus_L: Not really in the search PATH,
14912 # but as the default location of the library.
14913 hardcode_minus_L_F77=yes
14914 fi
14915 ;;
14916
14917 hpux11*)
14918 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14919 case $host_cpu in
14920 hppa*64*)
14921 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14922 ;;
14923 ia64*)
14924 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14925 ;;
14926 *)
14927 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14928 ;;
14929 esac
14930 else
14931 case $host_cpu in
14932 hppa*64*)
14933 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14934 ;;
14935 ia64*)
14936 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14937 ;;
14938 *)
14939 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14940 ;;
14941 esac
14942 fi
14943 if test "$with_gnu_ld" = no; then
14944 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14945 hardcode_libdir_separator_F77=:
14946
14947 case $host_cpu in
14948 hppa*64*|ia64*)
14949 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14950 hardcode_direct_F77=no
14951 hardcode_shlibpath_var_F77=no
14952 ;;
14953 *)
14954 hardcode_direct_F77=yes
14955 export_dynamic_flag_spec_F77='${wl}-E'
14956
14957 # hardcode_minus_L: Not really in the search PATH,
14958 # but as the default location of the library.
14959 hardcode_minus_L_F77=yes
14960 ;;
14961 esac
14962 fi
14963 ;;
14964
14965 irix5* | irix6* | nonstopux*)
14966 if test "$GCC" = yes; then
14967 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'
14968 else
14969 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'
14970 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14971 fi
14972 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14973 hardcode_libdir_separator_F77=:
14974 link_all_deplibs_F77=yes
14975 ;;
14976
14977 netbsd*)
14978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14979 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14980 else
14981 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14982 fi
14983 hardcode_libdir_flag_spec_F77='-R$libdir'
14984 hardcode_direct_F77=yes
14985 hardcode_shlibpath_var_F77=no
14986 ;;
14987
14988 newsos6)
14989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14990 hardcode_direct_F77=yes
14991 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14992 hardcode_libdir_separator_F77=:
14993 hardcode_shlibpath_var_F77=no
14994 ;;
14995
14996 openbsd*)
14997 if test -f /usr/libexec/ld.so; then
14998 hardcode_direct_F77=yes
14999 hardcode_shlibpath_var_F77=no
15000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15001 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15002 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15003 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15004 export_dynamic_flag_spec_F77='${wl}-E'
15005 else
15006 case $host_os in
15007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15008 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15009 hardcode_libdir_flag_spec_F77='-R$libdir'
15010 ;;
15011 *)
15012 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15013 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15014 ;;
15015 esac
15016 fi
15017 else
15018 ld_shlibs_F77=no
15019 fi
15020 ;;
15021
15022 os2*)
15023 hardcode_libdir_flag_spec_F77='-L$libdir'
15024 hardcode_minus_L_F77=yes
15025 allow_undefined_flag_F77=unsupported
15026 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'
15027 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15028 ;;
15029
15030 osf3*)
15031 if test "$GCC" = yes; then
15032 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15033 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'
15034 else
15035 allow_undefined_flag_F77=' -expect_unresolved \*'
15036 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'
15037 fi
15038 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15039 hardcode_libdir_separator_F77=:
15040 ;;
15041
15042 osf4* | osf5*) # as osf3* with the addition of -msym flag
15043 if test "$GCC" = yes; then
15044 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15045 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'
15046 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15047 else
15048 allow_undefined_flag_F77=' -expect_unresolved \*'
15049 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'
15050 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~
15051 $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'
15052
15053 # Both c and cxx compiler support -rpath directly
15054 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15055 fi
15056 hardcode_libdir_separator_F77=:
15057 ;;
15058
15059 solaris*)
15060 no_undefined_flag_F77=' -z text'
15061 if test "$GCC" = yes; then
15062 wlarc='${wl}'
15063 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15065 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15066 else
15067 wlarc=''
15068 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15069 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15070 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15071 fi
15072 hardcode_libdir_flag_spec_F77='-R$libdir'
15073 hardcode_shlibpath_var_F77=no
15074 case $host_os in
15075 solaris2.[0-5] | solaris2.[0-5].*) ;;
15076 *)
15077 # The compiler driver will combine and reorder linker options,
15078 # but understands `-z linker_flag'. GCC discards it without `$wl',
15079 # but is careful enough not to reorder.
15080 # Supported since Solaris 2.6 (maybe 2.5.1?)
15081 if test "$GCC" = yes; then
15082 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15083 else
15084 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15085 fi
15086 ;;
15087 esac
15088 link_all_deplibs_F77=yes
15089 ;;
15090
15091 sunos4*)
15092 if test "x$host_vendor" = xsequent; then
15093 # Use $CC to link under sequent, because it throws in some extra .o
15094 # files that make .init and .fini sections work.
15095 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15096 else
15097 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15098 fi
15099 hardcode_libdir_flag_spec_F77='-L$libdir'
15100 hardcode_direct_F77=yes
15101 hardcode_minus_L_F77=yes
15102 hardcode_shlibpath_var_F77=no
15103 ;;
15104
15105 sysv4)
15106 case $host_vendor in
15107 sni)
15108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109 hardcode_direct_F77=yes # is this really true???
15110 ;;
15111 siemens)
15112 ## LD is ld it makes a PLAMLIB
15113 ## CC just makes a GrossModule.
15114 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15115 reload_cmds_F77='$CC -r -o $output$reload_objs'
15116 hardcode_direct_F77=no
15117 ;;
15118 motorola)
15119 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15121 ;;
15122 esac
15123 runpath_var='LD_RUN_PATH'
15124 hardcode_shlibpath_var_F77=no
15125 ;;
15126
15127 sysv4.3*)
15128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15129 hardcode_shlibpath_var_F77=no
15130 export_dynamic_flag_spec_F77='-Bexport'
15131 ;;
15132
15133 sysv4*MP*)
15134 if test -d /usr/nec; then
15135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_shlibpath_var_F77=no
15137 runpath_var=LD_RUN_PATH
15138 hardcode_runpath_var=yes
15139 ld_shlibs_F77=yes
15140 fi
15141 ;;
15142
15143 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15144 no_undefined_flag_F77='${wl}-z,text'
15145 archive_cmds_need_lc_F77=no
15146 hardcode_shlibpath_var_F77=no
15147 runpath_var='LD_RUN_PATH'
15148
15149 if test "$GCC" = yes; then
15150 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15151 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15152 else
15153 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15154 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 fi
15156 ;;
15157
15158 sysv5* | sco3.2v5* | sco5v6*)
15159 # Note: We can NOT use -z defs as we might desire, because we do not
15160 # link with -lc, and that would cause any symbols used from libc to
15161 # always be unresolved, which means just about no library would
15162 # ever link correctly. If we're not using GNU ld we use -z text
15163 # though, which does catch some bad symbols but isn't as heavy-handed
15164 # as -z defs.
15165 no_undefined_flag_F77='${wl}-z,text'
15166 allow_undefined_flag_F77='${wl}-z,nodefs'
15167 archive_cmds_need_lc_F77=no
15168 hardcode_shlibpath_var_F77=no
15169 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15170 hardcode_libdir_separator_F77=':'
15171 link_all_deplibs_F77=yes
15172 export_dynamic_flag_spec_F77='${wl}-Bexport'
15173 runpath_var='LD_RUN_PATH'
15174
15175 if test "$GCC" = yes; then
15176 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15177 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15178 else
15179 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15180 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15181 fi
15182 ;;
15183
15184 uts4*)
15185 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15186 hardcode_libdir_flag_spec_F77='-L$libdir'
15187 hardcode_shlibpath_var_F77=no
15188 ;;
15189
15190 *)
15191 ld_shlibs_F77=no
15192 ;;
15193 esac
15194 fi
15195
15196 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15197 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15198 test "$ld_shlibs_F77" = no && can_build_shared=no
15199
15200 #
15201 # Do we need to explicitly link libc?
15202 #
15203 case "x$archive_cmds_need_lc_F77" in
15204 x|xyes)
15205 # Assume -lc should be added
15206 archive_cmds_need_lc_F77=yes
15207
15208 if test "$enable_shared" = yes && test "$GCC" = yes; then
15209 case $archive_cmds_F77 in
15210 *'~'*)
15211 # FIXME: we may have to deal with multi-command sequences.
15212 ;;
15213 '$CC '*)
15214 # Test whether the compiler implicitly links with -lc since on some
15215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15216 # to ld, don't add -lc before -lgcc.
15217 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15218 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15219 $rm conftest*
15220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15221
15222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } 2>conftest.err; then
15227 soname=conftest
15228 lib=conftest
15229 libobjs=conftest.$ac_objext
15230 deplibs=
15231 wl=$lt_prog_compiler_wl_F77
15232 pic_flag=$lt_prog_compiler_pic_F77
15233 compiler_flags=-v
15234 linker_flags=-v
15235 verstring=
15236 output_objdir=.
15237 libname=conftest
15238 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15239 allow_undefined_flag_F77=
15240 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15241 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }
15245 then
15246 archive_cmds_need_lc_F77=no
15247 else
15248 archive_cmds_need_lc_F77=yes
15249 fi
15250 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15251 else
15252 cat conftest.err 1>&5
15253 fi
15254 $rm conftest*
15255 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15256 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15257 ;;
15258 esac
15259 fi
15260 ;;
15261 esac
15262
15263 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15264 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15265 library_names_spec=
15266 libname_spec='lib$name'
15267 soname_spec=
15268 shrext_cmds=".so"
15269 postinstall_cmds=
15270 postuninstall_cmds=
15271 finish_cmds=
15272 finish_eval=
15273 shlibpath_var=
15274 shlibpath_overrides_runpath=unknown
15275 version_type=none
15276 dynamic_linker="$host_os ld.so"
15277 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15278
15279 need_lib_prefix=unknown
15280 hardcode_into_libs=no
15281
15282 # when you set need_version to no, make sure it does not cause -set_version
15283 # flags to be left without arguments
15284 need_version=unknown
15285
15286 case $host_os in
15287 aix3*)
15288 version_type=linux
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15290 shlibpath_var=LIBPATH
15291
15292 # AIX 3 has no versioning support, so we append a major version to the name.
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 ;;
15295
15296 aix4* | aix5*)
15297 version_type=linux
15298 need_lib_prefix=no
15299 need_version=no
15300 hardcode_into_libs=yes
15301 if test "$host_cpu" = ia64; then
15302 # AIX 5 supports IA64
15303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 else
15306 # With GCC up to 2.95.x, collect2 would create an import file
15307 # for dependence libraries. The import file would start with
15308 # the line `#! .'. This would cause the generated library to
15309 # depend on `.', always an invalid library. This was fixed in
15310 # development snapshots of GCC prior to 3.0.
15311 case $host_os in
15312 aix4 | aix4.[01] | aix4.[01].*)
15313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15314 echo ' yes '
15315 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15316 :
15317 else
15318 can_build_shared=no
15319 fi
15320 ;;
15321 esac
15322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15323 # soname into executable. Probably we can add versioning support to
15324 # collect2, so additional links can be useful in future.
15325 if test "$aix_use_runtimelinking" = yes; then
15326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15327 # instead of lib<name>.a to let people know that these are not
15328 # typical AIX shared libraries.
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 else
15331 # We preserve .a as extension for shared libraries through AIX4.2
15332 # and later when we are not doing run time linking.
15333 library_names_spec='${libname}${release}.a $libname.a'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 fi
15336 shlibpath_var=LIBPATH
15337 fi
15338 ;;
15339
15340 amigaos*)
15341 library_names_spec='$libname.ixlibrary $libname.a'
15342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15343 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'
15344 ;;
15345
15346 beos*)
15347 library_names_spec='${libname}${shared_ext}'
15348 dynamic_linker="$host_os ld.so"
15349 shlibpath_var=LIBRARY_PATH
15350 ;;
15351
15352 bsdi[45]*)
15353 version_type=linux
15354 need_version=no
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15356 soname_spec='${libname}${release}${shared_ext}$major'
15357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15361 # the default ld.so.conf also contains /usr/contrib/lib and
15362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15363 # libtool to hard-code these into programs
15364 ;;
15365
15366 cygwin* | mingw* | pw32*)
15367 version_type=windows
15368 shrext_cmds=".dll"
15369 need_version=no
15370 need_lib_prefix=no
15371
15372 case $GCC,$host_os in
15373 yes,cygwin* | yes,mingw* | yes,pw32*)
15374 library_names_spec='$libname.dll.a'
15375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15376 postinstall_cmds='base_file=`basename \${file}`~
15377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15378 dldir=$destdir/`dirname \$dlpath`~
15379 test -d \$dldir || mkdir -p \$dldir~
15380 $install_prog $dir/$dlname \$dldir/$dlname~
15381 chmod a+x \$dldir/$dlname'
15382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15383 dlpath=$dir/\$dldll~
15384 $rm \$dlpath'
15385 shlibpath_overrides_runpath=yes
15386
15387 case $host_os in
15388 cygwin*)
15389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15390 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15391 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15392 ;;
15393 mingw*)
15394 # MinGW DLLs use traditional 'lib' prefix
15395 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15397 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15398 # It is most probably a Windows format PATH printed by
15399 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15400 # path with ; separators, and with drive letters. We can handle the
15401 # drive letters (cygwin fileutils understands them), so leave them,
15402 # especially as we might pass files found there to a mingw objdump,
15403 # which wouldn't understand a cygwinified path. Ahh.
15404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15405 else
15406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15407 fi
15408 ;;
15409 pw32*)
15410 # pw32 DLLs use 'pw' prefix rather than 'lib'
15411 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15412 ;;
15413 esac
15414 ;;
15415
15416 *)
15417 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15418 ;;
15419 esac
15420 dynamic_linker='Win32 ld.exe'
15421 # FIXME: first we should search . and the directory the executable is in
15422 shlibpath_var=PATH
15423 ;;
15424
15425 darwin* | rhapsody*)
15426 dynamic_linker="$host_os dyld"
15427 version_type=darwin
15428 need_lib_prefix=no
15429 need_version=no
15430 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15431 soname_spec='${libname}${release}${major}$shared_ext'
15432 shlibpath_overrides_runpath=yes
15433 shlibpath_var=DYLD_LIBRARY_PATH
15434 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15435
15436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15437 ;;
15438
15439 dgux*)
15440 version_type=linux
15441 need_lib_prefix=no
15442 need_version=no
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 ;;
15447
15448 freebsd1*)
15449 dynamic_linker=no
15450 ;;
15451
15452 freebsd* | dragonfly*)
15453 # DragonFly does not have aout. When/if they implement a new
15454 # versioning mechanism, adjust this.
15455 if test -x /usr/bin/objformat; then
15456 objformat=`/usr/bin/objformat`
15457 else
15458 case $host_os in
15459 freebsd[123]*) objformat=aout ;;
15460 *) objformat=elf ;;
15461 esac
15462 fi
15463 version_type=freebsd-$objformat
15464 case $version_type in
15465 freebsd-elf*)
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15467 need_version=no
15468 need_lib_prefix=no
15469 ;;
15470 freebsd-*)
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15472 need_version=yes
15473 ;;
15474 esac
15475 shlibpath_var=LD_LIBRARY_PATH
15476 case $host_os in
15477 freebsd2*)
15478 shlibpath_overrides_runpath=yes
15479 ;;
15480 freebsd3.[01]* | freebsdelf3.[01]*)
15481 shlibpath_overrides_runpath=yes
15482 hardcode_into_libs=yes
15483 ;;
15484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15486 shlibpath_overrides_runpath=no
15487 hardcode_into_libs=yes
15488 ;;
15489 *) # from 4.6 on, and DragonFly
15490 shlibpath_overrides_runpath=yes
15491 hardcode_into_libs=yes
15492 ;;
15493 esac
15494 ;;
15495
15496 gnu*)
15497 version_type=linux
15498 need_lib_prefix=no
15499 need_version=no
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 hardcode_into_libs=yes
15504 ;;
15505
15506 hpux9* | hpux10* | hpux11*)
15507 # Give a soname corresponding to the major version so that dld.sl refuses to
15508 # link against other versions.
15509 version_type=sunos
15510 need_lib_prefix=no
15511 need_version=no
15512 case $host_cpu in
15513 ia64*)
15514 shrext_cmds='.so'
15515 hardcode_into_libs=yes
15516 dynamic_linker="$host_os dld.so"
15517 shlibpath_var=LD_LIBRARY_PATH
15518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 if test "X$HPUX_IA64_MODE" = X32; then
15522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15523 else
15524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15525 fi
15526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15527 ;;
15528 hppa*64*)
15529 shrext_cmds='.sl'
15530 hardcode_into_libs=yes
15531 dynamic_linker="$host_os dld.sl"
15532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15538 ;;
15539 *)
15540 shrext_cmds='.sl'
15541 dynamic_linker="$host_os dld.sl"
15542 shlibpath_var=SHLIB_PATH
15543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 ;;
15547 esac
15548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15549 postinstall_cmds='chmod 555 $lib'
15550 ;;
15551
15552 interix[3-9]*)
15553 version_type=linux
15554 need_lib_prefix=no
15555 need_version=no
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15559 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=no
15561 hardcode_into_libs=yes
15562 ;;
15563
15564 irix5* | irix6* | nonstopux*)
15565 case $host_os in
15566 nonstopux*) version_type=nonstopux ;;
15567 *)
15568 if test "$lt_cv_prog_gnu_ld" = yes; then
15569 version_type=linux
15570 else
15571 version_type=irix
15572 fi ;;
15573 esac
15574 need_lib_prefix=no
15575 need_version=no
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15578 case $host_os in
15579 irix5* | nonstopux*)
15580 libsuff= shlibsuff=
15581 ;;
15582 *)
15583 case $LD in # libtool.m4 will add one of these switches to LD
15584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15585 libsuff= shlibsuff= libmagic=32-bit;;
15586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15587 libsuff=32 shlibsuff=N32 libmagic=N32;;
15588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15590 *) libsuff= shlibsuff= libmagic=never-match;;
15591 esac
15592 ;;
15593 esac
15594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15595 shlibpath_overrides_runpath=no
15596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15598 hardcode_into_libs=yes
15599 ;;
15600
15601 # No shared lib support for Linux oldld, aout, or coff.
15602 linux*oldld* | linux*aout* | linux*coff*)
15603 dynamic_linker=no
15604 ;;
15605
15606 # This must be Linux ELF.
15607 linux* | k*bsd*-gnu)
15608 version_type=linux
15609 need_lib_prefix=no
15610 need_version=no
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=no
15616 # This implies no fast_install, which is unacceptable.
15617 # Some rework will be needed to allow for fast_install
15618 # before this can be enabled.
15619 hardcode_into_libs=yes
15620 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15621 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15622
15623 # Append ld.so.conf contents to the search path
15624 if test -f /etc/ld.so.conf; then
15625 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15626 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15627 fi
15628
15629 # We used to test for /lib/ld.so.1 and disable shared libraries on
15630 # powerpc, because MkLinux only supported shared libraries with the
15631 # GNU dynamic linker. Since this was broken with cross compilers,
15632 # most powerpc-linux boxes support dynamic linking these days and
15633 # people can always --disable-shared, the test was removed, and we
15634 # assume the GNU/Linux dynamic linker is in use.
15635 dynamic_linker='GNU/Linux ld.so'
15636 ;;
15637
15638 netbsd*)
15639 version_type=sunos
15640 need_lib_prefix=no
15641 need_version=no
15642 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15645 dynamic_linker='NetBSD (a.out) ld.so'
15646 else
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 dynamic_linker='NetBSD ld.elf_so'
15650 fi
15651 shlibpath_var=LD_LIBRARY_PATH
15652 shlibpath_overrides_runpath=yes
15653 hardcode_into_libs=yes
15654 ;;
15655
15656 newsos6)
15657 version_type=linux
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=yes
15661 ;;
15662
15663 nto-qnx*)
15664 version_type=linux
15665 need_lib_prefix=no
15666 need_version=no
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 shlibpath_overrides_runpath=yes
15671 ;;
15672
15673 openbsd*)
15674 version_type=sunos
15675 sys_lib_dlsearch_path_spec="/usr/lib"
15676 need_lib_prefix=no
15677 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15678 case $host_os in
15679 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15680 *) need_version=no ;;
15681 esac
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15686 case $host_os in
15687 openbsd2.[89] | openbsd2.[89].*)
15688 shlibpath_overrides_runpath=no
15689 ;;
15690 *)
15691 shlibpath_overrides_runpath=yes
15692 ;;
15693 esac
15694 else
15695 shlibpath_overrides_runpath=yes
15696 fi
15697 ;;
15698
15699 os2*)
15700 libname_spec='$name'
15701 shrext_cmds=".dll"
15702 need_lib_prefix=no
15703 library_names_spec='$libname${shared_ext} $libname.a'
15704 dynamic_linker='OS/2 ld.exe'
15705 shlibpath_var=LIBPATH
15706 ;;
15707
15708 osf3* | osf4* | osf5*)
15709 version_type=osf
15710 need_lib_prefix=no
15711 need_version=no
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15716 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15717 ;;
15718
15719 rdos*)
15720 dynamic_linker=no
15721 ;;
15722
15723 solaris*)
15724 version_type=linux
15725 need_lib_prefix=no
15726 need_version=no
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 shlibpath_overrides_runpath=yes
15731 hardcode_into_libs=yes
15732 # ldd complains unless libraries are executable
15733 postinstall_cmds='chmod +x $lib'
15734 ;;
15735
15736 sunos4*)
15737 version_type=sunos
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 shlibpath_overrides_runpath=yes
15742 if test "$with_gnu_ld" = yes; then
15743 need_lib_prefix=no
15744 fi
15745 need_version=yes
15746 ;;
15747
15748 sysv4 | sysv4.3*)
15749 version_type=linux
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 case $host_vendor in
15754 sni)
15755 shlibpath_overrides_runpath=no
15756 need_lib_prefix=no
15757 export_dynamic_flag_spec='${wl}-Blargedynsym'
15758 runpath_var=LD_RUN_PATH
15759 ;;
15760 siemens)
15761 need_lib_prefix=no
15762 ;;
15763 motorola)
15764 need_lib_prefix=no
15765 need_version=no
15766 shlibpath_overrides_runpath=no
15767 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15768 ;;
15769 esac
15770 ;;
15771
15772 sysv4*MP*)
15773 if test -d /usr/nec ;then
15774 version_type=linux
15775 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15776 soname_spec='$libname${shared_ext}.$major'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 fi
15779 ;;
15780
15781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15782 version_type=freebsd-elf
15783 need_lib_prefix=no
15784 need_version=no
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 hardcode_into_libs=yes
15789 if test "$with_gnu_ld" = yes; then
15790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15791 shlibpath_overrides_runpath=no
15792 else
15793 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15794 shlibpath_overrides_runpath=yes
15795 case $host_os in
15796 sco3.2v5*)
15797 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15798 ;;
15799 esac
15800 fi
15801 sys_lib_dlsearch_path_spec='/usr/lib'
15802 ;;
15803
15804 uts4*)
15805 version_type=linux
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 ;;
15810
15811 *)
15812 dynamic_linker=no
15813 ;;
15814 esac
15815 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15816 echo "${ECHO_T}$dynamic_linker" >&6; }
15817 test "$dynamic_linker" = no && can_build_shared=no
15818
15819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15820 if test "$GCC" = yes; then
15821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15822 fi
15823
15824 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15825 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15826 hardcode_action_F77=
15827 if test -n "$hardcode_libdir_flag_spec_F77" || \
15828 test -n "$runpath_var_F77" || \
15829 test "X$hardcode_automatic_F77" = "Xyes" ; then
15830
15831 # We can hardcode non-existant directories.
15832 if test "$hardcode_direct_F77" != no &&
15833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15834 # have to relink, otherwise we might link with an installed library
15835 # when we should be linking with a yet-to-be-installed one
15836 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15837 test "$hardcode_minus_L_F77" != no; then
15838 # Linking always hardcodes the temporary library directory.
15839 hardcode_action_F77=relink
15840 else
15841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15842 hardcode_action_F77=immediate
15843 fi
15844 else
15845 # We cannot hardcode anything, or else we can only hardcode existing
15846 # directories.
15847 hardcode_action_F77=unsupported
15848 fi
15849 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15850 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15851
15852 if test "$hardcode_action_F77" = relink; then
15853 # Fast installation is not supported
15854 enable_fast_install=no
15855 elif test "$shlibpath_overrides_runpath" = yes ||
15856 test "$enable_shared" = no; then
15857 # Fast installation is not necessary
15858 enable_fast_install=needless
15859 fi
15860
15861
15862 # The else clause should only fire when bootstrapping the
15863 # libtool distribution, otherwise you forgot to ship ltmain.sh
15864 # with your package, and you will get complaints that there are
15865 # no rules to generate ltmain.sh.
15866 if test -f "$ltmain"; then
15867 # See if we are running on zsh, and set the options which allow our commands through
15868 # without removal of \ escapes.
15869 if test -n "${ZSH_VERSION+set}" ; then
15870 setopt NO_GLOB_SUBST
15871 fi
15872 # Now quote all the things that may contain metacharacters while being
15873 # careful not to overquote the AC_SUBSTed values. We take copies of the
15874 # variables and quote the copies for generation of the libtool script.
15875 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15876 SED SHELL STRIP \
15877 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15878 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15879 deplibs_check_method reload_flag reload_cmds need_locks \
15880 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15881 lt_cv_sys_global_symbol_to_c_name_address \
15882 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15883 old_postinstall_cmds old_postuninstall_cmds \
15884 compiler_F77 \
15885 CC_F77 \
15886 LD_F77 \
15887 lt_prog_compiler_wl_F77 \
15888 lt_prog_compiler_pic_F77 \
15889 lt_prog_compiler_static_F77 \
15890 lt_prog_compiler_no_builtin_flag_F77 \
15891 export_dynamic_flag_spec_F77 \
15892 thread_safe_flag_spec_F77 \
15893 whole_archive_flag_spec_F77 \
15894 enable_shared_with_static_runtimes_F77 \
15895 old_archive_cmds_F77 \
15896 old_archive_from_new_cmds_F77 \
15897 predep_objects_F77 \
15898 postdep_objects_F77 \
15899 predeps_F77 \
15900 postdeps_F77 \
15901 compiler_lib_search_path_F77 \
15902 archive_cmds_F77 \
15903 archive_expsym_cmds_F77 \
15904 postinstall_cmds_F77 \
15905 postuninstall_cmds_F77 \
15906 old_archive_from_expsyms_cmds_F77 \
15907 allow_undefined_flag_F77 \
15908 no_undefined_flag_F77 \
15909 export_symbols_cmds_F77 \
15910 hardcode_libdir_flag_spec_F77 \
15911 hardcode_libdir_flag_spec_ld_F77 \
15912 hardcode_libdir_separator_F77 \
15913 hardcode_automatic_F77 \
15914 module_cmds_F77 \
15915 module_expsym_cmds_F77 \
15916 lt_cv_prog_compiler_c_o_F77 \
15917 fix_srcfile_path_F77 \
15918 exclude_expsyms_F77 \
15919 include_expsyms_F77; do
15920
15921 case $var in
15922 old_archive_cmds_F77 | \
15923 old_archive_from_new_cmds_F77 | \
15924 archive_cmds_F77 | \
15925 archive_expsym_cmds_F77 | \
15926 module_cmds_F77 | \
15927 module_expsym_cmds_F77 | \
15928 old_archive_from_expsyms_cmds_F77 | \
15929 export_symbols_cmds_F77 | \
15930 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15931 postinstall_cmds | postuninstall_cmds | \
15932 old_postinstall_cmds | old_postuninstall_cmds | \
15933 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15934 # Double-quote double-evaled strings.
15935 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15936 ;;
15937 *)
15938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15939 ;;
15940 esac
15941 done
15942
15943 case $lt_echo in
15944 *'\$0 --fallback-echo"')
15945 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15946 ;;
15947 esac
15948
15949 cfgfile="$ofile"
15950
15951 cat <<__EOF__ >> "$cfgfile"
15952 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15953
15954 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15955
15956 # Shell to use when invoking shell scripts.
15957 SHELL=$lt_SHELL
15958
15959 # Whether or not to build shared libraries.
15960 build_libtool_libs=$enable_shared
15961
15962 # Whether or not to build static libraries.
15963 build_old_libs=$enable_static
15964
15965 # Whether or not to add -lc for building shared libraries.
15966 build_libtool_need_lc=$archive_cmds_need_lc_F77
15967
15968 # Whether or not to disallow shared libs when runtime libs are static
15969 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15970
15971 # Whether or not to optimize for fast installation.
15972 fast_install=$enable_fast_install
15973
15974 # The host system.
15975 host_alias=$host_alias
15976 host=$host
15977 host_os=$host_os
15978
15979 # The build system.
15980 build_alias=$build_alias
15981 build=$build
15982 build_os=$build_os
15983
15984 # An echo program that does not interpret backslashes.
15985 echo=$lt_echo
15986
15987 # The archiver.
15988 AR=$lt_AR
15989 AR_FLAGS=$lt_AR_FLAGS
15990
15991 # A C compiler.
15992 LTCC=$lt_LTCC
15993
15994 # LTCC compiler flags.
15995 LTCFLAGS=$lt_LTCFLAGS
15996
15997 # A language-specific compiler.
15998 CC=$lt_compiler_F77
15999
16000 # Is the compiler the GNU C compiler?
16001 with_gcc=$GCC_F77
16002
16003 # An ERE matcher.
16004 EGREP=$lt_EGREP
16005
16006 # The linker used to build libraries.
16007 LD=$lt_LD_F77
16008
16009 # Whether we need hard or soft links.
16010 LN_S=$lt_LN_S
16011
16012 # A BSD-compatible nm program.
16013 NM=$lt_NM
16014
16015 # A symbol stripping program
16016 STRIP=$lt_STRIP
16017
16018 # Used to examine libraries when file_magic_cmd begins "file"
16019 MAGIC_CMD=$MAGIC_CMD
16020
16021 # Used on cygwin: DLL creation program.
16022 DLLTOOL="$DLLTOOL"
16023
16024 # Used on cygwin: object dumper.
16025 OBJDUMP="$OBJDUMP"
16026
16027 # Used on cygwin: assembler.
16028 AS="$AS"
16029
16030 # The name of the directory that contains temporary libtool files.
16031 objdir=$objdir
16032
16033 # How to create reloadable object files.
16034 reload_flag=$lt_reload_flag
16035 reload_cmds=$lt_reload_cmds
16036
16037 # How to pass a linker flag through the compiler.
16038 wl=$lt_lt_prog_compiler_wl_F77
16039
16040 # Object file suffix (normally "o").
16041 objext="$ac_objext"
16042
16043 # Old archive suffix (normally "a").
16044 libext="$libext"
16045
16046 # Shared library suffix (normally ".so").
16047 shrext_cmds='$shrext_cmds'
16048
16049 # Executable file suffix (normally "").
16050 exeext="$exeext"
16051
16052 # Additional compiler flags for building library objects.
16053 pic_flag=$lt_lt_prog_compiler_pic_F77
16054 pic_mode=$pic_mode
16055
16056 # What is the maximum length of a command?
16057 max_cmd_len=$lt_cv_sys_max_cmd_len
16058
16059 # Does compiler simultaneously support -c and -o options?
16060 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16061
16062 # Must we lock files when doing compilation?
16063 need_locks=$lt_need_locks
16064
16065 # Do we need the lib prefix for modules?
16066 need_lib_prefix=$need_lib_prefix
16067
16068 # Do we need a version for libraries?
16069 need_version=$need_version
16070
16071 # Whether dlopen is supported.
16072 dlopen_support=$enable_dlopen
16073
16074 # Whether dlopen of programs is supported.
16075 dlopen_self=$enable_dlopen_self
16076
16077 # Whether dlopen of statically linked programs is supported.
16078 dlopen_self_static=$enable_dlopen_self_static
16079
16080 # Compiler flag to prevent dynamic linking.
16081 link_static_flag=$lt_lt_prog_compiler_static_F77
16082
16083 # Compiler flag to turn off builtin functions.
16084 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16085
16086 # Compiler flag to allow reflexive dlopens.
16087 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16088
16089 # Compiler flag to generate shared objects directly from archives.
16090 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16091
16092 # Compiler flag to generate thread-safe objects.
16093 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16094
16095 # Library versioning type.
16096 version_type=$version_type
16097
16098 # Format of library name prefix.
16099 libname_spec=$lt_libname_spec
16100
16101 # List of archive names. First name is the real one, the rest are links.
16102 # The last name is the one that the linker finds with -lNAME.
16103 library_names_spec=$lt_library_names_spec
16104
16105 # The coded name of the library, if different from the real name.
16106 soname_spec=$lt_soname_spec
16107
16108 # Commands used to build and install an old-style archive.
16109 RANLIB=$lt_RANLIB
16110 old_archive_cmds=$lt_old_archive_cmds_F77
16111 old_postinstall_cmds=$lt_old_postinstall_cmds
16112 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16113
16114 # Create an old-style archive from a shared archive.
16115 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16116
16117 # Create a temporary old-style archive to link instead of a shared archive.
16118 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16119
16120 # Commands used to build and install a shared archive.
16121 archive_cmds=$lt_archive_cmds_F77
16122 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16123 postinstall_cmds=$lt_postinstall_cmds
16124 postuninstall_cmds=$lt_postuninstall_cmds
16125
16126 # Commands used to build a loadable module (assumed same as above if empty)
16127 module_cmds=$lt_module_cmds_F77
16128 module_expsym_cmds=$lt_module_expsym_cmds_F77
16129
16130 # Commands to strip libraries.
16131 old_striplib=$lt_old_striplib
16132 striplib=$lt_striplib
16133
16134 # Dependencies to place before the objects being linked to create a
16135 # shared library.
16136 predep_objects=$lt_predep_objects_F77
16137
16138 # Dependencies to place after the objects being linked to create a
16139 # shared library.
16140 postdep_objects=$lt_postdep_objects_F77
16141
16142 # Dependencies to place before the objects being linked to create a
16143 # shared library.
16144 predeps=$lt_predeps_F77
16145
16146 # Dependencies to place after the objects being linked to create a
16147 # shared library.
16148 postdeps=$lt_postdeps_F77
16149
16150 # The library search path used internally by the compiler when linking
16151 # a shared library.
16152 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16153
16154 # Method to check whether dependent libraries are shared objects.
16155 deplibs_check_method=$lt_deplibs_check_method
16156
16157 # Command to use when deplibs_check_method == file_magic.
16158 file_magic_cmd=$lt_file_magic_cmd
16159
16160 # Flag that allows shared libraries with undefined symbols to be built.
16161 allow_undefined_flag=$lt_allow_undefined_flag_F77
16162
16163 # Flag that forces no undefined symbols.
16164 no_undefined_flag=$lt_no_undefined_flag_F77
16165
16166 # Commands used to finish a libtool library installation in a directory.
16167 finish_cmds=$lt_finish_cmds
16168
16169 # Same as above, but a single script fragment to be evaled but not shown.
16170 finish_eval=$lt_finish_eval
16171
16172 # Take the output of nm and produce a listing of raw symbols and C names.
16173 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16174
16175 # Transform the output of nm in a proper C declaration
16176 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16177
16178 # Transform the output of nm in a C name address pair
16179 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16180
16181 # This is the shared library runtime path variable.
16182 runpath_var=$runpath_var
16183
16184 # This is the shared library path variable.
16185 shlibpath_var=$shlibpath_var
16186
16187 # Is shlibpath searched before the hard-coded library search path?
16188 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16189
16190 # How to hardcode a shared library path into an executable.
16191 hardcode_action=$hardcode_action_F77
16192
16193 # Whether we should hardcode library paths into libraries.
16194 hardcode_into_libs=$hardcode_into_libs
16195
16196 # Flag to hardcode \$libdir into a binary during linking.
16197 # This must work even if \$libdir does not exist.
16198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16199
16200 # If ld is used when linking, flag to hardcode \$libdir into
16201 # a binary during linking. This must work even if \$libdir does
16202 # not exist.
16203 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16204
16205 # Whether we need a single -rpath flag with a separated argument.
16206 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16207
16208 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16209 # resulting binary.
16210 hardcode_direct=$hardcode_direct_F77
16211
16212 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16213 # resulting binary.
16214 hardcode_minus_L=$hardcode_minus_L_F77
16215
16216 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16217 # the resulting binary.
16218 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16219
16220 # Set to yes if building a shared library automatically hardcodes DIR into the library
16221 # and all subsequent libraries and executables linked against it.
16222 hardcode_automatic=$hardcode_automatic_F77
16223
16224 # Variables whose values should be saved in libtool wrapper scripts and
16225 # restored at relink time.
16226 variables_saved_for_relink="$variables_saved_for_relink"
16227
16228 # Whether libtool must link a program against all its dependency libraries.
16229 link_all_deplibs=$link_all_deplibs_F77
16230
16231 # Compile-time system search path for libraries
16232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16233
16234 # Run-time system search path for libraries
16235 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16236
16237 # Fix the shell variable \$srcfile for the compiler.
16238 fix_srcfile_path=$lt_fix_srcfile_path
16239
16240 # Set to yes if exported symbols are required.
16241 always_export_symbols=$always_export_symbols_F77
16242
16243 # The commands to list exported symbols.
16244 export_symbols_cmds=$lt_export_symbols_cmds_F77
16245
16246 # The commands to extract the exported symbol list from a shared archive.
16247 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16248
16249 # Symbols that should not be listed in the preloaded symbols.
16250 exclude_expsyms=$lt_exclude_expsyms_F77
16251
16252 # Symbols that must always be exported.
16253 include_expsyms=$lt_include_expsyms_F77
16254
16255 # ### END LIBTOOL TAG CONFIG: $tagname
16256
16257 __EOF__
16258
16259
16260 else
16261 # If there is no Makefile yet, we rely on a make rule to execute
16262 # `config.status --recheck' to rerun these tests and create the
16263 # libtool script then.
16264 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16265 if test -f "$ltmain_in"; then
16266 test -f Makefile && make "$ltmain"
16267 fi
16268 fi
16269
16270
16271 ac_ext=c
16272 ac_cpp='$CPP $CPPFLAGS'
16273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16276
16277 CC="$lt_save_CC"
16278
16279 else
16280 tagname=""
16281 fi
16282 ;;
16283
16284 GCJ)
16285 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16286
16287
16288 # Source file extension for Java test sources.
16289 ac_ext=java
16290
16291 # Object file extension for compiled Java test sources.
16292 objext=o
16293 objext_GCJ=$objext
16294
16295 # Code to be used in simple compile tests
16296 lt_simple_compile_test_code="class foo {}"
16297
16298 # Code to be used in simple link tests
16299 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16300
16301 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16302
16303 # If no C compiler was specified, use CC.
16304 LTCC=${LTCC-"$CC"}
16305
16306 # If no C compiler flags were specified, use CFLAGS.
16307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16308
16309 # Allow CC to be a program name with arguments.
16310 compiler=$CC
16311
16312
16313 # save warnings/boilerplate of simple test code
16314 ac_outfile=conftest.$ac_objext
16315 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16317 _lt_compiler_boilerplate=`cat conftest.err`
16318 $rm conftest*
16319
16320 ac_outfile=conftest.$ac_objext
16321 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16323 _lt_linker_boilerplate=`cat conftest.err`
16324 $rm conftest*
16325
16326
16327 # Allow CC to be a program name with arguments.
16328 lt_save_CC="$CC"
16329 CC=${GCJ-"gcj"}
16330 compiler=$CC
16331 compiler_GCJ=$CC
16332 for cc_temp in $compiler""; do
16333 case $cc_temp in
16334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16336 \-*) ;;
16337 *) break;;
16338 esac
16339 done
16340 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16341
16342
16343 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16344 archive_cmds_need_lc_GCJ=no
16345
16346 old_archive_cmds_GCJ=$old_archive_cmds
16347
16348
16349 lt_prog_compiler_no_builtin_flag_GCJ=
16350
16351 if test "$GCC" = yes; then
16352 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16353
16354
16355 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16356 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16357 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360 lt_cv_prog_compiler_rtti_exceptions=no
16361 ac_outfile=conftest.$ac_objext
16362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16363 lt_compiler_flag="-fno-rtti -fno-exceptions"
16364 # Insert the option either (1) after the last *FLAGS variable, or
16365 # (2) before a word containing "conftest.", or (3) at the end.
16366 # Note that $ac_compile itself does not contain backslashes and begins
16367 # with a dollar sign (not a hyphen), so the echo should work correctly.
16368 # The option is referenced via a variable to avoid confusing sed.
16369 lt_compile=`echo "$ac_compile" | $SED \
16370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16372 -e 's:$: $lt_compiler_flag:'`
16373 (eval echo "\"\$as_me:16373: $lt_compile\"" >&5)
16374 (eval "$lt_compile" 2>conftest.err)
16375 ac_status=$?
16376 cat conftest.err >&5
16377 echo "$as_me:16377: \$? = $ac_status" >&5
16378 if (exit $ac_status) && test -s "$ac_outfile"; then
16379 # The compiler can only warn and ignore the option if not recognized
16380 # So say no if there are warnings other than the usual output.
16381 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16383 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16384 lt_cv_prog_compiler_rtti_exceptions=yes
16385 fi
16386 fi
16387 $rm conftest*
16388
16389 fi
16390 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16391 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16392
16393 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16394 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16395 else
16396 :
16397 fi
16398
16399 fi
16400
16401 lt_prog_compiler_wl_GCJ=
16402 lt_prog_compiler_pic_GCJ=
16403 lt_prog_compiler_static_GCJ=
16404
16405 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16406 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16407
16408 if test "$GCC" = yes; then
16409 lt_prog_compiler_wl_GCJ='-Wl,'
16410 lt_prog_compiler_static_GCJ='-static'
16411
16412 case $host_os in
16413 aix*)
16414 # All AIX code is PIC.
16415 if test "$host_cpu" = ia64; then
16416 # AIX 5 now supports IA64 processor
16417 lt_prog_compiler_static_GCJ='-Bstatic'
16418 fi
16419 ;;
16420
16421 amigaos*)
16422 # FIXME: we need at least 68020 code to build shared libraries, but
16423 # adding the `-m68020' flag to GCC prevents building anything better,
16424 # like `-m68040'.
16425 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16426 ;;
16427
16428 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16429 # PIC is the default for these OSes.
16430 ;;
16431
16432 mingw* | cygwin* | pw32* | os2*)
16433 # This hack is so that the source file can tell whether it is being
16434 # built for inclusion in a dll (and should export symbols for example).
16435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16436 # (--disable-auto-import) libraries
16437 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16438 ;;
16439
16440 darwin* | rhapsody*)
16441 # PIC is the default on this platform
16442 # Common symbols not allowed in MH_DYLIB files
16443 lt_prog_compiler_pic_GCJ='-fno-common'
16444 ;;
16445
16446 interix[3-9]*)
16447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16448 # Instead, we relocate shared libraries at runtime.
16449 ;;
16450
16451 msdosdjgpp*)
16452 # Just because we use GCC doesn't mean we suddenly get shared libraries
16453 # on systems that don't support them.
16454 lt_prog_compiler_can_build_shared_GCJ=no
16455 enable_shared=no
16456 ;;
16457
16458 sysv4*MP*)
16459 if test -d /usr/nec; then
16460 lt_prog_compiler_pic_GCJ=-Kconform_pic
16461 fi
16462 ;;
16463
16464 hpux*)
16465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16466 # not for PA HP-UX.
16467 case $host_cpu in
16468 hppa*64*|ia64*)
16469 # +Z the default
16470 ;;
16471 *)
16472 lt_prog_compiler_pic_GCJ='-fPIC'
16473 ;;
16474 esac
16475 ;;
16476
16477 *)
16478 lt_prog_compiler_pic_GCJ='-fPIC'
16479 ;;
16480 esac
16481 else
16482 # PORTME Check for flag to pass linker flags through the system compiler.
16483 case $host_os in
16484 aix*)
16485 lt_prog_compiler_wl_GCJ='-Wl,'
16486 if test "$host_cpu" = ia64; then
16487 # AIX 5 now supports IA64 processor
16488 lt_prog_compiler_static_GCJ='-Bstatic'
16489 else
16490 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16491 fi
16492 ;;
16493 darwin*)
16494 # PIC is the default on this platform
16495 # Common symbols not allowed in MH_DYLIB files
16496 case $cc_basename in
16497 xlc*)
16498 lt_prog_compiler_pic_GCJ='-qnocommon'
16499 lt_prog_compiler_wl_GCJ='-Wl,'
16500 ;;
16501 esac
16502 ;;
16503
16504 mingw* | cygwin* | pw32* | os2*)
16505 # This hack is so that the source file can tell whether it is being
16506 # built for inclusion in a dll (and should export symbols for example).
16507 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16508 ;;
16509
16510 hpux9* | hpux10* | hpux11*)
16511 lt_prog_compiler_wl_GCJ='-Wl,'
16512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16513 # not for PA HP-UX.
16514 case $host_cpu in
16515 hppa*64*|ia64*)
16516 # +Z the default
16517 ;;
16518 *)
16519 lt_prog_compiler_pic_GCJ='+Z'
16520 ;;
16521 esac
16522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16523 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16524 ;;
16525
16526 irix5* | irix6* | nonstopux*)
16527 lt_prog_compiler_wl_GCJ='-Wl,'
16528 # PIC (with -KPIC) is the default.
16529 lt_prog_compiler_static_GCJ='-non_shared'
16530 ;;
16531
16532 newsos6)
16533 lt_prog_compiler_pic_GCJ='-KPIC'
16534 lt_prog_compiler_static_GCJ='-Bstatic'
16535 ;;
16536
16537 linux* | k*bsd*-gnu)
16538 case $cc_basename in
16539 icc* | ecc*)
16540 lt_prog_compiler_wl_GCJ='-Wl,'
16541 lt_prog_compiler_pic_GCJ='-KPIC'
16542 lt_prog_compiler_static_GCJ='-static'
16543 ;;
16544 pgcc* | pgf77* | pgf90* | pgf95*)
16545 # Portland Group compilers (*not* the Pentium gcc compiler,
16546 # which looks to be a dead project)
16547 lt_prog_compiler_wl_GCJ='-Wl,'
16548 lt_prog_compiler_pic_GCJ='-fpic'
16549 lt_prog_compiler_static_GCJ='-Bstatic'
16550 ;;
16551 ccc*)
16552 lt_prog_compiler_wl_GCJ='-Wl,'
16553 # All Alpha code is PIC.
16554 lt_prog_compiler_static_GCJ='-non_shared'
16555 ;;
16556 *)
16557 case `$CC -V 2>&1 | sed 5q` in
16558 *Sun\ C*)
16559 # Sun C 5.9
16560 lt_prog_compiler_pic_GCJ='-KPIC'
16561 lt_prog_compiler_static_GCJ='-Bstatic'
16562 lt_prog_compiler_wl_GCJ='-Wl,'
16563 ;;
16564 *Sun\ F*)
16565 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16566 lt_prog_compiler_pic_GCJ='-KPIC'
16567 lt_prog_compiler_static_GCJ='-Bstatic'
16568 lt_prog_compiler_wl_GCJ=''
16569 ;;
16570 esac
16571 ;;
16572 esac
16573 ;;
16574
16575 osf3* | osf4* | osf5*)
16576 lt_prog_compiler_wl_GCJ='-Wl,'
16577 # All OSF/1 code is PIC.
16578 lt_prog_compiler_static_GCJ='-non_shared'
16579 ;;
16580
16581 rdos*)
16582 lt_prog_compiler_static_GCJ='-non_shared'
16583 ;;
16584
16585 solaris*)
16586 lt_prog_compiler_pic_GCJ='-KPIC'
16587 lt_prog_compiler_static_GCJ='-Bstatic'
16588 case $cc_basename in
16589 f77* | f90* | f95*)
16590 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16591 *)
16592 lt_prog_compiler_wl_GCJ='-Wl,';;
16593 esac
16594 ;;
16595
16596 sunos4*)
16597 lt_prog_compiler_wl_GCJ='-Qoption ld '
16598 lt_prog_compiler_pic_GCJ='-PIC'
16599 lt_prog_compiler_static_GCJ='-Bstatic'
16600 ;;
16601
16602 sysv4 | sysv4.2uw2* | sysv4.3*)
16603 lt_prog_compiler_wl_GCJ='-Wl,'
16604 lt_prog_compiler_pic_GCJ='-KPIC'
16605 lt_prog_compiler_static_GCJ='-Bstatic'
16606 ;;
16607
16608 sysv4*MP*)
16609 if test -d /usr/nec ;then
16610 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16611 lt_prog_compiler_static_GCJ='-Bstatic'
16612 fi
16613 ;;
16614
16615 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16616 lt_prog_compiler_wl_GCJ='-Wl,'
16617 lt_prog_compiler_pic_GCJ='-KPIC'
16618 lt_prog_compiler_static_GCJ='-Bstatic'
16619 ;;
16620
16621 unicos*)
16622 lt_prog_compiler_wl_GCJ='-Wl,'
16623 lt_prog_compiler_can_build_shared_GCJ=no
16624 ;;
16625
16626 uts4*)
16627 lt_prog_compiler_pic_GCJ='-pic'
16628 lt_prog_compiler_static_GCJ='-Bstatic'
16629 ;;
16630
16631 *)
16632 lt_prog_compiler_can_build_shared_GCJ=no
16633 ;;
16634 esac
16635 fi
16636
16637 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16638 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16639
16640 #
16641 # Check to make sure the PIC flag actually works.
16642 #
16643 if test -n "$lt_prog_compiler_pic_GCJ"; then
16644
16645 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16646 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16647 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650 lt_prog_compiler_pic_works_GCJ=no
16651 ac_outfile=conftest.$ac_objext
16652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16653 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16654 # Insert the option either (1) after the last *FLAGS variable, or
16655 # (2) before a word containing "conftest.", or (3) at the end.
16656 # Note that $ac_compile itself does not contain backslashes and begins
16657 # with a dollar sign (not a hyphen), so the echo should work correctly.
16658 # The option is referenced via a variable to avoid confusing sed.
16659 lt_compile=`echo "$ac_compile" | $SED \
16660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16662 -e 's:$: $lt_compiler_flag:'`
16663 (eval echo "\"\$as_me:16663: $lt_compile\"" >&5)
16664 (eval "$lt_compile" 2>conftest.err)
16665 ac_status=$?
16666 cat conftest.err >&5
16667 echo "$as_me:16667: \$? = $ac_status" >&5
16668 if (exit $ac_status) && test -s "$ac_outfile"; then
16669 # The compiler can only warn and ignore the option if not recognized
16670 # So say no if there are warnings other than the usual output.
16671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16674 lt_prog_compiler_pic_works_GCJ=yes
16675 fi
16676 fi
16677 $rm conftest*
16678
16679 fi
16680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16681 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16682
16683 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16684 case $lt_prog_compiler_pic_GCJ in
16685 "" | " "*) ;;
16686 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16687 esac
16688 else
16689 lt_prog_compiler_pic_GCJ=
16690 lt_prog_compiler_can_build_shared_GCJ=no
16691 fi
16692
16693 fi
16694 case $host_os in
16695 # For platforms which do not support PIC, -DPIC is meaningless:
16696 *djgpp*)
16697 lt_prog_compiler_pic_GCJ=
16698 ;;
16699 *)
16700 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16701 ;;
16702 esac
16703
16704 #
16705 # Check to make sure the static flag actually works.
16706 #
16707 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16708 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16709 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16710 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713 lt_prog_compiler_static_works_GCJ=no
16714 save_LDFLAGS="$LDFLAGS"
16715 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16716 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16718 # The linker can only warn and ignore the option if not recognized
16719 # So say no if there are warnings
16720 if test -s conftest.err; then
16721 # Append any errors to the config.log.
16722 cat conftest.err 1>&5
16723 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16725 if diff conftest.exp conftest.er2 >/dev/null; then
16726 lt_prog_compiler_static_works_GCJ=yes
16727 fi
16728 else
16729 lt_prog_compiler_static_works_GCJ=yes
16730 fi
16731 fi
16732 $rm conftest*
16733 LDFLAGS="$save_LDFLAGS"
16734
16735 fi
16736 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16737 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16738
16739 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16740 :
16741 else
16742 lt_prog_compiler_static_GCJ=
16743 fi
16744
16745
16746 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16747 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16748 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751 lt_cv_prog_compiler_c_o_GCJ=no
16752 $rm -r conftest 2>/dev/null
16753 mkdir conftest
16754 cd conftest
16755 mkdir out
16756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16757
16758 lt_compiler_flag="-o out/conftest2.$ac_objext"
16759 # Insert the option either (1) after the last *FLAGS variable, or
16760 # (2) before a word containing "conftest.", or (3) at the end.
16761 # Note that $ac_compile itself does not contain backslashes and begins
16762 # with a dollar sign (not a hyphen), so the echo should work correctly.
16763 lt_compile=`echo "$ac_compile" | $SED \
16764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16766 -e 's:$: $lt_compiler_flag:'`
16767 (eval echo "\"\$as_me:16767: $lt_compile\"" >&5)
16768 (eval "$lt_compile" 2>out/conftest.err)
16769 ac_status=$?
16770 cat out/conftest.err >&5
16771 echo "$as_me:16771: \$? = $ac_status" >&5
16772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16773 then
16774 # The compiler can only warn and ignore the option if not recognized
16775 # So say no if there are warnings
16776 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16779 lt_cv_prog_compiler_c_o_GCJ=yes
16780 fi
16781 fi
16782 chmod u+w . 2>&5
16783 $rm conftest*
16784 # SGI C++ compiler will create directory out/ii_files/ for
16785 # template instantiation
16786 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16787 $rm out/* && rmdir out
16788 cd ..
16789 rmdir conftest
16790 $rm conftest*
16791
16792 fi
16793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16794 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16795
16796
16797 hard_links="nottested"
16798 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16799 # do not overwrite the value of need_locks provided by the user
16800 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16801 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16802 hard_links=yes
16803 $rm conftest*
16804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16805 touch conftest.a
16806 ln conftest.a conftest.b 2>&5 || hard_links=no
16807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16808 { echo "$as_me:$LINENO: result: $hard_links" >&5
16809 echo "${ECHO_T}$hard_links" >&6; }
16810 if test "$hard_links" = no; then
16811 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16812 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16813 need_locks=warn
16814 fi
16815 else
16816 need_locks=no
16817 fi
16818
16819 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16820 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16821
16822 runpath_var=
16823 allow_undefined_flag_GCJ=
16824 enable_shared_with_static_runtimes_GCJ=no
16825 archive_cmds_GCJ=
16826 archive_expsym_cmds_GCJ=
16827 old_archive_From_new_cmds_GCJ=
16828 old_archive_from_expsyms_cmds_GCJ=
16829 export_dynamic_flag_spec_GCJ=
16830 whole_archive_flag_spec_GCJ=
16831 thread_safe_flag_spec_GCJ=
16832 hardcode_libdir_flag_spec_GCJ=
16833 hardcode_libdir_flag_spec_ld_GCJ=
16834 hardcode_libdir_separator_GCJ=
16835 hardcode_direct_GCJ=no
16836 hardcode_minus_L_GCJ=no
16837 hardcode_shlibpath_var_GCJ=unsupported
16838 link_all_deplibs_GCJ=unknown
16839 hardcode_automatic_GCJ=no
16840 module_cmds_GCJ=
16841 module_expsym_cmds_GCJ=
16842 always_export_symbols_GCJ=no
16843 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16844 # include_expsyms should be a list of space-separated symbols to be *always*
16845 # included in the symbol list
16846 include_expsyms_GCJ=
16847 # exclude_expsyms can be an extended regexp of symbols to exclude
16848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16850 # as well as any symbol that contains `d'.
16851 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16853 # platforms (ab)use it in PIC code, but their linkers get confused if
16854 # the symbol is explicitly referenced. Since portable code cannot
16855 # rely on this symbol name, it's probably fine to never include it in
16856 # preloaded symbol tables.
16857 extract_expsyms_cmds=
16858 # Just being paranoid about ensuring that cc_basename is set.
16859 for cc_temp in $compiler""; do
16860 case $cc_temp in
16861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16863 \-*) ;;
16864 *) break;;
16865 esac
16866 done
16867 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16868
16869 case $host_os in
16870 cygwin* | mingw* | pw32*)
16871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16872 # When not using gcc, we currently assume that we are using
16873 # Microsoft Visual C++.
16874 if test "$GCC" != yes; then
16875 with_gnu_ld=no
16876 fi
16877 ;;
16878 interix*)
16879 # we just hope/assume this is gcc and not c89 (= MSVC++)
16880 with_gnu_ld=yes
16881 ;;
16882 openbsd*)
16883 with_gnu_ld=no
16884 ;;
16885 esac
16886
16887 ld_shlibs_GCJ=yes
16888 if test "$with_gnu_ld" = yes; then
16889 # If archive_cmds runs LD, not CC, wlarc should be empty
16890 wlarc='${wl}'
16891
16892 # Set some defaults for GNU ld with shared library support. These
16893 # are reset later if shared libraries are not supported. Putting them
16894 # here allows them to be overridden if necessary.
16895 runpath_var=LD_RUN_PATH
16896 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16897 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16898 # ancient GNU ld didn't support --whole-archive et. al.
16899 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16900 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16901 else
16902 whole_archive_flag_spec_GCJ=
16903 fi
16904 supports_anon_versioning=no
16905 case `$LD -v 2>/dev/null` in
16906 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16907 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16908 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16909 *\ 2.11.*) ;; # other 2.11 versions
16910 *) supports_anon_versioning=yes ;;
16911 esac
16912
16913 # See if GNU ld supports shared libraries.
16914 case $host_os in
16915 aix3* | aix4* | aix5*)
16916 # On AIX/PPC, the GNU linker is very broken
16917 if test "$host_cpu" != ia64; then
16918 ld_shlibs_GCJ=no
16919 cat <<EOF 1>&2
16920
16921 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16922 *** to be unable to reliably create shared libraries on AIX.
16923 *** Therefore, libtool is disabling shared libraries support. If you
16924 *** really care for shared libraries, you may want to modify your PATH
16925 *** so that a non-GNU linker is found, and then restart.
16926
16927 EOF
16928 fi
16929 ;;
16930
16931 amigaos*)
16932 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)'
16933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16934 hardcode_minus_L_GCJ=yes
16935
16936 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16937 # that the semantics of dynamic libraries on AmigaOS, at least up
16938 # to version 4, is to share data among multiple programs linked
16939 # with the same dynamic library. Since this doesn't match the
16940 # behavior of shared libraries on other platforms, we can't use
16941 # them.
16942 ld_shlibs_GCJ=no
16943 ;;
16944
16945 beos*)
16946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16947 allow_undefined_flag_GCJ=unsupported
16948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16949 # support --undefined. This deserves some investigation. FIXME
16950 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16951 else
16952 ld_shlibs_GCJ=no
16953 fi
16954 ;;
16955
16956 cygwin* | mingw* | pw32*)
16957 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16958 # as there is no search path for DLLs.
16959 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16960 allow_undefined_flag_GCJ=unsupported
16961 always_export_symbols_GCJ=no
16962 enable_shared_with_static_runtimes_GCJ=yes
16963 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16964
16965 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16966 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16967 # If the export-symbols file already is a .def file (1st line
16968 # is EXPORTS), use it as is; otherwise, prepend...
16969 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16970 cp $export_symbols $output_objdir/$soname.def;
16971 else
16972 echo EXPORTS > $output_objdir/$soname.def;
16973 cat $export_symbols >> $output_objdir/$soname.def;
16974 fi~
16975 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16976 else
16977 ld_shlibs_GCJ=no
16978 fi
16979 ;;
16980
16981 interix[3-9]*)
16982 hardcode_direct_GCJ=no
16983 hardcode_shlibpath_var_GCJ=no
16984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16985 export_dynamic_flag_spec_GCJ='${wl}-E'
16986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16987 # Instead, shared libraries are loaded at an image base (0x10000000 by
16988 # default) and relocated if they conflict, which is a slow very memory
16989 # consuming and fragmenting process. To avoid this, we pick a random,
16990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16992 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'
16993 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'
16994 ;;
16995
16996 gnu* | linux* | k*bsd*-gnu)
16997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16998 tmp_addflag=
16999 case $cc_basename,$host_cpu in
17000 pgcc*) # Portland Group C compiler
17001 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'
17002 tmp_addflag=' $pic_flag'
17003 ;;
17004 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17005 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'
17006 tmp_addflag=' $pic_flag -Mnomain' ;;
17007 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17008 tmp_addflag=' -i_dynamic' ;;
17009 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17010 tmp_addflag=' -i_dynamic -nofor_main' ;;
17011 ifc* | ifort*) # Intel Fortran compiler
17012 tmp_addflag=' -nofor_main' ;;
17013 esac
17014 case `$CC -V 2>&1 | sed 5q` in
17015 *Sun\ C*) # Sun C 5.9
17016 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17017 tmp_sharedflag='-G' ;;
17018 *Sun\ F*) # Sun Fortran 8.3
17019 tmp_sharedflag='-G' ;;
17020 *)
17021 tmp_sharedflag='-shared' ;;
17022 esac
17023 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17024
17025 if test $supports_anon_versioning = yes; then
17026 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17028 $echo "local: *; };" >> $output_objdir/$libname.ver~
17029 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17030 fi
17031 else
17032 ld_shlibs_GCJ=no
17033 fi
17034 ;;
17035
17036 netbsd*)
17037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17038 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17039 wlarc=
17040 else
17041 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17042 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17043 fi
17044 ;;
17045
17046 solaris*)
17047 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17048 ld_shlibs_GCJ=no
17049 cat <<EOF 1>&2
17050
17051 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17052 *** create shared libraries on Solaris systems. Therefore, libtool
17053 *** is disabling shared libraries support. We urge you to upgrade GNU
17054 *** binutils to release 2.9.1 or newer. Another option is to modify
17055 *** your PATH or compiler configuration so that the native linker is
17056 *** used, and then restart.
17057
17058 EOF
17059 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17060 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17061 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17062 else
17063 ld_shlibs_GCJ=no
17064 fi
17065 ;;
17066
17067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17068 case `$LD -v 2>&1` in
17069 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17070 ld_shlibs_GCJ=no
17071 cat <<_LT_EOF 1>&2
17072
17073 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17074 *** reliably create shared libraries on SCO systems. Therefore, libtool
17075 *** is disabling shared libraries support. We urge you to upgrade GNU
17076 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17077 *** your PATH or compiler configuration so that the native linker is
17078 *** used, and then restart.
17079
17080 _LT_EOF
17081 ;;
17082 *)
17083 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17084 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17085 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17086 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17087 else
17088 ld_shlibs_GCJ=no
17089 fi
17090 ;;
17091 esac
17092 ;;
17093
17094 sunos4*)
17095 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17096 wlarc=
17097 hardcode_direct_GCJ=yes
17098 hardcode_shlibpath_var_GCJ=no
17099 ;;
17100
17101 *)
17102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17103 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17104 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17105 else
17106 ld_shlibs_GCJ=no
17107 fi
17108 ;;
17109 esac
17110
17111 if test "$ld_shlibs_GCJ" = no; then
17112 runpath_var=
17113 hardcode_libdir_flag_spec_GCJ=
17114 export_dynamic_flag_spec_GCJ=
17115 whole_archive_flag_spec_GCJ=
17116 fi
17117 else
17118 # PORTME fill in a description of your system's linker (not GNU ld)
17119 case $host_os in
17120 aix3*)
17121 allow_undefined_flag_GCJ=unsupported
17122 always_export_symbols_GCJ=yes
17123 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'
17124 # Note: this linker hardcodes the directories in LIBPATH if there
17125 # are no directories specified by -L.
17126 hardcode_minus_L_GCJ=yes
17127 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17128 # Neither direct hardcoding nor static linking is supported with a
17129 # broken collect2.
17130 hardcode_direct_GCJ=unsupported
17131 fi
17132 ;;
17133
17134 aix4* | aix5*)
17135 if test "$host_cpu" = ia64; then
17136 # On IA64, the linker does run time linking by default, so we don't
17137 # have to do anything special.
17138 aix_use_runtimelinking=no
17139 exp_sym_flag='-Bexport'
17140 no_entry_flag=""
17141 else
17142 # If we're using GNU nm, then we don't want the "-C" option.
17143 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17144 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17145 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'
17146 else
17147 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'
17148 fi
17149 aix_use_runtimelinking=no
17150
17151 # Test if we are trying to use run time linking or normal
17152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17153 # need to do runtime linking.
17154 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17155 for ld_flag in $LDFLAGS; do
17156 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17157 aix_use_runtimelinking=yes
17158 break
17159 fi
17160 done
17161 ;;
17162 esac
17163
17164 exp_sym_flag='-bexport'
17165 no_entry_flag='-bnoentry'
17166 fi
17167
17168 # When large executables or shared objects are built, AIX ld can
17169 # have problems creating the table of contents. If linking a library
17170 # or program results in "error TOC overflow" add -mminimal-toc to
17171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17173
17174 archive_cmds_GCJ=''
17175 hardcode_direct_GCJ=yes
17176 hardcode_libdir_separator_GCJ=':'
17177 link_all_deplibs_GCJ=yes
17178
17179 if test "$GCC" = yes; then
17180 case $host_os in aix4.[012]|aix4.[012].*)
17181 # We only want to do this on AIX 4.2 and lower, the check
17182 # below for broken collect2 doesn't work under 4.3+
17183 collect2name=`${CC} -print-prog-name=collect2`
17184 if test -f "$collect2name" && \
17185 strings "$collect2name" | grep resolve_lib_name >/dev/null
17186 then
17187 # We have reworked collect2
17188 :
17189 else
17190 # We have old collect2
17191 hardcode_direct_GCJ=unsupported
17192 # It fails to find uninstalled libraries when the uninstalled
17193 # path is not listed in the libpath. Setting hardcode_minus_L
17194 # to unsupported forces relinking
17195 hardcode_minus_L_GCJ=yes
17196 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17197 hardcode_libdir_separator_GCJ=
17198 fi
17199 ;;
17200 esac
17201 shared_flag='-shared'
17202 if test "$aix_use_runtimelinking" = yes; then
17203 shared_flag="$shared_flag "'${wl}-G'
17204 fi
17205 else
17206 # not using gcc
17207 if test "$host_cpu" = ia64; then
17208 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17209 # chokes on -Wl,-G. The following line is correct:
17210 shared_flag='-G'
17211 else
17212 if test "$aix_use_runtimelinking" = yes; then
17213 shared_flag='${wl}-G'
17214 else
17215 shared_flag='${wl}-bM:SRE'
17216 fi
17217 fi
17218 fi
17219
17220 # It seems that -bexpall does not export symbols beginning with
17221 # underscore (_), so it is better to generate a list of symbols to export.
17222 always_export_symbols_GCJ=yes
17223 if test "$aix_use_runtimelinking" = yes; then
17224 # Warning - without using the other runtime loading flags (-brtl),
17225 # -berok will link without error, but may produce a broken library.
17226 allow_undefined_flag_GCJ='-berok'
17227 # Determine the default libpath from the value encoded in an empty executable.
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234
17235 int
17236 main ()
17237 {
17238
17239 ;
17240 return 0;
17241 }
17242 _ACEOF
17243 rm -f conftest.$ac_objext conftest$ac_exeext
17244 if { (ac_try="$ac_link"
17245 case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17248 esac
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_link") 2>conftest.er1
17251 ac_status=$?
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } && {
17257 test -z "$ac_c_werror_flag" ||
17258 test ! -s conftest.err
17259 } && test -s conftest$ac_exeext &&
17260 $as_test_x conftest$ac_exeext; then
17261
17262 lt_aix_libpath_sed='
17263 /Import File Strings/,/^$/ {
17264 /^0/ {
17265 s/^0 *\(.*\)$/\1/
17266 p
17267 }
17268 }'
17269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17270 # Check for a 64-bit object if we didn't find anything.
17271 if test -z "$aix_libpath"; then
17272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17273 fi
17274 else
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278
17279 fi
17280
17281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17282 conftest$ac_exeext conftest.$ac_ext
17283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17284
17285 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17286 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"
17287 else
17288 if test "$host_cpu" = ia64; then
17289 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17290 allow_undefined_flag_GCJ="-z nodefs"
17291 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"
17292 else
17293 # Determine the default libpath from the value encoded in an empty executable.
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300
17301 int
17302 main ()
17303 {
17304
17305 ;
17306 return 0;
17307 }
17308 _ACEOF
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && {
17323 test -z "$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 } && test -s conftest$ac_exeext &&
17326 $as_test_x conftest$ac_exeext; then
17327
17328 lt_aix_libpath_sed='
17329 /Import File Strings/,/^$/ {
17330 /^0/ {
17331 s/^0 *\(.*\)$/\1/
17332 p
17333 }
17334 }'
17335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17336 # Check for a 64-bit object if we didn't find anything.
17337 if test -z "$aix_libpath"; then
17338 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17339 fi
17340 else
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17343
17344
17345 fi
17346
17347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17348 conftest$ac_exeext conftest.$ac_ext
17349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17350
17351 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17352 # Warning - without using the other run time loading flags,
17353 # -berok will link without error, but may produce a broken library.
17354 no_undefined_flag_GCJ=' ${wl}-bernotok'
17355 allow_undefined_flag_GCJ=' ${wl}-berok'
17356 # Exported symbols can be pulled into shared objects from archives
17357 whole_archive_flag_spec_GCJ='$convenience'
17358 archive_cmds_need_lc_GCJ=yes
17359 # This is similar to how AIX traditionally builds its shared libraries.
17360 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'
17361 fi
17362 fi
17363 ;;
17364
17365 amigaos*)
17366 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)'
17367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17368 hardcode_minus_L_GCJ=yes
17369 # see comment about different semantics on the GNU ld section
17370 ld_shlibs_GCJ=no
17371 ;;
17372
17373 bsdi[45]*)
17374 export_dynamic_flag_spec_GCJ=-rdynamic
17375 ;;
17376
17377 cygwin* | mingw* | pw32*)
17378 # When not using gcc, we currently assume that we are using
17379 # Microsoft Visual C++.
17380 # hardcode_libdir_flag_spec is actually meaningless, as there is
17381 # no search path for DLLs.
17382 hardcode_libdir_flag_spec_GCJ=' '
17383 allow_undefined_flag_GCJ=unsupported
17384 # Tell ltmain to make .lib files, not .a files.
17385 libext=lib
17386 # Tell ltmain to make .dll files, not .so files.
17387 shrext_cmds=".dll"
17388 # FIXME: Setting linknames here is a bad hack.
17389 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17390 # The linker will automatically build a .lib file if we build a DLL.
17391 old_archive_From_new_cmds_GCJ='true'
17392 # FIXME: Should let the user specify the lib program.
17393 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17394 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17395 enable_shared_with_static_runtimes_GCJ=yes
17396 ;;
17397
17398 darwin* | rhapsody*)
17399 case $host_os in
17400 rhapsody* | darwin1.[012])
17401 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17402 ;;
17403 *) # Darwin 1.3 on
17404 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17405 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17406 else
17407 case ${MACOSX_DEPLOYMENT_TARGET} in
17408 10.[012])
17409 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17410 ;;
17411 10.*)
17412 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17413 ;;
17414 esac
17415 fi
17416 ;;
17417 esac
17418 archive_cmds_need_lc_GCJ=no
17419 hardcode_direct_GCJ=no
17420 hardcode_automatic_GCJ=yes
17421 hardcode_shlibpath_var_GCJ=unsupported
17422 whole_archive_flag_spec_GCJ=''
17423 link_all_deplibs_GCJ=yes
17424 if test "$GCC" = yes ; then
17425 output_verbose_link_cmd='echo'
17426 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17427 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17428 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17429 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}'
17430 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}'
17431 else
17432 case $cc_basename in
17433 xlc*)
17434 output_verbose_link_cmd='echo'
17435 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17436 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17437 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17438 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17439 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}'
17440 ;;
17441 *)
17442 ld_shlibs_GCJ=no
17443 ;;
17444 esac
17445 fi
17446 ;;
17447
17448 dgux*)
17449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17450 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17451 hardcode_shlibpath_var_GCJ=no
17452 ;;
17453
17454 freebsd1*)
17455 ld_shlibs_GCJ=no
17456 ;;
17457
17458 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17459 # support. Future versions do this automatically, but an explicit c++rt0.o
17460 # does not break anything, and helps significantly (at the cost of a little
17461 # extra space).
17462 freebsd2.2*)
17463 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17464 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17465 hardcode_direct_GCJ=yes
17466 hardcode_shlibpath_var_GCJ=no
17467 ;;
17468
17469 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17470 freebsd2*)
17471 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17472 hardcode_direct_GCJ=yes
17473 hardcode_minus_L_GCJ=yes
17474 hardcode_shlibpath_var_GCJ=no
17475 ;;
17476
17477 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17478 freebsd* | dragonfly*)
17479 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17480 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17481 hardcode_direct_GCJ=yes
17482 hardcode_shlibpath_var_GCJ=no
17483 ;;
17484
17485 hpux9*)
17486 if test "$GCC" = yes; then
17487 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'
17488 else
17489 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'
17490 fi
17491 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17492 hardcode_libdir_separator_GCJ=:
17493 hardcode_direct_GCJ=yes
17494
17495 # hardcode_minus_L: Not really in the search PATH,
17496 # but as the default location of the library.
17497 hardcode_minus_L_GCJ=yes
17498 export_dynamic_flag_spec_GCJ='${wl}-E'
17499 ;;
17500
17501 hpux10*)
17502 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17503 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17504 else
17505 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17506 fi
17507 if test "$with_gnu_ld" = no; then
17508 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17509 hardcode_libdir_separator_GCJ=:
17510
17511 hardcode_direct_GCJ=yes
17512 export_dynamic_flag_spec_GCJ='${wl}-E'
17513
17514 # hardcode_minus_L: Not really in the search PATH,
17515 # but as the default location of the library.
17516 hardcode_minus_L_GCJ=yes
17517 fi
17518 ;;
17519
17520 hpux11*)
17521 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17522 case $host_cpu in
17523 hppa*64*)
17524 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17525 ;;
17526 ia64*)
17527 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17528 ;;
17529 *)
17530 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17531 ;;
17532 esac
17533 else
17534 case $host_cpu in
17535 hppa*64*)
17536 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17537 ;;
17538 ia64*)
17539 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17540 ;;
17541 *)
17542 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17543 ;;
17544 esac
17545 fi
17546 if test "$with_gnu_ld" = no; then
17547 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17548 hardcode_libdir_separator_GCJ=:
17549
17550 case $host_cpu in
17551 hppa*64*|ia64*)
17552 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17553 hardcode_direct_GCJ=no
17554 hardcode_shlibpath_var_GCJ=no
17555 ;;
17556 *)
17557 hardcode_direct_GCJ=yes
17558 export_dynamic_flag_spec_GCJ='${wl}-E'
17559
17560 # hardcode_minus_L: Not really in the search PATH,
17561 # but as the default location of the library.
17562 hardcode_minus_L_GCJ=yes
17563 ;;
17564 esac
17565 fi
17566 ;;
17567
17568 irix5* | irix6* | nonstopux*)
17569 if test "$GCC" = yes; then
17570 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'
17571 else
17572 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'
17573 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17574 fi
17575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17576 hardcode_libdir_separator_GCJ=:
17577 link_all_deplibs_GCJ=yes
17578 ;;
17579
17580 netbsd*)
17581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17582 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17583 else
17584 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17585 fi
17586 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17587 hardcode_direct_GCJ=yes
17588 hardcode_shlibpath_var_GCJ=no
17589 ;;
17590
17591 newsos6)
17592 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17593 hardcode_direct_GCJ=yes
17594 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17595 hardcode_libdir_separator_GCJ=:
17596 hardcode_shlibpath_var_GCJ=no
17597 ;;
17598
17599 openbsd*)
17600 if test -f /usr/libexec/ld.so; then
17601 hardcode_direct_GCJ=yes
17602 hardcode_shlibpath_var_GCJ=no
17603 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17604 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17605 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17606 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17607 export_dynamic_flag_spec_GCJ='${wl}-E'
17608 else
17609 case $host_os in
17610 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17611 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17612 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17613 ;;
17614 *)
17615 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17616 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17617 ;;
17618 esac
17619 fi
17620 else
17621 ld_shlibs_GCJ=no
17622 fi
17623 ;;
17624
17625 os2*)
17626 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17627 hardcode_minus_L_GCJ=yes
17628 allow_undefined_flag_GCJ=unsupported
17629 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'
17630 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17631 ;;
17632
17633 osf3*)
17634 if test "$GCC" = yes; then
17635 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17636 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'
17637 else
17638 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17639 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'
17640 fi
17641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17642 hardcode_libdir_separator_GCJ=:
17643 ;;
17644
17645 osf4* | osf5*) # as osf3* with the addition of -msym flag
17646 if test "$GCC" = yes; then
17647 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17648 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'
17649 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17650 else
17651 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17652 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'
17653 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~
17654 $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'
17655
17656 # Both c and cxx compiler support -rpath directly
17657 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17658 fi
17659 hardcode_libdir_separator_GCJ=:
17660 ;;
17661
17662 solaris*)
17663 no_undefined_flag_GCJ=' -z text'
17664 if test "$GCC" = yes; then
17665 wlarc='${wl}'
17666 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17667 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17668 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17669 else
17670 wlarc=''
17671 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17672 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17673 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17674 fi
17675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17676 hardcode_shlibpath_var_GCJ=no
17677 case $host_os in
17678 solaris2.[0-5] | solaris2.[0-5].*) ;;
17679 *)
17680 # The compiler driver will combine and reorder linker options,
17681 # but understands `-z linker_flag'. GCC discards it without `$wl',
17682 # but is careful enough not to reorder.
17683 # Supported since Solaris 2.6 (maybe 2.5.1?)
17684 if test "$GCC" = yes; then
17685 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17686 else
17687 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17688 fi
17689 ;;
17690 esac
17691 link_all_deplibs_GCJ=yes
17692 ;;
17693
17694 sunos4*)
17695 if test "x$host_vendor" = xsequent; then
17696 # Use $CC to link under sequent, because it throws in some extra .o
17697 # files that make .init and .fini sections work.
17698 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17699 else
17700 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17701 fi
17702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17703 hardcode_direct_GCJ=yes
17704 hardcode_minus_L_GCJ=yes
17705 hardcode_shlibpath_var_GCJ=no
17706 ;;
17707
17708 sysv4)
17709 case $host_vendor in
17710 sni)
17711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17712 hardcode_direct_GCJ=yes # is this really true???
17713 ;;
17714 siemens)
17715 ## LD is ld it makes a PLAMLIB
17716 ## CC just makes a GrossModule.
17717 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17718 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17719 hardcode_direct_GCJ=no
17720 ;;
17721 motorola)
17722 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17724 ;;
17725 esac
17726 runpath_var='LD_RUN_PATH'
17727 hardcode_shlibpath_var_GCJ=no
17728 ;;
17729
17730 sysv4.3*)
17731 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17732 hardcode_shlibpath_var_GCJ=no
17733 export_dynamic_flag_spec_GCJ='-Bexport'
17734 ;;
17735
17736 sysv4*MP*)
17737 if test -d /usr/nec; then
17738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739 hardcode_shlibpath_var_GCJ=no
17740 runpath_var=LD_RUN_PATH
17741 hardcode_runpath_var=yes
17742 ld_shlibs_GCJ=yes
17743 fi
17744 ;;
17745
17746 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17747 no_undefined_flag_GCJ='${wl}-z,text'
17748 archive_cmds_need_lc_GCJ=no
17749 hardcode_shlibpath_var_GCJ=no
17750 runpath_var='LD_RUN_PATH'
17751
17752 if test "$GCC" = yes; then
17753 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17754 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17755 else
17756 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758 fi
17759 ;;
17760
17761 sysv5* | sco3.2v5* | sco5v6*)
17762 # Note: We can NOT use -z defs as we might desire, because we do not
17763 # link with -lc, and that would cause any symbols used from libc to
17764 # always be unresolved, which means just about no library would
17765 # ever link correctly. If we're not using GNU ld we use -z text
17766 # though, which does catch some bad symbols but isn't as heavy-handed
17767 # as -z defs.
17768 no_undefined_flag_GCJ='${wl}-z,text'
17769 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17770 archive_cmds_need_lc_GCJ=no
17771 hardcode_shlibpath_var_GCJ=no
17772 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17773 hardcode_libdir_separator_GCJ=':'
17774 link_all_deplibs_GCJ=yes
17775 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17776 runpath_var='LD_RUN_PATH'
17777
17778 if test "$GCC" = yes; then
17779 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17780 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17781 else
17782 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784 fi
17785 ;;
17786
17787 uts4*)
17788 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17790 hardcode_shlibpath_var_GCJ=no
17791 ;;
17792
17793 *)
17794 ld_shlibs_GCJ=no
17795 ;;
17796 esac
17797 fi
17798
17799 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17800 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17801 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17802
17803 #
17804 # Do we need to explicitly link libc?
17805 #
17806 case "x$archive_cmds_need_lc_GCJ" in
17807 x|xyes)
17808 # Assume -lc should be added
17809 archive_cmds_need_lc_GCJ=yes
17810
17811 if test "$enable_shared" = yes && test "$GCC" = yes; then
17812 case $archive_cmds_GCJ in
17813 *'~'*)
17814 # FIXME: we may have to deal with multi-command sequences.
17815 ;;
17816 '$CC '*)
17817 # Test whether the compiler implicitly links with -lc since on some
17818 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17819 # to ld, don't add -lc before -lgcc.
17820 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17821 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17822 $rm conftest*
17823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17824
17825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17826 (eval $ac_compile) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } 2>conftest.err; then
17830 soname=conftest
17831 lib=conftest
17832 libobjs=conftest.$ac_objext
17833 deplibs=
17834 wl=$lt_prog_compiler_wl_GCJ
17835 pic_flag=$lt_prog_compiler_pic_GCJ
17836 compiler_flags=-v
17837 linker_flags=-v
17838 verstring=
17839 output_objdir=.
17840 libname=conftest
17841 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17842 allow_undefined_flag_GCJ=
17843 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17844 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }
17848 then
17849 archive_cmds_need_lc_GCJ=no
17850 else
17851 archive_cmds_need_lc_GCJ=yes
17852 fi
17853 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17854 else
17855 cat conftest.err 1>&5
17856 fi
17857 $rm conftest*
17858 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17859 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17860 ;;
17861 esac
17862 fi
17863 ;;
17864 esac
17865
17866 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17867 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17868 library_names_spec=
17869 libname_spec='lib$name'
17870 soname_spec=
17871 shrext_cmds=".so"
17872 postinstall_cmds=
17873 postuninstall_cmds=
17874 finish_cmds=
17875 finish_eval=
17876 shlibpath_var=
17877 shlibpath_overrides_runpath=unknown
17878 version_type=none
17879 dynamic_linker="$host_os ld.so"
17880 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17881
17882 need_lib_prefix=unknown
17883 hardcode_into_libs=no
17884
17885 # when you set need_version to no, make sure it does not cause -set_version
17886 # flags to be left without arguments
17887 need_version=unknown
17888
17889 case $host_os in
17890 aix3*)
17891 version_type=linux
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17893 shlibpath_var=LIBPATH
17894
17895 # AIX 3 has no versioning support, so we append a major version to the name.
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 ;;
17898
17899 aix4* | aix5*)
17900 version_type=linux
17901 need_lib_prefix=no
17902 need_version=no
17903 hardcode_into_libs=yes
17904 if test "$host_cpu" = ia64; then
17905 # AIX 5 supports IA64
17906 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17907 shlibpath_var=LD_LIBRARY_PATH
17908 else
17909 # With GCC up to 2.95.x, collect2 would create an import file
17910 # for dependence libraries. The import file would start with
17911 # the line `#! .'. This would cause the generated library to
17912 # depend on `.', always an invalid library. This was fixed in
17913 # development snapshots of GCC prior to 3.0.
17914 case $host_os in
17915 aix4 | aix4.[01] | aix4.[01].*)
17916 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17917 echo ' yes '
17918 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17919 :
17920 else
17921 can_build_shared=no
17922 fi
17923 ;;
17924 esac
17925 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17926 # soname into executable. Probably we can add versioning support to
17927 # collect2, so additional links can be useful in future.
17928 if test "$aix_use_runtimelinking" = yes; then
17929 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17930 # instead of lib<name>.a to let people know that these are not
17931 # typical AIX shared libraries.
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17933 else
17934 # We preserve .a as extension for shared libraries through AIX4.2
17935 # and later when we are not doing run time linking.
17936 library_names_spec='${libname}${release}.a $libname.a'
17937 soname_spec='${libname}${release}${shared_ext}$major'
17938 fi
17939 shlibpath_var=LIBPATH
17940 fi
17941 ;;
17942
17943 amigaos*)
17944 library_names_spec='$libname.ixlibrary $libname.a'
17945 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17946 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'
17947 ;;
17948
17949 beos*)
17950 library_names_spec='${libname}${shared_ext}'
17951 dynamic_linker="$host_os ld.so"
17952 shlibpath_var=LIBRARY_PATH
17953 ;;
17954
17955 bsdi[45]*)
17956 version_type=linux
17957 need_version=no
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17959 soname_spec='${libname}${release}${shared_ext}$major'
17960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17964 # the default ld.so.conf also contains /usr/contrib/lib and
17965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17966 # libtool to hard-code these into programs
17967 ;;
17968
17969 cygwin* | mingw* | pw32*)
17970 version_type=windows
17971 shrext_cmds=".dll"
17972 need_version=no
17973 need_lib_prefix=no
17974
17975 case $GCC,$host_os in
17976 yes,cygwin* | yes,mingw* | yes,pw32*)
17977 library_names_spec='$libname.dll.a'
17978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17979 postinstall_cmds='base_file=`basename \${file}`~
17980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17981 dldir=$destdir/`dirname \$dlpath`~
17982 test -d \$dldir || mkdir -p \$dldir~
17983 $install_prog $dir/$dlname \$dldir/$dlname~
17984 chmod a+x \$dldir/$dlname'
17985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17986 dlpath=$dir/\$dldll~
17987 $rm \$dlpath'
17988 shlibpath_overrides_runpath=yes
17989
17990 case $host_os in
17991 cygwin*)
17992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17994 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17995 ;;
17996 mingw*)
17997 # MinGW DLLs use traditional 'lib' prefix
17998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17999 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18000 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18001 # It is most probably a Windows format PATH printed by
18002 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18003 # path with ; separators, and with drive letters. We can handle the
18004 # drive letters (cygwin fileutils understands them), so leave them,
18005 # especially as we might pass files found there to a mingw objdump,
18006 # which wouldn't understand a cygwinified path. Ahh.
18007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18008 else
18009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18010 fi
18011 ;;
18012 pw32*)
18013 # pw32 DLLs use 'pw' prefix rather than 'lib'
18014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18015 ;;
18016 esac
18017 ;;
18018
18019 *)
18020 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18021 ;;
18022 esac
18023 dynamic_linker='Win32 ld.exe'
18024 # FIXME: first we should search . and the directory the executable is in
18025 shlibpath_var=PATH
18026 ;;
18027
18028 darwin* | rhapsody*)
18029 dynamic_linker="$host_os dyld"
18030 version_type=darwin
18031 need_lib_prefix=no
18032 need_version=no
18033 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18034 soname_spec='${libname}${release}${major}$shared_ext'
18035 shlibpath_overrides_runpath=yes
18036 shlibpath_var=DYLD_LIBRARY_PATH
18037 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18038
18039 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18040 ;;
18041
18042 dgux*)
18043 version_type=linux
18044 need_lib_prefix=no
18045 need_version=no
18046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18047 soname_spec='${libname}${release}${shared_ext}$major'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 ;;
18050
18051 freebsd1*)
18052 dynamic_linker=no
18053 ;;
18054
18055 freebsd* | dragonfly*)
18056 # DragonFly does not have aout. When/if they implement a new
18057 # versioning mechanism, adjust this.
18058 if test -x /usr/bin/objformat; then
18059 objformat=`/usr/bin/objformat`
18060 else
18061 case $host_os in
18062 freebsd[123]*) objformat=aout ;;
18063 *) objformat=elf ;;
18064 esac
18065 fi
18066 version_type=freebsd-$objformat
18067 case $version_type in
18068 freebsd-elf*)
18069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18070 need_version=no
18071 need_lib_prefix=no
18072 ;;
18073 freebsd-*)
18074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18075 need_version=yes
18076 ;;
18077 esac
18078 shlibpath_var=LD_LIBRARY_PATH
18079 case $host_os in
18080 freebsd2*)
18081 shlibpath_overrides_runpath=yes
18082 ;;
18083 freebsd3.[01]* | freebsdelf3.[01]*)
18084 shlibpath_overrides_runpath=yes
18085 hardcode_into_libs=yes
18086 ;;
18087 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18088 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18089 shlibpath_overrides_runpath=no
18090 hardcode_into_libs=yes
18091 ;;
18092 *) # from 4.6 on, and DragonFly
18093 shlibpath_overrides_runpath=yes
18094 hardcode_into_libs=yes
18095 ;;
18096 esac
18097 ;;
18098
18099 gnu*)
18100 version_type=linux
18101 need_lib_prefix=no
18102 need_version=no
18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18104 soname_spec='${libname}${release}${shared_ext}$major'
18105 shlibpath_var=LD_LIBRARY_PATH
18106 hardcode_into_libs=yes
18107 ;;
18108
18109 hpux9* | hpux10* | hpux11*)
18110 # Give a soname corresponding to the major version so that dld.sl refuses to
18111 # link against other versions.
18112 version_type=sunos
18113 need_lib_prefix=no
18114 need_version=no
18115 case $host_cpu in
18116 ia64*)
18117 shrext_cmds='.so'
18118 hardcode_into_libs=yes
18119 dynamic_linker="$host_os dld.so"
18120 shlibpath_var=LD_LIBRARY_PATH
18121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18123 soname_spec='${libname}${release}${shared_ext}$major'
18124 if test "X$HPUX_IA64_MODE" = X32; then
18125 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18126 else
18127 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18128 fi
18129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18130 ;;
18131 hppa*64*)
18132 shrext_cmds='.sl'
18133 hardcode_into_libs=yes
18134 dynamic_linker="$host_os dld.sl"
18135 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18141 ;;
18142 *)
18143 shrext_cmds='.sl'
18144 dynamic_linker="$host_os dld.sl"
18145 shlibpath_var=SHLIB_PATH
18146 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 ;;
18150 esac
18151 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18152 postinstall_cmds='chmod 555 $lib'
18153 ;;
18154
18155 interix[3-9]*)
18156 version_type=linux
18157 need_lib_prefix=no
18158 need_version=no
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18161 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18162 shlibpath_var=LD_LIBRARY_PATH
18163 shlibpath_overrides_runpath=no
18164 hardcode_into_libs=yes
18165 ;;
18166
18167 irix5* | irix6* | nonstopux*)
18168 case $host_os in
18169 nonstopux*) version_type=nonstopux ;;
18170 *)
18171 if test "$lt_cv_prog_gnu_ld" = yes; then
18172 version_type=linux
18173 else
18174 version_type=irix
18175 fi ;;
18176 esac
18177 need_lib_prefix=no
18178 need_version=no
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18181 case $host_os in
18182 irix5* | nonstopux*)
18183 libsuff= shlibsuff=
18184 ;;
18185 *)
18186 case $LD in # libtool.m4 will add one of these switches to LD
18187 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18188 libsuff= shlibsuff= libmagic=32-bit;;
18189 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18190 libsuff=32 shlibsuff=N32 libmagic=N32;;
18191 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18192 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18193 *) libsuff= shlibsuff= libmagic=never-match;;
18194 esac
18195 ;;
18196 esac
18197 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18198 shlibpath_overrides_runpath=no
18199 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18200 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18201 hardcode_into_libs=yes
18202 ;;
18203
18204 # No shared lib support for Linux oldld, aout, or coff.
18205 linux*oldld* | linux*aout* | linux*coff*)
18206 dynamic_linker=no
18207 ;;
18208
18209 # This must be Linux ELF.
18210 linux* | k*bsd*-gnu)
18211 version_type=linux
18212 need_lib_prefix=no
18213 need_version=no
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215 soname_spec='${libname}${release}${shared_ext}$major'
18216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18217 shlibpath_var=LD_LIBRARY_PATH
18218 shlibpath_overrides_runpath=no
18219 # This implies no fast_install, which is unacceptable.
18220 # Some rework will be needed to allow for fast_install
18221 # before this can be enabled.
18222 hardcode_into_libs=yes
18223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18225
18226 # Append ld.so.conf contents to the search path
18227 if test -f /etc/ld.so.conf; then
18228 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18229 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18230 fi
18231
18232 # We used to test for /lib/ld.so.1 and disable shared libraries on
18233 # powerpc, because MkLinux only supported shared libraries with the
18234 # GNU dynamic linker. Since this was broken with cross compilers,
18235 # most powerpc-linux boxes support dynamic linking these days and
18236 # people can always --disable-shared, the test was removed, and we
18237 # assume the GNU/Linux dynamic linker is in use.
18238 dynamic_linker='GNU/Linux ld.so'
18239 ;;
18240
18241 netbsd*)
18242 version_type=sunos
18243 need_lib_prefix=no
18244 need_version=no
18245 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18248 dynamic_linker='NetBSD (a.out) ld.so'
18249 else
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18251 soname_spec='${libname}${release}${shared_ext}$major'
18252 dynamic_linker='NetBSD ld.elf_so'
18253 fi
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=yes
18256 hardcode_into_libs=yes
18257 ;;
18258
18259 newsos6)
18260 version_type=linux
18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262 shlibpath_var=LD_LIBRARY_PATH
18263 shlibpath_overrides_runpath=yes
18264 ;;
18265
18266 nto-qnx*)
18267 version_type=linux
18268 need_lib_prefix=no
18269 need_version=no
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271 soname_spec='${libname}${release}${shared_ext}$major'
18272 shlibpath_var=LD_LIBRARY_PATH
18273 shlibpath_overrides_runpath=yes
18274 ;;
18275
18276 openbsd*)
18277 version_type=sunos
18278 sys_lib_dlsearch_path_spec="/usr/lib"
18279 need_lib_prefix=no
18280 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18281 case $host_os in
18282 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18283 *) need_version=no ;;
18284 esac
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18287 shlibpath_var=LD_LIBRARY_PATH
18288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18289 case $host_os in
18290 openbsd2.[89] | openbsd2.[89].*)
18291 shlibpath_overrides_runpath=no
18292 ;;
18293 *)
18294 shlibpath_overrides_runpath=yes
18295 ;;
18296 esac
18297 else
18298 shlibpath_overrides_runpath=yes
18299 fi
18300 ;;
18301
18302 os2*)
18303 libname_spec='$name'
18304 shrext_cmds=".dll"
18305 need_lib_prefix=no
18306 library_names_spec='$libname${shared_ext} $libname.a'
18307 dynamic_linker='OS/2 ld.exe'
18308 shlibpath_var=LIBPATH
18309 ;;
18310
18311 osf3* | osf4* | osf5*)
18312 version_type=osf
18313 need_lib_prefix=no
18314 need_version=no
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317 shlibpath_var=LD_LIBRARY_PATH
18318 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18319 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18320 ;;
18321
18322 rdos*)
18323 dynamic_linker=no
18324 ;;
18325
18326 solaris*)
18327 version_type=linux
18328 need_lib_prefix=no
18329 need_version=no
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=yes
18334 hardcode_into_libs=yes
18335 # ldd complains unless libraries are executable
18336 postinstall_cmds='chmod +x $lib'
18337 ;;
18338
18339 sunos4*)
18340 version_type=sunos
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18342 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18343 shlibpath_var=LD_LIBRARY_PATH
18344 shlibpath_overrides_runpath=yes
18345 if test "$with_gnu_ld" = yes; then
18346 need_lib_prefix=no
18347 fi
18348 need_version=yes
18349 ;;
18350
18351 sysv4 | sysv4.3*)
18352 version_type=linux
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354 soname_spec='${libname}${release}${shared_ext}$major'
18355 shlibpath_var=LD_LIBRARY_PATH
18356 case $host_vendor in
18357 sni)
18358 shlibpath_overrides_runpath=no
18359 need_lib_prefix=no
18360 export_dynamic_flag_spec='${wl}-Blargedynsym'
18361 runpath_var=LD_RUN_PATH
18362 ;;
18363 siemens)
18364 need_lib_prefix=no
18365 ;;
18366 motorola)
18367 need_lib_prefix=no
18368 need_version=no
18369 shlibpath_overrides_runpath=no
18370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18371 ;;
18372 esac
18373 ;;
18374
18375 sysv4*MP*)
18376 if test -d /usr/nec ;then
18377 version_type=linux
18378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18379 soname_spec='$libname${shared_ext}.$major'
18380 shlibpath_var=LD_LIBRARY_PATH
18381 fi
18382 ;;
18383
18384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18385 version_type=freebsd-elf
18386 need_lib_prefix=no
18387 need_version=no
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18389 soname_spec='${libname}${release}${shared_ext}$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18391 hardcode_into_libs=yes
18392 if test "$with_gnu_ld" = yes; then
18393 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18394 shlibpath_overrides_runpath=no
18395 else
18396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18397 shlibpath_overrides_runpath=yes
18398 case $host_os in
18399 sco3.2v5*)
18400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18401 ;;
18402 esac
18403 fi
18404 sys_lib_dlsearch_path_spec='/usr/lib'
18405 ;;
18406
18407 uts4*)
18408 version_type=linux
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18410 soname_spec='${libname}${release}${shared_ext}$major'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 ;;
18413
18414 *)
18415 dynamic_linker=no
18416 ;;
18417 esac
18418 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18419 echo "${ECHO_T}$dynamic_linker" >&6; }
18420 test "$dynamic_linker" = no && can_build_shared=no
18421
18422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18423 if test "$GCC" = yes; then
18424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18425 fi
18426
18427 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18428 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18429 hardcode_action_GCJ=
18430 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18431 test -n "$runpath_var_GCJ" || \
18432 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18433
18434 # We can hardcode non-existant directories.
18435 if test "$hardcode_direct_GCJ" != no &&
18436 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18437 # have to relink, otherwise we might link with an installed library
18438 # when we should be linking with a yet-to-be-installed one
18439 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18440 test "$hardcode_minus_L_GCJ" != no; then
18441 # Linking always hardcodes the temporary library directory.
18442 hardcode_action_GCJ=relink
18443 else
18444 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18445 hardcode_action_GCJ=immediate
18446 fi
18447 else
18448 # We cannot hardcode anything, or else we can only hardcode existing
18449 # directories.
18450 hardcode_action_GCJ=unsupported
18451 fi
18452 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18453 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18454
18455 if test "$hardcode_action_GCJ" = relink; then
18456 # Fast installation is not supported
18457 enable_fast_install=no
18458 elif test "$shlibpath_overrides_runpath" = yes ||
18459 test "$enable_shared" = no; then
18460 # Fast installation is not necessary
18461 enable_fast_install=needless
18462 fi
18463
18464
18465 # The else clause should only fire when bootstrapping the
18466 # libtool distribution, otherwise you forgot to ship ltmain.sh
18467 # with your package, and you will get complaints that there are
18468 # no rules to generate ltmain.sh.
18469 if test -f "$ltmain"; then
18470 # See if we are running on zsh, and set the options which allow our commands through
18471 # without removal of \ escapes.
18472 if test -n "${ZSH_VERSION+set}" ; then
18473 setopt NO_GLOB_SUBST
18474 fi
18475 # Now quote all the things that may contain metacharacters while being
18476 # careful not to overquote the AC_SUBSTed values. We take copies of the
18477 # variables and quote the copies for generation of the libtool script.
18478 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18479 SED SHELL STRIP \
18480 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18481 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18482 deplibs_check_method reload_flag reload_cmds need_locks \
18483 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18484 lt_cv_sys_global_symbol_to_c_name_address \
18485 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18486 old_postinstall_cmds old_postuninstall_cmds \
18487 compiler_GCJ \
18488 CC_GCJ \
18489 LD_GCJ \
18490 lt_prog_compiler_wl_GCJ \
18491 lt_prog_compiler_pic_GCJ \
18492 lt_prog_compiler_static_GCJ \
18493 lt_prog_compiler_no_builtin_flag_GCJ \
18494 export_dynamic_flag_spec_GCJ \
18495 thread_safe_flag_spec_GCJ \
18496 whole_archive_flag_spec_GCJ \
18497 enable_shared_with_static_runtimes_GCJ \
18498 old_archive_cmds_GCJ \
18499 old_archive_from_new_cmds_GCJ \
18500 predep_objects_GCJ \
18501 postdep_objects_GCJ \
18502 predeps_GCJ \
18503 postdeps_GCJ \
18504 compiler_lib_search_path_GCJ \
18505 archive_cmds_GCJ \
18506 archive_expsym_cmds_GCJ \
18507 postinstall_cmds_GCJ \
18508 postuninstall_cmds_GCJ \
18509 old_archive_from_expsyms_cmds_GCJ \
18510 allow_undefined_flag_GCJ \
18511 no_undefined_flag_GCJ \
18512 export_symbols_cmds_GCJ \
18513 hardcode_libdir_flag_spec_GCJ \
18514 hardcode_libdir_flag_spec_ld_GCJ \
18515 hardcode_libdir_separator_GCJ \
18516 hardcode_automatic_GCJ \
18517 module_cmds_GCJ \
18518 module_expsym_cmds_GCJ \
18519 lt_cv_prog_compiler_c_o_GCJ \
18520 fix_srcfile_path_GCJ \
18521 exclude_expsyms_GCJ \
18522 include_expsyms_GCJ; do
18523
18524 case $var in
18525 old_archive_cmds_GCJ | \
18526 old_archive_from_new_cmds_GCJ | \
18527 archive_cmds_GCJ | \
18528 archive_expsym_cmds_GCJ | \
18529 module_cmds_GCJ | \
18530 module_expsym_cmds_GCJ | \
18531 old_archive_from_expsyms_cmds_GCJ | \
18532 export_symbols_cmds_GCJ | \
18533 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18534 postinstall_cmds | postuninstall_cmds | \
18535 old_postinstall_cmds | old_postuninstall_cmds | \
18536 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18537 # Double-quote double-evaled strings.
18538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18539 ;;
18540 *)
18541 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18542 ;;
18543 esac
18544 done
18545
18546 case $lt_echo in
18547 *'\$0 --fallback-echo"')
18548 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18549 ;;
18550 esac
18551
18552 cfgfile="$ofile"
18553
18554 cat <<__EOF__ >> "$cfgfile"
18555 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18556
18557 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18558
18559 # Shell to use when invoking shell scripts.
18560 SHELL=$lt_SHELL
18561
18562 # Whether or not to build shared libraries.
18563 build_libtool_libs=$enable_shared
18564
18565 # Whether or not to build static libraries.
18566 build_old_libs=$enable_static
18567
18568 # Whether or not to add -lc for building shared libraries.
18569 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18570
18571 # Whether or not to disallow shared libs when runtime libs are static
18572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18573
18574 # Whether or not to optimize for fast installation.
18575 fast_install=$enable_fast_install
18576
18577 # The host system.
18578 host_alias=$host_alias
18579 host=$host
18580 host_os=$host_os
18581
18582 # The build system.
18583 build_alias=$build_alias
18584 build=$build
18585 build_os=$build_os
18586
18587 # An echo program that does not interpret backslashes.
18588 echo=$lt_echo
18589
18590 # The archiver.
18591 AR=$lt_AR
18592 AR_FLAGS=$lt_AR_FLAGS
18593
18594 # A C compiler.
18595 LTCC=$lt_LTCC
18596
18597 # LTCC compiler flags.
18598 LTCFLAGS=$lt_LTCFLAGS
18599
18600 # A language-specific compiler.
18601 CC=$lt_compiler_GCJ
18602
18603 # Is the compiler the GNU C compiler?
18604 with_gcc=$GCC_GCJ
18605
18606 # An ERE matcher.
18607 EGREP=$lt_EGREP
18608
18609 # The linker used to build libraries.
18610 LD=$lt_LD_GCJ
18611
18612 # Whether we need hard or soft links.
18613 LN_S=$lt_LN_S
18614
18615 # A BSD-compatible nm program.
18616 NM=$lt_NM
18617
18618 # A symbol stripping program
18619 STRIP=$lt_STRIP
18620
18621 # Used to examine libraries when file_magic_cmd begins "file"
18622 MAGIC_CMD=$MAGIC_CMD
18623
18624 # Used on cygwin: DLL creation program.
18625 DLLTOOL="$DLLTOOL"
18626
18627 # Used on cygwin: object dumper.
18628 OBJDUMP="$OBJDUMP"
18629
18630 # Used on cygwin: assembler.
18631 AS="$AS"
18632
18633 # The name of the directory that contains temporary libtool files.
18634 objdir=$objdir
18635
18636 # How to create reloadable object files.
18637 reload_flag=$lt_reload_flag
18638 reload_cmds=$lt_reload_cmds
18639
18640 # How to pass a linker flag through the compiler.
18641 wl=$lt_lt_prog_compiler_wl_GCJ
18642
18643 # Object file suffix (normally "o").
18644 objext="$ac_objext"
18645
18646 # Old archive suffix (normally "a").
18647 libext="$libext"
18648
18649 # Shared library suffix (normally ".so").
18650 shrext_cmds='$shrext_cmds'
18651
18652 # Executable file suffix (normally "").
18653 exeext="$exeext"
18654
18655 # Additional compiler flags for building library objects.
18656 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18657 pic_mode=$pic_mode
18658
18659 # What is the maximum length of a command?
18660 max_cmd_len=$lt_cv_sys_max_cmd_len
18661
18662 # Does compiler simultaneously support -c and -o options?
18663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18664
18665 # Must we lock files when doing compilation?
18666 need_locks=$lt_need_locks
18667
18668 # Do we need the lib prefix for modules?
18669 need_lib_prefix=$need_lib_prefix
18670
18671 # Do we need a version for libraries?
18672 need_version=$need_version
18673
18674 # Whether dlopen is supported.
18675 dlopen_support=$enable_dlopen
18676
18677 # Whether dlopen of programs is supported.
18678 dlopen_self=$enable_dlopen_self
18679
18680 # Whether dlopen of statically linked programs is supported.
18681 dlopen_self_static=$enable_dlopen_self_static
18682
18683 # Compiler flag to prevent dynamic linking.
18684 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18685
18686 # Compiler flag to turn off builtin functions.
18687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18688
18689 # Compiler flag to allow reflexive dlopens.
18690 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18691
18692 # Compiler flag to generate shared objects directly from archives.
18693 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18694
18695 # Compiler flag to generate thread-safe objects.
18696 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18697
18698 # Library versioning type.
18699 version_type=$version_type
18700
18701 # Format of library name prefix.
18702 libname_spec=$lt_libname_spec
18703
18704 # List of archive names. First name is the real one, the rest are links.
18705 # The last name is the one that the linker finds with -lNAME.
18706 library_names_spec=$lt_library_names_spec
18707
18708 # The coded name of the library, if different from the real name.
18709 soname_spec=$lt_soname_spec
18710
18711 # Commands used to build and install an old-style archive.
18712 RANLIB=$lt_RANLIB
18713 old_archive_cmds=$lt_old_archive_cmds_GCJ
18714 old_postinstall_cmds=$lt_old_postinstall_cmds
18715 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18716
18717 # Create an old-style archive from a shared archive.
18718 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18719
18720 # Create a temporary old-style archive to link instead of a shared archive.
18721 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18722
18723 # Commands used to build and install a shared archive.
18724 archive_cmds=$lt_archive_cmds_GCJ
18725 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18726 postinstall_cmds=$lt_postinstall_cmds
18727 postuninstall_cmds=$lt_postuninstall_cmds
18728
18729 # Commands used to build a loadable module (assumed same as above if empty)
18730 module_cmds=$lt_module_cmds_GCJ
18731 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18732
18733 # Commands to strip libraries.
18734 old_striplib=$lt_old_striplib
18735 striplib=$lt_striplib
18736
18737 # Dependencies to place before the objects being linked to create a
18738 # shared library.
18739 predep_objects=$lt_predep_objects_GCJ
18740
18741 # Dependencies to place after the objects being linked to create a
18742 # shared library.
18743 postdep_objects=$lt_postdep_objects_GCJ
18744
18745 # Dependencies to place before the objects being linked to create a
18746 # shared library.
18747 predeps=$lt_predeps_GCJ
18748
18749 # Dependencies to place after the objects being linked to create a
18750 # shared library.
18751 postdeps=$lt_postdeps_GCJ
18752
18753 # The library search path used internally by the compiler when linking
18754 # a shared library.
18755 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18756
18757 # Method to check whether dependent libraries are shared objects.
18758 deplibs_check_method=$lt_deplibs_check_method
18759
18760 # Command to use when deplibs_check_method == file_magic.
18761 file_magic_cmd=$lt_file_magic_cmd
18762
18763 # Flag that allows shared libraries with undefined symbols to be built.
18764 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18765
18766 # Flag that forces no undefined symbols.
18767 no_undefined_flag=$lt_no_undefined_flag_GCJ
18768
18769 # Commands used to finish a libtool library installation in a directory.
18770 finish_cmds=$lt_finish_cmds
18771
18772 # Same as above, but a single script fragment to be evaled but not shown.
18773 finish_eval=$lt_finish_eval
18774
18775 # Take the output of nm and produce a listing of raw symbols and C names.
18776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18777
18778 # Transform the output of nm in a proper C declaration
18779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18780
18781 # Transform the output of nm in a C name address pair
18782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18783
18784 # This is the shared library runtime path variable.
18785 runpath_var=$runpath_var
18786
18787 # This is the shared library path variable.
18788 shlibpath_var=$shlibpath_var
18789
18790 # Is shlibpath searched before the hard-coded library search path?
18791 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18792
18793 # How to hardcode a shared library path into an executable.
18794 hardcode_action=$hardcode_action_GCJ
18795
18796 # Whether we should hardcode library paths into libraries.
18797 hardcode_into_libs=$hardcode_into_libs
18798
18799 # Flag to hardcode \$libdir into a binary during linking.
18800 # This must work even if \$libdir does not exist.
18801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18802
18803 # If ld is used when linking, flag to hardcode \$libdir into
18804 # a binary during linking. This must work even if \$libdir does
18805 # not exist.
18806 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18807
18808 # Whether we need a single -rpath flag with a separated argument.
18809 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18810
18811 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18812 # resulting binary.
18813 hardcode_direct=$hardcode_direct_GCJ
18814
18815 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18816 # resulting binary.
18817 hardcode_minus_L=$hardcode_minus_L_GCJ
18818
18819 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18820 # the resulting binary.
18821 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18822
18823 # Set to yes if building a shared library automatically hardcodes DIR into the library
18824 # and all subsequent libraries and executables linked against it.
18825 hardcode_automatic=$hardcode_automatic_GCJ
18826
18827 # Variables whose values should be saved in libtool wrapper scripts and
18828 # restored at relink time.
18829 variables_saved_for_relink="$variables_saved_for_relink"
18830
18831 # Whether libtool must link a program against all its dependency libraries.
18832 link_all_deplibs=$link_all_deplibs_GCJ
18833
18834 # Compile-time system search path for libraries
18835 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18836
18837 # Run-time system search path for libraries
18838 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18839
18840 # Fix the shell variable \$srcfile for the compiler.
18841 fix_srcfile_path=$lt_fix_srcfile_path
18842
18843 # Set to yes if exported symbols are required.
18844 always_export_symbols=$always_export_symbols_GCJ
18845
18846 # The commands to list exported symbols.
18847 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18848
18849 # The commands to extract the exported symbol list from a shared archive.
18850 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18851
18852 # Symbols that should not be listed in the preloaded symbols.
18853 exclude_expsyms=$lt_exclude_expsyms_GCJ
18854
18855 # Symbols that must always be exported.
18856 include_expsyms=$lt_include_expsyms_GCJ
18857
18858 # ### END LIBTOOL TAG CONFIG: $tagname
18859
18860 __EOF__
18861
18862
18863 else
18864 # If there is no Makefile yet, we rely on a make rule to execute
18865 # `config.status --recheck' to rerun these tests and create the
18866 # libtool script then.
18867 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18868 if test -f "$ltmain_in"; then
18869 test -f Makefile && make "$ltmain"
18870 fi
18871 fi
18872
18873
18874 ac_ext=c
18875 ac_cpp='$CPP $CPPFLAGS'
18876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18879
18880 CC="$lt_save_CC"
18881
18882 else
18883 tagname=""
18884 fi
18885 ;;
18886
18887 RC)
18888
18889
18890 # Source file extension for RC test sources.
18891 ac_ext=rc
18892
18893 # Object file extension for compiled RC test sources.
18894 objext=o
18895 objext_RC=$objext
18896
18897 # Code to be used in simple compile tests
18898 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18899
18900 # Code to be used in simple link tests
18901 lt_simple_link_test_code="$lt_simple_compile_test_code"
18902
18903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18904
18905 # If no C compiler was specified, use CC.
18906 LTCC=${LTCC-"$CC"}
18907
18908 # If no C compiler flags were specified, use CFLAGS.
18909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18910
18911 # Allow CC to be a program name with arguments.
18912 compiler=$CC
18913
18914
18915 # save warnings/boilerplate of simple test code
18916 ac_outfile=conftest.$ac_objext
18917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18919 _lt_compiler_boilerplate=`cat conftest.err`
18920 $rm conftest*
18921
18922 ac_outfile=conftest.$ac_objext
18923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18925 _lt_linker_boilerplate=`cat conftest.err`
18926 $rm conftest*
18927
18928
18929 # Allow CC to be a program name with arguments.
18930 lt_save_CC="$CC"
18931 CC=${RC-"windres"}
18932 compiler=$CC
18933 compiler_RC=$CC
18934 for cc_temp in $compiler""; do
18935 case $cc_temp in
18936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18938 \-*) ;;
18939 *) break;;
18940 esac
18941 done
18942 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18943
18944 lt_cv_prog_compiler_c_o_RC=yes
18945
18946 # The else clause should only fire when bootstrapping the
18947 # libtool distribution, otherwise you forgot to ship ltmain.sh
18948 # with your package, and you will get complaints that there are
18949 # no rules to generate ltmain.sh.
18950 if test -f "$ltmain"; then
18951 # See if we are running on zsh, and set the options which allow our commands through
18952 # without removal of \ escapes.
18953 if test -n "${ZSH_VERSION+set}" ; then
18954 setopt NO_GLOB_SUBST
18955 fi
18956 # Now quote all the things that may contain metacharacters while being
18957 # careful not to overquote the AC_SUBSTed values. We take copies of the
18958 # variables and quote the copies for generation of the libtool script.
18959 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18960 SED SHELL STRIP \
18961 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18962 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18963 deplibs_check_method reload_flag reload_cmds need_locks \
18964 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18965 lt_cv_sys_global_symbol_to_c_name_address \
18966 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18967 old_postinstall_cmds old_postuninstall_cmds \
18968 compiler_RC \
18969 CC_RC \
18970 LD_RC \
18971 lt_prog_compiler_wl_RC \
18972 lt_prog_compiler_pic_RC \
18973 lt_prog_compiler_static_RC \
18974 lt_prog_compiler_no_builtin_flag_RC \
18975 export_dynamic_flag_spec_RC \
18976 thread_safe_flag_spec_RC \
18977 whole_archive_flag_spec_RC \
18978 enable_shared_with_static_runtimes_RC \
18979 old_archive_cmds_RC \
18980 old_archive_from_new_cmds_RC \
18981 predep_objects_RC \
18982 postdep_objects_RC \
18983 predeps_RC \
18984 postdeps_RC \
18985 compiler_lib_search_path_RC \
18986 archive_cmds_RC \
18987 archive_expsym_cmds_RC \
18988 postinstall_cmds_RC \
18989 postuninstall_cmds_RC \
18990 old_archive_from_expsyms_cmds_RC \
18991 allow_undefined_flag_RC \
18992 no_undefined_flag_RC \
18993 export_symbols_cmds_RC \
18994 hardcode_libdir_flag_spec_RC \
18995 hardcode_libdir_flag_spec_ld_RC \
18996 hardcode_libdir_separator_RC \
18997 hardcode_automatic_RC \
18998 module_cmds_RC \
18999 module_expsym_cmds_RC \
19000 lt_cv_prog_compiler_c_o_RC \
19001 fix_srcfile_path_RC \
19002 exclude_expsyms_RC \
19003 include_expsyms_RC; do
19004
19005 case $var in
19006 old_archive_cmds_RC | \
19007 old_archive_from_new_cmds_RC | \
19008 archive_cmds_RC | \
19009 archive_expsym_cmds_RC | \
19010 module_cmds_RC | \
19011 module_expsym_cmds_RC | \
19012 old_archive_from_expsyms_cmds_RC | \
19013 export_symbols_cmds_RC | \
19014 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19015 postinstall_cmds | postuninstall_cmds | \
19016 old_postinstall_cmds | old_postuninstall_cmds | \
19017 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19018 # Double-quote double-evaled strings.
19019 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19020 ;;
19021 *)
19022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19023 ;;
19024 esac
19025 done
19026
19027 case $lt_echo in
19028 *'\$0 --fallback-echo"')
19029 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19030 ;;
19031 esac
19032
19033 cfgfile="$ofile"
19034
19035 cat <<__EOF__ >> "$cfgfile"
19036 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19037
19038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19039
19040 # Shell to use when invoking shell scripts.
19041 SHELL=$lt_SHELL
19042
19043 # Whether or not to build shared libraries.
19044 build_libtool_libs=$enable_shared
19045
19046 # Whether or not to build static libraries.
19047 build_old_libs=$enable_static
19048
19049 # Whether or not to add -lc for building shared libraries.
19050 build_libtool_need_lc=$archive_cmds_need_lc_RC
19051
19052 # Whether or not to disallow shared libs when runtime libs are static
19053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19054
19055 # Whether or not to optimize for fast installation.
19056 fast_install=$enable_fast_install
19057
19058 # The host system.
19059 host_alias=$host_alias
19060 host=$host
19061 host_os=$host_os
19062
19063 # The build system.
19064 build_alias=$build_alias
19065 build=$build
19066 build_os=$build_os
19067
19068 # An echo program that does not interpret backslashes.
19069 echo=$lt_echo
19070
19071 # The archiver.
19072 AR=$lt_AR
19073 AR_FLAGS=$lt_AR_FLAGS
19074
19075 # A C compiler.
19076 LTCC=$lt_LTCC
19077
19078 # LTCC compiler flags.
19079 LTCFLAGS=$lt_LTCFLAGS
19080
19081 # A language-specific compiler.
19082 CC=$lt_compiler_RC
19083
19084 # Is the compiler the GNU C compiler?
19085 with_gcc=$GCC_RC
19086
19087 # An ERE matcher.
19088 EGREP=$lt_EGREP
19089
19090 # The linker used to build libraries.
19091 LD=$lt_LD_RC
19092
19093 # Whether we need hard or soft links.
19094 LN_S=$lt_LN_S
19095
19096 # A BSD-compatible nm program.
19097 NM=$lt_NM
19098
19099 # A symbol stripping program
19100 STRIP=$lt_STRIP
19101
19102 # Used to examine libraries when file_magic_cmd begins "file"
19103 MAGIC_CMD=$MAGIC_CMD
19104
19105 # Used on cygwin: DLL creation program.
19106 DLLTOOL="$DLLTOOL"
19107
19108 # Used on cygwin: object dumper.
19109 OBJDUMP="$OBJDUMP"
19110
19111 # Used on cygwin: assembler.
19112 AS="$AS"
19113
19114 # The name of the directory that contains temporary libtool files.
19115 objdir=$objdir
19116
19117 # How to create reloadable object files.
19118 reload_flag=$lt_reload_flag
19119 reload_cmds=$lt_reload_cmds
19120
19121 # How to pass a linker flag through the compiler.
19122 wl=$lt_lt_prog_compiler_wl_RC
19123
19124 # Object file suffix (normally "o").
19125 objext="$ac_objext"
19126
19127 # Old archive suffix (normally "a").
19128 libext="$libext"
19129
19130 # Shared library suffix (normally ".so").
19131 shrext_cmds='$shrext_cmds'
19132
19133 # Executable file suffix (normally "").
19134 exeext="$exeext"
19135
19136 # Additional compiler flags for building library objects.
19137 pic_flag=$lt_lt_prog_compiler_pic_RC
19138 pic_mode=$pic_mode
19139
19140 # What is the maximum length of a command?
19141 max_cmd_len=$lt_cv_sys_max_cmd_len
19142
19143 # Does compiler simultaneously support -c and -o options?
19144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19145
19146 # Must we lock files when doing compilation?
19147 need_locks=$lt_need_locks
19148
19149 # Do we need the lib prefix for modules?
19150 need_lib_prefix=$need_lib_prefix
19151
19152 # Do we need a version for libraries?
19153 need_version=$need_version
19154
19155 # Whether dlopen is supported.
19156 dlopen_support=$enable_dlopen
19157
19158 # Whether dlopen of programs is supported.
19159 dlopen_self=$enable_dlopen_self
19160
19161 # Whether dlopen of statically linked programs is supported.
19162 dlopen_self_static=$enable_dlopen_self_static
19163
19164 # Compiler flag to prevent dynamic linking.
19165 link_static_flag=$lt_lt_prog_compiler_static_RC
19166
19167 # Compiler flag to turn off builtin functions.
19168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19169
19170 # Compiler flag to allow reflexive dlopens.
19171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19172
19173 # Compiler flag to generate shared objects directly from archives.
19174 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19175
19176 # Compiler flag to generate thread-safe objects.
19177 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19178
19179 # Library versioning type.
19180 version_type=$version_type
19181
19182 # Format of library name prefix.
19183 libname_spec=$lt_libname_spec
19184
19185 # List of archive names. First name is the real one, the rest are links.
19186 # The last name is the one that the linker finds with -lNAME.
19187 library_names_spec=$lt_library_names_spec
19188
19189 # The coded name of the library, if different from the real name.
19190 soname_spec=$lt_soname_spec
19191
19192 # Commands used to build and install an old-style archive.
19193 RANLIB=$lt_RANLIB
19194 old_archive_cmds=$lt_old_archive_cmds_RC
19195 old_postinstall_cmds=$lt_old_postinstall_cmds
19196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19197
19198 # Create an old-style archive from a shared archive.
19199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19200
19201 # Create a temporary old-style archive to link instead of a shared archive.
19202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19203
19204 # Commands used to build and install a shared archive.
19205 archive_cmds=$lt_archive_cmds_RC
19206 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19207 postinstall_cmds=$lt_postinstall_cmds
19208 postuninstall_cmds=$lt_postuninstall_cmds
19209
19210 # Commands used to build a loadable module (assumed same as above if empty)
19211 module_cmds=$lt_module_cmds_RC
19212 module_expsym_cmds=$lt_module_expsym_cmds_RC
19213
19214 # Commands to strip libraries.
19215 old_striplib=$lt_old_striplib
19216 striplib=$lt_striplib
19217
19218 # Dependencies to place before the objects being linked to create a
19219 # shared library.
19220 predep_objects=$lt_predep_objects_RC
19221
19222 # Dependencies to place after the objects being linked to create a
19223 # shared library.
19224 postdep_objects=$lt_postdep_objects_RC
19225
19226 # Dependencies to place before the objects being linked to create a
19227 # shared library.
19228 predeps=$lt_predeps_RC
19229
19230 # Dependencies to place after the objects being linked to create a
19231 # shared library.
19232 postdeps=$lt_postdeps_RC
19233
19234 # The library search path used internally by the compiler when linking
19235 # a shared library.
19236 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19237
19238 # Method to check whether dependent libraries are shared objects.
19239 deplibs_check_method=$lt_deplibs_check_method
19240
19241 # Command to use when deplibs_check_method == file_magic.
19242 file_magic_cmd=$lt_file_magic_cmd
19243
19244 # Flag that allows shared libraries with undefined symbols to be built.
19245 allow_undefined_flag=$lt_allow_undefined_flag_RC
19246
19247 # Flag that forces no undefined symbols.
19248 no_undefined_flag=$lt_no_undefined_flag_RC
19249
19250 # Commands used to finish a libtool library installation in a directory.
19251 finish_cmds=$lt_finish_cmds
19252
19253 # Same as above, but a single script fragment to be evaled but not shown.
19254 finish_eval=$lt_finish_eval
19255
19256 # Take the output of nm and produce a listing of raw symbols and C names.
19257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19258
19259 # Transform the output of nm in a proper C declaration
19260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19261
19262 # Transform the output of nm in a C name address pair
19263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19264
19265 # This is the shared library runtime path variable.
19266 runpath_var=$runpath_var
19267
19268 # This is the shared library path variable.
19269 shlibpath_var=$shlibpath_var
19270
19271 # Is shlibpath searched before the hard-coded library search path?
19272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19273
19274 # How to hardcode a shared library path into an executable.
19275 hardcode_action=$hardcode_action_RC
19276
19277 # Whether we should hardcode library paths into libraries.
19278 hardcode_into_libs=$hardcode_into_libs
19279
19280 # Flag to hardcode \$libdir into a binary during linking.
19281 # This must work even if \$libdir does not exist.
19282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19283
19284 # If ld is used when linking, flag to hardcode \$libdir into
19285 # a binary during linking. This must work even if \$libdir does
19286 # not exist.
19287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19288
19289 # Whether we need a single -rpath flag with a separated argument.
19290 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19291
19292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19293 # resulting binary.
19294 hardcode_direct=$hardcode_direct_RC
19295
19296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19297 # resulting binary.
19298 hardcode_minus_L=$hardcode_minus_L_RC
19299
19300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19301 # the resulting binary.
19302 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19303
19304 # Set to yes if building a shared library automatically hardcodes DIR into the library
19305 # and all subsequent libraries and executables linked against it.
19306 hardcode_automatic=$hardcode_automatic_RC
19307
19308 # Variables whose values should be saved in libtool wrapper scripts and
19309 # restored at relink time.
19310 variables_saved_for_relink="$variables_saved_for_relink"
19311
19312 # Whether libtool must link a program against all its dependency libraries.
19313 link_all_deplibs=$link_all_deplibs_RC
19314
19315 # Compile-time system search path for libraries
19316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19317
19318 # Run-time system search path for libraries
19319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19320
19321 # Fix the shell variable \$srcfile for the compiler.
19322 fix_srcfile_path=$lt_fix_srcfile_path
19323
19324 # Set to yes if exported symbols are required.
19325 always_export_symbols=$always_export_symbols_RC
19326
19327 # The commands to list exported symbols.
19328 export_symbols_cmds=$lt_export_symbols_cmds_RC
19329
19330 # The commands to extract the exported symbol list from a shared archive.
19331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19332
19333 # Symbols that should not be listed in the preloaded symbols.
19334 exclude_expsyms=$lt_exclude_expsyms_RC
19335
19336 # Symbols that must always be exported.
19337 include_expsyms=$lt_include_expsyms_RC
19338
19339 # ### END LIBTOOL TAG CONFIG: $tagname
19340
19341 __EOF__
19342
19343
19344 else
19345 # If there is no Makefile yet, we rely on a make rule to execute
19346 # `config.status --recheck' to rerun these tests and create the
19347 # libtool script then.
19348 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19349 if test -f "$ltmain_in"; then
19350 test -f Makefile && make "$ltmain"
19351 fi
19352 fi
19353
19354
19355 ac_ext=c
19356 ac_cpp='$CPP $CPPFLAGS'
19357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19360
19361 CC="$lt_save_CC"
19362
19363 ;;
19364
19365 *)
19366 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19367 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19368 { (exit 1); exit 1; }; }
19369 ;;
19370 esac
19371
19372 # Append the new tag name to the list of available tags.
19373 if test -n "$tagname" ; then
19374 available_tags="$available_tags $tagname"
19375 fi
19376 fi
19377 done
19378 IFS="$lt_save_ifs"
19379
19380 # Now substitute the updated list of available tags.
19381 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19382 mv "${ofile}T" "$ofile"
19383 chmod +x "$ofile"
19384 else
19385 rm -f "${ofile}T"
19386 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19387 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19388 { (exit 1); exit 1; }; }
19389 fi
19390 fi
19391
19392
19393
19394 # This can be used to rebuild libtool when needed
19395 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19396
19397 # Always use our own libtool.
19398 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19399
19400 # Prevent multiple expansion
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422 if test "$GCC" = yes
19423 then
19424 CFLAGS="-Wall $CFLAGS"
19425 fi
19426 CFLAGS="$CFLAGS -I$srcdir/.. -I.."
19427
19428
19429
19430
19431 for ac_header in sys/types.h
19432 do
19433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 fi
19440 ac_res=`eval echo '${'$as_ac_Header'}'`
19441 { echo "$as_me:$LINENO: result: $ac_res" >&5
19442 echo "${ECHO_T}$ac_res" >&6; }
19443 else
19444 # Is the header compilable?
19445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h. */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19453 $ac_includes_default
19454 #include <$ac_header>
19455 _ACEOF
19456 rm -f conftest.$ac_objext
19457 if { (ac_try="$ac_compile"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_compile") 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } && {
19470 test -z "$ac_c_werror_flag" ||
19471 test ! -s conftest.err
19472 } && test -s conftest.$ac_objext; then
19473 ac_header_compiler=yes
19474 else
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19477
19478 ac_header_compiler=no
19479 fi
19480
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19483 echo "${ECHO_T}$ac_header_compiler" >&6; }
19484
19485 # Is the header present?
19486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 #include <$ac_header>
19495 _ACEOF
19496 if { (ac_try="$ac_cpp conftest.$ac_ext"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } >/dev/null && {
19509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 }; then
19512 ac_header_preproc=yes
19513 else
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517 ac_header_preproc=no
19518 fi
19519
19520 rm -f conftest.err conftest.$ac_ext
19521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19522 echo "${ECHO_T}$ac_header_preproc" >&6; }
19523
19524 # So? What about this header?
19525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19526 yes:no: )
19527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19531 ac_header_preproc=yes
19532 ;;
19533 no:yes:* )
19534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19546 ( cat <<\_ASBOX
19547 ## -------------------------------------------------- ##
19548 ## Report this to courier-users@lists.sourceforge.net ##
19549 ## -------------------------------------------------- ##
19550 _ASBOX
19551 ) | sed "s/^/$as_me: WARNING: /" >&2
19552 ;;
19553 esac
19554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559 eval "$as_ac_Header=\$ac_header_preproc"
19560 fi
19561 ac_res=`eval echo '${'$as_ac_Header'}'`
19562 { echo "$as_me:$LINENO: result: $ac_res" >&5
19563 echo "${ECHO_T}$ac_res" >&6; }
19564
19565 fi
19566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19567 cat >>confdefs.h <<_ACEOF
19568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19569 _ACEOF
19570
19571 fi
19572
19573 done
19574
19575
19576
19577 # Check whether --with-int32 was given.
19578 if test "${with_int32+set}" = set; then
19579 withval=$with_int32; int32="$withval"
19580 else
19581
19582
19583 { echo "$as_me:$LINENO: checking for uint32_t" >&5
19584 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
19585
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592
19593 #if HAVE_SYS_TYPES_H
19594 #include <sys/types.h>
19595 #endif
19596
19597 int
19598 main ()
19599 {
19600
19601 uint32_t i=0;
19602
19603 ;
19604 return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext
19608 if { (ac_try="$ac_compile"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_compile") 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest.$ac_objext; then
19624 { echo "$as_me:$LINENO: result: yes" >&5
19625 echo "${ECHO_T}yes" >&6; } ; int32="uint32_t"
19626 else
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630
19631
19632 { echo "$as_me:$LINENO: result: no" >&5
19633 echo "${ECHO_T}no" >&6; }
19634 { echo "$as_me:$LINENO: checking for u_int_32_t" >&5
19635 echo $ECHO_N "checking for u_int_32_t... $ECHO_C" >&6; }
19636
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h. */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643
19644 #if HAVE_SYS_TYPES_H
19645 #include <sys/types.h>
19646 #endif
19647
19648 int
19649 main ()
19650 {
19651
19652 u_int32_t i=0;
19653
19654 ;
19655 return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_compile") 2>conftest.er1
19666 ac_status=$?
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && {
19672 test -z "$ac_c_werror_flag" ||
19673 test ! -s conftest.err
19674 } && test -s conftest.$ac_objext; then
19675 { echo "$as_me:$LINENO: result: yes" >&5
19676 echo "${ECHO_T}yes" >&6; }; int32="u_int32_t"
19677 else
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681
19682
19683 { echo "$as_me:$LINENO: result: no" >&5
19684 echo "${ECHO_T}no" >&6; }
19685
19686 { echo "$as_me:$LINENO: checking for unsigned" >&5
19687 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
19688 if test "${ac_cv_type_unsigned+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 $ac_includes_default
19698 typedef unsigned ac__type_new_;
19699 int
19700 main ()
19701 {
19702 if ((ac__type_new_ *) 0)
19703 return 0;
19704 if (sizeof (ac__type_new_))
19705 return 0;
19706 ;
19707 return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext
19711 if { (ac_try="$ac_compile"
19712 case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && {
19724 test -z "$ac_c_werror_flag" ||
19725 test ! -s conftest.err
19726 } && test -s conftest.$ac_objext; then
19727 ac_cv_type_unsigned=yes
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 ac_cv_type_unsigned=no
19733 fi
19734
19735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19736 fi
19737 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
19738 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
19739
19740 # The cast to long int works around a bug in the HP C Compiler
19741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19743 # This bug is HP SR number 8606223364.
19744 { echo "$as_me:$LINENO: checking size of unsigned" >&5
19745 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
19746 if test "${ac_cv_sizeof_unsigned+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749 if test "$cross_compiling" = yes; then
19750 # Depending upon the size, compute the lo and hi bounds.
19751 cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h. */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 $ac_includes_default
19758 typedef unsigned ac__type_sizeof_;
19759 int
19760 main ()
19761 {
19762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19763 test_array [0] = 0
19764
19765 ;
19766 return 0;
19767 }
19768 _ACEOF
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_compile") 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest.$ac_objext; then
19786 ac_lo=0 ac_mid=0
19787 while :; do
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 $ac_includes_default
19795 typedef unsigned ac__type_sizeof_;
19796 int
19797 main ()
19798 {
19799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19800 test_array [0] = 0
19801
19802 ;
19803 return 0;
19804 }
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (ac_try="$ac_compile"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_compile") 2>conftest.er1
19814 ac_status=$?
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } && {
19820 test -z "$ac_c_werror_flag" ||
19821 test ! -s conftest.err
19822 } && test -s conftest.$ac_objext; then
19823 ac_hi=$ac_mid; break
19824 else
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 ac_lo=`expr $ac_mid + 1`
19829 if test $ac_lo -le $ac_mid; then
19830 ac_lo= ac_hi=
19831 break
19832 fi
19833 ac_mid=`expr 2 '*' $ac_mid + 1`
19834 fi
19835
19836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837 done
19838 else
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19841
19842 cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h. */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 $ac_includes_default
19849 typedef unsigned ac__type_sizeof_;
19850 int
19851 main ()
19852 {
19853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19854 test_array [0] = 0
19855
19856 ;
19857 return 0;
19858 }
19859 _ACEOF
19860 rm -f conftest.$ac_objext
19861 if { (ac_try="$ac_compile"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_compile") 2>conftest.er1
19868 ac_status=$?
19869 grep -v '^ *+' conftest.er1 >conftest.err
19870 rm -f conftest.er1
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest.$ac_objext; then
19877 ac_hi=-1 ac_mid=-1
19878 while :; do
19879 cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h. */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19885 $ac_includes_default
19886 typedef unsigned ac__type_sizeof_;
19887 int
19888 main ()
19889 {
19890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19891 test_array [0] = 0
19892
19893 ;
19894 return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_lo=$ac_mid; break
19915 else
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 ac_hi=`expr '(' $ac_mid ')' - 1`
19920 if test $ac_mid -le $ac_hi; then
19921 ac_lo= ac_hi=
19922 break
19923 fi
19924 ac_mid=`expr 2 '*' $ac_mid`
19925 fi
19926
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928 done
19929 else
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 ac_lo= ac_hi=
19934 fi
19935
19936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937 fi
19938
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 # Binary search between lo and hi bounds.
19941 while test "x$ac_lo" != "x$ac_hi"; do
19942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 $ac_includes_default
19950 typedef unsigned ac__type_sizeof_;
19951 int
19952 main ()
19953 {
19954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19955 test_array [0] = 0
19956
19957 ;
19958 return 0;
19959 }
19960 _ACEOF
19961 rm -f conftest.$ac_objext
19962 if { (ac_try="$ac_compile"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966 esac
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_compile") 2>conftest.er1
19969 ac_status=$?
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } && {
19975 test -z "$ac_c_werror_flag" ||
19976 test ! -s conftest.err
19977 } && test -s conftest.$ac_objext; then
19978 ac_hi=$ac_mid
19979 else
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983 ac_lo=`expr '(' $ac_mid ')' + 1`
19984 fi
19985
19986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19987 done
19988 case $ac_lo in
19989 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
19990 '') if test "$ac_cv_type_unsigned" = yes; then
19991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
19992 See \`config.log' for more details." >&5
19993 echo "$as_me: error: cannot compute sizeof (unsigned)
19994 See \`config.log' for more details." >&2;}
19995 { (exit 77); exit 77; }; }
19996 else
19997 ac_cv_sizeof_unsigned=0
19998 fi ;;
19999 esac
20000 else
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h. */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20007 $ac_includes_default
20008 typedef unsigned ac__type_sizeof_;
20009 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20010 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20011 #include <stdio.h>
20012 #include <stdlib.h>
20013 int
20014 main ()
20015 {
20016
20017 FILE *f = fopen ("conftest.val", "w");
20018 if (! f)
20019 return 1;
20020 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20021 {
20022 long int i = longval ();
20023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20024 return 1;
20025 fprintf (f, "%ld\n", i);
20026 }
20027 else
20028 {
20029 unsigned long int i = ulongval ();
20030 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20031 return 1;
20032 fprintf (f, "%lu\n", i);
20033 }
20034 return ferror (f) || fclose (f) != 0;
20035
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20051 { (case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20054 esac
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_try") 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_cv_sizeof_unsigned=`cat conftest.val`
20061 else
20062 echo "$as_me: program exited with status $ac_status" >&5
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ( exit $ac_status )
20067 if test "$ac_cv_type_unsigned" = yes; then
20068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
20069 See \`config.log' for more details." >&5
20070 echo "$as_me: error: cannot compute sizeof (unsigned)
20071 See \`config.log' for more details." >&2;}
20072 { (exit 77); exit 77; }; }
20073 else
20074 ac_cv_sizeof_unsigned=0
20075 fi
20076 fi
20077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20078 fi
20079 rm -f conftest.val
20080 fi
20081 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
20082 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
20083
20084
20085
20086 cat >>confdefs.h <<_ACEOF
20087 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
20088 _ACEOF
20089
20090
20091 if test "$ac_cv_sizeof_unsigned" != 4
20092 then
20093 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20094 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20095 if test "${ac_cv_type_unsigned_long+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h. */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 $ac_includes_default
20105 typedef unsigned long ac__type_new_;
20106 int
20107 main ()
20108 {
20109 if ((ac__type_new_ *) 0)
20110 return 0;
20111 if (sizeof (ac__type_new_))
20112 return 0;
20113 ;
20114 return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (ac_try="$ac_compile"
20119 case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_compile") 2>conftest.er1
20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } && {
20131 test -z "$ac_c_werror_flag" ||
20132 test ! -s conftest.err
20133 } && test -s conftest.$ac_objext; then
20134 ac_cv_type_unsigned_long=yes
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ac_cv_type_unsigned_long=no
20140 fi
20141
20142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20143 fi
20144 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20145 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20146
20147 # The cast to long int works around a bug in the HP C Compiler
20148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20150 # This bug is HP SR number 8606223364.
20151 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20152 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20153 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156 if test "$cross_compiling" = yes; then
20157 # Depending upon the size, compute the lo and hi bounds.
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164 $ac_includes_default
20165 typedef unsigned long ac__type_sizeof_;
20166 int
20167 main ()
20168 {
20169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20170 test_array [0] = 0
20171
20172 ;
20173 return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_compile") 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && {
20190 test -z "$ac_c_werror_flag" ||
20191 test ! -s conftest.err
20192 } && test -s conftest.$ac_objext; then
20193 ac_lo=0 ac_mid=0
20194 while :; do
20195 cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h. */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 $ac_includes_default
20202 typedef unsigned long ac__type_sizeof_;
20203 int
20204 main ()
20205 {
20206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20207 test_array [0] = 0
20208
20209 ;
20210 return 0;
20211 }
20212 _ACEOF
20213 rm -f conftest.$ac_objext
20214 if { (ac_try="$ac_compile"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_compile") 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest.$ac_objext; then
20230 ac_hi=$ac_mid; break
20231 else
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 ac_lo=`expr $ac_mid + 1`
20236 if test $ac_lo -le $ac_mid; then
20237 ac_lo= ac_hi=
20238 break
20239 fi
20240 ac_mid=`expr 2 '*' $ac_mid + 1`
20241 fi
20242
20243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20244 done
20245 else
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20256 typedef unsigned long ac__type_sizeof_;
20257 int
20258 main ()
20259 {
20260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20261 test_array [0] = 0
20262
20263 ;
20264 return 0;
20265 }
20266 _ACEOF
20267 rm -f conftest.$ac_objext
20268 if { (ac_try="$ac_compile"
20269 case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20272 esac
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_compile") 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } && {
20281 test -z "$ac_c_werror_flag" ||
20282 test ! -s conftest.err
20283 } && test -s conftest.$ac_objext; then
20284 ac_hi=-1 ac_mid=-1
20285 while :; do
20286 cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h. */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20292 $ac_includes_default
20293 typedef unsigned long ac__type_sizeof_;
20294 int
20295 main ()
20296 {
20297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20298 test_array [0] = 0
20299
20300 ;
20301 return 0;
20302 }
20303 _ACEOF
20304 rm -f conftest.$ac_objext
20305 if { (ac_try="$ac_compile"
20306 case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20309 esac
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_compile") 2>conftest.er1
20312 ac_status=$?
20313 grep -v '^ *+' conftest.er1 >conftest.err
20314 rm -f conftest.er1
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } && {
20318 test -z "$ac_c_werror_flag" ||
20319 test ! -s conftest.err
20320 } && test -s conftest.$ac_objext; then
20321 ac_lo=$ac_mid; break
20322 else
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 ac_hi=`expr '(' $ac_mid ')' - 1`
20327 if test $ac_mid -le $ac_hi; then
20328 ac_lo= ac_hi=
20329 break
20330 fi
20331 ac_mid=`expr 2 '*' $ac_mid`
20332 fi
20333
20334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20335 done
20336 else
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 ac_lo= ac_hi=
20341 fi
20342
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344 fi
20345
20346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20347 # Binary search between lo and hi bounds.
20348 while test "x$ac_lo" != "x$ac_hi"; do
20349 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h. */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 $ac_includes_default
20357 typedef unsigned long ac__type_sizeof_;
20358 int
20359 main ()
20360 {
20361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20362 test_array [0] = 0
20363
20364 ;
20365 return 0;
20366 }
20367 _ACEOF
20368 rm -f conftest.$ac_objext
20369 if { (ac_try="$ac_compile"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_compile") 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } && {
20382 test -z "$ac_c_werror_flag" ||
20383 test ! -s conftest.err
20384 } && test -s conftest.$ac_objext; then
20385 ac_hi=$ac_mid
20386 else
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 ac_lo=`expr '(' $ac_mid ')' + 1`
20391 fi
20392
20393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20394 done
20395 case $ac_lo in
20396 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20397 '') if test "$ac_cv_type_unsigned_long" = yes; then
20398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20399 See \`config.log' for more details." >&5
20400 echo "$as_me: error: cannot compute sizeof (unsigned long)
20401 See \`config.log' for more details." >&2;}
20402 { (exit 77); exit 77; }; }
20403 else
20404 ac_cv_sizeof_unsigned_long=0
20405 fi ;;
20406 esac
20407 else
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 $ac_includes_default
20415 typedef unsigned long ac__type_sizeof_;
20416 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20417 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20418 #include <stdio.h>
20419 #include <stdlib.h>
20420 int
20421 main ()
20422 {
20423
20424 FILE *f = fopen ("conftest.val", "w");
20425 if (! f)
20426 return 1;
20427 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20428 {
20429 long int i = longval ();
20430 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20431 return 1;
20432 fprintf (f, "%ld\n", i);
20433 }
20434 else
20435 {
20436 unsigned long int i = ulongval ();
20437 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20438 return 1;
20439 fprintf (f, "%lu\n", i);
20440 }
20441 return ferror (f) || fclose (f) != 0;
20442
20443 ;
20444 return 0;
20445 }
20446 _ACEOF
20447 rm -f conftest$ac_exeext
20448 if { (ac_try="$ac_link"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_link") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20468 else
20469 echo "$as_me: program exited with status $ac_status" >&5
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473 ( exit $ac_status )
20474 if test "$ac_cv_type_unsigned_long" = yes; then
20475 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20476 See \`config.log' for more details." >&5
20477 echo "$as_me: error: cannot compute sizeof (unsigned long)
20478 See \`config.log' for more details." >&2;}
20479 { (exit 77); exit 77; }; }
20480 else
20481 ac_cv_sizeof_unsigned_long=0
20482 fi
20483 fi
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20485 fi
20486 rm -f conftest.val
20487 fi
20488 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20489 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20490
20491
20492
20493 cat >>confdefs.h <<_ACEOF
20494 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20495 _ACEOF
20496
20497
20498 if test "$ac_cv_sizeof_unsigned_long" != 4
20499 then
20500 { echo "$as_me:$LINENO: checking for unsigned short" >&5
20501 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
20502 if test "${ac_cv_type_unsigned_short+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 else
20505 cat >conftest.$ac_ext <<_ACEOF
20506 /* confdefs.h. */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20511 $ac_includes_default
20512 typedef unsigned short ac__type_new_;
20513 int
20514 main ()
20515 {
20516 if ((ac__type_new_ *) 0)
20517 return 0;
20518 if (sizeof (ac__type_new_))
20519 return 0;
20520 ;
20521 return 0;
20522 }
20523 _ACEOF
20524 rm -f conftest.$ac_objext
20525 if { (ac_try="$ac_compile"
20526 case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_compile") 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } && {
20538 test -z "$ac_c_werror_flag" ||
20539 test ! -s conftest.err
20540 } && test -s conftest.$ac_objext; then
20541 ac_cv_type_unsigned_short=yes
20542 else
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546 ac_cv_type_unsigned_short=no
20547 fi
20548
20549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 fi
20551 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
20552 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
20553
20554 # The cast to long int works around a bug in the HP C Compiler
20555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20557 # This bug is HP SR number 8606223364.
20558 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
20559 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
20560 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563 if test "$cross_compiling" = yes; then
20564 # Depending upon the size, compute the lo and hi bounds.
20565 cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h. */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571 $ac_includes_default
20572 typedef unsigned short ac__type_sizeof_;
20573 int
20574 main ()
20575 {
20576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20577 test_array [0] = 0
20578
20579 ;
20580 return 0;
20581 }
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_compile") 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } && {
20597 test -z "$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20599 } && test -s conftest.$ac_objext; then
20600 ac_lo=0 ac_mid=0
20601 while :; do
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 $ac_includes_default
20609 typedef unsigned short ac__type_sizeof_;
20610 int
20611 main ()
20612 {
20613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20614 test_array [0] = 0
20615
20616 ;
20617 return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext
20621 if { (ac_try="$ac_compile"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_compile") 2>conftest.er1
20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } && {
20634 test -z "$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 } && test -s conftest.$ac_objext; then
20637 ac_hi=$ac_mid; break
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 ac_lo=`expr $ac_mid + 1`
20643 if test $ac_lo -le $ac_mid; then
20644 ac_lo= ac_hi=
20645 break
20646 fi
20647 ac_mid=`expr 2 '*' $ac_mid + 1`
20648 fi
20649
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 done
20652 else
20653 echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20655
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h. */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 $ac_includes_default
20663 typedef unsigned short ac__type_sizeof_;
20664 int
20665 main ()
20666 {
20667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20668 test_array [0] = 0
20669
20670 ;
20671 return 0;
20672 }
20673 _ACEOF
20674 rm -f conftest.$ac_objext
20675 if { (ac_try="$ac_compile"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_compile") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest.$ac_objext; then
20691 ac_hi=-1 ac_mid=-1
20692 while :; do
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h. */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 $ac_includes_default
20700 typedef unsigned short ac__type_sizeof_;
20701 int
20702 main ()
20703 {
20704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20705 test_array [0] = 0
20706
20707 ;
20708 return 0;
20709 }
20710 _ACEOF
20711 rm -f conftest.$ac_objext
20712 if { (ac_try="$ac_compile"
20713 case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_compile") 2>conftest.er1
20719 ac_status=$?
20720 grep -v '^ *+' conftest.er1 >conftest.err
20721 rm -f conftest.er1
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } && {
20725 test -z "$ac_c_werror_flag" ||
20726 test ! -s conftest.err
20727 } && test -s conftest.$ac_objext; then
20728 ac_lo=$ac_mid; break
20729 else
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 ac_hi=`expr '(' $ac_mid ')' - 1`
20734 if test $ac_mid -le $ac_hi; then
20735 ac_lo= ac_hi=
20736 break
20737 fi
20738 ac_mid=`expr 2 '*' $ac_mid`
20739 fi
20740
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 done
20743 else
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 ac_lo= ac_hi=
20748 fi
20749
20750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20751 fi
20752
20753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754 # Binary search between lo and hi bounds.
20755 while test "x$ac_lo" != "x$ac_hi"; do
20756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20757 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h. */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 $ac_includes_default
20764 typedef unsigned short ac__type_sizeof_;
20765 int
20766 main ()
20767 {
20768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20769 test_array [0] = 0
20770
20771 ;
20772 return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_compile") 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest.$ac_objext; then
20792 ac_hi=$ac_mid
20793 else
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 ac_lo=`expr '(' $ac_mid ')' + 1`
20798 fi
20799
20800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20801 done
20802 case $ac_lo in
20803 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
20804 '') if test "$ac_cv_type_unsigned_short" = yes; then
20805 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
20806 See \`config.log' for more details." >&5
20807 echo "$as_me: error: cannot compute sizeof (unsigned short)
20808 See \`config.log' for more details." >&2;}
20809 { (exit 77); exit 77; }; }
20810 else
20811 ac_cv_sizeof_unsigned_short=0
20812 fi ;;
20813 esac
20814 else
20815 cat >conftest.$ac_ext <<_ACEOF
20816 /* confdefs.h. */
20817 _ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h. */
20821 $ac_includes_default
20822 typedef unsigned short ac__type_sizeof_;
20823 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20824 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20825 #include <stdio.h>
20826 #include <stdlib.h>
20827 int
20828 main ()
20829 {
20830
20831 FILE *f = fopen ("conftest.val", "w");
20832 if (! f)
20833 return 1;
20834 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20835 {
20836 long int i = longval ();
20837 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20838 return 1;
20839 fprintf (f, "%ld\n", i);
20840 }
20841 else
20842 {
20843 unsigned long int i = ulongval ();
20844 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20845 return 1;
20846 fprintf (f, "%lu\n", i);
20847 }
20848 return ferror (f) || fclose (f) != 0;
20849
20850 ;
20851 return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest$ac_exeext
20855 if { (ac_try="$ac_link"
20856 case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861 (eval "$ac_link") 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20865 { (case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_try") 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ac_cv_sizeof_unsigned_short=`cat conftest.val`
20875 else
20876 echo "$as_me: program exited with status $ac_status" >&5
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880 ( exit $ac_status )
20881 if test "$ac_cv_type_unsigned_short" = yes; then
20882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
20883 See \`config.log' for more details." >&5
20884 echo "$as_me: error: cannot compute sizeof (unsigned short)
20885 See \`config.log' for more details." >&2;}
20886 { (exit 77); exit 77; }; }
20887 else
20888 ac_cv_sizeof_unsigned_short=0
20889 fi
20890 fi
20891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20892 fi
20893 rm -f conftest.val
20894 fi
20895 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
20896 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
20897
20898
20899
20900 cat >>confdefs.h <<_ACEOF
20901 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20902 _ACEOF
20903
20904
20905 if test "$ac_cv_sizeof_unsigned_short" != 4
20906 then
20907 { { echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
20908 echo "$as_me: error: --with-int32 option is required" >&2;}
20909 { (exit 1); exit 1; }; }
20910 fi
20911 int32="unsigned short"
20912 else
20913 int32="unsigned long"
20914 fi
20915 else
20916 int32="unsigned"
20917 fi
20918
20919 fi
20920
20921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20922
20923 fi
20924
20925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20926
20927
20928 fi
20929
20930 UINT32="$int32"
20931
20932
20933 cat >>confdefs.h <<_ACEOF
20934 #define SHA1_WORD $UINT32
20935 _ACEOF
20936
20937
20938 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20939 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20940 if test "${ac_cv_c_const+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943 cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h. */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949
20950 int
20951 main ()
20952 {
20953 /* FIXME: Include the comments suggested by Paul. */
20954 #ifndef __cplusplus
20955 /* Ultrix mips cc rejects this. */
20956 typedef int charset[2];
20957 const charset cs;
20958 /* SunOS 4.1.1 cc rejects this. */
20959 char const *const *pcpcc;
20960 char **ppc;
20961 /* NEC SVR4.0.2 mips cc rejects this. */
20962 struct point {int x, y;};
20963 static struct point const zero = {0,0};
20964 /* AIX XL C 1.02.0.0 rejects this.
20965 It does not let you subtract one const X* pointer from another in
20966 an arm of an if-expression whose if-part is not a constant
20967 expression */
20968 const char *g = "string";
20969 pcpcc = &g + (g ? g-g : 0);
20970 /* HPUX 7.0 cc rejects these. */
20971 ++pcpcc;
20972 ppc = (char**) pcpcc;
20973 pcpcc = (char const *const *) ppc;
20974 { /* SCO 3.2v4 cc rejects this. */
20975 char *t;
20976 char const *s = 0 ? (char *) 0 : (char const *) 0;
20977
20978 *t++ = 0;
20979 if (s) return 0;
20980 }
20981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20982 int x[] = {25, 17};
20983 const int *foo = &x[0];
20984 ++foo;
20985 }
20986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20987 typedef const int *iptr;
20988 iptr p = 0;
20989 ++p;
20990 }
20991 { /* AIX XL C 1.02.0.0 rejects this saying
20992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20993 struct s { int j; const int *ap[3]; };
20994 struct s *b; b->j = 5;
20995 }
20996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20997 const int foo = 10;
20998 if (!foo) return 0;
20999 }
21000 return !cs[0] && !zero.x;
21001 #endif
21002
21003 ;
21004 return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext
21008 if { (ac_try="$ac_compile"
21009 case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21012 esac
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_compile") 2>conftest.er1
21015 ac_status=$?
21016 grep -v '^ *+' conftest.er1 >conftest.err
21017 rm -f conftest.er1
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } && {
21021 test -z "$ac_c_werror_flag" ||
21022 test ! -s conftest.err
21023 } && test -s conftest.$ac_objext; then
21024 ac_cv_c_const=yes
21025 else
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 ac_cv_c_const=no
21030 fi
21031
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 fi
21034 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21035 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21036 if test $ac_cv_c_const = no; then
21037
21038 cat >>confdefs.h <<\_ACEOF
21039 #define const
21040 _ACEOF
21041
21042 fi
21043
21044
21045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21047 if test "${ac_cv_header_stdc+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050 cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h. */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 #include <stdlib.h>
21057 #include <stdarg.h>
21058 #include <string.h>
21059 #include <float.h>
21060
21061 int
21062 main ()
21063 {
21064
21065 ;
21066 return 0;
21067 }
21068 _ACEOF
21069 rm -f conftest.$ac_objext
21070 if { (ac_try="$ac_compile"
21071 case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21074 esac
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076 (eval "$ac_compile") 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest.$ac_objext; then
21086 ac_cv_header_stdc=yes
21087 else
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_header_stdc=no
21092 fi
21093
21094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095
21096 if test $ac_cv_header_stdc = yes; then
21097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21098 cat >conftest.$ac_ext <<_ACEOF
21099 /* confdefs.h. */
21100 _ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 #include <string.h>
21105
21106 _ACEOF
21107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21108 $EGREP "memchr" >/dev/null 2>&1; then
21109 :
21110 else
21111 ac_cv_header_stdc=no
21112 fi
21113 rm -f conftest*
21114
21115 fi
21116
21117 if test $ac_cv_header_stdc = yes; then
21118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21119 cat >conftest.$ac_ext <<_ACEOF
21120 /* confdefs.h. */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 #include <stdlib.h>
21126
21127 _ACEOF
21128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21129 $EGREP "free" >/dev/null 2>&1; then
21130 :
21131 else
21132 ac_cv_header_stdc=no
21133 fi
21134 rm -f conftest*
21135
21136 fi
21137
21138 if test $ac_cv_header_stdc = yes; then
21139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21140 if test "$cross_compiling" = yes; then
21141 :
21142 else
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <ctype.h>
21150 #include <stdlib.h>
21151 #if ((' ' & 0x0FF) == 0x020)
21152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21154 #else
21155 # define ISLOWER(c) \
21156 (('a' <= (c) && (c) <= 'i') \
21157 || ('j' <= (c) && (c) <= 'r') \
21158 || ('s' <= (c) && (c) <= 'z'))
21159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21160 #endif
21161
21162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21163 int
21164 main ()
21165 {
21166 int i;
21167 for (i = 0; i < 256; i++)
21168 if (XOR (islower (i), ISLOWER (i))
21169 || toupper (i) != TOUPPER (i))
21170 return 2;
21171 return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest$ac_exeext
21175 if { (ac_try="$ac_link"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_link") 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21185 { (case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_try") 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 :
21195 else
21196 echo "$as_me: program exited with status $ac_status" >&5
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21199
21200 ( exit $ac_status )
21201 ac_cv_header_stdc=no
21202 fi
21203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21204 fi
21205
21206
21207 fi
21208 fi
21209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21211 if test $ac_cv_header_stdc = yes; then
21212
21213 cat >>confdefs.h <<\_ACEOF
21214 #define STDC_HEADERS 1
21215 _ACEOF
21216
21217 fi
21218
21219
21220 ac_config_files="$ac_config_files Makefile"
21221
21222 cat >confcache <<\_ACEOF
21223 # This file is a shell script that caches the results of configure
21224 # tests run on this system so they can be shared between configure
21225 # scripts and configure runs, see configure's option --config-cache.
21226 # It is not useful on other systems. If it contains results you don't
21227 # want to keep, you may remove or edit it.
21228 #
21229 # config.status only pays attention to the cache file if you give it
21230 # the --recheck option to rerun configure.
21231 #
21232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21234 # following values.
21235
21236 _ACEOF
21237
21238 # The following way of writing the cache mishandles newlines in values,
21239 # but we know of no workaround that is simple, portable, and efficient.
21240 # So, we kill variables containing newlines.
21241 # Ultrix sh set writes to stderr and can't be redirected directly,
21242 # and sets the high bit in the cache file unless we assign to the vars.
21243 (
21244 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21245 eval ac_val=\$$ac_var
21246 case $ac_val in #(
21247 *${as_nl}*)
21248 case $ac_var in #(
21249 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21250 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21251 esac
21252 case $ac_var in #(
21253 _ | IFS | as_nl) ;; #(
21254 *) $as_unset $ac_var ;;
21255 esac ;;
21256 esac
21257 done
21258
21259 (set) 2>&1 |
21260 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21261 *${as_nl}ac_space=\ *)
21262 # `set' does not quote correctly, so add quotes (double-quote
21263 # substitution turns \\\\ into \\, and sed turns \\ into \).
21264 sed -n \
21265 "s/'/'\\\\''/g;
21266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21267 ;; #(
21268 *)
21269 # `set' quotes correctly as required by POSIX, so do not add quotes.
21270 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21271 ;;
21272 esac |
21273 sort
21274 ) |
21275 sed '
21276 /^ac_cv_env_/b end
21277 t clear
21278 :clear
21279 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21280 t end
21281 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21282 :end' >>confcache
21283 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21284 if test -w "$cache_file"; then
21285 test "x$cache_file" != "x/dev/null" &&
21286 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21287 echo "$as_me: updating cache $cache_file" >&6;}
21288 cat confcache >$cache_file
21289 else
21290 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21291 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21292 fi
21293 fi
21294 rm -f confcache
21295
21296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21297 # Let make expand exec_prefix.
21298 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21299
21300 DEFS=-DHAVE_CONFIG_H
21301
21302 ac_libobjs=
21303 ac_ltlibobjs=
21304 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21305 # 1. Remove the extension, and $U if already installed.
21306 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21307 ac_i=`echo "$ac_i" | sed "$ac_script"`
21308 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21309 # will be set to the directory where LIBOBJS objects are built.
21310 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21311 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21312 done
21313 LIBOBJS=$ac_libobjs
21314
21315 LTLIBOBJS=$ac_ltlibobjs
21316
21317
21318 if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
21319 { { echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
21320 Usually this means the macro was only invoked conditionally." >&5
21321 echo "$as_me: error: conditional \"HMACC\" was never defined.
21322 Usually this means the macro was only invoked conditionally." >&2;}
21323 { (exit 1); exit 1; }; }
21324 fi
21325 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21326 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21327 Usually this means the macro was only invoked conditionally." >&5
21328 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21329 Usually this means the macro was only invoked conditionally." >&2;}
21330 { (exit 1); exit 1; }; }
21331 fi
21332 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21333 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21334 Usually this means the macro was only invoked conditionally." >&5
21335 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21336 Usually this means the macro was only invoked conditionally." >&2;}
21337 { (exit 1); exit 1; }; }
21338 fi
21339 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21340 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21341 Usually this means the macro was only invoked conditionally." >&5
21342 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21343 Usually this means the macro was only invoked conditionally." >&2;}
21344 { (exit 1); exit 1; }; }
21345 fi
21346
21347 : ${CONFIG_STATUS=./config.status}
21348 ac_clean_files_save=$ac_clean_files
21349 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21350 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21351 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21352 cat >$CONFIG_STATUS <<_ACEOF
21353 #! $SHELL
21354 # Generated by $as_me.
21355 # Run this file to recreate the current configuration.
21356 # Compiler output produced by configure, useful for debugging
21357 # configure, is in config.log if it exists.
21358
21359 debug=false
21360 ac_cs_recheck=false
21361 ac_cs_silent=false
21362 SHELL=\${CONFIG_SHELL-$SHELL}
21363 _ACEOF
21364
21365 cat >>$CONFIG_STATUS <<\_ACEOF
21366 ## --------------------- ##
21367 ## M4sh Initialization. ##
21368 ## --------------------- ##
21369
21370 # Be more Bourne compatible
21371 DUALCASE=1; export DUALCASE # for MKS sh
21372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21373 emulate sh
21374 NULLCMD=:
21375 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21376 # is contrary to our usage. Disable this feature.
21377 alias -g '${1+"$@"}'='"$@"'
21378 setopt NO_GLOB_SUBST
21379 else
21380 case `(set -o) 2>/dev/null` in
21381 *posix*) set -o posix ;;
21382 esac
21383
21384 fi
21385
21386
21387
21388
21389 # PATH needs CR
21390 # Avoid depending upon Character Ranges.
21391 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21392 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21393 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21394 as_cr_digits='0123456789'
21395 as_cr_alnum=$as_cr_Letters$as_cr_digits
21396
21397 # The user is always right.
21398 if test "${PATH_SEPARATOR+set}" != set; then
21399 echo "#! /bin/sh" >conf$$.sh
21400 echo "exit 0" >>conf$$.sh
21401 chmod +x conf$$.sh
21402 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21403 PATH_SEPARATOR=';'
21404 else
21405 PATH_SEPARATOR=:
21406 fi
21407 rm -f conf$$.sh
21408 fi
21409
21410 # Support unset when possible.
21411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21412 as_unset=unset
21413 else
21414 as_unset=false
21415 fi
21416
21417
21418 # IFS
21419 # We need space, tab and new line, in precisely that order. Quoting is
21420 # there to prevent editors from complaining about space-tab.
21421 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21422 # splitting by setting IFS to empty value.)
21423 as_nl='
21424 '
21425 IFS=" "" $as_nl"
21426
21427 # Find who we are. Look in the path if we contain no directory separator.
21428 case $0 in
21429 *[\\/]* ) as_myself=$0 ;;
21430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21431 for as_dir in $PATH
21432 do
21433 IFS=$as_save_IFS
21434 test -z "$as_dir" && as_dir=.
21435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21436 done
21437 IFS=$as_save_IFS
21438
21439 ;;
21440 esac
21441 # We did not find ourselves, most probably we were run as `sh COMMAND'
21442 # in which case we are not to be found in the path.
21443 if test "x$as_myself" = x; then
21444 as_myself=$0
21445 fi
21446 if test ! -f "$as_myself"; then
21447 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21448 { (exit 1); exit 1; }
21449 fi
21450
21451 # Work around bugs in pre-3.0 UWIN ksh.
21452 for as_var in ENV MAIL MAILPATH
21453 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21454 done
21455 PS1='$ '
21456 PS2='> '
21457 PS4='+ '
21458
21459 # NLS nuisances.
21460 for as_var in \
21461 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21462 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21463 LC_TELEPHONE LC_TIME
21464 do
21465 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21466 eval $as_var=C; export $as_var
21467 else
21468 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21469 fi
21470 done
21471
21472 # Required to use basename.
21473 if expr a : '\(a\)' >/dev/null 2>&1 &&
21474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21475 as_expr=expr
21476 else
21477 as_expr=false
21478 fi
21479
21480 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21481 as_basename=basename
21482 else
21483 as_basename=false
21484 fi
21485
21486
21487 # Name of the executable.
21488 as_me=`$as_basename -- "$0" ||
21489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21490 X"$0" : 'X\(//\)$' \| \
21491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21492 echo X/"$0" |
21493 sed '/^.*\/\([^/][^/]*\)\/*$/{
21494 s//\1/
21495 q
21496 }
21497 /^X\/\(\/\/\)$/{
21498 s//\1/
21499 q
21500 }
21501 /^X\/\(\/\).*/{
21502 s//\1/
21503 q
21504 }
21505 s/.*/./; q'`
21506
21507 # CDPATH.
21508 $as_unset CDPATH
21509
21510
21511
21512 as_lineno_1=$LINENO
21513 as_lineno_2=$LINENO
21514 test "x$as_lineno_1" != "x$as_lineno_2" &&
21515 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21516
21517 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21518 # uniformly replaced by the line number. The first 'sed' inserts a
21519 # line-number line after each line using $LINENO; the second 'sed'
21520 # does the real work. The second script uses 'N' to pair each
21521 # line-number line with the line containing $LINENO, and appends
21522 # trailing '-' during substitution so that $LINENO is not a special
21523 # case at line end.
21524 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21525 # scripts with optimization help from Paolo Bonzini. Blame Lee
21526 # E. McMahon (1931-1989) for sed's syntax. :-)
21527 sed -n '
21528 p
21529 /[$]LINENO/=
21530 ' <$as_myself |
21531 sed '
21532 s/[$]LINENO.*/&-/
21533 t lineno
21534 b
21535 :lineno
21536 N
21537 :loop
21538 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21539 t loop
21540 s/-\n.*//
21541 ' >$as_me.lineno &&
21542 chmod +x "$as_me.lineno" ||
21543 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21544 { (exit 1); exit 1; }; }
21545
21546 # Don't try to exec as it changes $[0], causing all sort of problems
21547 # (the dirname of $[0] is not the place where we might find the
21548 # original and so on. Autoconf is especially sensitive to this).
21549 . "./$as_me.lineno"
21550 # Exit status is that of the last command.
21551 exit
21552 }
21553
21554
21555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21556 as_dirname=dirname
21557 else
21558 as_dirname=false
21559 fi
21560
21561 ECHO_C= ECHO_N= ECHO_T=
21562 case `echo -n x` in
21563 -n*)
21564 case `echo 'x\c'` in
21565 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21566 *) ECHO_C='\c';;
21567 esac;;
21568 *)
21569 ECHO_N='-n';;
21570 esac
21571
21572 if expr a : '\(a\)' >/dev/null 2>&1 &&
21573 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21574 as_expr=expr
21575 else
21576 as_expr=false
21577 fi
21578
21579 rm -f conf$$ conf$$.exe conf$$.file
21580 if test -d conf$$.dir; then
21581 rm -f conf$$.dir/conf$$.file
21582 else
21583 rm -f conf$$.dir
21584 mkdir conf$$.dir
21585 fi
21586 echo >conf$$.file
21587 if ln -s conf$$.file conf$$ 2>/dev/null; then
21588 as_ln_s='ln -s'
21589 # ... but there are two gotchas:
21590 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21591 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21592 # In both cases, we have to default to `cp -p'.
21593 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21594 as_ln_s='cp -p'
21595 elif ln conf$$.file conf$$ 2>/dev/null; then
21596 as_ln_s=ln
21597 else
21598 as_ln_s='cp -p'
21599 fi
21600 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21601 rmdir conf$$.dir 2>/dev/null
21602
21603 if mkdir -p . 2>/dev/null; then
21604 as_mkdir_p=:
21605 else
21606 test -d ./-p && rmdir ./-p
21607 as_mkdir_p=false
21608 fi
21609
21610 if test -x / >/dev/null 2>&1; then
21611 as_test_x='test -x'
21612 else
21613 if ls -dL / >/dev/null 2>&1; then
21614 as_ls_L_option=L
21615 else
21616 as_ls_L_option=
21617 fi
21618 as_test_x='
21619 eval sh -c '\''
21620 if test -d "$1"; then
21621 test -d "$1/.";
21622 else
21623 case $1 in
21624 -*)set "./$1";;
21625 esac;
21626 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21627 ???[sx]*):;;*)false;;esac;fi
21628 '\'' sh
21629 '
21630 fi
21631 as_executable_p=$as_test_x
21632
21633 # Sed expression to map a string onto a valid CPP name.
21634 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21635
21636 # Sed expression to map a string onto a valid variable name.
21637 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21638
21639
21640 exec 6>&1
21641
21642 # Save the log message, to keep $[0] and so on meaningful, and to
21643 # report actual input values of CONFIG_FILES etc. instead of their
21644 # values after options handling.
21645 ac_log="
21646 This file was extended by libsha1 $as_me 1.21, which was
21647 generated by GNU Autoconf 2.61. Invocation command line was
21648
21649 CONFIG_FILES = $CONFIG_FILES
21650 CONFIG_HEADERS = $CONFIG_HEADERS
21651 CONFIG_LINKS = $CONFIG_LINKS
21652 CONFIG_COMMANDS = $CONFIG_COMMANDS
21653 $ $0 $@
21654
21655 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21656 "
21657
21658 _ACEOF
21659
21660 cat >>$CONFIG_STATUS <<_ACEOF
21661 # Files that config.status was made for.
21662 config_files="$ac_config_files"
21663 config_headers="$ac_config_headers"
21664 config_commands="$ac_config_commands"
21665
21666 _ACEOF
21667
21668 cat >>$CONFIG_STATUS <<\_ACEOF
21669 ac_cs_usage="\
21670 \`$as_me' instantiates files from templates according to the
21671 current configuration.
21672
21673 Usage: $0 [OPTIONS] [FILE]...
21674
21675 -h, --help print this help, then exit
21676 -V, --version print version number and configuration settings, then exit
21677 -q, --quiet do not print progress messages
21678 -d, --debug don't remove temporary files
21679 --recheck update $as_me by reconfiguring in the same conditions
21680 --file=FILE[:TEMPLATE]
21681 instantiate the configuration file FILE
21682 --header=FILE[:TEMPLATE]
21683 instantiate the configuration header FILE
21684
21685 Configuration files:
21686 $config_files
21687
21688 Configuration headers:
21689 $config_headers
21690
21691 Configuration commands:
21692 $config_commands
21693
21694 Report bugs to <bug-autoconf@gnu.org>."
21695
21696 _ACEOF
21697 cat >>$CONFIG_STATUS <<_ACEOF
21698 ac_cs_version="\\
21699 libsha1 config.status 1.21
21700 configured by $0, generated by GNU Autoconf 2.61,
21701 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21702
21703 Copyright (C) 2006 Free Software Foundation, Inc.
21704 This config.status script is free software; the Free Software Foundation
21705 gives unlimited permission to copy, distribute and modify it."
21706
21707 ac_pwd='$ac_pwd'
21708 srcdir='$srcdir'
21709 INSTALL='$INSTALL'
21710 MKDIR_P='$MKDIR_P'
21711 _ACEOF
21712
21713 cat >>$CONFIG_STATUS <<\_ACEOF
21714 # If no file are specified by the user, then we need to provide default
21715 # value. By we need to know if files were specified by the user.
21716 ac_need_defaults=:
21717 while test $# != 0
21718 do
21719 case $1 in
21720 --*=*)
21721 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21722 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21723 ac_shift=:
21724 ;;
21725 *)
21726 ac_option=$1
21727 ac_optarg=$2
21728 ac_shift=shift
21729 ;;
21730 esac
21731
21732 case $ac_option in
21733 # Handling of the options.
21734 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21735 ac_cs_recheck=: ;;
21736 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21737 echo "$ac_cs_version"; exit ;;
21738 --debug | --debu | --deb | --de | --d | -d )
21739 debug=: ;;
21740 --file | --fil | --fi | --f )
21741 $ac_shift
21742 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21743 ac_need_defaults=false;;
21744 --header | --heade | --head | --hea )
21745 $ac_shift
21746 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21747 ac_need_defaults=false;;
21748 --he | --h)
21749 # Conflict between --help and --header
21750 { echo "$as_me: error: ambiguous option: $1
21751 Try \`$0 --help' for more information." >&2
21752 { (exit 1); exit 1; }; };;
21753 --help | --hel | -h )
21754 echo "$ac_cs_usage"; exit ;;
21755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21756 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21757 ac_cs_silent=: ;;
21758
21759 # This is an error.
21760 -*) { echo "$as_me: error: unrecognized option: $1
21761 Try \`$0 --help' for more information." >&2
21762 { (exit 1); exit 1; }; } ;;
21763
21764 *) ac_config_targets="$ac_config_targets $1"
21765 ac_need_defaults=false ;;
21766
21767 esac
21768 shift
21769 done
21770
21771 ac_configure_extra_args=
21772
21773 if $ac_cs_silent; then
21774 exec 6>/dev/null
21775 ac_configure_extra_args="$ac_configure_extra_args --silent"
21776 fi
21777
21778 _ACEOF
21779 cat >>$CONFIG_STATUS <<_ACEOF
21780 if \$ac_cs_recheck; then
21781 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21782 CONFIG_SHELL=$SHELL
21783 export CONFIG_SHELL
21784 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21785 fi
21786
21787 _ACEOF
21788 cat >>$CONFIG_STATUS <<\_ACEOF
21789 exec 5>>config.log
21790 {
21791 echo
21792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21793 ## Running $as_me. ##
21794 _ASBOX
21795 echo "$ac_log"
21796 } >&5
21797
21798 _ACEOF
21799 cat >>$CONFIG_STATUS <<_ACEOF
21800 #
21801 # INIT-COMMANDS
21802 #
21803 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21804
21805 _ACEOF
21806
21807 cat >>$CONFIG_STATUS <<\_ACEOF
21808
21809 # Handling of arguments.
21810 for ac_config_target in $ac_config_targets
21811 do
21812 case $ac_config_target in
21813 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21814 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21815 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21816
21817 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21818 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21819 { (exit 1); exit 1; }; };;
21820 esac
21821 done
21822
21823
21824 # If the user did not use the arguments to specify the items to instantiate,
21825 # then the envvar interface is used. Set only those that are not.
21826 # We use the long form for the default assignment because of an extremely
21827 # bizarre bug on SunOS 4.1.3.
21828 if $ac_need_defaults; then
21829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21832 fi
21833
21834 # Have a temporary directory for convenience. Make it in the build tree
21835 # simply because there is no reason against having it here, and in addition,
21836 # creating and moving files from /tmp can sometimes cause problems.
21837 # Hook for its removal unless debugging.
21838 # Note that there is a small window in which the directory will not be cleaned:
21839 # after its creation but before its name has been assigned to `$tmp'.
21840 $debug ||
21841 {
21842 tmp=
21843 trap 'exit_status=$?
21844 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21845 ' 0
21846 trap '{ (exit 1); exit 1; }' 1 2 13 15
21847 }
21848 # Create a (secure) tmp directory for tmp files.
21849
21850 {
21851 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21852 test -n "$tmp" && test -d "$tmp"
21853 } ||
21854 {
21855 tmp=./conf$$-$RANDOM
21856 (umask 077 && mkdir "$tmp")
21857 } ||
21858 {
21859 echo "$me: cannot create a temporary directory in ." >&2
21860 { (exit 1); exit 1; }
21861 }
21862
21863 #
21864 # Set up the sed scripts for CONFIG_FILES section.
21865 #
21866
21867 # No need to generate the scripts if there are no CONFIG_FILES.
21868 # This happens for instance when ./config.status config.h
21869 if test -n "$CONFIG_FILES"; then
21870
21871 _ACEOF
21872
21873
21874
21875 ac_delim='%!_!# '
21876 for ac_last_try in false false false false false :; do
21877 cat >conf$$subs.sed <<_ACEOF
21878 SHELL!$SHELL$ac_delim
21879 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21880 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21881 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21882 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21883 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21884 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21885 exec_prefix!$exec_prefix$ac_delim
21886 prefix!$prefix$ac_delim
21887 program_transform_name!$program_transform_name$ac_delim
21888 bindir!$bindir$ac_delim
21889 sbindir!$sbindir$ac_delim
21890 libexecdir!$libexecdir$ac_delim
21891 datarootdir!$datarootdir$ac_delim
21892 datadir!$datadir$ac_delim
21893 sysconfdir!$sysconfdir$ac_delim
21894 sharedstatedir!$sharedstatedir$ac_delim
21895 localstatedir!$localstatedir$ac_delim
21896 includedir!$includedir$ac_delim
21897 oldincludedir!$oldincludedir$ac_delim
21898 docdir!$docdir$ac_delim
21899 infodir!$infodir$ac_delim
21900 htmldir!$htmldir$ac_delim
21901 dvidir!$dvidir$ac_delim
21902 pdfdir!$pdfdir$ac_delim
21903 psdir!$psdir$ac_delim
21904 libdir!$libdir$ac_delim
21905 localedir!$localedir$ac_delim
21906 mandir!$mandir$ac_delim
21907 DEFS!$DEFS$ac_delim
21908 ECHO_C!$ECHO_C$ac_delim
21909 ECHO_N!$ECHO_N$ac_delim
21910 ECHO_T!$ECHO_T$ac_delim
21911 LIBS!$LIBS$ac_delim
21912 build_alias!$build_alias$ac_delim
21913 host_alias!$host_alias$ac_delim
21914 target_alias!$target_alias$ac_delim
21915 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21916 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21917 INSTALL_DATA!$INSTALL_DATA$ac_delim
21918 am__isrc!$am__isrc$ac_delim
21919 CYGPATH_W!$CYGPATH_W$ac_delim
21920 PACKAGE!$PACKAGE$ac_delim
21921 VERSION!$VERSION$ac_delim
21922 ACLOCAL!$ACLOCAL$ac_delim
21923 AUTOCONF!$AUTOCONF$ac_delim
21924 AUTOMAKE!$AUTOMAKE$ac_delim
21925 AUTOHEADER!$AUTOHEADER$ac_delim
21926 MAKEINFO!$MAKEINFO$ac_delim
21927 install_sh!$install_sh$ac_delim
21928 STRIP!$STRIP$ac_delim
21929 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21930 mkdir_p!$mkdir_p$ac_delim
21931 AWK!$AWK$ac_delim
21932 SET_MAKE!$SET_MAKE$ac_delim
21933 am__leading_dot!$am__leading_dot$ac_delim
21934 AMTAR!$AMTAR$ac_delim
21935 am__tar!$am__tar$ac_delim
21936 am__untar!$am__untar$ac_delim
21937 HMACC_TRUE!$HMACC_TRUE$ac_delim
21938 HMACC_FALSE!$HMACC_FALSE$ac_delim
21939 CC!$CC$ac_delim
21940 CFLAGS!$CFLAGS$ac_delim
21941 LDFLAGS!$LDFLAGS$ac_delim
21942 CPPFLAGS!$CPPFLAGS$ac_delim
21943 ac_ct_CC!$ac_ct_CC$ac_delim
21944 EXEEXT!$EXEEXT$ac_delim
21945 OBJEXT!$OBJEXT$ac_delim
21946 DEPDIR!$DEPDIR$ac_delim
21947 am__include!$am__include$ac_delim
21948 am__quote!$am__quote$ac_delim
21949 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21950 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21951 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21952 CCDEPMODE!$CCDEPMODE$ac_delim
21953 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21954 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21955 LN_S!$LN_S$ac_delim
21956 build!$build$ac_delim
21957 build_cpu!$build_cpu$ac_delim
21958 build_vendor!$build_vendor$ac_delim
21959 build_os!$build_os$ac_delim
21960 host!$host$ac_delim
21961 host_cpu!$host_cpu$ac_delim
21962 host_vendor!$host_vendor$ac_delim
21963 host_os!$host_os$ac_delim
21964 SED!$SED$ac_delim
21965 GREP!$GREP$ac_delim
21966 EGREP!$EGREP$ac_delim
21967 ECHO!$ECHO$ac_delim
21968 AR!$AR$ac_delim
21969 RANLIB!$RANLIB$ac_delim
21970 CPP!$CPP$ac_delim
21971 CXX!$CXX$ac_delim
21972 CXXFLAGS!$CXXFLAGS$ac_delim
21973 ac_ct_CXX!$ac_ct_CXX$ac_delim
21974 CXXDEPMODE!$CXXDEPMODE$ac_delim
21975 _ACEOF
21976
21977 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21978 break
21979 elif $ac_last_try; then
21980 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21981 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21982 { (exit 1); exit 1; }; }
21983 else
21984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21985 fi
21986 done
21987
21988 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21989 if test -n "$ac_eof"; then
21990 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21991 ac_eof=`expr $ac_eof + 1`
21992 fi
21993
21994 cat >>$CONFIG_STATUS <<_ACEOF
21995 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21997 _ACEOF
21998 sed '
21999 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22000 s/^/s,@/; s/!/@,|#_!!_#|/
22001 :n
22002 t n
22003 s/'"$ac_delim"'$/,g/; t
22004 s/$/\\/; p
22005 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22006 ' >>$CONFIG_STATUS <conf$$subs.sed
22007 rm -f conf$$subs.sed
22008 cat >>$CONFIG_STATUS <<_ACEOF
22009 CEOF$ac_eof
22010 _ACEOF
22011
22012
22013 ac_delim='%!_!# '
22014 for ac_last_try in false false false false false :; do
22015 cat >conf$$subs.sed <<_ACEOF
22016 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22017 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22018 CXXCPP!$CXXCPP$ac_delim
22019 F77!$F77$ac_delim
22020 FFLAGS!$FFLAGS$ac_delim
22021 ac_ct_F77!$ac_ct_F77$ac_delim
22022 LIBTOOL!$LIBTOOL$ac_delim
22023 LIBOBJS!$LIBOBJS$ac_delim
22024 LTLIBOBJS!$LTLIBOBJS$ac_delim
22025 _ACEOF
22026
22027 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22028 break
22029 elif $ac_last_try; then
22030 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22031 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22032 { (exit 1); exit 1; }; }
22033 else
22034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22035 fi
22036 done
22037
22038 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22039 if test -n "$ac_eof"; then
22040 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22041 ac_eof=`expr $ac_eof + 1`
22042 fi
22043
22044 cat >>$CONFIG_STATUS <<_ACEOF
22045 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22047 _ACEOF
22048 sed '
22049 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22050 s/^/s,@/; s/!/@,|#_!!_#|/
22051 :n
22052 t n
22053 s/'"$ac_delim"'$/,g/; t
22054 s/$/\\/; p
22055 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22056 ' >>$CONFIG_STATUS <conf$$subs.sed
22057 rm -f conf$$subs.sed
22058 cat >>$CONFIG_STATUS <<_ACEOF
22059 :end
22060 s/|#_!!_#|//g
22061 CEOF$ac_eof
22062 _ACEOF
22063
22064
22065 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22066 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22067 # trailing colons and then remove the whole line if VPATH becomes empty
22068 # (actually we leave an empty line to preserve line numbers).
22069 if test "x$srcdir" = x.; then
22070 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22071 s/:*\$(srcdir):*/:/
22072 s/:*\${srcdir}:*/:/
22073 s/:*@srcdir@:*/:/
22074 s/^\([^=]*=[ ]*\):*/\1/
22075 s/:*$//
22076 s/^[^=]*=[ ]*$//
22077 }'
22078 fi
22079
22080 cat >>$CONFIG_STATUS <<\_ACEOF
22081 fi # test -n "$CONFIG_FILES"
22082
22083
22084 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22085 do
22086 case $ac_tag in
22087 :[FHLC]) ac_mode=$ac_tag; continue;;
22088 esac
22089 case $ac_mode$ac_tag in
22090 :[FHL]*:*);;
22091 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22092 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22093 { (exit 1); exit 1; }; };;
22094 :[FH]-) ac_tag=-:-;;
22095 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22096 esac
22097 ac_save_IFS=$IFS
22098 IFS=:
22099 set x $ac_tag
22100 IFS=$ac_save_IFS
22101 shift
22102 ac_file=$1
22103 shift
22104
22105 case $ac_mode in
22106 :L) ac_source=$1;;
22107 :[FH])
22108 ac_file_inputs=
22109 for ac_f
22110 do
22111 case $ac_f in
22112 -) ac_f="$tmp/stdin";;
22113 *) # Look for the file first in the build tree, then in the source tree
22114 # (if the path is not absolute). The absolute path cannot be DOS-style,
22115 # because $ac_f cannot contain `:'.
22116 test -f "$ac_f" ||
22117 case $ac_f in
22118 [\\/$]*) false;;
22119 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22120 esac ||
22121 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22122 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22123 { (exit 1); exit 1; }; };;
22124 esac
22125 ac_file_inputs="$ac_file_inputs $ac_f"
22126 done
22127
22128 # Let's still pretend it is `configure' which instantiates (i.e., don't
22129 # use $as_me), people would be surprised to read:
22130 # /* config.h. Generated by config.status. */
22131 configure_input="Generated from "`IFS=:
22132 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22133 if test x"$ac_file" != x-; then
22134 configure_input="$ac_file. $configure_input"
22135 { echo "$as_me:$LINENO: creating $ac_file" >&5
22136 echo "$as_me: creating $ac_file" >&6;}
22137 fi
22138
22139 case $ac_tag in
22140 *:-:* | *:-) cat >"$tmp/stdin";;
22141 esac
22142 ;;
22143 esac
22144
22145 ac_dir=`$as_dirname -- "$ac_file" ||
22146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22147 X"$ac_file" : 'X\(//\)[^/]' \| \
22148 X"$ac_file" : 'X\(//\)$' \| \
22149 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22150 echo X"$ac_file" |
22151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22152 s//\1/
22153 q
22154 }
22155 /^X\(\/\/\)[^/].*/{
22156 s//\1/
22157 q
22158 }
22159 /^X\(\/\/\)$/{
22160 s//\1/
22161 q
22162 }
22163 /^X\(\/\).*/{
22164 s//\1/
22165 q
22166 }
22167 s/.*/./; q'`
22168 { as_dir="$ac_dir"
22169 case $as_dir in #(
22170 -*) as_dir=./$as_dir;;
22171 esac
22172 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22173 as_dirs=
22174 while :; do
22175 case $as_dir in #(
22176 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22177 *) as_qdir=$as_dir;;
22178 esac
22179 as_dirs="'$as_qdir' $as_dirs"
22180 as_dir=`$as_dirname -- "$as_dir" ||
22181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22182 X"$as_dir" : 'X\(//\)[^/]' \| \
22183 X"$as_dir" : 'X\(//\)$' \| \
22184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22185 echo X"$as_dir" |
22186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22187 s//\1/
22188 q
22189 }
22190 /^X\(\/\/\)[^/].*/{
22191 s//\1/
22192 q
22193 }
22194 /^X\(\/\/\)$/{
22195 s//\1/
22196 q
22197 }
22198 /^X\(\/\).*/{
22199 s//\1/
22200 q
22201 }
22202 s/.*/./; q'`
22203 test -d "$as_dir" && break
22204 done
22205 test -z "$as_dirs" || eval "mkdir $as_dirs"
22206 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22207 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22208 { (exit 1); exit 1; }; }; }
22209 ac_builddir=.
22210
22211 case "$ac_dir" in
22212 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22213 *)
22214 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22215 # A ".." for each directory in $ac_dir_suffix.
22216 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22217 case $ac_top_builddir_sub in
22218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22220 esac ;;
22221 esac
22222 ac_abs_top_builddir=$ac_pwd
22223 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22224 # for backward compatibility:
22225 ac_top_builddir=$ac_top_build_prefix
22226
22227 case $srcdir in
22228 .) # We are building in place.
22229 ac_srcdir=.
22230 ac_top_srcdir=$ac_top_builddir_sub
22231 ac_abs_top_srcdir=$ac_pwd ;;
22232 [\\/]* | ?:[\\/]* ) # Absolute name.
22233 ac_srcdir=$srcdir$ac_dir_suffix;
22234 ac_top_srcdir=$srcdir
22235 ac_abs_top_srcdir=$srcdir ;;
22236 *) # Relative name.
22237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22238 ac_top_srcdir=$ac_top_build_prefix$srcdir
22239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22240 esac
22241 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22242
22243
22244 case $ac_mode in
22245 :F)
22246 #
22247 # CONFIG_FILE
22248 #
22249
22250 case $INSTALL in
22251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22252 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22253 esac
22254 ac_MKDIR_P=$MKDIR_P
22255 case $MKDIR_P in
22256 [\\/$]* | ?:[\\/]* ) ;;
22257 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22258 esac
22259 _ACEOF
22260
22261 cat >>$CONFIG_STATUS <<\_ACEOF
22262 # If the template does not know about datarootdir, expand it.
22263 # FIXME: This hack should be removed a few years after 2.60.
22264 ac_datarootdir_hack=; ac_datarootdir_seen=
22265
22266 case `sed -n '/datarootdir/ {
22267 p
22268 q
22269 }
22270 /@datadir@/p
22271 /@docdir@/p
22272 /@infodir@/p
22273 /@localedir@/p
22274 /@mandir@/p
22275 ' $ac_file_inputs` in
22276 *datarootdir*) ac_datarootdir_seen=yes;;
22277 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22278 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22279 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22280 _ACEOF
22281 cat >>$CONFIG_STATUS <<_ACEOF
22282 ac_datarootdir_hack='
22283 s&@datadir@&$datadir&g
22284 s&@docdir@&$docdir&g
22285 s&@infodir@&$infodir&g
22286 s&@localedir@&$localedir&g
22287 s&@mandir@&$mandir&g
22288 s&\\\${datarootdir}&$datarootdir&g' ;;
22289 esac
22290 _ACEOF
22291
22292 # Neutralize VPATH when `$srcdir' = `.'.
22293 # Shell code in configure.ac might set extrasub.
22294 # FIXME: do we really want to maintain this feature?
22295 cat >>$CONFIG_STATUS <<_ACEOF
22296 sed "$ac_vpsub
22297 $extrasub
22298 _ACEOF
22299 cat >>$CONFIG_STATUS <<\_ACEOF
22300 :t
22301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22302 s&@configure_input@&$configure_input&;t t
22303 s&@top_builddir@&$ac_top_builddir_sub&;t t
22304 s&@srcdir@&$ac_srcdir&;t t
22305 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22306 s&@top_srcdir@&$ac_top_srcdir&;t t
22307 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22308 s&@builddir@&$ac_builddir&;t t
22309 s&@abs_builddir@&$ac_abs_builddir&;t t
22310 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22311 s&@INSTALL@&$ac_INSTALL&;t t
22312 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22313 $ac_datarootdir_hack
22314 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22315
22316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22317 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22319 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22320 which seems to be undefined. Please make sure it is defined." >&5
22321 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22322 which seems to be undefined. Please make sure it is defined." >&2;}
22323
22324 rm -f "$tmp/stdin"
22325 case $ac_file in
22326 -) cat "$tmp/out"; rm -f "$tmp/out";;
22327 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22328 esac
22329 ;;
22330 :H)
22331 #
22332 # CONFIG_HEADER
22333 #
22334 _ACEOF
22335
22336 # Transform confdefs.h into a sed script `conftest.defines', that
22337 # substitutes the proper values into config.h.in to produce config.h.
22338 rm -f conftest.defines conftest.tail
22339 # First, append a space to every undef/define line, to ease matching.
22340 echo 's/$/ /' >conftest.defines
22341 # Then, protect against being on the right side of a sed subst, or in
22342 # an unquoted here document, in config.status. If some macros were
22343 # called several times there might be several #defines for the same
22344 # symbol, which is useless. But do not sort them, since the last
22345 # AC_DEFINE must be honored.
22346 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22347 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22348 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22349 # PARAMS is the parameter list in the macro definition--in most cases, it's
22350 # just an empty string.
22351 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22352 ac_dB='\\)[ (].*,\\1define\\2'
22353 ac_dC=' '
22354 ac_dD=' ,'
22355
22356 uniq confdefs.h |
22357 sed -n '
22358 t rset
22359 :rset
22360 s/^[ ]*#[ ]*define[ ][ ]*//
22361 t ok
22362 d
22363 :ok
22364 s/[\\&,]/\\&/g
22365 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22366 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22367 ' >>conftest.defines
22368
22369 # Remove the space that was appended to ease matching.
22370 # Then replace #undef with comments. This is necessary, for
22371 # example, in the case of _POSIX_SOURCE, which is predefined and required
22372 # on some systems where configure will not decide to define it.
22373 # (The regexp can be short, since the line contains either #define or #undef.)
22374 echo 's/ $//
22375 s,^[ #]*u.*,/* & */,' >>conftest.defines
22376
22377 # Break up conftest.defines:
22378 ac_max_sed_lines=50
22379
22380 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22381 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22382 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22383 # et cetera.
22384 ac_in='$ac_file_inputs'
22385 ac_out='"$tmp/out1"'
22386 ac_nxt='"$tmp/out2"'
22387
22388 while :
22389 do
22390 # Write a here document:
22391 cat >>$CONFIG_STATUS <<_ACEOF
22392 # First, check the format of the line:
22393 cat >"\$tmp/defines.sed" <<\\CEOF
22394 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22395 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22396 b
22397 :def
22398 _ACEOF
22399 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22400 echo 'CEOF
22401 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22402 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22403 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22404 grep . conftest.tail >/dev/null || break
22405 rm -f conftest.defines
22406 mv conftest.tail conftest.defines
22407 done
22408 rm -f conftest.defines conftest.tail
22409
22410 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22411 cat >>$CONFIG_STATUS <<\_ACEOF
22412 if test x"$ac_file" != x-; then
22413 echo "/* $configure_input */" >"$tmp/config.h"
22414 cat "$ac_result" >>"$tmp/config.h"
22415 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22416 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22417 echo "$as_me: $ac_file is unchanged" >&6;}
22418 else
22419 rm -f $ac_file
22420 mv "$tmp/config.h" $ac_file
22421 fi
22422 else
22423 echo "/* $configure_input */"
22424 cat "$ac_result"
22425 fi
22426 rm -f "$tmp/out12"
22427 # Compute $ac_file's index in $config_headers.
22428 _am_arg=$ac_file
22429 _am_stamp_count=1
22430 for _am_header in $config_headers :; do
22431 case $_am_header in
22432 $_am_arg | $_am_arg:* )
22433 break ;;
22434 * )
22435 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22436 esac
22437 done
22438 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22439 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22440 X"$_am_arg" : 'X\(//\)[^/]' \| \
22441 X"$_am_arg" : 'X\(//\)$' \| \
22442 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22443 echo X"$_am_arg" |
22444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22445 s//\1/
22446 q
22447 }
22448 /^X\(\/\/\)[^/].*/{
22449 s//\1/
22450 q
22451 }
22452 /^X\(\/\/\)$/{
22453 s//\1/
22454 q
22455 }
22456 /^X\(\/\).*/{
22457 s//\1/
22458 q
22459 }
22460 s/.*/./; q'`/stamp-h$_am_stamp_count
22461 ;;
22462
22463 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22464 echo "$as_me: executing $ac_file commands" >&6;}
22465 ;;
22466 esac
22467
22468
22469 case $ac_file$ac_mode in
22470 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22471 # Strip MF so we end up with the name of the file.
22472 mf=`echo "$mf" | sed -e 's/:.*$//'`
22473 # Check whether this is an Automake generated Makefile or not.
22474 # We used to match only the files named `Makefile.in', but
22475 # some people rename them; so instead we look at the file content.
22476 # Grep'ing the first line is not enough: some people post-process
22477 # each Makefile.in and add a new line on top of each file to say so.
22478 # Grep'ing the whole file is not good either: AIX grep has a line
22479 # limit of 2048, but all sed's we know have understand at least 4000.
22480 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22481 dirpart=`$as_dirname -- "$mf" ||
22482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22483 X"$mf" : 'X\(//\)[^/]' \| \
22484 X"$mf" : 'X\(//\)$' \| \
22485 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22486 echo X"$mf" |
22487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22488 s//\1/
22489 q
22490 }
22491 /^X\(\/\/\)[^/].*/{
22492 s//\1/
22493 q
22494 }
22495 /^X\(\/\/\)$/{
22496 s//\1/
22497 q
22498 }
22499 /^X\(\/\).*/{
22500 s//\1/
22501 q
22502 }
22503 s/.*/./; q'`
22504 else
22505 continue
22506 fi
22507 # Extract the definition of DEPDIR, am__include, and am__quote
22508 # from the Makefile without running `make'.
22509 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22510 test -z "$DEPDIR" && continue
22511 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22512 test -z "am__include" && continue
22513 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22514 # When using ansi2knr, U may be empty or an underscore; expand it
22515 U=`sed -n 's/^U = //p' < "$mf"`
22516 # Find all dependency output files, they are included files with
22517 # $(DEPDIR) in their names. We invoke sed twice because it is the
22518 # simplest approach to changing $(DEPDIR) to its actual value in the
22519 # expansion.
22520 for file in `sed -n "
22521 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22522 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22523 # Make sure the directory exists.
22524 test -f "$dirpart/$file" && continue
22525 fdir=`$as_dirname -- "$file" ||
22526 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22527 X"$file" : 'X\(//\)[^/]' \| \
22528 X"$file" : 'X\(//\)$' \| \
22529 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22530 echo X"$file" |
22531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22532 s//\1/
22533 q
22534 }
22535 /^X\(\/\/\)[^/].*/{
22536 s//\1/
22537 q
22538 }
22539 /^X\(\/\/\)$/{
22540 s//\1/
22541 q
22542 }
22543 /^X\(\/\).*/{
22544 s//\1/
22545 q
22546 }
22547 s/.*/./; q'`
22548 { as_dir=$dirpart/$fdir
22549 case $as_dir in #(
22550 -*) as_dir=./$as_dir;;
22551 esac
22552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22553 as_dirs=
22554 while :; do
22555 case $as_dir in #(
22556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22557 *) as_qdir=$as_dir;;
22558 esac
22559 as_dirs="'$as_qdir' $as_dirs"
22560 as_dir=`$as_dirname -- "$as_dir" ||
22561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22562 X"$as_dir" : 'X\(//\)[^/]' \| \
22563 X"$as_dir" : 'X\(//\)$' \| \
22564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22565 echo X"$as_dir" |
22566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22567 s//\1/
22568 q
22569 }
22570 /^X\(\/\/\)[^/].*/{
22571 s//\1/
22572 q
22573 }
22574 /^X\(\/\/\)$/{
22575 s//\1/
22576 q
22577 }
22578 /^X\(\/\).*/{
22579 s//\1/
22580 q
22581 }
22582 s/.*/./; q'`
22583 test -d "$as_dir" && break
22584 done
22585 test -z "$as_dirs" || eval "mkdir $as_dirs"
22586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22588 { (exit 1); exit 1; }; }; }
22589 # echo "creating $dirpart/$file"
22590 echo '# dummy' > "$dirpart/$file"
22591 done
22592 done
22593 ;;
22594
22595 esac
22596 done # for ac_tag
22597
22598
22599 { (exit 0); exit 0; }
22600 _ACEOF
22601 chmod +x $CONFIG_STATUS
22602 ac_clean_files=$ac_clean_files_save
22603
22604
22605 # configure is writing to config.log, and then calls config.status.
22606 # config.status does its own redirection, appending to config.log.
22607 # Unfortunately, on DOS this fails, as config.log is still kept open
22608 # by configure, so config.status won't be able to write to it; its
22609 # output is simply discarded. So we exec the FD to /dev/null,
22610 # effectively closing config.log, so it can be properly (re)opened and
22611 # appended to by config.status. When coming back to configure, we
22612 # need to make the FD available again.
22613 if test "$no_create" != yes; then
22614 ac_cs_success=:
22615 ac_config_status_args=
22616 test "$silent" = yes &&
22617 ac_config_status_args="$ac_config_status_args --quiet"
22618 exec 5>/dev/null
22619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22620 exec 5>>config.log
22621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22622 # would make configure fail if this is the last instruction.
22623 $ac_cs_success || { (exit 1); exit 1; }
22624 fi
22625