Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / random128 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for random128 0.10.
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='random128'
730 PACKAGE_TARNAME='random128'
731 PACKAGE_VERSION='0.10'
732 PACKAGE_STRING='random128 0.10'
733 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735 ac_unique_file="random128.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 CPP
848 GREP
849 EGREP
850 LN_S
851 PS
852 W
853 build
854 build_cpu
855 build_vendor
856 build_os
857 host
858 host_cpu
859 host_vendor
860 host_os
861 SED
862 ECHO
863 AR
864 RANLIB
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 random128 0.10 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/random128]
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 random128 0.10:";;
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-random=/dev/urandom - location of the system random file generator
1489 --without-random - there is no system random file generator
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 random128 configure 0.10
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 random128 $as_me 0.10, 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 am__api_version='1.10'
1942
1943 ac_aux_dir=
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945 if test -f "$ac_dir/install-sh"; then
1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1948 break
1949 elif test -f "$ac_dir/install.sh"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1952 break
1953 elif test -f "$ac_dir/shtool"; then
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 break
1957 fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962 { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1972
1973
1974 # Find a good install program. We prefer a C program (faster),
1975 # so one script is as good as another. But avoid the broken or
1976 # incompatible versions:
1977 # SysV /etc/install, /usr/sbin/install
1978 # SunOS /usr/etc/install
1979 # IRIX /sbin/install
1980 # AIX /bin/install
1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 # OS/2's system install, which has a completely different semantic
1986 # ./install, which can be erroneously created by make from ./install.sh.
1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
1999 case $as_dir/ in
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 /usr/ucb/* ) ;;
2004 *)
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2007 # by default.
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2014 :
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2018 :
2019 else
2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021 break 3
2022 fi
2023 fi
2024 done
2025 done
2026 ;;
2027 esac
2028 done
2029 IFS=$as_save_IFS
2030
2031
2032 fi
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2035 else
2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
2038 # break other packages using the cache if that directory is
2039 # removed, or if the value is a relative name.
2040 INSTALL=$ac_install_sh
2041 fi
2042 fi
2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 echo "${ECHO_T}$INSTALL" >&6; }
2045
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2051
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2053
2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 # Just in case
2057 sleep 1
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell's
2060 # arguments. Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2063 # directory).
2064 if (
2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2067 # -L didn't work.
2068 set X `ls -t $srcdir/configure conftest.file`
2069 fi
2070 rm -f conftest.file
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2073
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&5
2080 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2083 fi
2084
2085 test "$2" = conftest.file
2086 )
2087 then
2088 # Ok.
2089 :
2090 else
2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097 { echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6; }
2099 test "$program_prefix" != NONE &&
2100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $. echo might interpret backslashes.
2105 # By default was `s,x,x', remove it if useless.
2106 cat <<\_ACEOF >conftest.sed
2107 s/[\\$]/&&/g;s/;s,x,x,$//
2108 _ACEOF
2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2110 rm -f conftest.sed
2111
2112 # expand $ac_aux_dir to an absolute path
2113 am_aux_dir=`cd $ac_aux_dir && pwd`
2114
2115 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2116 # Use eval to expand $SHELL
2117 if eval "$MISSING --run true"; then
2118 am_missing_run="$MISSING --run "
2119 else
2120 am_missing_run=
2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123 fi
2124
2125 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2126 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2127 if test -z "$MKDIR_P"; then
2128 if test "${ac_cv_path_mkdir+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_prog in mkdir gmkdir; do
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2140 'mkdir (GNU coreutils) '* | \
2141 'mkdir (coreutils) '* | \
2142 'mkdir (fileutils) '4.1*)
2143 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2144 break 3;;
2145 esac
2146 done
2147 done
2148 done
2149 IFS=$as_save_IFS
2150
2151 fi
2152
2153 if test "${ac_cv_path_mkdir+set}" = set; then
2154 MKDIR_P="$ac_cv_path_mkdir -p"
2155 else
2156 # As a last resort, use the slow shell script. Don't cache a
2157 # value for MKDIR_P within a source directory, because that will
2158 # break other packages using the cache if that directory is
2159 # removed, or if the value is a relative name.
2160 test -d ./--version && rmdir ./--version
2161 MKDIR_P="$ac_install_sh -d"
2162 fi
2163 fi
2164 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2165 echo "${ECHO_T}$MKDIR_P" >&6; }
2166
2167 mkdir_p="$MKDIR_P"
2168 case $mkdir_p in
2169 [\\/$]* | ?:[\\/]*) ;;
2170 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2171 esac
2172
2173 for ac_prog in gawk mawk nawk awk
2174 do
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_AWK+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test -n "$AWK"; then
2183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_AWK="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 AWK=$ac_cv_prog_AWK
2203 if test -n "$AWK"; then
2204 { echo "$as_me:$LINENO: result: $AWK" >&5
2205 echo "${ECHO_T}$AWK" >&6; }
2206 else
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 fi
2210
2211
2212 test -n "$AWK" && break
2213 done
2214
2215 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2217 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2218 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.make <<\_ACEOF
2222 SHELL = /bin/sh
2223 all:
2224 @echo '@@@%%%=$(MAKE)=@@@%%%'
2225 _ACEOF
2226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2228 *@@@%%%=?*=@@@%%%*)
2229 eval ac_cv_prog_make_${ac_make}_set=yes;;
2230 *)
2231 eval ac_cv_prog_make_${ac_make}_set=no;;
2232 esac
2233 rm -f conftest.make
2234 fi
2235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2236 { echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6; }
2238 SET_MAKE=
2239 else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 SET_MAKE="MAKE=${MAKE-make}"
2243 fi
2244
2245 rm -rf .tst 2>/dev/null
2246 mkdir .tst 2>/dev/null
2247 if test -d .tst; then
2248 am__leading_dot=.
2249 else
2250 am__leading_dot=_
2251 fi
2252 rmdir .tst 2>/dev/null
2253
2254 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2256 # is not polluted with repeated "-I."
2257 am__isrc=' -I$(srcdir)'
2258 # test to see if srcdir already configured
2259 if test -f $srcdir/config.status; then
2260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264 fi
2265
2266 # test whether we have cygpath
2267 if test -z "$CYGPATH_W"; then
2268 if (cygpath --version) >/dev/null 2>/dev/null; then
2269 CYGPATH_W='cygpath -w'
2270 else
2271 CYGPATH_W=echo
2272 fi
2273 fi
2274
2275
2276 # Define the identity of the package.
2277 PACKAGE='random128'
2278 VERSION='0.10'
2279
2280
2281 # Some tools Automake needs.
2282
2283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284
2285
2286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287
2288
2289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290
2291
2292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293
2294
2295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296
2297 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2298
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'. However `strip' might not be the right
2301 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2303 if test "$cross_compiling" != no; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_STRIP+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2325 fi
2326 done
2327 done
2328 IFS=$as_save_IFS
2329
2330 fi
2331 fi
2332 STRIP=$ac_cv_prog_STRIP
2333 if test -n "$STRIP"; then
2334 { echo "$as_me:$LINENO: result: $STRIP" >&5
2335 echo "${ECHO_T}$STRIP" >&6; }
2336 else
2337 { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2339 fi
2340
2341
2342 fi
2343 if test -z "$ac_cv_prog_STRIP"; then
2344 ac_ct_STRIP=$STRIP
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_STRIP="strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373 if test -n "$ac_ct_STRIP"; then
2374 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2376 else
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381 if test "x$ac_ct_STRIP" = x; then
2382 STRIP=":"
2383 else
2384 case $cross_compiling:$ac_tool_warned in
2385 yes:)
2386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394 STRIP=$ac_ct_STRIP
2395 fi
2396 else
2397 STRIP="$ac_cv_prog_STRIP"
2398 fi
2399
2400 fi
2401 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2402
2403 # We need awk for the "check" target. The system "awk" is bad on
2404 # some platforms.
2405 # Always define AMTAR for backward compatibility.
2406
2407 AMTAR=${AMTAR-"${am_missing_run}tar"}
2408
2409 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2410
2411
2412
2413
2414
2415 LPATH="$PATH:/usr/local/bin"
2416
2417
2418 ac_config_headers="$ac_config_headers config.h"
2419
2420 DEPDIR="${am__leading_dot}deps"
2421
2422 ac_config_commands="$ac_config_commands depfiles"
2423
2424
2425 am_make=${MAKE-make}
2426 cat > confinc << 'END'
2427 am__doit:
2428 @echo done
2429 .PHONY: am__doit
2430 END
2431 # If we don't find an include directive, just comment out the code.
2432 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2433 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2434 am__include="#"
2435 am__quote=
2436 _am_result=none
2437 # First try GNU make style include.
2438 echo "include confinc" > confmf
2439 # We grep out `Entering directory' and `Leaving directory'
2440 # messages which can occur if `w' ends up in MAKEFLAGS.
2441 # In particular we don't look at `^make:' because GNU make might
2442 # be invoked under some other name (usually "gmake"), in which
2443 # case it prints its new name instead of `make'.
2444 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2445 am__include=include
2446 am__quote=
2447 _am_result=GNU
2448 fi
2449 # Now try BSD make style include.
2450 if test "$am__include" = "#"; then
2451 echo '.include "confinc"' > confmf
2452 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2453 am__include=.include
2454 am__quote="\""
2455 _am_result=BSD
2456 fi
2457 fi
2458
2459
2460 { echo "$as_me:$LINENO: result: $_am_result" >&5
2461 echo "${ECHO_T}$_am_result" >&6; }
2462 rm -f confinc confmf
2463
2464 # Check whether --enable-dependency-tracking was given.
2465 if test "${enable_dependency_tracking+set}" = set; then
2466 enableval=$enable_dependency_tracking;
2467 fi
2468
2469 if test "x$enable_dependency_tracking" != xno; then
2470 am_depcomp="$ac_aux_dir/depcomp"
2471 AMDEPBACKSLASH='\'
2472 fi
2473 if test "x$enable_dependency_tracking" != xno; then
2474 AMDEP_TRUE=
2475 AMDEP_FALSE='#'
2476 else
2477 AMDEP_TRUE='#'
2478 AMDEP_FALSE=
2479 fi
2480
2481
2482 ac_ext=c
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509 done
2510 done
2511 IFS=$as_save_IFS
2512
2513 fi
2514 fi
2515 CC=$ac_cv_prog_CC
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2519 else
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2522 fi
2523
2524
2525 fi
2526 if test -z "$ac_cv_prog_CC"; then
2527 ac_ct_CC=$CC
2528 # Extract the first word of "gcc", so it can be a program name with args.
2529 set dummy gcc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 if test -n "$ac_ct_CC"; then
2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_ac_ct_CC="gcc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556 if test -n "$ac_ct_CC"; then
2557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2558 echo "${ECHO_T}$ac_ct_CC" >&6; }
2559 else
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2562 fi
2563
2564 if test "x$ac_ct_CC" = x; then
2565 CC=""
2566 else
2567 case $cross_compiling:$ac_tool_warned in
2568 yes:)
2569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet. If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&5
2572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2573 whose name does not start with the host triplet. If you think this
2574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2575 ac_tool_warned=yes ;;
2576 esac
2577 CC=$ac_ct_CC
2578 fi
2579 else
2580 CC="$ac_cv_prog_CC"
2581 fi
2582
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2586 set dummy ${ac_tool_prefix}cc; ac_word=$2
2587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_CC="${ac_tool_prefix}cc"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606 done
2607 done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 CC=$ac_cv_prog_CC
2613 if test -n "$CC"; then
2614 { echo "$as_me:$LINENO: result: $CC" >&5
2615 echo "${ECHO_T}$CC" >&6; }
2616 else
2617 { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2619 fi
2620
2621
2622 fi
2623 fi
2624 if test -z "$CC"; then
2625 # Extract the first word of "cc", so it can be a program name with args.
2626 set dummy cc; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 ac_prog_rejected=no
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2644 ac_prog_rejected=yes
2645 continue
2646 fi
2647 ac_cv_prog_CC="cc"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 if test $ac_prog_rejected = yes; then
2656 # We found a bogon in the path, so make sure we never use it.
2657 set dummy $ac_cv_prog_CC
2658 shift
2659 if test $# != 0; then
2660 # We chose a different compiler from the bogus one.
2661 # However, it has the same basename, so the bogon will be chosen
2662 # first if we set CC to just the basename; use the full file name.
2663 shift
2664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2665 fi
2666 fi
2667 fi
2668 fi
2669 CC=$ac_cv_prog_CC
2670 if test -n "$CC"; then
2671 { echo "$as_me:$LINENO: result: $CC" >&5
2672 echo "${ECHO_T}$CC" >&6; }
2673 else
2674 { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2676 fi
2677
2678
2679 fi
2680 if test -z "$CC"; then
2681 if test -n "$ac_tool_prefix"; then
2682 for ac_prog in cl.exe
2683 do
2684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 CC=$ac_cv_prog_CC
2712 if test -n "$CC"; then
2713 { echo "$as_me:$LINENO: result: $CC" >&5
2714 echo "${ECHO_T}$CC" >&6; }
2715 else
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2718 fi
2719
2720
2721 test -n "$CC" && break
2722 done
2723 fi
2724 if test -z "$CC"; then
2725 ac_ct_CC=$CC
2726 for ac_prog in cl.exe
2727 do
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_ac_ct_CC="$ac_prog"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6; }
2759 else
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2762 fi
2763
2764
2765 test -n "$ac_ct_CC" && break
2766 done
2767
2768 if test "x$ac_ct_CC" = x; then
2769 CC=""
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2774 whose name does not start with the host triplet. If you think this
2775 configuration is useful to you, please write to autoconf@gnu.org." >&5
2776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2777 whose name does not start with the host triplet. If you think this
2778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781 CC=$ac_ct_CC
2782 fi
2783 fi
2784
2785 fi
2786
2787
2788 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: no acceptable C compiler found in \$PATH
2791 See \`config.log' for more details." >&2;}
2792 { (exit 1); exit 1; }; }
2793
2794 # Provide some information about the compiler.
2795 echo "$as_me:$LINENO: checking for C compiler version" >&5
2796 ac_compiler=`set X $ac_compile; echo $2`
2797 { (ac_try="$ac_compiler --version >&5"
2798 case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801 esac
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compiler --version >&5") 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }
2807 { (ac_try="$ac_compiler -v >&5"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compiler -v >&5") 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }
2817 { (ac_try="$ac_compiler -V >&5"
2818 case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compiler -V >&5") 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834
2835 int
2836 main ()
2837 {
2838
2839 ;
2840 return 0;
2841 }
2842 _ACEOF
2843 ac_clean_files_save=$ac_clean_files
2844 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2845 # Try to create an executable without -o first, disregard a.out.
2846 # It will help us diagnose broken compilers, and finding out an intuition
2847 # of exeext.
2848 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2849 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2850 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2851 #
2852 # List of possible output files, starting from the most likely.
2853 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2854 # only as a last resort. b.out is created by i960 compilers.
2855 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2856 #
2857 # The IRIX 6 linker writes into existing files which may not be
2858 # executable, retaining their permissions. Remove them first so a
2859 # subsequent execution test works.
2860 ac_rmfiles=
2861 for ac_file in $ac_files
2862 do
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2866 esac
2867 done
2868 rm -f $ac_rmfiles
2869
2870 if { (ac_try="$ac_link_default"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link_default") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2883 # so that the user can short-circuit this test for compilers unknown to
2884 # Autoconf.
2885 for ac_file in $ac_files ''
2886 do
2887 test -f "$ac_file" || continue
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2890 ;;
2891 [ab].out )
2892 # We found the default executable, but exeext='' is most
2893 # certainly right.
2894 break;;
2895 *.* )
2896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2897 then :; else
2898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899 fi
2900 # We set ac_cv_exeext here because the later test for it is not
2901 # safe: cross compilers may not add the suffix if given an `-o'
2902 # argument, so we may need to know it at that point already.
2903 # Even if this section looks crufty: it has the advantage of
2904 # actually working.
2905 break;;
2906 * )
2907 break;;
2908 esac
2909 done
2910 test "$ac_cv_exeext" = no && ac_cv_exeext=
2911
2912 else
2913 ac_file=''
2914 fi
2915
2916 { echo "$as_me:$LINENO: result: $ac_file" >&5
2917 echo "${ECHO_T}$ac_file" >&6; }
2918 if test -z "$ac_file"; then
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: C compiler cannot create executables
2925 See \`config.log' for more details." >&2;}
2926 { (exit 77); exit 77; }; }
2927 fi
2928
2929 ac_exeext=$ac_cv_exeext
2930
2931 # Check that the compiler produces executables we can run. If not, either
2932 # the compiler is broken, or we cross compile.
2933 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2936 # If not cross compiling, check that we can run a simple program.
2937 if test "$cross_compiling" != yes; then
2938 if { ac_try='./$ac_file'
2939 { (case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_try") 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 cross_compiling=no
2949 else
2950 if test "$cross_compiling" = maybe; then
2951 cross_compiling=yes
2952 else
2953 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2954 If you meant to cross compile, use \`--host'.
2955 See \`config.log' for more details." >&5
2956 echo "$as_me: error: cannot run C compiled programs.
2957 If you meant to cross compile, use \`--host'.
2958 See \`config.log' for more details." >&2;}
2959 { (exit 1); exit 1; }; }
2960 fi
2961 fi
2962 fi
2963 { echo "$as_me:$LINENO: result: yes" >&5
2964 echo "${ECHO_T}yes" >&6; }
2965
2966 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2967 ac_clean_files=$ac_clean_files_save
2968 # Check that the compiler produces executables we can run. If not, either
2969 # the compiler is broken, or we cross compile.
2970 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2971 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2972 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2973 echo "${ECHO_T}$cross_compiling" >&6; }
2974
2975 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2976 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2977 if { (ac_try="$ac_link"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_link") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2988 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2989 # work properly (i.e., refer to `conftest.exe'), while it won't with
2990 # `rm'.
2991 for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
2995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2996 break;;
2997 * ) break;;
2998 esac
2999 done
3000 else
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3006 fi
3007
3008 rm -f conftest$ac_cv_exeext
3009 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3010 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3011
3012 rm -f conftest.$ac_ext
3013 EXEEXT=$ac_cv_exeext
3014 ac_exeext=$EXEEXT
3015 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3016 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3017 if test "${ac_cv_objext+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.o conftest.obj
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; then
3046 for ac_file in conftest.o conftest.obj conftest.*; do
3047 test -f "$ac_file" || continue;
3048 case $ac_file in
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3051 break;;
3052 esac
3053 done
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3059 See \`config.log' for more details." >&5
3060 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3061 See \`config.log' for more details." >&2;}
3062 { (exit 1); exit 1; }; }
3063 fi
3064
3065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3066 fi
3067 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3068 echo "${ECHO_T}$ac_cv_objext" >&6; }
3069 OBJEXT=$ac_cv_objext
3070 ac_objext=$OBJEXT
3071 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3072 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3073 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082
3083 int
3084 main ()
3085 {
3086 #ifndef __GNUC__
3087 choke me
3088 #endif
3089
3090 ;
3091 return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3111 ac_compiler_gnu=yes
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 ac_compiler_gnu=no
3117 fi
3118
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
3122 fi
3123 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3125 GCC=`test $ac_compiler_gnu = yes && echo yes`
3126 ac_test_CFLAGS=${CFLAGS+set}
3127 ac_save_CFLAGS=$CFLAGS
3128 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3129 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3130 if test "${ac_cv_prog_cc_g+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 ac_save_c_werror_flag=$ac_c_werror_flag
3134 ac_c_werror_flag=yes
3135 ac_cv_prog_cc_g=no
3136 CFLAGS="-g"
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143
3144 int
3145 main ()
3146 {
3147
3148 ;
3149 return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3154 case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_compile") 2>conftest.er1
3160 ac_status=$?
3161 grep -v '^ *+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } && {
3166 test -z "$ac_c_werror_flag" ||
3167 test ! -s conftest.err
3168 } && test -s conftest.$ac_objext; then
3169 ac_cv_prog_cc_g=yes
3170 else
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 CFLAGS=""
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181
3182 int
3183 main ()
3184 {
3185
3186 ;
3187 return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3207 :
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3213 CFLAGS="-g"
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220
3221 int
3222 main ()
3223 {
3224
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
3246 ac_cv_prog_cc_g=yes
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251
3252 fi
3253
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 fi
3256
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 fi
3259
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_c_werror_flag=$ac_save_c_werror_flag
3262 fi
3263 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3264 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3265 if test "$ac_test_CFLAGS" = set; then
3266 CFLAGS=$ac_save_CFLAGS
3267 elif test $ac_cv_prog_cc_g = yes; then
3268 if test "$GCC" = yes; then
3269 CFLAGS="-g -O2"
3270 else
3271 CFLAGS="-g"
3272 fi
3273 else
3274 if test "$GCC" = yes; then
3275 CFLAGS="-O2"
3276 else
3277 CFLAGS=
3278 fi
3279 fi
3280 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3281 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_cc_c89+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 ac_cv_prog_cc_c89=no
3286 ac_save_CC=$CC
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #include <stdarg.h>
3294 #include <stdio.h>
3295 #include <sys/types.h>
3296 #include <sys/stat.h>
3297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3298 struct buf { int x; };
3299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300 static char *e (p, i)
3301 char **p;
3302 int i;
3303 {
3304 return p[i];
3305 }
3306 static char *f (char * (*g) (char **, int), char **p, ...)
3307 {
3308 char *s;
3309 va_list v;
3310 va_start (v,p);
3311 s = g (p, va_arg (v,int));
3312 va_end (v);
3313 return s;
3314 }
3315
3316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3317 function prototypes and stuff, but not '\xHH' hex character constants.
3318 These don't provoke an error unfortunately, instead are silently treated
3319 as 'x'. The following induces an error, until -std is added to get
3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3321 array size at least. It's necessary to write '\x00'==0 to get something
3322 that's true only with -std. */
3323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324
3325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326 inside strings and character constants. */
3327 #define FOO(x) 'x'
3328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3329
3330 int test (int i, double x);
3331 struct s1 {int (*f) (int a);};
3332 struct s2 {int (*f) (double a);};
3333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3334 int argc;
3335 char **argv;
3336 int
3337 main ()
3338 {
3339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3346 do
3347 CC="$ac_save_CC $ac_arg"
3348 rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } && {
3362 test -z "$ac_c_werror_flag" ||
3363 test ! -s conftest.err
3364 } && test -s conftest.$ac_objext; then
3365 ac_cv_prog_cc_c89=$ac_arg
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370
3371 fi
3372
3373 rm -f core conftest.err conftest.$ac_objext
3374 test "x$ac_cv_prog_cc_c89" != "xno" && break
3375 done
3376 rm -f conftest.$ac_ext
3377 CC=$ac_save_CC
3378
3379 fi
3380 # AC_CACHE_VAL
3381 case "x$ac_cv_prog_cc_c89" in
3382 x)
3383 { echo "$as_me:$LINENO: result: none needed" >&5
3384 echo "${ECHO_T}none needed" >&6; } ;;
3385 xno)
3386 { echo "$as_me:$LINENO: result: unsupported" >&5
3387 echo "${ECHO_T}unsupported" >&6; } ;;
3388 *)
3389 CC="$CC $ac_cv_prog_cc_c89"
3390 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3391 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3392 esac
3393
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401 depcc="$CC" am_compiler_list=
3402
3403 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3404 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3405 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409 # We make a subdir and do the tests there. Otherwise we can end up
3410 # making bogus files that we don't know about and never remove. For
3411 # instance it was reported that on HP-UX the gcc test will end up
3412 # making a dummy file named `D' -- because `-MD' means `put the output
3413 # in D'.
3414 mkdir conftest.dir
3415 # Copy depcomp to subdir because otherwise we won't find it if we're
3416 # using a relative directory.
3417 cp "$am_depcomp" conftest.dir
3418 cd conftest.dir
3419 # We will build objects and dependencies in a subdirectory because
3420 # it helps to detect inapplicable dependency modes. For instance
3421 # both Tru64's cc and ICC support -MD to output dependencies as a
3422 # side effect of compilation, but ICC will put the dependencies in
3423 # the current directory while Tru64 will put them in the object
3424 # directory.
3425 mkdir sub
3426
3427 am_cv_CC_dependencies_compiler_type=none
3428 if test "$am_compiler_list" = ""; then
3429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3430 fi
3431 for depmode in $am_compiler_list; do
3432 # Setup a source with many dependencies, because some compilers
3433 # like to wrap large dependency lists on column 80 (with \), and
3434 # we should not choose a depcomp mode which is confused by this.
3435 #
3436 # We need to recreate these files for each test, as the compiler may
3437 # overwrite some of them when testing with obscure command lines.
3438 # This happens at least with the AIX C compiler.
3439 : > sub/conftest.c
3440 for i in 1 2 3 4 5 6; do
3441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443 # Solaris 8's {/usr,}/bin/sh.
3444 touch sub/conftst$i.h
3445 done
3446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3447
3448 case $depmode in
3449 nosideeffect)
3450 # after this tag, mechanisms are not by side-effect, so they'll
3451 # only be used when explicitly requested
3452 if test "x$enable_dependency_tracking" = xyes; then
3453 continue
3454 else
3455 break
3456 fi
3457 ;;
3458 none) break ;;
3459 esac
3460 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461 # mode. It turns out that the SunPro C++ compiler does not properly
3462 # handle `-M -o', and we need to detect this.
3463 if depmode=$depmode \
3464 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467 >/dev/null 2>conftest.err &&
3468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472 # icc doesn't choke on unknown options, it will just issue warnings
3473 # or remarks (even with -Werror). So we grep stderr for any message
3474 # that says an option was ignored or not supported.
3475 # When given -MP, icc 7.0 and 7.1 complain thusly:
3476 # icc: Command line warning: ignoring option '-M'; no argument required
3477 # The diagnosis changed in icc 8.0:
3478 # icc: Command line remark: option '-MP' not supported
3479 if (grep 'ignoring option' conftest.err ||
3480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481 am_cv_CC_dependencies_compiler_type=$depmode
3482 break
3483 fi
3484 fi
3485 done
3486
3487 cd ..
3488 rm -rf conftest.dir
3489 else
3490 am_cv_CC_dependencies_compiler_type=none
3491 fi
3492
3493 fi
3494 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3496 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498 if
3499 test "x$enable_dependency_tracking" != xno \
3500 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3501 am__fastdepCC_TRUE=
3502 am__fastdepCC_FALSE='#'
3503 else
3504 am__fastdepCC_TRUE='#'
3505 am__fastdepCC_FALSE=
3506 fi
3507
3508
3509
3510 ac_ext=c
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3517 # On Suns, sometimes $CPP names a directory.
3518 if test -n "$CPP" && test -d "$CPP"; then
3519 CPP=
3520 fi
3521 if test -z "$CPP"; then
3522 if test "${ac_cv_prog_CPP+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 # Double quotes because CPP needs to be expanded
3526 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3527 do
3528 ac_preproc_ok=false
3529 for ac_c_preproc_warn_flag in '' yes
3530 do
3531 # Use a header file that comes with gcc, so configuring glibc
3532 # with a fresh cross-compiler works.
3533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534 # <limits.h> exists even on freestanding compilers.
3535 # On the NeXT, cc -E runs the code through the compiler's parser,
3536 # not just through cpp. "Syntax error" is here to catch this case.
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #ifdef __STDC__
3544 # include <limits.h>
3545 #else
3546 # include <assert.h>
3547 #endif
3548 Syntax error
3549 _ACEOF
3550 if { (ac_try="$ac_cpp conftest.$ac_ext"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null && {
3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 }; then
3566 :
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 # Broken: fails on valid input.
3572 continue
3573 fi
3574
3575 rm -f conftest.err conftest.$ac_ext
3576
3577 # OK, works on sane cases. Now check whether nonexistent headers
3578 # can be detected and how.
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3586 _ACEOF
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594 ac_status=$?
3595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } >/dev/null && {
3600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3601 test ! -s conftest.err
3602 }; then
3603 # Broken: success on invalid input.
3604 continue
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 # Passes both tests.
3610 ac_preproc_ok=:
3611 break
3612 fi
3613
3614 rm -f conftest.err conftest.$ac_ext
3615
3616 done
3617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3618 rm -f conftest.err conftest.$ac_ext
3619 if $ac_preproc_ok; then
3620 break
3621 fi
3622
3623 done
3624 ac_cv_prog_CPP=$CPP
3625
3626 fi
3627 CPP=$ac_cv_prog_CPP
3628 else
3629 ac_cv_prog_CPP=$CPP
3630 fi
3631 { echo "$as_me:$LINENO: result: $CPP" >&5
3632 echo "${ECHO_T}$CPP" >&6; }
3633 ac_preproc_ok=false
3634 for ac_c_preproc_warn_flag in '' yes
3635 do
3636 # Use a header file that comes with gcc, so configuring glibc
3637 # with a fresh cross-compiler works.
3638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3639 # <limits.h> exists even on freestanding compilers.
3640 # On the NeXT, cc -E runs the code through the compiler's parser,
3641 # not just through cpp. "Syntax error" is here to catch this case.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #ifdef __STDC__
3649 # include <limits.h>
3650 #else
3651 # include <assert.h>
3652 #endif
3653 Syntax error
3654 _ACEOF
3655 if { (ac_try="$ac_cpp conftest.$ac_ext"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } >/dev/null && {
3668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3670 }; then
3671 :
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 # Broken: fails on valid input.
3677 continue
3678 fi
3679
3680 rm -f conftest.err conftest.$ac_ext
3681
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <ac_nonexistent.h>
3691 _ACEOF
3692 if { (ac_try="$ac_cpp conftest.$ac_ext"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } >/dev/null && {
3705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 }; then
3708 # Broken: success on invalid input.
3709 continue
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 # Passes both tests.
3715 ac_preproc_ok=:
3716 break
3717 fi
3718
3719 rm -f conftest.err conftest.$ac_ext
3720
3721 done
3722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3723 rm -f conftest.err conftest.$ac_ext
3724 if $ac_preproc_ok; then
3725 :
3726 else
3727 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3728 See \`config.log' for more details." >&5
3729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3730 See \`config.log' for more details." >&2;}
3731 { (exit 1); exit 1; }; }
3732 fi
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739
3740
3741 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3742 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3743 if test "${ac_cv_path_GREP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 # Extract the first word of "grep ggrep" to use in msg output
3747 if test -z "$GREP"; then
3748 set dummy grep ggrep; ac_prog_name=$2
3749 if test "${ac_cv_path_GREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 ac_path_GREP_found=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756 do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in grep ggrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3763 # Check for GNU ac_path_GREP and select it if it is found.
3764 # Check for GNU $ac_path_GREP
3765 case `"$ac_path_GREP" --version 2>&1` in
3766 *GNU*)
3767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3768 *)
3769 ac_count=0
3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 while :
3772 do
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 echo 'GREP' >> "conftest.nl"
3777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 ac_count=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_GREP="$ac_path_GREP"
3783 ac_path_GREP_max=$ac_count
3784 fi
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3787 done
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789 esac
3790
3791
3792 $ac_path_GREP_found && break 3
3793 done
3794 done
3795
3796 done
3797 IFS=$as_save_IFS
3798
3799
3800 fi
3801
3802 GREP="$ac_cv_path_GREP"
3803 if test -z "$GREP"; then
3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806 { (exit 1); exit 1; }; }
3807 fi
3808
3809 else
3810 ac_cv_path_GREP=$GREP
3811 fi
3812
3813
3814 fi
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3817 GREP="$ac_cv_path_GREP"
3818
3819
3820 { echo "$as_me:$LINENO: checking for egrep" >&5
3821 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3822 if test "${ac_cv_path_EGREP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3826 then ac_cv_path_EGREP="$GREP -E"
3827 else
3828 # Extract the first word of "egrep" to use in msg output
3829 if test -z "$EGREP"; then
3830 set dummy egrep; ac_prog_name=$2
3831 if test "${ac_cv_path_EGREP+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 ac_path_EGREP_found=false
3835 # Loop through the user's path and test for each of PROGNAME-LIST
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3838 do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_prog in egrep; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3845 # Check for GNU ac_path_EGREP and select it if it is found.
3846 # Check for GNU $ac_path_EGREP
3847 case `"$ac_path_EGREP" --version 2>&1` in
3848 *GNU*)
3849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3850 *)
3851 ac_count=0
3852 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3853 while :
3854 do
3855 cat "conftest.in" "conftest.in" >"conftest.tmp"
3856 mv "conftest.tmp" "conftest.in"
3857 cp "conftest.in" "conftest.nl"
3858 echo 'EGREP' >> "conftest.nl"
3859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861 ac_count=`expr $ac_count + 1`
3862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_EGREP="$ac_path_EGREP"
3865 ac_path_EGREP_max=$ac_count
3866 fi
3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3869 done
3870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3871 esac
3872
3873
3874 $ac_path_EGREP_found && break 3
3875 done
3876 done
3877
3878 done
3879 IFS=$as_save_IFS
3880
3881
3882 fi
3883
3884 EGREP="$ac_cv_path_EGREP"
3885 if test -z "$EGREP"; then
3886 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3887 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3888 { (exit 1); exit 1; }; }
3889 fi
3890
3891 else
3892 ac_cv_path_EGREP=$EGREP
3893 fi
3894
3895
3896 fi
3897 fi
3898 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3899 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3900 EGREP="$ac_cv_path_EGREP"
3901
3902
3903
3904 { echo "$as_me:$LINENO: checking for AIX" >&5
3905 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 #ifdef _AIX
3913 yes
3914 #endif
3915
3916 _ACEOF
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 $EGREP "yes" >/dev/null 2>&1; then
3919 { echo "$as_me:$LINENO: result: yes" >&5
3920 echo "${ECHO_T}yes" >&6; }
3921 cat >>confdefs.h <<\_ACEOF
3922 #define _ALL_SOURCE 1
3923 _ACEOF
3924
3925 else
3926 { echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6; }
3928 fi
3929 rm -f conftest*
3930
3931
3932 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3933 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3934 if test "${ac_cv_search_strerror+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 ac_func_search_save_LIBS=$LIBS
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944
3945 /* Override any GCC internal prototype to avoid an error.
3946 Use char because int might match the return type of a GCC
3947 builtin and then its argument prototype would still apply. */
3948 #ifdef __cplusplus
3949 extern "C"
3950 #endif
3951 char strerror ();
3952 int
3953 main ()
3954 {
3955 return strerror ();
3956 ;
3957 return 0;
3958 }
3959 _ACEOF
3960 for ac_lib in '' cposix; do
3961 if test -z "$ac_lib"; then
3962 ac_res="none required"
3963 else
3964 ac_res=-l$ac_lib
3965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3966 fi
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968 if { (ac_try="$ac_link"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_link") 2>conftest.er1
3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest$ac_exeext &&
3984 $as_test_x conftest$ac_exeext; then
3985 ac_cv_search_strerror=$ac_res
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990
3991 fi
3992
3993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3994 conftest$ac_exeext
3995 if test "${ac_cv_search_strerror+set}" = set; then
3996 break
3997 fi
3998 done
3999 if test "${ac_cv_search_strerror+set}" = set; then
4000 :
4001 else
4002 ac_cv_search_strerror=no
4003 fi
4004 rm conftest.$ac_ext
4005 LIBS=$ac_func_search_save_LIBS
4006 fi
4007 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4008 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4009 ac_res=$ac_cv_search_strerror
4010 if test "$ac_res" != no; then
4011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4012
4013 fi
4014
4015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4017 if test "${ac_cv_header_stdc+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <stdlib.h>
4027 #include <stdarg.h>
4028 #include <string.h>
4029 #include <float.h>
4030
4031 int
4032 main ()
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
4056 ac_cv_header_stdc=yes
4057 else
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4060
4061 ac_cv_header_stdc=no
4062 fi
4063
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065
4066 if test $ac_cv_header_stdc = yes; then
4067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <string.h>
4075
4076 _ACEOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "memchr" >/dev/null 2>&1; then
4079 :
4080 else
4081 ac_cv_header_stdc=no
4082 fi
4083 rm -f conftest*
4084
4085 fi
4086
4087 if test $ac_cv_header_stdc = yes; then
4088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #include <stdlib.h>
4096
4097 _ACEOF
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "free" >/dev/null 2>&1; then
4100 :
4101 else
4102 ac_cv_header_stdc=no
4103 fi
4104 rm -f conftest*
4105
4106 fi
4107
4108 if test $ac_cv_header_stdc = yes; then
4109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4110 if test "$cross_compiling" = yes; then
4111 :
4112 else
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <ctype.h>
4120 #include <stdlib.h>
4121 #if ((' ' & 0x0FF) == 0x020)
4122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4124 #else
4125 # define ISLOWER(c) \
4126 (('a' <= (c) && (c) <= 'i') \
4127 || ('j' <= (c) && (c) <= 'r') \
4128 || ('s' <= (c) && (c) <= 'z'))
4129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4130 #endif
4131
4132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4133 int
4134 main ()
4135 {
4136 int i;
4137 for (i = 0; i < 256; i++)
4138 if (XOR (islower (i), ISLOWER (i))
4139 || toupper (i) != TOUPPER (i))
4140 return 2;
4141 return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 :
4165 else
4166 echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 ( exit $ac_status )
4171 ac_cv_header_stdc=no
4172 fi
4173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174 fi
4175
4176
4177 fi
4178 fi
4179 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4180 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4181 if test $ac_cv_header_stdc = yes; then
4182
4183 cat >>confdefs.h <<\_ACEOF
4184 #define STDC_HEADERS 1
4185 _ACEOF
4186
4187 fi
4188
4189 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4200 inttypes.h stdint.h unistd.h
4201 do
4202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 $ac_includes_default
4215
4216 #include <$ac_header>
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4220 case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } && {
4232 test -z "$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 } && test -s conftest.$ac_objext; then
4235 eval "$as_ac_Header=yes"
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 eval "$as_ac_Header=no"
4241 fi
4242
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 ac_res=`eval echo '${'$as_ac_Header'}'`
4246 { echo "$as_me:$LINENO: result: $ac_res" >&5
4247 echo "${ECHO_T}$ac_res" >&6; }
4248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4249 cat >>confdefs.h <<_ACEOF
4250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251 _ACEOF
4252
4253 fi
4254
4255 done
4256
4257
4258 if test "${ac_cv_header_minix_config_h+set}" = set; then
4259 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4260 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4261 if test "${ac_cv_header_minix_config_h+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 fi
4264 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4265 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4266 else
4267 # Is the header compilable?
4268 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4269 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4277 #include <minix/config.h>
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.$ac_objext; then
4296 ac_header_compiler=yes
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 ac_header_compiler=no
4302 fi
4303
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4306 echo "${ECHO_T}$ac_header_compiler" >&6; }
4307
4308 # Is the header present?
4309 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4310 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <minix/config.h>
4318 _ACEOF
4319 if { (ac_try="$ac_cpp conftest.$ac_ext"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } >/dev/null && {
4332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 }; then
4335 ac_header_preproc=yes
4336 else
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ac_header_preproc=no
4341 fi
4342
4343 rm -f conftest.err conftest.$ac_ext
4344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4345 echo "${ECHO_T}$ac_header_preproc" >&6; }
4346
4347 # So? What about this header?
4348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4349 yes:no: )
4350 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4351 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4353 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4354 ac_header_preproc=yes
4355 ;;
4356 no:yes:* )
4357 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4358 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4360 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4362 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4364 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4365 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4366 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4368 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4369 ( cat <<\_ASBOX
4370 ## -------------------------------------------------- ##
4371 ## Report this to courier-users@lists.sourceforge.net ##
4372 ## -------------------------------------------------- ##
4373 _ASBOX
4374 ) | sed "s/^/$as_me: WARNING: /" >&2
4375 ;;
4376 esac
4377 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4378 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4379 if test "${ac_cv_header_minix_config_h+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 ac_cv_header_minix_config_h=$ac_header_preproc
4383 fi
4384 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4385 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4386
4387 fi
4388 if test $ac_cv_header_minix_config_h = yes; then
4389 MINIX=yes
4390 else
4391 MINIX=
4392 fi
4393
4394
4395 if test "$MINIX" = yes; then
4396
4397 cat >>confdefs.h <<\_ACEOF
4398 #define _POSIX_SOURCE 1
4399 _ACEOF
4400
4401
4402 cat >>confdefs.h <<\_ACEOF
4403 #define _POSIX_1_SOURCE 2
4404 _ACEOF
4405
4406
4407 cat >>confdefs.h <<\_ACEOF
4408 #define _MINIX 1
4409 _ACEOF
4410
4411 fi
4412
4413 # Find a good install program. We prefer a C program (faster),
4414 # so one script is as good as another. But avoid the broken or
4415 # incompatible versions:
4416 # SysV /etc/install, /usr/sbin/install
4417 # SunOS /usr/etc/install
4418 # IRIX /sbin/install
4419 # AIX /bin/install
4420 # AmigaOS /C/install, which installs bootblocks on floppy discs
4421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4424 # OS/2's system install, which has a completely different semantic
4425 # ./install, which can be erroneously created by make from ./install.sh.
4426 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4427 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4428 if test -z "$INSTALL"; then
4429 if test "${ac_cv_path_install+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 # Account for people who put trailing slashes in PATH elements.
4438 case $as_dir/ in
4439 ./ | .// | /cC/* | \
4440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4442 /usr/ucb/* ) ;;
4443 *)
4444 # OSF1 and SCO ODT 3.0 have their own names for install.
4445 # Don't use installbsd from OSF since it installs stuff as root
4446 # by default.
4447 for ac_prog in ginstall scoinst install; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4450 if test $ac_prog = install &&
4451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # AIX install. It has an incompatible calling convention.
4453 :
4454 elif test $ac_prog = install &&
4455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456 # program-specific install script used by HP pwplus--don't use.
4457 :
4458 else
4459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4460 break 3
4461 fi
4462 fi
4463 done
4464 done
4465 ;;
4466 esac
4467 done
4468 IFS=$as_save_IFS
4469
4470
4471 fi
4472 if test "${ac_cv_path_install+set}" = set; then
4473 INSTALL=$ac_cv_path_install
4474 else
4475 # As a last resort, use the slow shell script. Don't cache a
4476 # value for INSTALL within a source directory, because that will
4477 # break other packages using the cache if that directory is
4478 # removed, or if the value is a relative name.
4479 INSTALL=$ac_install_sh
4480 fi
4481 fi
4482 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4483 echo "${ECHO_T}$INSTALL" >&6; }
4484
4485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4486 # It thinks the first close brace ends the variable substitution.
4487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4488
4489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4490
4491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4492
4493 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4494 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4495 LN_S=$as_ln_s
4496 if test "$LN_S" = "ln -s"; then
4497 { echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6; }
4499 else
4500 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4501 echo "${ECHO_T}no, using $LN_S" >&6; }
4502 fi
4503
4504 ac_ext=c
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if test -n "$CC"; then
4518 ac_cv_prog_CC="$CC" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531 done
4532 done
4533 IFS=$as_save_IFS
4534
4535 fi
4536 fi
4537 CC=$ac_cv_prog_CC
4538 if test -n "$CC"; then
4539 { echo "$as_me:$LINENO: result: $CC" >&5
4540 echo "${ECHO_T}$CC" >&6; }
4541 else
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4544 fi
4545
4546
4547 fi
4548 if test -z "$ac_cv_prog_CC"; then
4549 ac_ct_CC=$CC
4550 # Extract the first word of "gcc", so it can be a program name with args.
4551 set dummy gcc; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 if test -n "$ac_ct_CC"; then
4558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_ac_ct_CC="gcc"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575 fi
4576 fi
4577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4578 if test -n "$ac_ct_CC"; then
4579 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4580 echo "${ECHO_T}$ac_ct_CC" >&6; }
4581 else
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4584 fi
4585
4586 if test "x$ac_ct_CC" = x; then
4587 CC=""
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590 yes:)
4591 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4592 whose name does not start with the host triplet. If you think this
4593 configuration is useful to you, please write to autoconf@gnu.org." >&5
4594 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4595 whose name does not start with the host triplet. If you think this
4596 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4597 ac_tool_warned=yes ;;
4598 esac
4599 CC=$ac_ct_CC
4600 fi
4601 else
4602 CC="$ac_cv_prog_CC"
4603 fi
4604
4605 if test -z "$CC"; then
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}cc; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_prog_CC+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 if test -n "$CC"; then
4615 ac_cv_prog_CC="$CC" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_CC="${ac_tool_prefix}cc"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 CC=$ac_cv_prog_CC
4635 if test -n "$CC"; then
4636 { echo "$as_me:$LINENO: result: $CC" >&5
4637 echo "${ECHO_T}$CC" >&6; }
4638 else
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4641 fi
4642
4643
4644 fi
4645 fi
4646 if test -z "$CC"; then
4647 # Extract the first word of "cc", so it can be a program name with args.
4648 set dummy cc; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_CC+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4656 else
4657 ac_prog_rejected=no
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4666 ac_prog_rejected=yes
4667 continue
4668 fi
4669 ac_cv_prog_CC="cc"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 if test $ac_prog_rejected = yes; then
4678 # We found a bogon in the path, so make sure we never use it.
4679 set dummy $ac_cv_prog_CC
4680 shift
4681 if test $# != 0; then
4682 # We chose a different compiler from the bogus one.
4683 # However, it has the same basename, so the bogon will be chosen
4684 # first if we set CC to just the basename; use the full file name.
4685 shift
4686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4687 fi
4688 fi
4689 fi
4690 fi
4691 CC=$ac_cv_prog_CC
4692 if test -n "$CC"; then
4693 { echo "$as_me:$LINENO: result: $CC" >&5
4694 echo "${ECHO_T}$CC" >&6; }
4695 else
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 fi
4699
4700
4701 fi
4702 if test -z "$CC"; then
4703 if test -n "$ac_tool_prefix"; then
4704 for ac_prog in cl.exe
4705 do
4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_CC+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 CC=$ac_cv_prog_CC
4734 if test -n "$CC"; then
4735 { echo "$as_me:$LINENO: result: $CC" >&5
4736 echo "${ECHO_T}$CC" >&6; }
4737 else
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4740 fi
4741
4742
4743 test -n "$CC" && break
4744 done
4745 fi
4746 if test -z "$CC"; then
4747 ac_ct_CC=$CC
4748 for ac_prog in cl.exe
4749 do
4750 # Extract the first word of "$ac_prog", so it can be a program name with args.
4751 set dummy $ac_prog; ac_word=$2
4752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757 if test -n "$ac_ct_CC"; then
4758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_ac_ct_CC="$ac_prog"
4768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4778 if test -n "$ac_ct_CC"; then
4779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4780 echo "${ECHO_T}$ac_ct_CC" >&6; }
4781 else
4782 { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4784 fi
4785
4786
4787 test -n "$ac_ct_CC" && break
4788 done
4789
4790 if test "x$ac_ct_CC" = x; then
4791 CC=""
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794 yes:)
4795 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4796 whose name does not start with the host triplet. If you think this
4797 configuration is useful to you, please write to autoconf@gnu.org." >&5
4798 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4799 whose name does not start with the host triplet. If you think this
4800 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803 CC=$ac_ct_CC
4804 fi
4805 fi
4806
4807 fi
4808
4809
4810 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4811 See \`config.log' for more details." >&5
4812 echo "$as_me: error: no acceptable C compiler found in \$PATH
4813 See \`config.log' for more details." >&2;}
4814 { (exit 1); exit 1; }; }
4815
4816 # Provide some information about the compiler.
4817 echo "$as_me:$LINENO: checking for C compiler version" >&5
4818 ac_compiler=`set X $ac_compile; echo $2`
4819 { (ac_try="$ac_compiler --version >&5"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_compiler --version >&5") 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }
4829 { (ac_try="$ac_compiler -v >&5"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_compiler -v >&5") 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }
4839 { (ac_try="$ac_compiler -V >&5"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compiler -V >&5") 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }
4849
4850 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4851 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h. */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861
4862 int
4863 main ()
4864 {
4865 #ifndef __GNUC__
4866 choke me
4867 #endif
4868
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4875 case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4890 ac_compiler_gnu=yes
4891 else
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 ac_compiler_gnu=no
4896 fi
4897
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4900
4901 fi
4902 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4903 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4904 GCC=`test $ac_compiler_gnu = yes && echo yes`
4905 ac_test_CFLAGS=${CFLAGS+set}
4906 ac_save_CFLAGS=$CFLAGS
4907 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_cc_g+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 ac_save_c_werror_flag=$ac_c_werror_flag
4913 ac_c_werror_flag=yes
4914 ac_cv_prog_cc_g=no
4915 CFLAGS="-g"
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922
4923 int
4924 main ()
4925 {
4926
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_compile") 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && {
4945 test -z "$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 } && test -s conftest.$ac_objext; then
4948 ac_cv_prog_cc_g=yes
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 CFLAGS=""
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960
4961 int
4962 main ()
4963 {
4964
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
4986 :
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 ac_c_werror_flag=$ac_save_c_werror_flag
4992 CFLAGS="-g"
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999
5000 int
5001 main ()
5002 {
5003
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (ac_try="$ac_compile"
5010 case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_compile") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } && {
5022 test -z "$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 } && test -s conftest.$ac_objext; then
5025 ac_cv_prog_cc_g=yes
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030
5031 fi
5032
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 fi
5038
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 ac_c_werror_flag=$ac_save_c_werror_flag
5041 fi
5042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5043 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5044 if test "$ac_test_CFLAGS" = set; then
5045 CFLAGS=$ac_save_CFLAGS
5046 elif test $ac_cv_prog_cc_g = yes; then
5047 if test "$GCC" = yes; then
5048 CFLAGS="-g -O2"
5049 else
5050 CFLAGS="-g"
5051 fi
5052 else
5053 if test "$GCC" = yes; then
5054 CFLAGS="-O2"
5055 else
5056 CFLAGS=
5057 fi
5058 fi
5059 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5060 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5061 if test "${ac_cv_prog_cc_c89+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 ac_cv_prog_cc_c89=no
5065 ac_save_CC=$CC
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 #include <stdarg.h>
5073 #include <stdio.h>
5074 #include <sys/types.h>
5075 #include <sys/stat.h>
5076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5077 struct buf { int x; };
5078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5079 static char *e (p, i)
5080 char **p;
5081 int i;
5082 {
5083 return p[i];
5084 }
5085 static char *f (char * (*g) (char **, int), char **p, ...)
5086 {
5087 char *s;
5088 va_list v;
5089 va_start (v,p);
5090 s = g (p, va_arg (v,int));
5091 va_end (v);
5092 return s;
5093 }
5094
5095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5096 function prototypes and stuff, but not '\xHH' hex character constants.
5097 These don't provoke an error unfortunately, instead are silently treated
5098 as 'x'. The following induces an error, until -std is added to get
5099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5100 array size at least. It's necessary to write '\x00'==0 to get something
5101 that's true only with -std. */
5102 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5103
5104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5105 inside strings and character constants. */
5106 #define FOO(x) 'x'
5107 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5108
5109 int test (int i, double x);
5110 struct s1 {int (*f) (int a);};
5111 struct s2 {int (*f) (double a);};
5112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5113 int argc;
5114 char **argv;
5115 int
5116 main ()
5117 {
5118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5119 ;
5120 return 0;
5121 }
5122 _ACEOF
5123 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5125 do
5126 CC="$ac_save_CC $ac_arg"
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5129 case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_compile") 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && {
5141 test -z "$ac_c_werror_flag" ||
5142 test ! -s conftest.err
5143 } && test -s conftest.$ac_objext; then
5144 ac_cv_prog_cc_c89=$ac_arg
5145 else
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149
5150 fi
5151
5152 rm -f core conftest.err conftest.$ac_objext
5153 test "x$ac_cv_prog_cc_c89" != "xno" && break
5154 done
5155 rm -f conftest.$ac_ext
5156 CC=$ac_save_CC
5157
5158 fi
5159 # AC_CACHE_VAL
5160 case "x$ac_cv_prog_cc_c89" in
5161 x)
5162 { echo "$as_me:$LINENO: result: none needed" >&5
5163 echo "${ECHO_T}none needed" >&6; } ;;
5164 xno)
5165 { echo "$as_me:$LINENO: result: unsupported" >&5
5166 echo "${ECHO_T}unsupported" >&6; } ;;
5167 *)
5168 CC="$CC $ac_cv_prog_cc_c89"
5169 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5170 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5171 esac
5172
5173
5174 ac_ext=c
5175 ac_cpp='$CPP $CPPFLAGS'
5176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179
5180 depcc="$CC" am_compiler_list=
5181
5182 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5188 # We make a subdir and do the tests there. Otherwise we can end up
5189 # making bogus files that we don't know about and never remove. For
5190 # instance it was reported that on HP-UX the gcc test will end up
5191 # making a dummy file named `D' -- because `-MD' means `put the output
5192 # in D'.
5193 mkdir conftest.dir
5194 # Copy depcomp to subdir because otherwise we won't find it if we're
5195 # using a relative directory.
5196 cp "$am_depcomp" conftest.dir
5197 cd conftest.dir
5198 # We will build objects and dependencies in a subdirectory because
5199 # it helps to detect inapplicable dependency modes. For instance
5200 # both Tru64's cc and ICC support -MD to output dependencies as a
5201 # side effect of compilation, but ICC will put the dependencies in
5202 # the current directory while Tru64 will put them in the object
5203 # directory.
5204 mkdir sub
5205
5206 am_cv_CC_dependencies_compiler_type=none
5207 if test "$am_compiler_list" = ""; then
5208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5209 fi
5210 for depmode in $am_compiler_list; do
5211 # Setup a source with many dependencies, because some compilers
5212 # like to wrap large dependency lists on column 80 (with \), and
5213 # we should not choose a depcomp mode which is confused by this.
5214 #
5215 # We need to recreate these files for each test, as the compiler may
5216 # overwrite some of them when testing with obscure command lines.
5217 # This happens at least with the AIX C compiler.
5218 : > sub/conftest.c
5219 for i in 1 2 3 4 5 6; do
5220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5222 # Solaris 8's {/usr,}/bin/sh.
5223 touch sub/conftst$i.h
5224 done
5225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5226
5227 case $depmode in
5228 nosideeffect)
5229 # after this tag, mechanisms are not by side-effect, so they'll
5230 # only be used when explicitly requested
5231 if test "x$enable_dependency_tracking" = xyes; then
5232 continue
5233 else
5234 break
5235 fi
5236 ;;
5237 none) break ;;
5238 esac
5239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5240 # mode. It turns out that the SunPro C++ compiler does not properly
5241 # handle `-M -o', and we need to detect this.
5242 if depmode=$depmode \
5243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5246 >/dev/null 2>conftest.err &&
5247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5251 # icc doesn't choke on unknown options, it will just issue warnings
5252 # or remarks (even with -Werror). So we grep stderr for any message
5253 # that says an option was ignored or not supported.
5254 # When given -MP, icc 7.0 and 7.1 complain thusly:
5255 # icc: Command line warning: ignoring option '-M'; no argument required
5256 # The diagnosis changed in icc 8.0:
5257 # icc: Command line remark: option '-MP' not supported
5258 if (grep 'ignoring option' conftest.err ||
5259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5260 am_cv_CC_dependencies_compiler_type=$depmode
5261 break
5262 fi
5263 fi
5264 done
5265
5266 cd ..
5267 rm -rf conftest.dir
5268 else
5269 am_cv_CC_dependencies_compiler_type=none
5270 fi
5271
5272 fi
5273 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5274 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5275 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5276
5277 if
5278 test "x$enable_dependency_tracking" != xno \
5279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5280 am__fastdepCC_TRUE=
5281 am__fastdepCC_FALSE='#'
5282 else
5283 am__fastdepCC_TRUE='#'
5284 am__fastdepCC_FALSE=
5285 fi
5286
5287
5288 for ac_prog in ps
5289 do
5290 # Extract the first word of "$ac_prog", so it can be a program name with args.
5291 set dummy $ac_prog; ac_word=$2
5292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5294 if test "${ac_cv_path_PS+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 case $PS in
5298 [\\/]* | ?:[\\/]*)
5299 ac_cv_path_PS="$PS" # Let the user override the test with a path.
5300 ;;
5301 *)
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $LPATH
5304 do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313 done
5314 done
5315 IFS=$as_save_IFS
5316
5317 ;;
5318 esac
5319 fi
5320 PS=$ac_cv_path_PS
5321 if test -n "$PS"; then
5322 { echo "$as_me:$LINENO: result: $PS" >&5
5323 echo "${ECHO_T}$PS" >&6; }
5324 else
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5327 fi
5328
5329
5330 test -n "$PS" && break
5331 done
5332 test -n "$PS" || PS="ps"
5333
5334 for ac_prog in w
5335 do
5336 # Extract the first word of "$ac_prog", so it can be a program name with args.
5337 set dummy $ac_prog; ac_word=$2
5338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5340 if test "${ac_cv_path_W+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 case $W in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_W="$W" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $LPATH
5350 do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5362
5363 ;;
5364 esac
5365 fi
5366 W=$ac_cv_path_W
5367 if test -n "$W"; then
5368 { echo "$as_me:$LINENO: result: $W" >&5
5369 echo "${ECHO_T}$W" >&6; }
5370 else
5371 { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5373 fi
5374
5375
5376 test -n "$W" && break
5377 done
5378 test -n "$W" || W="w"
5379
5380 # Check whether --enable-shared was given.
5381 if test "${enable_shared+set}" = set; then
5382 enableval=$enable_shared; p=${PACKAGE-default}
5383 case $enableval in
5384 yes) enable_shared=yes ;;
5385 no) enable_shared=no ;;
5386 *)
5387 enable_shared=no
5388 # Look at the argument we got. We use all the common list separators.
5389 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5390 for pkg in $enableval; do
5391 IFS="$lt_save_ifs"
5392 if test "X$pkg" = "X$p"; then
5393 enable_shared=yes
5394 fi
5395 done
5396 IFS="$lt_save_ifs"
5397 ;;
5398 esac
5399 else
5400 enable_shared=yes
5401 fi
5402
5403
5404 # Check whether --enable-static was given.
5405 if test "${enable_static+set}" = set; then
5406 enableval=$enable_static; p=${PACKAGE-default}
5407 case $enableval in
5408 yes) enable_static=yes ;;
5409 no) enable_static=no ;;
5410 *)
5411 enable_static=no
5412 # Look at the argument we got. We use all the common list separators.
5413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5414 for pkg in $enableval; do
5415 IFS="$lt_save_ifs"
5416 if test "X$pkg" = "X$p"; then
5417 enable_static=yes
5418 fi
5419 done
5420 IFS="$lt_save_ifs"
5421 ;;
5422 esac
5423 else
5424 enable_static=yes
5425 fi
5426
5427
5428 # Check whether --enable-fast-install was given.
5429 if test "${enable_fast_install+set}" = set; then
5430 enableval=$enable_fast_install; p=${PACKAGE-default}
5431 case $enableval in
5432 yes) enable_fast_install=yes ;;
5433 no) enable_fast_install=no ;;
5434 *)
5435 enable_fast_install=no
5436 # Look at the argument we got. We use all the common list separators.
5437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5438 for pkg in $enableval; do
5439 IFS="$lt_save_ifs"
5440 if test "X$pkg" = "X$p"; then
5441 enable_fast_install=yes
5442 fi
5443 done
5444 IFS="$lt_save_ifs"
5445 ;;
5446 esac
5447 else
5448 enable_fast_install=yes
5449 fi
5450
5451
5452 # Make sure we can run config.sub.
5453 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5454 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5455 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5456 { (exit 1); exit 1; }; }
5457
5458 { echo "$as_me:$LINENO: checking build system type" >&5
5459 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5460 if test "${ac_cv_build+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463 ac_build_alias=$build_alias
5464 test "x$ac_build_alias" = x &&
5465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5466 test "x$ac_build_alias" = x &&
5467 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5468 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5469 { (exit 1); exit 1; }; }
5470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5471 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5472 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5473 { (exit 1); exit 1; }; }
5474
5475 fi
5476 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5477 echo "${ECHO_T}$ac_cv_build" >&6; }
5478 case $ac_cv_build in
5479 *-*-*) ;;
5480 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5481 echo "$as_me: error: invalid value of canonical build" >&2;}
5482 { (exit 1); exit 1; }; };;
5483 esac
5484 build=$ac_cv_build
5485 ac_save_IFS=$IFS; IFS='-'
5486 set x $ac_cv_build
5487 shift
5488 build_cpu=$1
5489 build_vendor=$2
5490 shift; shift
5491 # Remember, the first character of IFS is used to create $*,
5492 # except with old shells:
5493 build_os=$*
5494 IFS=$ac_save_IFS
5495 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5496
5497
5498 { echo "$as_me:$LINENO: checking host system type" >&5
5499 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5500 if test "${ac_cv_host+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 if test "x$host_alias" = x; then
5504 ac_cv_host=$ac_cv_build
5505 else
5506 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5507 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5508 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5509 { (exit 1); exit 1; }; }
5510 fi
5511
5512 fi
5513 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5514 echo "${ECHO_T}$ac_cv_host" >&6; }
5515 case $ac_cv_host in
5516 *-*-*) ;;
5517 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5518 echo "$as_me: error: invalid value of canonical host" >&2;}
5519 { (exit 1); exit 1; }; };;
5520 esac
5521 host=$ac_cv_host
5522 ac_save_IFS=$IFS; IFS='-'
5523 set x $ac_cv_host
5524 shift
5525 host_cpu=$1
5526 host_vendor=$2
5527 shift; shift
5528 # Remember, the first character of IFS is used to create $*,
5529 # except with old shells:
5530 host_os=$*
5531 IFS=$ac_save_IFS
5532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5533
5534
5535 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5536 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5537 if test "${lt_cv_path_SED+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 # Loop through the user's path and test for sed and gsed.
5541 # Then use that list of sed's as ones to test for truncation.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for lt_ac_prog in sed gsed; do
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5550 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5551 fi
5552 done
5553 done
5554 done
5555 IFS=$as_save_IFS
5556 lt_ac_max=0
5557 lt_ac_count=0
5558 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5559 # along with /bin/sed that truncates output.
5560 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5561 test ! -f $lt_ac_sed && continue
5562 cat /dev/null > conftest.in
5563 lt_ac_count=0
5564 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5565 # Check for GNU sed and select it if it is found.
5566 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5567 lt_cv_path_SED=$lt_ac_sed
5568 break
5569 fi
5570 while true; do
5571 cat conftest.in conftest.in >conftest.tmp
5572 mv conftest.tmp conftest.in
5573 cp conftest.in conftest.nl
5574 echo >>conftest.nl
5575 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5576 cmp -s conftest.out conftest.nl || break
5577 # 10000 chars as input seems more than enough
5578 test $lt_ac_count -gt 10 && break
5579 lt_ac_count=`expr $lt_ac_count + 1`
5580 if test $lt_ac_count -gt $lt_ac_max; then
5581 lt_ac_max=$lt_ac_count
5582 lt_cv_path_SED=$lt_ac_sed
5583 fi
5584 done
5585 done
5586
5587 fi
5588
5589 SED=$lt_cv_path_SED
5590
5591 { echo "$as_me:$LINENO: result: $SED" >&5
5592 echo "${ECHO_T}$SED" >&6; }
5593
5594
5595 # Check whether --with-gnu-ld was given.
5596 if test "${with_gnu_ld+set}" = set; then
5597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5598 else
5599 with_gnu_ld=no
5600 fi
5601
5602 ac_prog=ld
5603 if test "$GCC" = yes; then
5604 # Check if gcc -print-prog-name=ld gives a path.
5605 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5606 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5607 case $host in
5608 *-*-mingw*)
5609 # gcc leaves a trailing carriage return which upsets mingw
5610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5611 *)
5612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5613 esac
5614 case $ac_prog in
5615 # Accept absolute paths.
5616 [\\/]* | ?:[\\/]*)
5617 re_direlt='/[^/][^/]*/\.\./'
5618 # Canonicalize the pathname of ld
5619 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5620 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5621 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5622 done
5623 test -z "$LD" && LD="$ac_prog"
5624 ;;
5625 "")
5626 # If it fails, then pretend we aren't using GCC.
5627 ac_prog=ld
5628 ;;
5629 *)
5630 # If it is relative, then search for the first ld in PATH.
5631 with_gnu_ld=unknown
5632 ;;
5633 esac
5634 elif test "$with_gnu_ld" = yes; then
5635 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5636 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5637 else
5638 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5639 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5640 fi
5641 if test "${lt_cv_path_LD+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 if test -z "$LD"; then
5645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5646 for ac_dir in $PATH; do
5647 IFS="$lt_save_ifs"
5648 test -z "$ac_dir" && ac_dir=.
5649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5650 lt_cv_path_LD="$ac_dir/$ac_prog"
5651 # Check to see if the program is GNU ld. I'd rather use --version,
5652 # but apparently some variants of GNU ld only accept -v.
5653 # Break only if it was the GNU/non-GNU ld that we prefer.
5654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5655 *GNU* | *'with BFD'*)
5656 test "$with_gnu_ld" != no && break
5657 ;;
5658 *)
5659 test "$with_gnu_ld" != yes && break
5660 ;;
5661 esac
5662 fi
5663 done
5664 IFS="$lt_save_ifs"
5665 else
5666 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5667 fi
5668 fi
5669
5670 LD="$lt_cv_path_LD"
5671 if test -n "$LD"; then
5672 { echo "$as_me:$LINENO: result: $LD" >&5
5673 echo "${ECHO_T}$LD" >&6; }
5674 else
5675 { echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6; }
5677 fi
5678 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5679 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5680 { (exit 1); exit 1; }; }
5681 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5682 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5683 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5687 case `$LD -v 2>&1 </dev/null` in
5688 *GNU* | *'with BFD'*)
5689 lt_cv_prog_gnu_ld=yes
5690 ;;
5691 *)
5692 lt_cv_prog_gnu_ld=no
5693 ;;
5694 esac
5695 fi
5696 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5697 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5698 with_gnu_ld=$lt_cv_prog_gnu_ld
5699
5700
5701 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5702 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5703 if test "${lt_cv_ld_reload_flag+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 lt_cv_ld_reload_flag='-r'
5707 fi
5708 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5709 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5710 reload_flag=$lt_cv_ld_reload_flag
5711 case $reload_flag in
5712 "" | " "*) ;;
5713 *) reload_flag=" $reload_flag" ;;
5714 esac
5715 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5716 case $host_os in
5717 darwin*)
5718 if test "$GCC" = yes; then
5719 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5720 else
5721 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5722 fi
5723 ;;
5724 esac
5725
5726 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5727 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5728 if test "${lt_cv_path_NM+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 if test -n "$NM"; then
5732 # Let the user override the test.
5733 lt_cv_path_NM="$NM"
5734 else
5735 lt_nm_to_check="${ac_tool_prefix}nm"
5736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5737 lt_nm_to_check="$lt_nm_to_check nm"
5738 fi
5739 for lt_tmp_nm in $lt_nm_to_check; do
5740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5742 IFS="$lt_save_ifs"
5743 test -z "$ac_dir" && ac_dir=.
5744 tmp_nm="$ac_dir/$lt_tmp_nm"
5745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5746 # Check to see if the nm accepts a BSD-compat flag.
5747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5748 # nm: unknown option "B" ignored
5749 # Tru64's nm complains that /dev/null is an invalid object file
5750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5751 */dev/null* | *'Invalid file or object type'*)
5752 lt_cv_path_NM="$tmp_nm -B"
5753 break
5754 ;;
5755 *)
5756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5757 */dev/null*)
5758 lt_cv_path_NM="$tmp_nm -p"
5759 break
5760 ;;
5761 *)
5762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5763 continue # so that we can try to find one that supports BSD flags
5764 ;;
5765 esac
5766 ;;
5767 esac
5768 fi
5769 done
5770 IFS="$lt_save_ifs"
5771 done
5772 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5773 fi
5774 fi
5775 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5776 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5777 NM="$lt_cv_path_NM"
5778
5779 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5780 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5781 if test "${lt_cv_deplibs_check_method+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 lt_cv_file_magic_cmd='$MAGIC_CMD'
5785 lt_cv_file_magic_test_file=
5786 lt_cv_deplibs_check_method='unknown'
5787 # Need to set the preceding variable on all platforms that support
5788 # interlibrary dependencies.
5789 # 'none' -- dependencies not supported.
5790 # `unknown' -- same as none, but documents that we really don't know.
5791 # 'pass_all' -- all dependencies passed with no checks.
5792 # 'test_compile' -- check by making test program.
5793 # 'file_magic [[regex]]' -- check by looking for files in library path
5794 # which responds to the $file_magic_cmd with a given extended regex.
5795 # If you have `file' or equivalent on your system and you're not sure
5796 # whether `pass_all' will *always* work, you probably want this one.
5797
5798 case $host_os in
5799 aix4* | aix5*)
5800 lt_cv_deplibs_check_method=pass_all
5801 ;;
5802
5803 beos*)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806
5807 bsdi[45]*)
5808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5809 lt_cv_file_magic_cmd='/usr/bin/file -L'
5810 lt_cv_file_magic_test_file=/shlib/libc.so
5811 ;;
5812
5813 cygwin*)
5814 # func_win32_libid is a shell function defined in ltmain.sh
5815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5816 lt_cv_file_magic_cmd='func_win32_libid'
5817 ;;
5818
5819 mingw* | pw32*)
5820 # Base MSYS/MinGW do not provide the 'file' command needed by
5821 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5822 # unless we find 'file', for example because we are cross-compiling.
5823 if ( file / ) >/dev/null 2>&1; then
5824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5825 lt_cv_file_magic_cmd='func_win32_libid'
5826 else
5827 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5828 lt_cv_file_magic_cmd='$OBJDUMP -f'
5829 fi
5830 ;;
5831
5832 darwin* | rhapsody*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836 freebsd* | dragonfly*)
5837 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5838 case $host_cpu in
5839 i*86 )
5840 # Not sure whether the presence of OpenBSD here was a mistake.
5841 # Let's accept both of them until this is cleared up.
5842 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5843 lt_cv_file_magic_cmd=/usr/bin/file
5844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5845 ;;
5846 esac
5847 else
5848 lt_cv_deplibs_check_method=pass_all
5849 fi
5850 ;;
5851
5852 gnu*)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855
5856 hpux10.20* | hpux11*)
5857 lt_cv_file_magic_cmd=/usr/bin/file
5858 case $host_cpu in
5859 ia64*)
5860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5861 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5862 ;;
5863 hppa*64*)
5864 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]'
5865 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5866 ;;
5867 *)
5868 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5869 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5870 ;;
5871 esac
5872 ;;
5873
5874 interix[3-9]*)
5875 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5877 ;;
5878
5879 irix5* | irix6* | nonstopux*)
5880 case $LD in
5881 *-32|*"-32 ") libmagic=32-bit;;
5882 *-n32|*"-n32 ") libmagic=N32;;
5883 *-64|*"-64 ") libmagic=64-bit;;
5884 *) libmagic=never-match;;
5885 esac
5886 lt_cv_deplibs_check_method=pass_all
5887 ;;
5888
5889 # This must be Linux ELF.
5890 linux* | k*bsd*-gnu)
5891 lt_cv_deplibs_check_method=pass_all
5892 ;;
5893
5894 netbsd*)
5895 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5897 else
5898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5899 fi
5900 ;;
5901
5902 newos6*)
5903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5904 lt_cv_file_magic_cmd=/usr/bin/file
5905 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5906 ;;
5907
5908 nto-qnx*)
5909 lt_cv_deplibs_check_method=unknown
5910 ;;
5911
5912 openbsd*)
5913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5915 else
5916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5917 fi
5918 ;;
5919
5920 osf3* | osf4* | osf5*)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923
5924 rdos*)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927
5928 solaris*)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931
5932 sysv4 | sysv4.3*)
5933 case $host_vendor in
5934 motorola)
5935 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]'
5936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5937 ;;
5938 ncr)
5939 lt_cv_deplibs_check_method=pass_all
5940 ;;
5941 sequent)
5942 lt_cv_file_magic_cmd='/bin/file'
5943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5944 ;;
5945 sni)
5946 lt_cv_file_magic_cmd='/bin/file'
5947 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5948 lt_cv_file_magic_test_file=/lib/libc.so
5949 ;;
5950 siemens)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953 pc)
5954 lt_cv_deplibs_check_method=pass_all
5955 ;;
5956 esac
5957 ;;
5958
5959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5960 lt_cv_deplibs_check_method=pass_all
5961 ;;
5962 esac
5963
5964 fi
5965 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5966 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5967 file_magic_cmd=$lt_cv_file_magic_cmd
5968 deplibs_check_method=$lt_cv_deplibs_check_method
5969 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5970
5971
5972
5973
5974 # If no C compiler was specified, use CC.
5975 LTCC=${LTCC-"$CC"}
5976
5977 # If no C compiler flags were specified, use CFLAGS.
5978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5979
5980 # Allow CC to be a program name with arguments.
5981 compiler=$CC
5982
5983 # Check whether --enable-libtool-lock was given.
5984 if test "${enable_libtool_lock+set}" = set; then
5985 enableval=$enable_libtool_lock;
5986 fi
5987
5988 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5989
5990 # Some flags need to be propagated to the compiler or linker for good
5991 # libtool support.
5992 case $host in
5993 ia64-*-hpux*)
5994 # Find out which ABI we are using.
5995 echo 'int i;' > conftest.$ac_ext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; then
6001 case `/usr/bin/file conftest.$ac_objext` in
6002 *ELF-32*)
6003 HPUX_IA64_MODE="32"
6004 ;;
6005 *ELF-64*)
6006 HPUX_IA64_MODE="64"
6007 ;;
6008 esac
6009 fi
6010 rm -rf conftest*
6011 ;;
6012 *-*-irix6*)
6013 # Find out which ABI we are using.
6014 echo '#line 6014 "configure"' > conftest.$ac_ext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016 (eval $ac_compile) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; then
6020 if test "$lt_cv_prog_gnu_ld" = yes; then
6021 case `/usr/bin/file conftest.$ac_objext` in
6022 *32-bit*)
6023 LD="${LD-ld} -melf32bsmip"
6024 ;;
6025 *N32*)
6026 LD="${LD-ld} -melf32bmipn32"
6027 ;;
6028 *64-bit*)
6029 LD="${LD-ld} -melf64bmip"
6030 ;;
6031 esac
6032 else
6033 case `/usr/bin/file conftest.$ac_objext` in
6034 *32-bit*)
6035 LD="${LD-ld} -32"
6036 ;;
6037 *N32*)
6038 LD="${LD-ld} -n32"
6039 ;;
6040 *64-bit*)
6041 LD="${LD-ld} -64"
6042 ;;
6043 esac
6044 fi
6045 fi
6046 rm -rf conftest*
6047 ;;
6048
6049 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6050 s390*-*linux*|sparc*-*linux*)
6051 # Find out which ABI we are using.
6052 echo 'int i;' > conftest.$ac_ext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6054 (eval $ac_compile) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; then
6058 case `/usr/bin/file conftest.o` in
6059 *32-bit*)
6060 case $host in
6061 x86_64-*kfreebsd*-gnu)
6062 LD="${LD-ld} -m elf_i386_fbsd"
6063 ;;
6064 x86_64-*linux*)
6065 LD="${LD-ld} -m elf_i386"
6066 ;;
6067 ppc64-*linux*|powerpc64-*linux*)
6068 LD="${LD-ld} -m elf32ppclinux"
6069 ;;
6070 s390x-*linux*)
6071 LD="${LD-ld} -m elf_s390"
6072 ;;
6073 sparc64-*linux*)
6074 LD="${LD-ld} -m elf32_sparc"
6075 ;;
6076 esac
6077 ;;
6078 *64-bit*)
6079 libsuff=64
6080 case $host in
6081 x86_64-*kfreebsd*-gnu)
6082 LD="${LD-ld} -m elf_x86_64_fbsd"
6083 ;;
6084 x86_64-*linux*)
6085 LD="${LD-ld} -m elf_x86_64"
6086 ;;
6087 ppc*-*linux*|powerpc*-*linux*)
6088 LD="${LD-ld} -m elf64ppc"
6089 ;;
6090 s390*-*linux*)
6091 LD="${LD-ld} -m elf64_s390"
6092 ;;
6093 sparc*-*linux*)
6094 LD="${LD-ld} -m elf64_sparc"
6095 ;;
6096 esac
6097 ;;
6098 esac
6099 fi
6100 rm -rf conftest*
6101 ;;
6102
6103 *-*-sco3.2v5*)
6104 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6105 SAVE_CFLAGS="$CFLAGS"
6106 CFLAGS="$CFLAGS -belf"
6107 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6108 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6109 if test "${lt_cv_cc_needs_belf+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 ac_ext=c
6113 ac_cpp='$CPP $CPPFLAGS'
6114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6117
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124
6125 int
6126 main ()
6127 {
6128
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (ac_try="$ac_link"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_link") 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest$ac_exeext &&
6150 $as_test_x conftest$ac_exeext; then
6151 lt_cv_cc_needs_belf=yes
6152 else
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 lt_cv_cc_needs_belf=no
6157 fi
6158
6159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6160 conftest$ac_exeext conftest.$ac_ext
6161 ac_ext=c
6162 ac_cpp='$CPP $CPPFLAGS'
6163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6166
6167 fi
6168 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6169 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6170 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6171 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6172 CFLAGS="$SAVE_CFLAGS"
6173 fi
6174 ;;
6175 sparc*-*solaris*)
6176 # Find out which ABI we are using.
6177 echo 'int i;' > conftest.$ac_ext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; then
6183 case `/usr/bin/file conftest.o` in
6184 *64-bit*)
6185 case $lt_cv_prog_gnu_ld in
6186 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6187 *) LD="${LD-ld} -64" ;;
6188 esac
6189 ;;
6190 esac
6191 fi
6192 rm -rf conftest*
6193 ;;
6194
6195
6196 esac
6197
6198 need_locks="$enable_libtool_lock"
6199
6200
6201
6202 for ac_header in dlfcn.h
6203 do
6204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 fi
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6214 else
6215 # Is the header compilable?
6216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6225 #include <$ac_header>
6226 _ACEOF
6227 rm -f conftest.$ac_objext
6228 if { (ac_try="$ac_compile"
6229 case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232 esac
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_compile") 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } && {
6241 test -z "$ac_c_werror_flag" ||
6242 test ! -s conftest.err
6243 } && test -s conftest.$ac_objext; then
6244 ac_header_compiler=yes
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 ac_header_compiler=no
6250 fi
6251
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6254 echo "${ECHO_T}$ac_header_compiler" >&6; }
6255
6256 # Is the header present?
6257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h. */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 #include <$ac_header>
6266 _ACEOF
6267 if { (ac_try="$ac_cpp conftest.$ac_ext"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } >/dev/null && {
6280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 }; then
6283 ac_header_preproc=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 ac_header_preproc=no
6289 fi
6290
6291 rm -f conftest.err conftest.$ac_ext
6292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6293 echo "${ECHO_T}$ac_header_preproc" >&6; }
6294
6295 # So? What about this header?
6296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6297 yes:no: )
6298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6302 ac_header_preproc=yes
6303 ;;
6304 no:yes:* )
6305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6317 ( cat <<\_ASBOX
6318 ## -------------------------------------------------- ##
6319 ## Report this to courier-users@lists.sourceforge.net ##
6320 ## -------------------------------------------------- ##
6321 _ASBOX
6322 ) | sed "s/^/$as_me: WARNING: /" >&2
6323 ;;
6324 esac
6325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 eval "$as_ac_Header=\$ac_header_preproc"
6331 fi
6332 ac_res=`eval echo '${'$as_ac_Header'}'`
6333 { echo "$as_me:$LINENO: result: $ac_res" >&5
6334 echo "${ECHO_T}$ac_res" >&6; }
6335
6336 fi
6337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6338 cat >>confdefs.h <<_ACEOF
6339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6340 _ACEOF
6341
6342 fi
6343
6344 done
6345
6346 ac_ext=cpp
6347 ac_cpp='$CXXCPP $CPPFLAGS'
6348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6351 if test -z "$CXX"; then
6352 if test -n "$CCC"; then
6353 CXX=$CCC
6354 else
6355 if test -n "$ac_tool_prefix"; then
6356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6357 do
6358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_prog_CXX+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365 if test -n "$CXX"; then
6366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 CXX=$ac_cv_prog_CXX
6386 if test -n "$CXX"; then
6387 { echo "$as_me:$LINENO: result: $CXX" >&5
6388 echo "${ECHO_T}$CXX" >&6; }
6389 else
6390 { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6392 fi
6393
6394
6395 test -n "$CXX" && break
6396 done
6397 fi
6398 if test -z "$CXX"; then
6399 ac_ct_CXX=$CXX
6400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6401 do
6402 # Extract the first word of "$ac_prog", so it can be a program name with args.
6403 set dummy $ac_prog; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 if test -n "$ac_ct_CXX"; then
6410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_ac_ct_CXX="$ac_prog"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427 fi
6428 fi
6429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6430 if test -n "$ac_ct_CXX"; then
6431 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6432 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6433 else
6434 { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6436 fi
6437
6438
6439 test -n "$ac_ct_CXX" && break
6440 done
6441
6442 if test "x$ac_ct_CXX" = x; then
6443 CXX="g++"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6448 whose name does not start with the host triplet. If you think this
6449 configuration is useful to you, please write to autoconf@gnu.org." >&5
6450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6451 whose name does not start with the host triplet. If you think this
6452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455 CXX=$ac_ct_CXX
6456 fi
6457 fi
6458
6459 fi
6460 fi
6461 # Provide some information about the compiler.
6462 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6463 ac_compiler=`set X $ac_compile; echo $2`
6464 { (ac_try="$ac_compiler --version >&5"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler --version >&5") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
6474 { (ac_try="$ac_compiler -v >&5"
6475 case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478 esac
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_compiler -v >&5") 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }
6484 { (ac_try="$ac_compiler -V >&5"
6485 case "(($ac_try" in
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6488 esac
6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6490 (eval "$ac_compiler -V >&5") 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }
6494
6495 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6496 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6497 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506
6507 int
6508 main ()
6509 {
6510 #ifndef __GNUC__
6511 choke me
6512 #endif
6513
6514 ;
6515 return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_cxx_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 ac_compiler_gnu=yes
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_compiler_gnu=no
6541 fi
6542
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6545
6546 fi
6547 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6548 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6549 GXX=`test $ac_compiler_gnu = yes && echo yes`
6550 ac_test_CXXFLAGS=${CXXFLAGS+set}
6551 ac_save_CXXFLAGS=$CXXFLAGS
6552 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6553 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6554 if test "${ac_cv_prog_cxx_g+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6558 ac_cxx_werror_flag=yes
6559 ac_cv_prog_cxx_g=no
6560 CXXFLAGS="-g"
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567
6568 int
6569 main ()
6570 {
6571
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (ac_try="$ac_compile"
6578 case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_compile") 2>conftest.er1
6584 ac_status=$?
6585 grep -v '^ *+' conftest.er1 >conftest.err
6586 rm -f conftest.er1
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_cxx_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest.$ac_objext; then
6593 ac_cv_prog_cxx_g=yes
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 CXXFLAGS=""
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605
6606 int
6607 main ()
6608 {
6609
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (ac_try="$ac_compile"
6616 case "(($ac_try" in
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6619 esac
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && {
6628 test -z "$ac_cxx_werror_flag" ||
6629 test ! -s conftest.err
6630 } && test -s conftest.$ac_objext; then
6631 :
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6637 CXXFLAGS="-g"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644
6645 int
6646 main ()
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compile") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_cxx_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest.$ac_objext; then
6670 ac_cv_prog_cxx_g=yes
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675
6676 fi
6677
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 fi
6680
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 fi
6683
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6686 fi
6687 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6688 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6689 if test "$ac_test_CXXFLAGS" = set; then
6690 CXXFLAGS=$ac_save_CXXFLAGS
6691 elif test $ac_cv_prog_cxx_g = yes; then
6692 if test "$GXX" = yes; then
6693 CXXFLAGS="-g -O2"
6694 else
6695 CXXFLAGS="-g"
6696 fi
6697 else
6698 if test "$GXX" = yes; then
6699 CXXFLAGS="-O2"
6700 else
6701 CXXFLAGS=
6702 fi
6703 fi
6704 ac_ext=cpp
6705 ac_cpp='$CXXCPP $CPPFLAGS'
6706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6709
6710 depcc="$CXX" am_compiler_list=
6711
6712 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6713 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6714 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6718 # We make a subdir and do the tests there. Otherwise we can end up
6719 # making bogus files that we don't know about and never remove. For
6720 # instance it was reported that on HP-UX the gcc test will end up
6721 # making a dummy file named `D' -- because `-MD' means `put the output
6722 # in D'.
6723 mkdir conftest.dir
6724 # Copy depcomp to subdir because otherwise we won't find it if we're
6725 # using a relative directory.
6726 cp "$am_depcomp" conftest.dir
6727 cd conftest.dir
6728 # We will build objects and dependencies in a subdirectory because
6729 # it helps to detect inapplicable dependency modes. For instance
6730 # both Tru64's cc and ICC support -MD to output dependencies as a
6731 # side effect of compilation, but ICC will put the dependencies in
6732 # the current directory while Tru64 will put them in the object
6733 # directory.
6734 mkdir sub
6735
6736 am_cv_CXX_dependencies_compiler_type=none
6737 if test "$am_compiler_list" = ""; then
6738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6739 fi
6740 for depmode in $am_compiler_list; do
6741 # Setup a source with many dependencies, because some compilers
6742 # like to wrap large dependency lists on column 80 (with \), and
6743 # we should not choose a depcomp mode which is confused by this.
6744 #
6745 # We need to recreate these files for each test, as the compiler may
6746 # overwrite some of them when testing with obscure command lines.
6747 # This happens at least with the AIX C compiler.
6748 : > sub/conftest.c
6749 for i in 1 2 3 4 5 6; do
6750 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6751 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6752 # Solaris 8's {/usr,}/bin/sh.
6753 touch sub/conftst$i.h
6754 done
6755 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6756
6757 case $depmode in
6758 nosideeffect)
6759 # after this tag, mechanisms are not by side-effect, so they'll
6760 # only be used when explicitly requested
6761 if test "x$enable_dependency_tracking" = xyes; then
6762 continue
6763 else
6764 break
6765 fi
6766 ;;
6767 none) break ;;
6768 esac
6769 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6770 # mode. It turns out that the SunPro C++ compiler does not properly
6771 # handle `-M -o', and we need to detect this.
6772 if depmode=$depmode \
6773 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6775 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6776 >/dev/null 2>conftest.err &&
6777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6779 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6781 # icc doesn't choke on unknown options, it will just issue warnings
6782 # or remarks (even with -Werror). So we grep stderr for any message
6783 # that says an option was ignored or not supported.
6784 # When given -MP, icc 7.0 and 7.1 complain thusly:
6785 # icc: Command line warning: ignoring option '-M'; no argument required
6786 # The diagnosis changed in icc 8.0:
6787 # icc: Command line remark: option '-MP' not supported
6788 if (grep 'ignoring option' conftest.err ||
6789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6790 am_cv_CXX_dependencies_compiler_type=$depmode
6791 break
6792 fi
6793 fi
6794 done
6795
6796 cd ..
6797 rm -rf conftest.dir
6798 else
6799 am_cv_CXX_dependencies_compiler_type=none
6800 fi
6801
6802 fi
6803 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6804 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6805 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6806
6807 if
6808 test "x$enable_dependency_tracking" != xno \
6809 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6810 am__fastdepCXX_TRUE=
6811 am__fastdepCXX_FALSE='#'
6812 else
6813 am__fastdepCXX_TRUE='#'
6814 am__fastdepCXX_FALSE=
6815 fi
6816
6817
6818
6819
6820 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6821 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6822 (test "X$CXX" != "Xg++"))) ; then
6823 ac_ext=cpp
6824 ac_cpp='$CXXCPP $CPPFLAGS'
6825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6828 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6829 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6830 if test -z "$CXXCPP"; then
6831 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 # Double quotes because CXXCPP needs to be expanded
6835 for CXXCPP in "$CXX -E" "/lib/cpp"
6836 do
6837 ac_preproc_ok=false
6838 for ac_cxx_preproc_warn_flag in '' yes
6839 do
6840 # Use a header file that comes with gcc, so configuring glibc
6841 # with a fresh cross-compiler works.
6842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 # <limits.h> exists even on freestanding compilers.
6844 # On the NeXT, cc -E runs the code through the compiler's parser,
6845 # not just through cpp. "Syntax error" is here to catch this case.
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #ifdef __STDC__
6853 # include <limits.h>
6854 #else
6855 # include <assert.h>
6856 #endif
6857 Syntax error
6858 _ACEOF
6859 if { (ac_try="$ac_cpp conftest.$ac_ext"
6860 case "(($ac_try" in
6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6863 esac
6864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6866 ac_status=$?
6867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } >/dev/null && {
6872 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6873 test ! -s conftest.err
6874 }; then
6875 :
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 # Broken: fails on valid input.
6881 continue
6882 fi
6883
6884 rm -f conftest.err conftest.$ac_ext
6885
6886 # OK, works on sane cases. Now check whether nonexistent headers
6887 # can be detected and how.
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include <ac_nonexistent.h>
6895 _ACEOF
6896 if { (ac_try="$ac_cpp conftest.$ac_ext"
6897 case "(($ac_try" in
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6900 esac
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } >/dev/null && {
6909 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6910 test ! -s conftest.err
6911 }; then
6912 # Broken: success on invalid input.
6913 continue
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 # Passes both tests.
6919 ac_preproc_ok=:
6920 break
6921 fi
6922
6923 rm -f conftest.err conftest.$ac_ext
6924
6925 done
6926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6927 rm -f conftest.err conftest.$ac_ext
6928 if $ac_preproc_ok; then
6929 break
6930 fi
6931
6932 done
6933 ac_cv_prog_CXXCPP=$CXXCPP
6934
6935 fi
6936 CXXCPP=$ac_cv_prog_CXXCPP
6937 else
6938 ac_cv_prog_CXXCPP=$CXXCPP
6939 fi
6940 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6941 echo "${ECHO_T}$CXXCPP" >&6; }
6942 ac_preproc_ok=false
6943 for ac_cxx_preproc_warn_flag in '' yes
6944 do
6945 # Use a header file that comes with gcc, so configuring glibc
6946 # with a fresh cross-compiler works.
6947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6948 # <limits.h> exists even on freestanding compilers.
6949 # On the NeXT, cc -E runs the code through the compiler's parser,
6950 # not just through cpp. "Syntax error" is here to catch this case.
6951 cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h. */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 #ifdef __STDC__
6958 # include <limits.h>
6959 #else
6960 # include <assert.h>
6961 #endif
6962 Syntax error
6963 _ACEOF
6964 if { (ac_try="$ac_cpp conftest.$ac_ext"
6965 case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968 esac
6969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } >/dev/null && {
6977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6978 test ! -s conftest.err
6979 }; then
6980 :
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 # Broken: fails on valid input.
6986 continue
6987 fi
6988
6989 rm -f conftest.err conftest.$ac_ext
6990
6991 # OK, works on sane cases. Now check whether nonexistent headers
6992 # can be detected and how.
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <ac_nonexistent.h>
7000 _ACEOF
7001 if { (ac_try="$ac_cpp conftest.$ac_ext"
7002 case "(($ac_try" in
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7005 esac
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } >/dev/null && {
7014 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7015 test ! -s conftest.err
7016 }; then
7017 # Broken: success on invalid input.
7018 continue
7019 else
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7022
7023 # Passes both tests.
7024 ac_preproc_ok=:
7025 break
7026 fi
7027
7028 rm -f conftest.err conftest.$ac_ext
7029
7030 done
7031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7032 rm -f conftest.err conftest.$ac_ext
7033 if $ac_preproc_ok; then
7034 :
7035 else
7036 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7037 See \`config.log' for more details." >&5
7038 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7039 See \`config.log' for more details." >&2;}
7040 { (exit 1); exit 1; }; }
7041 fi
7042
7043 ac_ext=cpp
7044 ac_cpp='$CXXCPP $CPPFLAGS'
7045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7048
7049 fi
7050
7051
7052 ac_ext=f
7053 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7054 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7056 if test -n "$ac_tool_prefix"; then
7057 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
7058 do
7059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_prog_F77+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 if test -n "$F77"; then
7067 ac_cv_prog_F77="$F77" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 F77=$ac_cv_prog_F77
7087 if test -n "$F77"; then
7088 { echo "$as_me:$LINENO: result: $F77" >&5
7089 echo "${ECHO_T}$F77" >&6; }
7090 else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7093 fi
7094
7095
7096 test -n "$F77" && break
7097 done
7098 fi
7099 if test -z "$F77"; then
7100 ac_ct_F77=$F77
7101 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
7102 do
7103 # Extract the first word of "$ac_prog", so it can be a program name with args.
7104 set dummy $ac_prog; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 if test -n "$ac_ct_F77"; then
7111 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_F77="$ac_prog"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7131 if test -n "$ac_ct_F77"; then
7132 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7133 echo "${ECHO_T}$ac_ct_F77" >&6; }
7134 else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139
7140 test -n "$ac_ct_F77" && break
7141 done
7142
7143 if test "x$ac_ct_F77" = x; then
7144 F77=""
7145 else
7146 case $cross_compiling:$ac_tool_warned in
7147 yes:)
7148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7149 whose name does not start with the host triplet. If you think this
7150 configuration is useful to you, please write to autoconf@gnu.org." >&5
7151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7152 whose name does not start with the host triplet. If you think this
7153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7154 ac_tool_warned=yes ;;
7155 esac
7156 F77=$ac_ct_F77
7157 fi
7158 fi
7159
7160
7161 # Provide some information about the compiler.
7162 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7163 ac_compiler=`set X $ac_compile; echo $2`
7164 { (ac_try="$ac_compiler --version >&5"
7165 case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_compiler --version >&5") 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }
7174 { (ac_try="$ac_compiler -v >&5"
7175 case "(($ac_try" in
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7178 esac
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compiler -v >&5") 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }
7184 { (ac_try="$ac_compiler -V >&5"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_compiler -V >&5") 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }
7194 rm -f a.out
7195
7196 # If we don't use `.F' as extension, the preprocessor is not run on the
7197 # input file. (Note that this only needs to work for GNU compilers.)
7198 ac_save_ext=$ac_ext
7199 ac_ext=F
7200 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7201 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7202 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 cat >conftest.$ac_ext <<_ACEOF
7206 program main
7207 #ifndef __GNUC__
7208 choke me
7209 #endif
7210
7211 end
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (ac_try="$ac_compile"
7215 case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_compile") 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_f77_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest.$ac_objext; then
7230 ac_compiler_gnu=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 ac_compiler_gnu=no
7236 fi
7237
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7240
7241 fi
7242 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7243 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7244 ac_ext=$ac_save_ext
7245 ac_test_FFLAGS=${FFLAGS+set}
7246 ac_save_FFLAGS=$FFLAGS
7247 FFLAGS=
7248 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7249 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7250 if test "${ac_cv_prog_f77_g+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 FFLAGS=-g
7254 cat >conftest.$ac_ext <<_ACEOF
7255 program main
7256
7257 end
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_f77_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 ac_cv_prog_f77_g=yes
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 ac_cv_prog_f77_g=no
7282 fi
7283
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285
7286 fi
7287 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7288 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7289 if test "$ac_test_FFLAGS" = set; then
7290 FFLAGS=$ac_save_FFLAGS
7291 elif test $ac_cv_prog_f77_g = yes; then
7292 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7293 FFLAGS="-g -O2"
7294 else
7295 FFLAGS="-g"
7296 fi
7297 else
7298 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7299 FFLAGS="-O2"
7300 else
7301 FFLAGS=
7302 fi
7303 fi
7304
7305 G77=`test $ac_compiler_gnu = yes && echo yes`
7306 ac_ext=c
7307 ac_cpp='$CPP $CPPFLAGS'
7308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7311
7312
7313
7314 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7315
7316 # find the maximum length of command line arguments
7317 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7318 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7319 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 i=0
7323 teststring="ABCD"
7324
7325 case $build_os in
7326 msdosdjgpp*)
7327 # On DJGPP, this test can blow up pretty badly due to problems in libc
7328 # (any single argument exceeding 2000 bytes causes a buffer overrun
7329 # during glob expansion). Even if it were fixed, the result of this
7330 # check would be larger than it should be.
7331 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7332 ;;
7333
7334 gnu*)
7335 # Under GNU Hurd, this test is not required because there is
7336 # no limit to the length of command line arguments.
7337 # Libtool will interpret -1 as no limit whatsoever
7338 lt_cv_sys_max_cmd_len=-1;
7339 ;;
7340
7341 cygwin* | mingw*)
7342 # On Win9x/ME, this test blows up -- it succeeds, but takes
7343 # about 5 minutes as the teststring grows exponentially.
7344 # Worse, since 9x/ME are not pre-emptively multitasking,
7345 # you end up with a "frozen" computer, even though with patience
7346 # the test eventually succeeds (with a max line length of 256k).
7347 # Instead, let's just punt: use the minimum linelength reported by
7348 # all of the supported platforms: 8192 (on NT/2K/XP).
7349 lt_cv_sys_max_cmd_len=8192;
7350 ;;
7351
7352 amigaos*)
7353 # On AmigaOS with pdksh, this test takes hours, literally.
7354 # So we just punt and use a minimum line length of 8192.
7355 lt_cv_sys_max_cmd_len=8192;
7356 ;;
7357
7358 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7359 # This has been around since 386BSD, at least. Likely further.
7360 if test -x /sbin/sysctl; then
7361 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7362 elif test -x /usr/sbin/sysctl; then
7363 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7364 else
7365 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7366 fi
7367 # And add a safety zone
7368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7370 ;;
7371
7372 interix*)
7373 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7374 lt_cv_sys_max_cmd_len=196608
7375 ;;
7376
7377 osf*)
7378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7380 # nice to cause kernel panics so lets avoid the loop below.
7381 # First set a reasonable default.
7382 lt_cv_sys_max_cmd_len=16384
7383 #
7384 if test -x /sbin/sysconfig; then
7385 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7386 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7387 esac
7388 fi
7389 ;;
7390 sco3.2v5*)
7391 lt_cv_sys_max_cmd_len=102400
7392 ;;
7393 sysv5* | sco5v6* | sysv4.2uw2*)
7394 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7395 if test -n "$kargmax"; then
7396 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7397 else
7398 lt_cv_sys_max_cmd_len=32768
7399 fi
7400 ;;
7401 *)
7402 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7403 if test -n "$lt_cv_sys_max_cmd_len"; then
7404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7406 else
7407 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7408 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7409 = "XX$teststring") >/dev/null 2>&1 &&
7410 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7411 lt_cv_sys_max_cmd_len=$new_result &&
7412 test $i != 17 # 1/2 MB should be enough
7413 do
7414 i=`expr $i + 1`
7415 teststring=$teststring$teststring
7416 done
7417 teststring=
7418 # Add a significant safety factor because C++ compilers can tack on massive
7419 # amounts of additional arguments before passing them to the linker.
7420 # It appears as though 1/2 is a usable value.
7421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7422 fi
7423 ;;
7424 esac
7425
7426 fi
7427
7428 if test -n $lt_cv_sys_max_cmd_len ; then
7429 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7430 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7431 else
7432 { echo "$as_me:$LINENO: result: none" >&5
7433 echo "${ECHO_T}none" >&6; }
7434 fi
7435
7436
7437
7438
7439
7440 # Check for command to grab the raw symbol name followed by C symbol from nm.
7441 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446
7447 # These are sane defaults that work on at least a few old systems.
7448 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7449
7450 # Character class describing NM global symbol codes.
7451 symcode='[BCDEGRST]'
7452
7453 # Regexp to match symbols that can be accessed directly from C.
7454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7455
7456 # Transform an extracted symbol line into a proper C declaration
7457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7458
7459 # Transform an extracted symbol line into symbol name and symbol address
7460 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'"
7461
7462 # Define system-specific variables.
7463 case $host_os in
7464 aix*)
7465 symcode='[BCDT]'
7466 ;;
7467 cygwin* | mingw* | pw32*)
7468 symcode='[ABCDGISTW]'
7469 ;;
7470 hpux*) # Its linker distinguishes data from code symbols
7471 if test "$host_cpu" = ia64; then
7472 symcode='[ABCDEGRST]'
7473 fi
7474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7475 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'"
7476 ;;
7477 linux* | k*bsd*-gnu)
7478 if test "$host_cpu" = ia64; then
7479 symcode='[ABCDGIRSTW]'
7480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7481 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'"
7482 fi
7483 ;;
7484 irix* | nonstopux*)
7485 symcode='[BCDEGRST]'
7486 ;;
7487 osf*)
7488 symcode='[BCDEGQRST]'
7489 ;;
7490 solaris*)
7491 symcode='[BDRT]'
7492 ;;
7493 sco3.2v5*)
7494 symcode='[DT]'
7495 ;;
7496 sysv4.2uw2*)
7497 symcode='[DT]'
7498 ;;
7499 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7500 symcode='[ABDT]'
7501 ;;
7502 sysv4)
7503 symcode='[DFNSTU]'
7504 ;;
7505 esac
7506
7507 # Handle CRLF in mingw tool chain
7508 opt_cr=
7509 case $build_os in
7510 mingw*)
7511 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7512 ;;
7513 esac
7514
7515 # If we're using GNU nm, then use its standard symbol codes.
7516 case `$NM -V 2>&1` in
7517 *GNU* | *'with BFD'*)
7518 symcode='[ABCDGIRSTW]' ;;
7519 esac
7520
7521 # Try without a prefix undercore, then with it.
7522 for ac_symprfx in "" "_"; do
7523
7524 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7525 symxfrm="\\1 $ac_symprfx\\2 \\2"
7526
7527 # Write the raw and C identifiers.
7528 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7529
7530 # Check to see that the pipe works correctly.
7531 pipe_works=no
7532
7533 rm -f conftest*
7534 cat > conftest.$ac_ext <<EOF
7535 #ifdef __cplusplus
7536 extern "C" {
7537 #endif
7538 char nm_test_var;
7539 void nm_test_func(){}
7540 #ifdef __cplusplus
7541 }
7542 #endif
7543 int main(){nm_test_var='a';nm_test_func();return(0);}
7544 EOF
7545
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; then
7551 # Now try to grab the symbols.
7552 nlist=conftest.nm
7553 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && test -s "$nlist"; then
7558 # Try sorting and uniquifying the output.
7559 if sort "$nlist" | uniq > "$nlist"T; then
7560 mv -f "$nlist"T "$nlist"
7561 else
7562 rm -f "$nlist"T
7563 fi
7564
7565 # Make sure that we snagged all the symbols we need.
7566 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7567 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7568 cat <<EOF > conftest.$ac_ext
7569 #ifdef __cplusplus
7570 extern "C" {
7571 #endif
7572
7573 EOF
7574 # Now generate the symbol file.
7575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7576
7577 cat <<EOF >> conftest.$ac_ext
7578 #if defined (__STDC__) && __STDC__
7579 # define lt_ptr_t void *
7580 #else
7581 # define lt_ptr_t char *
7582 # define const
7583 #endif
7584
7585 /* The mapping between symbol names and symbols. */
7586 const struct {
7587 const char *name;
7588 lt_ptr_t address;
7589 }
7590 lt_preloaded_symbols[] =
7591 {
7592 EOF
7593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7594 cat <<\EOF >> conftest.$ac_ext
7595 {0, (lt_ptr_t) 0}
7596 };
7597
7598 #ifdef __cplusplus
7599 }
7600 #endif
7601 EOF
7602 # Now try linking the two files.
7603 mv conftest.$ac_objext conftstm.$ac_objext
7604 lt_save_LIBS="$LIBS"
7605 lt_save_CFLAGS="$CFLAGS"
7606 LIBS="conftstm.$ac_objext"
7607 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609 (eval $ac_link) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7613 pipe_works=yes
7614 fi
7615 LIBS="$lt_save_LIBS"
7616 CFLAGS="$lt_save_CFLAGS"
7617 else
7618 echo "cannot find nm_test_func in $nlist" >&5
7619 fi
7620 else
7621 echo "cannot find nm_test_var in $nlist" >&5
7622 fi
7623 else
7624 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7625 fi
7626 else
7627 echo "$progname: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 fi
7630 rm -f conftest* conftst*
7631
7632 # Do not use the global_symbol_pipe unless it works.
7633 if test "$pipe_works" = yes; then
7634 break
7635 else
7636 lt_cv_sys_global_symbol_pipe=
7637 fi
7638 done
7639
7640 fi
7641
7642 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7643 lt_cv_sys_global_symbol_to_cdecl=
7644 fi
7645 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7646 { echo "$as_me:$LINENO: result: failed" >&5
7647 echo "${ECHO_T}failed" >&6; }
7648 else
7649 { echo "$as_me:$LINENO: result: ok" >&5
7650 echo "${ECHO_T}ok" >&6; }
7651 fi
7652
7653 { echo "$as_me:$LINENO: checking for objdir" >&5
7654 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7655 if test "${lt_cv_objdir+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 rm -f .libs 2>/dev/null
7659 mkdir .libs 2>/dev/null
7660 if test -d .libs; then
7661 lt_cv_objdir=.libs
7662 else
7663 # MS-DOS does not allow filenames that begin with a dot.
7664 lt_cv_objdir=_libs
7665 fi
7666 rmdir .libs 2>/dev/null
7667 fi
7668 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7669 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7670 objdir=$lt_cv_objdir
7671
7672
7673
7674
7675
7676 case $host_os in
7677 aix3*)
7678 # AIX sometimes has problems with the GCC collect2 program. For some
7679 # reason, if we set the COLLECT_NAMES environment variable, the problems
7680 # vanish in a puff of smoke.
7681 if test "X${COLLECT_NAMES+set}" != Xset; then
7682 COLLECT_NAMES=
7683 export COLLECT_NAMES
7684 fi
7685 ;;
7686 esac
7687
7688 # Sed substitution that helps us do robust quoting. It backslashifies
7689 # metacharacters that are still active within double-quoted strings.
7690 Xsed='sed -e 1s/^X//'
7691 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7692
7693 # Same as above, but do not quote variable references.
7694 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7695
7696 # Sed substitution to delay expansion of an escaped shell variable in a
7697 # double_quote_subst'ed string.
7698 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7699
7700 # Sed substitution to avoid accidental globbing in evaled expressions
7701 no_glob_subst='s/\*/\\\*/g'
7702
7703 # Constants:
7704 rm="rm -f"
7705
7706 # Global variables:
7707 default_ofile=libtool
7708 can_build_shared=yes
7709
7710 # All known linkers require a `.a' archive for static linking (except MSVC,
7711 # which needs '.lib').
7712 libext=a
7713 ltmain="$ac_aux_dir/ltmain.sh"
7714 ofile="$default_ofile"
7715 with_gnu_ld="$lt_cv_prog_gnu_ld"
7716
7717 if test -n "$ac_tool_prefix"; then
7718 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7719 set dummy ${ac_tool_prefix}ar; ac_word=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_prog_AR+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 if test -n "$AR"; then
7726 ac_cv_prog_AR="$AR" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_AR="${ac_tool_prefix}ar"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 AR=$ac_cv_prog_AR
7746 if test -n "$AR"; then
7747 { echo "$as_me:$LINENO: result: $AR" >&5
7748 echo "${ECHO_T}$AR" >&6; }
7749 else
7750 { echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6; }
7752 fi
7753
7754
7755 fi
7756 if test -z "$ac_cv_prog_AR"; then
7757 ac_ct_AR=$AR
7758 # Extract the first word of "ar", so it can be a program name with args.
7759 set dummy ar; ac_word=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765 if test -n "$ac_ct_AR"; then
7766 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_ac_ct_AR="ar"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7786 if test -n "$ac_ct_AR"; then
7787 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7788 echo "${ECHO_T}$ac_ct_AR" >&6; }
7789 else
7790 { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7792 fi
7793
7794 if test "x$ac_ct_AR" = x; then
7795 AR="false"
7796 else
7797 case $cross_compiling:$ac_tool_warned in
7798 yes:)
7799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7800 whose name does not start with the host triplet. If you think this
7801 configuration is useful to you, please write to autoconf@gnu.org." >&5
7802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7803 whose name does not start with the host triplet. If you think this
7804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7805 ac_tool_warned=yes ;;
7806 esac
7807 AR=$ac_ct_AR
7808 fi
7809 else
7810 AR="$ac_cv_prog_AR"
7811 fi
7812
7813 if test -n "$ac_tool_prefix"; then
7814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7818 if test "${ac_cv_prog_RANLIB+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 if test -n "$RANLIB"; then
7822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 RANLIB=$ac_cv_prog_RANLIB
7842 if test -n "$RANLIB"; then
7843 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7844 echo "${ECHO_T}$RANLIB" >&6; }
7845 else
7846 { echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6; }
7848 fi
7849
7850
7851 fi
7852 if test -z "$ac_cv_prog_RANLIB"; then
7853 ac_ct_RANLIB=$RANLIB
7854 # Extract the first word of "ranlib", so it can be a program name with args.
7855 set dummy ranlib; ac_word=$2
7856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 if test -n "$ac_ct_RANLIB"; then
7862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871 ac_cv_prog_ac_ct_RANLIB="ranlib"
7872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7874 fi
7875 done
7876 done
7877 IFS=$as_save_IFS
7878
7879 fi
7880 fi
7881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7882 if test -n "$ac_ct_RANLIB"; then
7883 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7884 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7885 else
7886 { echo "$as_me:$LINENO: result: no" >&5
7887 echo "${ECHO_T}no" >&6; }
7888 fi
7889
7890 if test "x$ac_ct_RANLIB" = x; then
7891 RANLIB=":"
7892 else
7893 case $cross_compiling:$ac_tool_warned in
7894 yes:)
7895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7896 whose name does not start with the host triplet. If you think this
7897 configuration is useful to you, please write to autoconf@gnu.org." >&5
7898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7899 whose name does not start with the host triplet. If you think this
7900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7901 ac_tool_warned=yes ;;
7902 esac
7903 RANLIB=$ac_ct_RANLIB
7904 fi
7905 else
7906 RANLIB="$ac_cv_prog_RANLIB"
7907 fi
7908
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}strip; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_prog_STRIP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917 if test -n "$STRIP"; then
7918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 STRIP=$ac_cv_prog_STRIP
7938 if test -n "$STRIP"; then
7939 { echo "$as_me:$LINENO: result: $STRIP" >&5
7940 echo "${ECHO_T}$STRIP" >&6; }
7941 else
7942 { echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_STRIP"; then
7949 ac_ct_STRIP=$STRIP
7950 # Extract the first word of "strip", so it can be a program name with args.
7951 set dummy strip; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 if test -n "$ac_ct_STRIP"; then
7958 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_ac_ct_STRIP="strip"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7978 if test -n "$ac_ct_STRIP"; then
7979 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7980 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7981 else
7982 { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7984 fi
7985
7986 if test "x$ac_ct_STRIP" = x; then
7987 STRIP=":"
7988 else
7989 case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7992 whose name does not start with the host triplet. If you think this
7993 configuration is useful to you, please write to autoconf@gnu.org." >&5
7994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7995 whose name does not start with the host triplet. If you think this
7996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7997 ac_tool_warned=yes ;;
7998 esac
7999 STRIP=$ac_ct_STRIP
8000 fi
8001 else
8002 STRIP="$ac_cv_prog_STRIP"
8003 fi
8004
8005
8006 old_CC="$CC"
8007 old_CFLAGS="$CFLAGS"
8008
8009 # Set sane defaults for various variables
8010 test -z "$AR" && AR=ar
8011 test -z "$AR_FLAGS" && AR_FLAGS=cru
8012 test -z "$AS" && AS=as
8013 test -z "$CC" && CC=cc
8014 test -z "$LTCC" && LTCC=$CC
8015 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8016 test -z "$DLLTOOL" && DLLTOOL=dlltool
8017 test -z "$LD" && LD=ld
8018 test -z "$LN_S" && LN_S="ln -s"
8019 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8020 test -z "$NM" && NM=nm
8021 test -z "$SED" && SED=sed
8022 test -z "$OBJDUMP" && OBJDUMP=objdump
8023 test -z "$RANLIB" && RANLIB=:
8024 test -z "$STRIP" && STRIP=:
8025 test -z "$ac_objext" && ac_objext=o
8026
8027 # Determine commands to create old-style static archives.
8028 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8029 old_postinstall_cmds='chmod 644 $oldlib'
8030 old_postuninstall_cmds=
8031
8032 if test -n "$RANLIB"; then
8033 case $host_os in
8034 openbsd*)
8035 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8036 ;;
8037 *)
8038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8039 ;;
8040 esac
8041 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8042 fi
8043
8044 for cc_temp in $compiler""; do
8045 case $cc_temp in
8046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8048 \-*) ;;
8049 *) break;;
8050 esac
8051 done
8052 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8053
8054
8055 # Only perform the check for file, if the check method requires it
8056 case $deplibs_check_method in
8057 file_magic*)
8058 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8059 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8060 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8061 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 case $MAGIC_CMD in
8065 [\\/*] | ?:[\\/]*)
8066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8067 ;;
8068 *)
8069 lt_save_MAGIC_CMD="$MAGIC_CMD"
8070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8071 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8072 for ac_dir in $ac_dummy; do
8073 IFS="$lt_save_ifs"
8074 test -z "$ac_dir" && ac_dir=.
8075 if test -f $ac_dir/${ac_tool_prefix}file; then
8076 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8077 if test -n "$file_magic_test_file"; then
8078 case $deplibs_check_method in
8079 "file_magic "*)
8080 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8083 $EGREP "$file_magic_regex" > /dev/null; then
8084 :
8085 else
8086 cat <<EOF 1>&2
8087
8088 *** Warning: the command libtool uses to detect shared libraries,
8089 *** $file_magic_cmd, produces output that libtool cannot recognize.
8090 *** The result is that libtool may fail to recognize shared libraries
8091 *** as such. This will affect the creation of libtool libraries that
8092 *** depend on shared libraries, but programs linked with such libtool
8093 *** libraries will work regardless of this problem. Nevertheless, you
8094 *** may want to report the problem to your system manager and/or to
8095 *** bug-libtool@gnu.org
8096
8097 EOF
8098 fi ;;
8099 esac
8100 fi
8101 break
8102 fi
8103 done
8104 IFS="$lt_save_ifs"
8105 MAGIC_CMD="$lt_save_MAGIC_CMD"
8106 ;;
8107 esac
8108 fi
8109
8110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8111 if test -n "$MAGIC_CMD"; then
8112 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8113 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8114 else
8115 { echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6; }
8117 fi
8118
8119 if test -z "$lt_cv_path_MAGIC_CMD"; then
8120 if test -n "$ac_tool_prefix"; then
8121 { echo "$as_me:$LINENO: checking for file" >&5
8122 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126 case $MAGIC_CMD in
8127 [\\/*] | ?:[\\/]*)
8128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8129 ;;
8130 *)
8131 lt_save_MAGIC_CMD="$MAGIC_CMD"
8132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8134 for ac_dir in $ac_dummy; do
8135 IFS="$lt_save_ifs"
8136 test -z "$ac_dir" && ac_dir=.
8137 if test -f $ac_dir/file; then
8138 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8139 if test -n "$file_magic_test_file"; then
8140 case $deplibs_check_method in
8141 "file_magic "*)
8142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8145 $EGREP "$file_magic_regex" > /dev/null; then
8146 :
8147 else
8148 cat <<EOF 1>&2
8149
8150 *** Warning: the command libtool uses to detect shared libraries,
8151 *** $file_magic_cmd, produces output that libtool cannot recognize.
8152 *** The result is that libtool may fail to recognize shared libraries
8153 *** as such. This will affect the creation of libtool libraries that
8154 *** depend on shared libraries, but programs linked with such libtool
8155 *** libraries will work regardless of this problem. Nevertheless, you
8156 *** may want to report the problem to your system manager and/or to
8157 *** bug-libtool@gnu.org
8158
8159 EOF
8160 fi ;;
8161 esac
8162 fi
8163 break
8164 fi
8165 done
8166 IFS="$lt_save_ifs"
8167 MAGIC_CMD="$lt_save_MAGIC_CMD"
8168 ;;
8169 esac
8170 fi
8171
8172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8173 if test -n "$MAGIC_CMD"; then
8174 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8175 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8176 else
8177 { echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6; }
8179 fi
8180
8181 else
8182 MAGIC_CMD=:
8183 fi
8184 fi
8185
8186 fi
8187 ;;
8188 esac
8189
8190 enable_dlopen=no
8191 enable_win32_dll=no
8192
8193 # Check whether --enable-libtool-lock was given.
8194 if test "${enable_libtool_lock+set}" = set; then
8195 enableval=$enable_libtool_lock;
8196 fi
8197
8198 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8199
8200
8201 # Check whether --with-pic was given.
8202 if test "${with_pic+set}" = set; then
8203 withval=$with_pic; pic_mode="$withval"
8204 else
8205 pic_mode=default
8206 fi
8207
8208 test -z "$pic_mode" && pic_mode=default
8209
8210 # Use C for the default configuration in the libtool script
8211 tagname=
8212 lt_save_CC="$CC"
8213 ac_ext=c
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8218
8219
8220 # Source file extension for C test sources.
8221 ac_ext=c
8222
8223 # Object file extension for compiled C test sources.
8224 objext=o
8225 objext=$objext
8226
8227 # Code to be used in simple compile tests
8228 lt_simple_compile_test_code="int some_variable = 0;"
8229
8230 # Code to be used in simple link tests
8231 lt_simple_link_test_code='int main(){return(0);}'
8232
8233
8234 # If no C compiler was specified, use CC.
8235 LTCC=${LTCC-"$CC"}
8236
8237 # If no C compiler flags were specified, use CFLAGS.
8238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8239
8240 # Allow CC to be a program name with arguments.
8241 compiler=$CC
8242
8243
8244 # save warnings/boilerplate of simple test code
8245 ac_outfile=conftest.$ac_objext
8246 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8248 _lt_compiler_boilerplate=`cat conftest.err`
8249 $rm conftest*
8250
8251 ac_outfile=conftest.$ac_objext
8252 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8254 _lt_linker_boilerplate=`cat conftest.err`
8255 $rm conftest*
8256
8257
8258
8259 lt_prog_compiler_no_builtin_flag=
8260
8261 if test "$GCC" = yes; then
8262 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8263
8264
8265 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8266 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8267 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 lt_cv_prog_compiler_rtti_exceptions=no
8271 ac_outfile=conftest.$ac_objext
8272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8273 lt_compiler_flag="-fno-rtti -fno-exceptions"
8274 # Insert the option either (1) after the last *FLAGS variable, or
8275 # (2) before a word containing "conftest.", or (3) at the end.
8276 # Note that $ac_compile itself does not contain backslashes and begins
8277 # with a dollar sign (not a hyphen), so the echo should work correctly.
8278 # The option is referenced via a variable to avoid confusing sed.
8279 lt_compile=`echo "$ac_compile" | $SED \
8280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282 -e 's:$: $lt_compiler_flag:'`
8283 (eval echo "\"\$as_me:8283: $lt_compile\"" >&5)
8284 (eval "$lt_compile" 2>conftest.err)
8285 ac_status=$?
8286 cat conftest.err >&5
8287 echo "$as_me:8287: \$? = $ac_status" >&5
8288 if (exit $ac_status) && test -s "$ac_outfile"; then
8289 # The compiler can only warn and ignore the option if not recognized
8290 # So say no if there are warnings other than the usual output.
8291 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8294 lt_cv_prog_compiler_rtti_exceptions=yes
8295 fi
8296 fi
8297 $rm conftest*
8298
8299 fi
8300 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8301 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8302
8303 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8304 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8305 else
8306 :
8307 fi
8308
8309 fi
8310
8311 lt_prog_compiler_wl=
8312 lt_prog_compiler_pic=
8313 lt_prog_compiler_static=
8314
8315 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8316 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8317
8318 if test "$GCC" = yes; then
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_static='-static'
8321
8322 case $host_os in
8323 aix*)
8324 # All AIX code is PIC.
8325 if test "$host_cpu" = ia64; then
8326 # AIX 5 now supports IA64 processor
8327 lt_prog_compiler_static='-Bstatic'
8328 fi
8329 ;;
8330
8331 amigaos*)
8332 # FIXME: we need at least 68020 code to build shared libraries, but
8333 # adding the `-m68020' flag to GCC prevents building anything better,
8334 # like `-m68040'.
8335 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8336 ;;
8337
8338 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8339 # PIC is the default for these OSes.
8340 ;;
8341
8342 mingw* | cygwin* | pw32* | os2*)
8343 # This hack is so that the source file can tell whether it is being
8344 # built for inclusion in a dll (and should export symbols for example).
8345 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8346 # (--disable-auto-import) libraries
8347 lt_prog_compiler_pic='-DDLL_EXPORT'
8348 ;;
8349
8350 darwin* | rhapsody*)
8351 # PIC is the default on this platform
8352 # Common symbols not allowed in MH_DYLIB files
8353 lt_prog_compiler_pic='-fno-common'
8354 ;;
8355
8356 interix[3-9]*)
8357 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8358 # Instead, we relocate shared libraries at runtime.
8359 ;;
8360
8361 msdosdjgpp*)
8362 # Just because we use GCC doesn't mean we suddenly get shared libraries
8363 # on systems that don't support them.
8364 lt_prog_compiler_can_build_shared=no
8365 enable_shared=no
8366 ;;
8367
8368 sysv4*MP*)
8369 if test -d /usr/nec; then
8370 lt_prog_compiler_pic=-Kconform_pic
8371 fi
8372 ;;
8373
8374 hpux*)
8375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8376 # not for PA HP-UX.
8377 case $host_cpu in
8378 hppa*64*|ia64*)
8379 # +Z the default
8380 ;;
8381 *)
8382 lt_prog_compiler_pic='-fPIC'
8383 ;;
8384 esac
8385 ;;
8386
8387 *)
8388 lt_prog_compiler_pic='-fPIC'
8389 ;;
8390 esac
8391 else
8392 # PORTME Check for flag to pass linker flags through the system compiler.
8393 case $host_os in
8394 aix*)
8395 lt_prog_compiler_wl='-Wl,'
8396 if test "$host_cpu" = ia64; then
8397 # AIX 5 now supports IA64 processor
8398 lt_prog_compiler_static='-Bstatic'
8399 else
8400 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8401 fi
8402 ;;
8403 darwin*)
8404 # PIC is the default on this platform
8405 # Common symbols not allowed in MH_DYLIB files
8406 case $cc_basename in
8407 xlc*)
8408 lt_prog_compiler_pic='-qnocommon'
8409 lt_prog_compiler_wl='-Wl,'
8410 ;;
8411 esac
8412 ;;
8413
8414 mingw* | cygwin* | pw32* | os2*)
8415 # This hack is so that the source file can tell whether it is being
8416 # built for inclusion in a dll (and should export symbols for example).
8417 lt_prog_compiler_pic='-DDLL_EXPORT'
8418 ;;
8419
8420 hpux9* | hpux10* | hpux11*)
8421 lt_prog_compiler_wl='-Wl,'
8422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8423 # not for PA HP-UX.
8424 case $host_cpu in
8425 hppa*64*|ia64*)
8426 # +Z the default
8427 ;;
8428 *)
8429 lt_prog_compiler_pic='+Z'
8430 ;;
8431 esac
8432 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8433 lt_prog_compiler_static='${wl}-a ${wl}archive'
8434 ;;
8435
8436 irix5* | irix6* | nonstopux*)
8437 lt_prog_compiler_wl='-Wl,'
8438 # PIC (with -KPIC) is the default.
8439 lt_prog_compiler_static='-non_shared'
8440 ;;
8441
8442 newsos6)
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 ;;
8446
8447 linux* | k*bsd*-gnu)
8448 case $cc_basename in
8449 icc* | ecc*)
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_pic='-KPIC'
8452 lt_prog_compiler_static='-static'
8453 ;;
8454 pgcc* | pgf77* | pgf90* | pgf95*)
8455 # Portland Group compilers (*not* the Pentium gcc compiler,
8456 # which looks to be a dead project)
8457 lt_prog_compiler_wl='-Wl,'
8458 lt_prog_compiler_pic='-fpic'
8459 lt_prog_compiler_static='-Bstatic'
8460 ;;
8461 ccc*)
8462 lt_prog_compiler_wl='-Wl,'
8463 # All Alpha code is PIC.
8464 lt_prog_compiler_static='-non_shared'
8465 ;;
8466 *)
8467 case `$CC -V 2>&1 | sed 5q` in
8468 *Sun\ C*)
8469 # Sun C 5.9
8470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-Bstatic'
8472 lt_prog_compiler_wl='-Wl,'
8473 ;;
8474 *Sun\ F*)
8475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_wl=''
8479 ;;
8480 esac
8481 ;;
8482 esac
8483 ;;
8484
8485 osf3* | osf4* | osf5*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # All OSF/1 code is PIC.
8488 lt_prog_compiler_static='-non_shared'
8489 ;;
8490
8491 rdos*)
8492 lt_prog_compiler_static='-non_shared'
8493 ;;
8494
8495 solaris*)
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-Bstatic'
8498 case $cc_basename in
8499 f77* | f90* | f95*)
8500 lt_prog_compiler_wl='-Qoption ld ';;
8501 *)
8502 lt_prog_compiler_wl='-Wl,';;
8503 esac
8504 ;;
8505
8506 sunos4*)
8507 lt_prog_compiler_wl='-Qoption ld '
8508 lt_prog_compiler_pic='-PIC'
8509 lt_prog_compiler_static='-Bstatic'
8510 ;;
8511
8512 sysv4 | sysv4.2uw2* | sysv4.3*)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 ;;
8517
8518 sysv4*MP*)
8519 if test -d /usr/nec ;then
8520 lt_prog_compiler_pic='-Kconform_pic'
8521 lt_prog_compiler_static='-Bstatic'
8522 fi
8523 ;;
8524
8525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-Bstatic'
8529 ;;
8530
8531 unicos*)
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_can_build_shared=no
8534 ;;
8535
8536 uts4*)
8537 lt_prog_compiler_pic='-pic'
8538 lt_prog_compiler_static='-Bstatic'
8539 ;;
8540
8541 *)
8542 lt_prog_compiler_can_build_shared=no
8543 ;;
8544 esac
8545 fi
8546
8547 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8548 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8549
8550 #
8551 # Check to make sure the PIC flag actually works.
8552 #
8553 if test -n "$lt_prog_compiler_pic"; then
8554
8555 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8556 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8557 if test "${lt_prog_compiler_pic_works+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 lt_prog_compiler_pic_works=no
8561 ac_outfile=conftest.$ac_objext
8562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8563 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8564 # Insert the option either (1) after the last *FLAGS variable, or
8565 # (2) before a word containing "conftest.", or (3) at the end.
8566 # Note that $ac_compile itself does not contain backslashes and begins
8567 # with a dollar sign (not a hyphen), so the echo should work correctly.
8568 # The option is referenced via a variable to avoid confusing sed.
8569 lt_compile=`echo "$ac_compile" | $SED \
8570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8572 -e 's:$: $lt_compiler_flag:'`
8573 (eval echo "\"\$as_me:8573: $lt_compile\"" >&5)
8574 (eval "$lt_compile" 2>conftest.err)
8575 ac_status=$?
8576 cat conftest.err >&5
8577 echo "$as_me:8577: \$? = $ac_status" >&5
8578 if (exit $ac_status) && test -s "$ac_outfile"; then
8579 # The compiler can only warn and ignore the option if not recognized
8580 # So say no if there are warnings other than the usual output.
8581 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8584 lt_prog_compiler_pic_works=yes
8585 fi
8586 fi
8587 $rm conftest*
8588
8589 fi
8590 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8591 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8592
8593 if test x"$lt_prog_compiler_pic_works" = xyes; then
8594 case $lt_prog_compiler_pic in
8595 "" | " "*) ;;
8596 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8597 esac
8598 else
8599 lt_prog_compiler_pic=
8600 lt_prog_compiler_can_build_shared=no
8601 fi
8602
8603 fi
8604 case $host_os in
8605 # For platforms which do not support PIC, -DPIC is meaningless:
8606 *djgpp*)
8607 lt_prog_compiler_pic=
8608 ;;
8609 *)
8610 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8611 ;;
8612 esac
8613
8614 #
8615 # Check to make sure the static flag actually works.
8616 #
8617 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8618 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8619 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8620 if test "${lt_prog_compiler_static_works+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 lt_prog_compiler_static_works=no
8624 save_LDFLAGS="$LDFLAGS"
8625 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8626 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8628 # The linker can only warn and ignore the option if not recognized
8629 # So say no if there are warnings
8630 if test -s conftest.err; then
8631 # Append any errors to the config.log.
8632 cat conftest.err 1>&5
8633 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8635 if diff conftest.exp conftest.er2 >/dev/null; then
8636 lt_prog_compiler_static_works=yes
8637 fi
8638 else
8639 lt_prog_compiler_static_works=yes
8640 fi
8641 fi
8642 $rm conftest*
8643 LDFLAGS="$save_LDFLAGS"
8644
8645 fi
8646 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8647 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8648
8649 if test x"$lt_prog_compiler_static_works" = xyes; then
8650 :
8651 else
8652 lt_prog_compiler_static=
8653 fi
8654
8655
8656 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8657 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8658 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661 lt_cv_prog_compiler_c_o=no
8662 $rm -r conftest 2>/dev/null
8663 mkdir conftest
8664 cd conftest
8665 mkdir out
8666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8667
8668 lt_compiler_flag="-o out/conftest2.$ac_objext"
8669 # Insert the option either (1) after the last *FLAGS variable, or
8670 # (2) before a word containing "conftest.", or (3) at the end.
8671 # Note that $ac_compile itself does not contain backslashes and begins
8672 # with a dollar sign (not a hyphen), so the echo should work correctly.
8673 lt_compile=`echo "$ac_compile" | $SED \
8674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8676 -e 's:$: $lt_compiler_flag:'`
8677 (eval echo "\"\$as_me:8677: $lt_compile\"" >&5)
8678 (eval "$lt_compile" 2>out/conftest.err)
8679 ac_status=$?
8680 cat out/conftest.err >&5
8681 echo "$as_me:8681: \$? = $ac_status" >&5
8682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8683 then
8684 # The compiler can only warn and ignore the option if not recognized
8685 # So say no if there are warnings
8686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8689 lt_cv_prog_compiler_c_o=yes
8690 fi
8691 fi
8692 chmod u+w . 2>&5
8693 $rm conftest*
8694 # SGI C++ compiler will create directory out/ii_files/ for
8695 # template instantiation
8696 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8697 $rm out/* && rmdir out
8698 cd ..
8699 rmdir conftest
8700 $rm conftest*
8701
8702 fi
8703 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8704 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8705
8706
8707 hard_links="nottested"
8708 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8709 # do not overwrite the value of need_locks provided by the user
8710 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8711 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8712 hard_links=yes
8713 $rm conftest*
8714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8715 touch conftest.a
8716 ln conftest.a conftest.b 2>&5 || hard_links=no
8717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8718 { echo "$as_me:$LINENO: result: $hard_links" >&5
8719 echo "${ECHO_T}$hard_links" >&6; }
8720 if test "$hard_links" = no; then
8721 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8722 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8723 need_locks=warn
8724 fi
8725 else
8726 need_locks=no
8727 fi
8728
8729 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8730 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8731
8732 runpath_var=
8733 allow_undefined_flag=
8734 enable_shared_with_static_runtimes=no
8735 archive_cmds=
8736 archive_expsym_cmds=
8737 old_archive_From_new_cmds=
8738 old_archive_from_expsyms_cmds=
8739 export_dynamic_flag_spec=
8740 whole_archive_flag_spec=
8741 thread_safe_flag_spec=
8742 hardcode_libdir_flag_spec=
8743 hardcode_libdir_flag_spec_ld=
8744 hardcode_libdir_separator=
8745 hardcode_direct=no
8746 hardcode_minus_L=no
8747 hardcode_shlibpath_var=unsupported
8748 link_all_deplibs=unknown
8749 hardcode_automatic=no
8750 module_cmds=
8751 module_expsym_cmds=
8752 always_export_symbols=no
8753 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8754 # include_expsyms should be a list of space-separated symbols to be *always*
8755 # included in the symbol list
8756 include_expsyms=
8757 # exclude_expsyms can be an extended regexp of symbols to exclude
8758 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8759 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8760 # as well as any symbol that contains `d'.
8761 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8763 # platforms (ab)use it in PIC code, but their linkers get confused if
8764 # the symbol is explicitly referenced. Since portable code cannot
8765 # rely on this symbol name, it's probably fine to never include it in
8766 # preloaded symbol tables.
8767 extract_expsyms_cmds=
8768 # Just being paranoid about ensuring that cc_basename is set.
8769 for cc_temp in $compiler""; do
8770 case $cc_temp in
8771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8773 \-*) ;;
8774 *) break;;
8775 esac
8776 done
8777 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8778
8779 case $host_os in
8780 cygwin* | mingw* | pw32*)
8781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8782 # When not using gcc, we currently assume that we are using
8783 # Microsoft Visual C++.
8784 if test "$GCC" != yes; then
8785 with_gnu_ld=no
8786 fi
8787 ;;
8788 interix*)
8789 # we just hope/assume this is gcc and not c89 (= MSVC++)
8790 with_gnu_ld=yes
8791 ;;
8792 openbsd*)
8793 with_gnu_ld=no
8794 ;;
8795 esac
8796
8797 ld_shlibs=yes
8798 if test "$with_gnu_ld" = yes; then
8799 # If archive_cmds runs LD, not CC, wlarc should be empty
8800 wlarc='${wl}'
8801
8802 # Set some defaults for GNU ld with shared library support. These
8803 # are reset later if shared libraries are not supported. Putting them
8804 # here allows them to be overridden if necessary.
8805 runpath_var=LD_RUN_PATH
8806 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8807 export_dynamic_flag_spec='${wl}--export-dynamic'
8808 # ancient GNU ld didn't support --whole-archive et. al.
8809 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8810 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8811 else
8812 whole_archive_flag_spec=
8813 fi
8814 supports_anon_versioning=no
8815 case `$LD -v 2>/dev/null` in
8816 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8819 *\ 2.11.*) ;; # other 2.11 versions
8820 *) supports_anon_versioning=yes ;;
8821 esac
8822
8823 # See if GNU ld supports shared libraries.
8824 case $host_os in
8825 aix3* | aix4* | aix5*)
8826 # On AIX/PPC, the GNU linker is very broken
8827 if test "$host_cpu" != ia64; then
8828 ld_shlibs=no
8829 cat <<EOF 1>&2
8830
8831 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8832 *** to be unable to reliably create shared libraries on AIX.
8833 *** Therefore, libtool is disabling shared libraries support. If you
8834 *** really care for shared libraries, you may want to modify your PATH
8835 *** so that a non-GNU linker is found, and then restart.
8836
8837 EOF
8838 fi
8839 ;;
8840
8841 amigaos*)
8842 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)'
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 hardcode_minus_L=yes
8845
8846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8847 # that the semantics of dynamic libraries on AmigaOS, at least up
8848 # to version 4, is to share data among multiple programs linked
8849 # with the same dynamic library. Since this doesn't match the
8850 # behavior of shared libraries on other platforms, we can't use
8851 # them.
8852 ld_shlibs=no
8853 ;;
8854
8855 beos*)
8856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8857 allow_undefined_flag=unsupported
8858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8859 # support --undefined. This deserves some investigation. FIXME
8860 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 else
8862 ld_shlibs=no
8863 fi
8864 ;;
8865
8866 cygwin* | mingw* | pw32*)
8867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8868 # as there is no search path for DLLs.
8869 hardcode_libdir_flag_spec='-L$libdir'
8870 allow_undefined_flag=unsupported
8871 always_export_symbols=no
8872 enable_shared_with_static_runtimes=yes
8873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8874
8875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8877 # If the export-symbols file already is a .def file (1st line
8878 # is EXPORTS), use it as is; otherwise, prepend...
8879 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8880 cp $export_symbols $output_objdir/$soname.def;
8881 else
8882 echo EXPORTS > $output_objdir/$soname.def;
8883 cat $export_symbols >> $output_objdir/$soname.def;
8884 fi~
8885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8886 else
8887 ld_shlibs=no
8888 fi
8889 ;;
8890
8891 interix[3-9]*)
8892 hardcode_direct=no
8893 hardcode_shlibpath_var=no
8894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895 export_dynamic_flag_spec='${wl}-E'
8896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8897 # Instead, shared libraries are loaded at an image base (0x10000000 by
8898 # default) and relocated if they conflict, which is a slow very memory
8899 # consuming and fragmenting process. To avoid this, we pick a random,
8900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8903 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'
8904 ;;
8905
8906 gnu* | linux* | k*bsd*-gnu)
8907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8908 tmp_addflag=
8909 case $cc_basename,$host_cpu in
8910 pgcc*) # Portland Group C compiler
8911 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'
8912 tmp_addflag=' $pic_flag'
8913 ;;
8914 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8915 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'
8916 tmp_addflag=' $pic_flag -Mnomain' ;;
8917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8918 tmp_addflag=' -i_dynamic' ;;
8919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8920 tmp_addflag=' -i_dynamic -nofor_main' ;;
8921 ifc* | ifort*) # Intel Fortran compiler
8922 tmp_addflag=' -nofor_main' ;;
8923 esac
8924 case `$CC -V 2>&1 | sed 5q` in
8925 *Sun\ C*) # Sun C 5.9
8926 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'
8927 tmp_sharedflag='-G' ;;
8928 *Sun\ F*) # Sun Fortran 8.3
8929 tmp_sharedflag='-G' ;;
8930 *)
8931 tmp_sharedflag='-shared' ;;
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934
8935 if test $supports_anon_versioning = yes; then
8936 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 $echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8940 fi
8941 else
8942 ld_shlibs=no
8943 fi
8944 ;;
8945
8946 netbsd*)
8947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8948 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8949 wlarc=
8950 else
8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8953 fi
8954 ;;
8955
8956 solaris*)
8957 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8958 ld_shlibs=no
8959 cat <<EOF 1>&2
8960
8961 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8962 *** create shared libraries on Solaris systems. Therefore, libtool
8963 *** is disabling shared libraries support. We urge you to upgrade GNU
8964 *** binutils to release 2.9.1 or newer. Another option is to modify
8965 *** your PATH or compiler configuration so that the native linker is
8966 *** used, and then restart.
8967
8968 EOF
8969 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8972 else
8973 ld_shlibs=no
8974 fi
8975 ;;
8976
8977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8978 case `$LD -v 2>&1` in
8979 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8980 ld_shlibs=no
8981 cat <<_LT_EOF 1>&2
8982
8983 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8984 *** reliably create shared libraries on SCO systems. Therefore, libtool
8985 *** is disabling shared libraries support. We urge you to upgrade GNU
8986 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8987 *** your PATH or compiler configuration so that the native linker is
8988 *** used, and then restart.
8989
8990 _LT_EOF
8991 ;;
8992 *)
8993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8994 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8997 else
8998 ld_shlibs=no
8999 fi
9000 ;;
9001 esac
9002 ;;
9003
9004 sunos4*)
9005 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9006 wlarc=
9007 hardcode_direct=yes
9008 hardcode_shlibpath_var=no
9009 ;;
9010
9011 *)
9012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9014 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9015 else
9016 ld_shlibs=no
9017 fi
9018 ;;
9019 esac
9020
9021 if test "$ld_shlibs" = no; then
9022 runpath_var=
9023 hardcode_libdir_flag_spec=
9024 export_dynamic_flag_spec=
9025 whole_archive_flag_spec=
9026 fi
9027 else
9028 # PORTME fill in a description of your system's linker (not GNU ld)
9029 case $host_os in
9030 aix3*)
9031 allow_undefined_flag=unsupported
9032 always_export_symbols=yes
9033 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'
9034 # Note: this linker hardcodes the directories in LIBPATH if there
9035 # are no directories specified by -L.
9036 hardcode_minus_L=yes
9037 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9038 # Neither direct hardcoding nor static linking is supported with a
9039 # broken collect2.
9040 hardcode_direct=unsupported
9041 fi
9042 ;;
9043
9044 aix4* | aix5*)
9045 if test "$host_cpu" = ia64; then
9046 # On IA64, the linker does run time linking by default, so we don't
9047 # have to do anything special.
9048 aix_use_runtimelinking=no
9049 exp_sym_flag='-Bexport'
9050 no_entry_flag=""
9051 else
9052 # If we're using GNU nm, then we don't want the "-C" option.
9053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9054 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9055 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'
9056 else
9057 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'
9058 fi
9059 aix_use_runtimelinking=no
9060
9061 # Test if we are trying to use run time linking or normal
9062 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9063 # need to do runtime linking.
9064 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9065 for ld_flag in $LDFLAGS; do
9066 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9067 aix_use_runtimelinking=yes
9068 break
9069 fi
9070 done
9071 ;;
9072 esac
9073
9074 exp_sym_flag='-bexport'
9075 no_entry_flag='-bnoentry'
9076 fi
9077
9078 # When large executables or shared objects are built, AIX ld can
9079 # have problems creating the table of contents. If linking a library
9080 # or program results in "error TOC overflow" add -mminimal-toc to
9081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9083
9084 archive_cmds=''
9085 hardcode_direct=yes
9086 hardcode_libdir_separator=':'
9087 link_all_deplibs=yes
9088
9089 if test "$GCC" = yes; then
9090 case $host_os in aix4.[012]|aix4.[012].*)
9091 # We only want to do this on AIX 4.2 and lower, the check
9092 # below for broken collect2 doesn't work under 4.3+
9093 collect2name=`${CC} -print-prog-name=collect2`
9094 if test -f "$collect2name" && \
9095 strings "$collect2name" | grep resolve_lib_name >/dev/null
9096 then
9097 # We have reworked collect2
9098 :
9099 else
9100 # We have old collect2
9101 hardcode_direct=unsupported
9102 # It fails to find uninstalled libraries when the uninstalled
9103 # path is not listed in the libpath. Setting hardcode_minus_L
9104 # to unsupported forces relinking
9105 hardcode_minus_L=yes
9106 hardcode_libdir_flag_spec='-L$libdir'
9107 hardcode_libdir_separator=
9108 fi
9109 ;;
9110 esac
9111 shared_flag='-shared'
9112 if test "$aix_use_runtimelinking" = yes; then
9113 shared_flag="$shared_flag "'${wl}-G'
9114 fi
9115 else
9116 # not using gcc
9117 if test "$host_cpu" = ia64; then
9118 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9119 # chokes on -Wl,-G. The following line is correct:
9120 shared_flag='-G'
9121 else
9122 if test "$aix_use_runtimelinking" = yes; then
9123 shared_flag='${wl}-G'
9124 else
9125 shared_flag='${wl}-bM:SRE'
9126 fi
9127 fi
9128 fi
9129
9130 # It seems that -bexpall does not export symbols beginning with
9131 # underscore (_), so it is better to generate a list of symbols to export.
9132 always_export_symbols=yes
9133 if test "$aix_use_runtimelinking" = yes; then
9134 # Warning - without using the other runtime loading flags (-brtl),
9135 # -berok will link without error, but may produce a broken library.
9136 allow_undefined_flag='-berok'
9137 # Determine the default libpath from the value encoded in an empty executable.
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144
9145 int
9146 main ()
9147 {
9148
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (ac_try="$ac_link"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_link") 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest$ac_exeext &&
9170 $as_test_x conftest$ac_exeext; then
9171
9172 lt_aix_libpath_sed='
9173 /Import File Strings/,/^$/ {
9174 /^0/ {
9175 s/^0 *\(.*\)$/\1/
9176 p
9177 }
9178 }'
9179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180 # Check for a 64-bit object if we didn't find anything.
9181 if test -z "$aix_libpath"; then
9182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 fi
9184 else
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188
9189 fi
9190
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9194
9195 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9196 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"
9197 else
9198 if test "$host_cpu" = ia64; then
9199 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9200 allow_undefined_flag="-z nodefs"
9201 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"
9202 else
9203 # Determine the default libpath from the value encoded in an empty executable.
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210
9211 int
9212 main ()
9213 {
9214
9215 ;
9216 return 0;
9217 }
9218 _ACEOF
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (ac_try="$ac_link"
9221 case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_link") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest$ac_exeext &&
9236 $as_test_x conftest$ac_exeext; then
9237
9238 lt_aix_libpath_sed='
9239 /Import File Strings/,/^$/ {
9240 /^0/ {
9241 s/^0 *\(.*\)$/\1/
9242 p
9243 }
9244 }'
9245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246 # Check for a 64-bit object if we didn't find anything.
9247 if test -z "$aix_libpath"; then
9248 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249 fi
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254
9255 fi
9256
9257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9258 conftest$ac_exeext conftest.$ac_ext
9259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9260
9261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9262 # Warning - without using the other run time loading flags,
9263 # -berok will link without error, but may produce a broken library.
9264 no_undefined_flag=' ${wl}-bernotok'
9265 allow_undefined_flag=' ${wl}-berok'
9266 # Exported symbols can be pulled into shared objects from archives
9267 whole_archive_flag_spec='$convenience'
9268 archive_cmds_need_lc=yes
9269 # This is similar to how AIX traditionally builds its shared libraries.
9270 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'
9271 fi
9272 fi
9273 ;;
9274
9275 amigaos*)
9276 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)'
9277 hardcode_libdir_flag_spec='-L$libdir'
9278 hardcode_minus_L=yes
9279 # see comment about different semantics on the GNU ld section
9280 ld_shlibs=no
9281 ;;
9282
9283 bsdi[45]*)
9284 export_dynamic_flag_spec=-rdynamic
9285 ;;
9286
9287 cygwin* | mingw* | pw32*)
9288 # When not using gcc, we currently assume that we are using
9289 # Microsoft Visual C++.
9290 # hardcode_libdir_flag_spec is actually meaningless, as there is
9291 # no search path for DLLs.
9292 hardcode_libdir_flag_spec=' '
9293 allow_undefined_flag=unsupported
9294 # Tell ltmain to make .lib files, not .a files.
9295 libext=lib
9296 # Tell ltmain to make .dll files, not .so files.
9297 shrext_cmds=".dll"
9298 # FIXME: Setting linknames here is a bad hack.
9299 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9300 # The linker will automatically build a .lib file if we build a DLL.
9301 old_archive_From_new_cmds='true'
9302 # FIXME: Should let the user specify the lib program.
9303 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9304 fix_srcfile_path='`cygpath -w "$srcfile"`'
9305 enable_shared_with_static_runtimes=yes
9306 ;;
9307
9308 darwin* | rhapsody*)
9309 case $host_os in
9310 rhapsody* | darwin1.[012])
9311 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9312 ;;
9313 *) # Darwin 1.3 on
9314 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9315 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9316 else
9317 case ${MACOSX_DEPLOYMENT_TARGET} in
9318 10.[012])
9319 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9320 ;;
9321 10.*)
9322 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9323 ;;
9324 esac
9325 fi
9326 ;;
9327 esac
9328 archive_cmds_need_lc=no
9329 hardcode_direct=no
9330 hardcode_automatic=yes
9331 hardcode_shlibpath_var=unsupported
9332 whole_archive_flag_spec=''
9333 link_all_deplibs=yes
9334 if test "$GCC" = yes ; then
9335 output_verbose_link_cmd='echo'
9336 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9337 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9339 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}'
9340 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}'
9341 else
9342 case $cc_basename in
9343 xlc*)
9344 output_verbose_link_cmd='echo'
9345 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9346 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9348 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}'
9349 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}'
9350 ;;
9351 *)
9352 ld_shlibs=no
9353 ;;
9354 esac
9355 fi
9356 ;;
9357
9358 dgux*)
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 hardcode_shlibpath_var=no
9362 ;;
9363
9364 freebsd1*)
9365 ld_shlibs=no
9366 ;;
9367
9368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9369 # support. Future versions do this automatically, but an explicit c++rt0.o
9370 # does not break anything, and helps significantly (at the cost of a little
9371 # extra space).
9372 freebsd2.2*)
9373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9374 hardcode_libdir_flag_spec='-R$libdir'
9375 hardcode_direct=yes
9376 hardcode_shlibpath_var=no
9377 ;;
9378
9379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9380 freebsd2*)
9381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_direct=yes
9383 hardcode_minus_L=yes
9384 hardcode_shlibpath_var=no
9385 ;;
9386
9387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9388 freebsd* | dragonfly*)
9389 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9390 hardcode_libdir_flag_spec='-R$libdir'
9391 hardcode_direct=yes
9392 hardcode_shlibpath_var=no
9393 ;;
9394
9395 hpux9*)
9396 if test "$GCC" = yes; then
9397 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'
9398 else
9399 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'
9400 fi
9401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9402 hardcode_libdir_separator=:
9403 hardcode_direct=yes
9404
9405 # hardcode_minus_L: Not really in the search PATH,
9406 # but as the default location of the library.
9407 hardcode_minus_L=yes
9408 export_dynamic_flag_spec='${wl}-E'
9409 ;;
9410
9411 hpux10*)
9412 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9414 else
9415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9416 fi
9417 if test "$with_gnu_ld" = no; then
9418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9419 hardcode_libdir_separator=:
9420
9421 hardcode_direct=yes
9422 export_dynamic_flag_spec='${wl}-E'
9423
9424 # hardcode_minus_L: Not really in the search PATH,
9425 # but as the default location of the library.
9426 hardcode_minus_L=yes
9427 fi
9428 ;;
9429
9430 hpux11*)
9431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9432 case $host_cpu in
9433 hppa*64*)
9434 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 ;;
9436 ia64*)
9437 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9438 ;;
9439 *)
9440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9441 ;;
9442 esac
9443 else
9444 case $host_cpu in
9445 hppa*64*)
9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 ;;
9448 ia64*)
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9450 ;;
9451 *)
9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 esac
9455 fi
9456 if test "$with_gnu_ld" = no; then
9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator=:
9459
9460 case $host_cpu in
9461 hppa*64*|ia64*)
9462 hardcode_libdir_flag_spec_ld='+b $libdir'
9463 hardcode_direct=no
9464 hardcode_shlibpath_var=no
9465 ;;
9466 *)
9467 hardcode_direct=yes
9468 export_dynamic_flag_spec='${wl}-E'
9469
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9473 ;;
9474 esac
9475 fi
9476 ;;
9477
9478 irix5* | irix6* | nonstopux*)
9479 if test "$GCC" = yes; then
9480 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'
9481 else
9482 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'
9483 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9484 fi
9485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486 hardcode_libdir_separator=:
9487 link_all_deplibs=yes
9488 ;;
9489
9490 netbsd*)
9491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9493 else
9494 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9495 fi
9496 hardcode_libdir_flag_spec='-R$libdir'
9497 hardcode_direct=yes
9498 hardcode_shlibpath_var=no
9499 ;;
9500
9501 newsos6)
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_direct=yes
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 hardcode_libdir_separator=:
9506 hardcode_shlibpath_var=no
9507 ;;
9508
9509 openbsd*)
9510 if test -f /usr/libexec/ld.so; then
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9514 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9517 export_dynamic_flag_spec='${wl}-E'
9518 else
9519 case $host_os in
9520 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_libdir_flag_spec='-R$libdir'
9523 ;;
9524 *)
9525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9526 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9527 ;;
9528 esac
9529 fi
9530 else
9531 ld_shlibs=no
9532 fi
9533 ;;
9534
9535 os2*)
9536 hardcode_libdir_flag_spec='-L$libdir'
9537 hardcode_minus_L=yes
9538 allow_undefined_flag=unsupported
9539 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'
9540 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9541 ;;
9542
9543 osf3*)
9544 if test "$GCC" = yes; then
9545 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9546 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'
9547 else
9548 allow_undefined_flag=' -expect_unresolved \*'
9549 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'
9550 fi
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator=:
9553 ;;
9554
9555 osf4* | osf5*) # as osf3* with the addition of -msym flag
9556 if test "$GCC" = yes; then
9557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558 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'
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 else
9561 allow_undefined_flag=' -expect_unresolved \*'
9562 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'
9563 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9564 $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'
9565
9566 # Both c and cxx compiler support -rpath directly
9567 hardcode_libdir_flag_spec='-rpath $libdir'
9568 fi
9569 hardcode_libdir_separator=:
9570 ;;
9571
9572 solaris*)
9573 no_undefined_flag=' -z text'
9574 if test "$GCC" = yes; then
9575 wlarc='${wl}'
9576 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9578 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9579 else
9580 wlarc=''
9581 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9584 fi
9585 hardcode_libdir_flag_spec='-R$libdir'
9586 hardcode_shlibpath_var=no
9587 case $host_os in
9588 solaris2.[0-5] | solaris2.[0-5].*) ;;
9589 *)
9590 # The compiler driver will combine and reorder linker options,
9591 # but understands `-z linker_flag'. GCC discards it without `$wl',
9592 # but is careful enough not to reorder.
9593 # Supported since Solaris 2.6 (maybe 2.5.1?)
9594 if test "$GCC" = yes; then
9595 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9596 else
9597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9598 fi
9599 ;;
9600 esac
9601 link_all_deplibs=yes
9602 ;;
9603
9604 sunos4*)
9605 if test "x$host_vendor" = xsequent; then
9606 # Use $CC to link under sequent, because it throws in some extra .o
9607 # files that make .init and .fini sections work.
9608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9609 else
9610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9611 fi
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_direct=yes
9614 hardcode_minus_L=yes
9615 hardcode_shlibpath_var=no
9616 ;;
9617
9618 sysv4)
9619 case $host_vendor in
9620 sni)
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_direct=yes # is this really true???
9623 ;;
9624 siemens)
9625 ## LD is ld it makes a PLAMLIB
9626 ## CC just makes a GrossModule.
9627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9628 reload_cmds='$CC -r -o $output$reload_objs'
9629 hardcode_direct=no
9630 ;;
9631 motorola)
9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9634 ;;
9635 esac
9636 runpath_var='LD_RUN_PATH'
9637 hardcode_shlibpath_var=no
9638 ;;
9639
9640 sysv4.3*)
9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_shlibpath_var=no
9643 export_dynamic_flag_spec='-Bexport'
9644 ;;
9645
9646 sysv4*MP*)
9647 if test -d /usr/nec; then
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_shlibpath_var=no
9650 runpath_var=LD_RUN_PATH
9651 hardcode_runpath_var=yes
9652 ld_shlibs=yes
9653 fi
9654 ;;
9655
9656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9657 no_undefined_flag='${wl}-z,text'
9658 archive_cmds_need_lc=no
9659 hardcode_shlibpath_var=no
9660 runpath_var='LD_RUN_PATH'
9661
9662 if test "$GCC" = yes; then
9663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 fi
9669 ;;
9670
9671 sysv5* | sco3.2v5* | sco5v6*)
9672 # Note: We can NOT use -z defs as we might desire, because we do not
9673 # link with -lc, and that would cause any symbols used from libc to
9674 # always be unresolved, which means just about no library would
9675 # ever link correctly. If we're not using GNU ld we use -z text
9676 # though, which does catch some bad symbols but isn't as heavy-handed
9677 # as -z defs.
9678 no_undefined_flag='${wl}-z,text'
9679 allow_undefined_flag='${wl}-z,nodefs'
9680 archive_cmds_need_lc=no
9681 hardcode_shlibpath_var=no
9682 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9683 hardcode_libdir_separator=':'
9684 link_all_deplibs=yes
9685 export_dynamic_flag_spec='${wl}-Bexport'
9686 runpath_var='LD_RUN_PATH'
9687
9688 if test "$GCC" = yes; then
9689 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 else
9692 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 fi
9695 ;;
9696
9697 uts4*)
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_libdir_flag_spec='-L$libdir'
9700 hardcode_shlibpath_var=no
9701 ;;
9702
9703 *)
9704 ld_shlibs=no
9705 ;;
9706 esac
9707 fi
9708
9709 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9710 echo "${ECHO_T}$ld_shlibs" >&6; }
9711 test "$ld_shlibs" = no && can_build_shared=no
9712
9713 #
9714 # Do we need to explicitly link libc?
9715 #
9716 case "x$archive_cmds_need_lc" in
9717 x|xyes)
9718 # Assume -lc should be added
9719 archive_cmds_need_lc=yes
9720
9721 if test "$enable_shared" = yes && test "$GCC" = yes; then
9722 case $archive_cmds in
9723 *'~'*)
9724 # FIXME: we may have to deal with multi-command sequences.
9725 ;;
9726 '$CC '*)
9727 # Test whether the compiler implicitly links with -lc since on some
9728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9729 # to ld, don't add -lc before -lgcc.
9730 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9731 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9732 $rm conftest*
9733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9734
9735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736 (eval $ac_compile) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } 2>conftest.err; then
9740 soname=conftest
9741 lib=conftest
9742 libobjs=conftest.$ac_objext
9743 deplibs=
9744 wl=$lt_prog_compiler_wl
9745 pic_flag=$lt_prog_compiler_pic
9746 compiler_flags=-v
9747 linker_flags=-v
9748 verstring=
9749 output_objdir=.
9750 libname=conftest
9751 lt_save_allow_undefined_flag=$allow_undefined_flag
9752 allow_undefined_flag=
9753 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9754 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }
9758 then
9759 archive_cmds_need_lc=no
9760 else
9761 archive_cmds_need_lc=yes
9762 fi
9763 allow_undefined_flag=$lt_save_allow_undefined_flag
9764 else
9765 cat conftest.err 1>&5
9766 fi
9767 $rm conftest*
9768 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9769 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9770 ;;
9771 esac
9772 fi
9773 ;;
9774 esac
9775
9776 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9777 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9778 library_names_spec=
9779 libname_spec='lib$name'
9780 soname_spec=
9781 shrext_cmds=".so"
9782 postinstall_cmds=
9783 postuninstall_cmds=
9784 finish_cmds=
9785 finish_eval=
9786 shlibpath_var=
9787 shlibpath_overrides_runpath=unknown
9788 version_type=none
9789 dynamic_linker="$host_os ld.so"
9790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9791
9792 if test "$GCC" = yes; then
9793 case $host_os in
9794 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9795 *) lt_awk_arg="/^libraries:/" ;;
9796 esac
9797 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9798 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9799 # if the path contains ";" then we assume it to be the separator
9800 # otherwise default to the standard path separator (i.e. ":") - it is
9801 # assumed that no part of a normal pathname contains ";" but that should
9802 # okay in the real world where ";" in dirpaths is itself problematic.
9803 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9804 else
9805 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9806 fi
9807 # Ok, now we have the path, separated by spaces, we can step through it
9808 # and add multilib dir if necessary.
9809 lt_tmp_lt_search_path_spec=
9810 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9811 for lt_sys_path in $lt_search_path_spec; do
9812 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9814 else
9815 test -d "$lt_sys_path" && \
9816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9817 fi
9818 done
9819 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9820 BEGIN {RS=" "; FS="/|\n";} {
9821 lt_foo="";
9822 lt_count=0;
9823 for (lt_i = NF; lt_i > 0; lt_i--) {
9824 if ($lt_i != "" && $lt_i != ".") {
9825 if ($lt_i == "..") {
9826 lt_count++;
9827 } else {
9828 if (lt_count == 0) {
9829 lt_foo="/" $lt_i lt_foo;
9830 } else {
9831 lt_count--;
9832 }
9833 }
9834 }
9835 }
9836 if (lt_foo != "") { lt_freq[lt_foo]++; }
9837 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9838 }'`
9839 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9840 else
9841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9842 fi
9843 need_lib_prefix=unknown
9844 hardcode_into_libs=no
9845
9846 # when you set need_version to no, make sure it does not cause -set_version
9847 # flags to be left without arguments
9848 need_version=unknown
9849
9850 case $host_os in
9851 aix3*)
9852 version_type=linux
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9854 shlibpath_var=LIBPATH
9855
9856 # AIX 3 has no versioning support, so we append a major version to the name.
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 ;;
9859
9860 aix4* | aix5*)
9861 version_type=linux
9862 need_lib_prefix=no
9863 need_version=no
9864 hardcode_into_libs=yes
9865 if test "$host_cpu" = ia64; then
9866 # AIX 5 supports IA64
9867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 else
9870 # With GCC up to 2.95.x, collect2 would create an import file
9871 # for dependence libraries. The import file would start with
9872 # the line `#! .'. This would cause the generated library to
9873 # depend on `.', always an invalid library. This was fixed in
9874 # development snapshots of GCC prior to 3.0.
9875 case $host_os in
9876 aix4 | aix4.[01] | aix4.[01].*)
9877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9878 echo ' yes '
9879 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9880 :
9881 else
9882 can_build_shared=no
9883 fi
9884 ;;
9885 esac
9886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9887 # soname into executable. Probably we can add versioning support to
9888 # collect2, so additional links can be useful in future.
9889 if test "$aix_use_runtimelinking" = yes; then
9890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9891 # instead of lib<name>.a to let people know that these are not
9892 # typical AIX shared libraries.
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894 else
9895 # We preserve .a as extension for shared libraries through AIX4.2
9896 # and later when we are not doing run time linking.
9897 library_names_spec='${libname}${release}.a $libname.a'
9898 soname_spec='${libname}${release}${shared_ext}$major'
9899 fi
9900 shlibpath_var=LIBPATH
9901 fi
9902 ;;
9903
9904 amigaos*)
9905 library_names_spec='$libname.ixlibrary $libname.a'
9906 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9907 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'
9908 ;;
9909
9910 beos*)
9911 library_names_spec='${libname}${shared_ext}'
9912 dynamic_linker="$host_os ld.so"
9913 shlibpath_var=LIBRARY_PATH
9914 ;;
9915
9916 bsdi[45]*)
9917 version_type=linux
9918 need_version=no
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9925 # the default ld.so.conf also contains /usr/contrib/lib and
9926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9927 # libtool to hard-code these into programs
9928 ;;
9929
9930 cygwin* | mingw* | pw32*)
9931 version_type=windows
9932 shrext_cmds=".dll"
9933 need_version=no
9934 need_lib_prefix=no
9935
9936 case $GCC,$host_os in
9937 yes,cygwin* | yes,mingw* | yes,pw32*)
9938 library_names_spec='$libname.dll.a'
9939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9940 postinstall_cmds='base_file=`basename \${file}`~
9941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9942 dldir=$destdir/`dirname \$dlpath`~
9943 test -d \$dldir || mkdir -p \$dldir~
9944 $install_prog $dir/$dlname \$dldir/$dlname~
9945 chmod a+x \$dldir/$dlname'
9946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9947 dlpath=$dir/\$dldll~
9948 $rm \$dlpath'
9949 shlibpath_overrides_runpath=yes
9950
9951 case $host_os in
9952 cygwin*)
9953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9954 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9956 ;;
9957 mingw*)
9958 # MinGW DLLs use traditional 'lib' prefix
9959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9961 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9962 # It is most probably a Windows format PATH printed by
9963 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9964 # path with ; separators, and with drive letters. We can handle the
9965 # drive letters (cygwin fileutils understands them), so leave them,
9966 # especially as we might pass files found there to a mingw objdump,
9967 # which wouldn't understand a cygwinified path. Ahh.
9968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9969 else
9970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9971 fi
9972 ;;
9973 pw32*)
9974 # pw32 DLLs use 'pw' prefix rather than 'lib'
9975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976 ;;
9977 esac
9978 ;;
9979
9980 *)
9981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9982 ;;
9983 esac
9984 dynamic_linker='Win32 ld.exe'
9985 # FIXME: first we should search . and the directory the executable is in
9986 shlibpath_var=PATH
9987 ;;
9988
9989 darwin* | rhapsody*)
9990 dynamic_linker="$host_os dyld"
9991 version_type=darwin
9992 need_lib_prefix=no
9993 need_version=no
9994 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9995 soname_spec='${libname}${release}${major}$shared_ext'
9996 shlibpath_overrides_runpath=yes
9997 shlibpath_var=DYLD_LIBRARY_PATH
9998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9999
10000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10002 ;;
10003
10004 dgux*)
10005 version_type=linux
10006 need_lib_prefix=no
10007 need_version=no
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 ;;
10012
10013 freebsd1*)
10014 dynamic_linker=no
10015 ;;
10016
10017 freebsd* | dragonfly*)
10018 # DragonFly does not have aout. When/if they implement a new
10019 # versioning mechanism, adjust this.
10020 if test -x /usr/bin/objformat; then
10021 objformat=`/usr/bin/objformat`
10022 else
10023 case $host_os in
10024 freebsd[123]*) objformat=aout ;;
10025 *) objformat=elf ;;
10026 esac
10027 fi
10028 version_type=freebsd-$objformat
10029 case $version_type in
10030 freebsd-elf*)
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10032 need_version=no
10033 need_lib_prefix=no
10034 ;;
10035 freebsd-*)
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10037 need_version=yes
10038 ;;
10039 esac
10040 shlibpath_var=LD_LIBRARY_PATH
10041 case $host_os in
10042 freebsd2*)
10043 shlibpath_overrides_runpath=yes
10044 ;;
10045 freebsd3.[01]* | freebsdelf3.[01]*)
10046 shlibpath_overrides_runpath=yes
10047 hardcode_into_libs=yes
10048 ;;
10049 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10050 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10051 shlibpath_overrides_runpath=no
10052 hardcode_into_libs=yes
10053 ;;
10054 *) # from 4.6 on, and DragonFly
10055 shlibpath_overrides_runpath=yes
10056 hardcode_into_libs=yes
10057 ;;
10058 esac
10059 ;;
10060
10061 gnu*)
10062 version_type=linux
10063 need_lib_prefix=no
10064 need_version=no
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 hardcode_into_libs=yes
10069 ;;
10070
10071 hpux9* | hpux10* | hpux11*)
10072 # Give a soname corresponding to the major version so that dld.sl refuses to
10073 # link against other versions.
10074 version_type=sunos
10075 need_lib_prefix=no
10076 need_version=no
10077 case $host_cpu in
10078 ia64*)
10079 shrext_cmds='.so'
10080 hardcode_into_libs=yes
10081 dynamic_linker="$host_os dld.so"
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 if test "X$HPUX_IA64_MODE" = X32; then
10087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10088 else
10089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10090 fi
10091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10092 ;;
10093 hppa*64*)
10094 shrext_cmds='.sl'
10095 hardcode_into_libs=yes
10096 dynamic_linker="$host_os dld.sl"
10097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10103 ;;
10104 *)
10105 shrext_cmds='.sl'
10106 dynamic_linker="$host_os dld.sl"
10107 shlibpath_var=SHLIB_PATH
10108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 ;;
10112 esac
10113 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10114 postinstall_cmds='chmod 555 $lib'
10115 ;;
10116
10117 interix[3-9]*)
10118 version_type=linux
10119 need_lib_prefix=no
10120 need_version=no
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=no
10126 hardcode_into_libs=yes
10127 ;;
10128
10129 irix5* | irix6* | nonstopux*)
10130 case $host_os in
10131 nonstopux*) version_type=nonstopux ;;
10132 *)
10133 if test "$lt_cv_prog_gnu_ld" = yes; then
10134 version_type=linux
10135 else
10136 version_type=irix
10137 fi ;;
10138 esac
10139 need_lib_prefix=no
10140 need_version=no
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10143 case $host_os in
10144 irix5* | nonstopux*)
10145 libsuff= shlibsuff=
10146 ;;
10147 *)
10148 case $LD in # libtool.m4 will add one of these switches to LD
10149 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10150 libsuff= shlibsuff= libmagic=32-bit;;
10151 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10152 libsuff=32 shlibsuff=N32 libmagic=N32;;
10153 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10154 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10155 *) libsuff= shlibsuff= libmagic=never-match;;
10156 esac
10157 ;;
10158 esac
10159 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10160 shlibpath_overrides_runpath=no
10161 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10162 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10163 hardcode_into_libs=yes
10164 ;;
10165
10166 # No shared lib support for Linux oldld, aout, or coff.
10167 linux*oldld* | linux*aout* | linux*coff*)
10168 dynamic_linker=no
10169 ;;
10170
10171 # This must be Linux ELF.
10172 linux* | k*bsd*-gnu)
10173 version_type=linux
10174 need_lib_prefix=no
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=no
10181 # This implies no fast_install, which is unacceptable.
10182 # Some rework will be needed to allow for fast_install
10183 # before this can be enabled.
10184 hardcode_into_libs=yes
10185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10187
10188 # Append ld.so.conf contents to the search path
10189 if test -f /etc/ld.so.conf; then
10190 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' ' '`
10191 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10192 fi
10193
10194 # We used to test for /lib/ld.so.1 and disable shared libraries on
10195 # powerpc, because MkLinux only supported shared libraries with the
10196 # GNU dynamic linker. Since this was broken with cross compilers,
10197 # most powerpc-linux boxes support dynamic linking these days and
10198 # people can always --disable-shared, the test was removed, and we
10199 # assume the GNU/Linux dynamic linker is in use.
10200 dynamic_linker='GNU/Linux ld.so'
10201 ;;
10202
10203 netbsd*)
10204 version_type=sunos
10205 need_lib_prefix=no
10206 need_version=no
10207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10210 dynamic_linker='NetBSD (a.out) ld.so'
10211 else
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10213 soname_spec='${libname}${release}${shared_ext}$major'
10214 dynamic_linker='NetBSD ld.elf_so'
10215 fi
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=yes
10218 hardcode_into_libs=yes
10219 ;;
10220
10221 newsos6)
10222 version_type=linux
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224 shlibpath_var=LD_LIBRARY_PATH
10225 shlibpath_overrides_runpath=yes
10226 ;;
10227
10228 nto-qnx*)
10229 version_type=linux
10230 need_lib_prefix=no
10231 need_version=no
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=yes
10236 ;;
10237
10238 openbsd*)
10239 version_type=sunos
10240 sys_lib_dlsearch_path_spec="/usr/lib"
10241 need_lib_prefix=no
10242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10243 case $host_os in
10244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10245 *) need_version=no ;;
10246 esac
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10249 shlibpath_var=LD_LIBRARY_PATH
10250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10251 case $host_os in
10252 openbsd2.[89] | openbsd2.[89].*)
10253 shlibpath_overrides_runpath=no
10254 ;;
10255 *)
10256 shlibpath_overrides_runpath=yes
10257 ;;
10258 esac
10259 else
10260 shlibpath_overrides_runpath=yes
10261 fi
10262 ;;
10263
10264 os2*)
10265 libname_spec='$name'
10266 shrext_cmds=".dll"
10267 need_lib_prefix=no
10268 library_names_spec='$libname${shared_ext} $libname.a'
10269 dynamic_linker='OS/2 ld.exe'
10270 shlibpath_var=LIBPATH
10271 ;;
10272
10273 osf3* | osf4* | osf5*)
10274 version_type=osf
10275 need_lib_prefix=no
10276 need_version=no
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10282 ;;
10283
10284 rdos*)
10285 dynamic_linker=no
10286 ;;
10287
10288 solaris*)
10289 version_type=linux
10290 need_lib_prefix=no
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10296 hardcode_into_libs=yes
10297 # ldd complains unless libraries are executable
10298 postinstall_cmds='chmod +x $lib'
10299 ;;
10300
10301 sunos4*)
10302 version_type=sunos
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 if test "$with_gnu_ld" = yes; then
10308 need_lib_prefix=no
10309 fi
10310 need_version=yes
10311 ;;
10312
10313 sysv4 | sysv4.3*)
10314 version_type=linux
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 case $host_vendor in
10319 sni)
10320 shlibpath_overrides_runpath=no
10321 need_lib_prefix=no
10322 export_dynamic_flag_spec='${wl}-Blargedynsym'
10323 runpath_var=LD_RUN_PATH
10324 ;;
10325 siemens)
10326 need_lib_prefix=no
10327 ;;
10328 motorola)
10329 need_lib_prefix=no
10330 need_version=no
10331 shlibpath_overrides_runpath=no
10332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10333 ;;
10334 esac
10335 ;;
10336
10337 sysv4*MP*)
10338 if test -d /usr/nec ;then
10339 version_type=linux
10340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10341 soname_spec='$libname${shared_ext}.$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 fi
10344 ;;
10345
10346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10347 version_type=freebsd-elf
10348 need_lib_prefix=no
10349 need_version=no
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 hardcode_into_libs=yes
10354 if test "$with_gnu_ld" = yes; then
10355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10356 shlibpath_overrides_runpath=no
10357 else
10358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10359 shlibpath_overrides_runpath=yes
10360 case $host_os in
10361 sco3.2v5*)
10362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10363 ;;
10364 esac
10365 fi
10366 sys_lib_dlsearch_path_spec='/usr/lib'
10367 ;;
10368
10369 uts4*)
10370 version_type=linux
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 ;;
10375
10376 *)
10377 dynamic_linker=no
10378 ;;
10379 esac
10380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10381 echo "${ECHO_T}$dynamic_linker" >&6; }
10382 test "$dynamic_linker" = no && can_build_shared=no
10383
10384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10385 if test "$GCC" = yes; then
10386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10387 fi
10388
10389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10391 hardcode_action=
10392 if test -n "$hardcode_libdir_flag_spec" || \
10393 test -n "$runpath_var" || \
10394 test "X$hardcode_automatic" = "Xyes" ; then
10395
10396 # We can hardcode non-existant directories.
10397 if test "$hardcode_direct" != no &&
10398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10399 # have to relink, otherwise we might link with an installed library
10400 # when we should be linking with a yet-to-be-installed one
10401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10402 test "$hardcode_minus_L" != no; then
10403 # Linking always hardcodes the temporary library directory.
10404 hardcode_action=relink
10405 else
10406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10407 hardcode_action=immediate
10408 fi
10409 else
10410 # We cannot hardcode anything, or else we can only hardcode existing
10411 # directories.
10412 hardcode_action=unsupported
10413 fi
10414 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10415 echo "${ECHO_T}$hardcode_action" >&6; }
10416
10417 if test "$hardcode_action" = relink; then
10418 # Fast installation is not supported
10419 enable_fast_install=no
10420 elif test "$shlibpath_overrides_runpath" = yes ||
10421 test "$enable_shared" = no; then
10422 # Fast installation is not necessary
10423 enable_fast_install=needless
10424 fi
10425
10426 striplib=
10427 old_striplib=
10428 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10430 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10431 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10432 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10433 { echo "$as_me:$LINENO: result: yes" >&5
10434 echo "${ECHO_T}yes" >&6; }
10435 else
10436 # FIXME - insert some real tests, host_os isn't really good enough
10437 case $host_os in
10438 darwin*)
10439 if test -n "$STRIP" ; then
10440 striplib="$STRIP -x"
10441 old_striplib="$STRIP -S"
10442 { echo "$as_me:$LINENO: result: yes" >&5
10443 echo "${ECHO_T}yes" >&6; }
10444 else
10445 { echo "$as_me:$LINENO: result: no" >&5
10446 echo "${ECHO_T}no" >&6; }
10447 fi
10448 ;;
10449 *)
10450 { echo "$as_me:$LINENO: result: no" >&5
10451 echo "${ECHO_T}no" >&6; }
10452 ;;
10453 esac
10454 fi
10455
10456 if test "x$enable_dlopen" != xyes; then
10457 enable_dlopen=unknown
10458 enable_dlopen_self=unknown
10459 enable_dlopen_self_static=unknown
10460 else
10461 lt_cv_dlopen=no
10462 lt_cv_dlopen_libs=
10463
10464 case $host_os in
10465 beos*)
10466 lt_cv_dlopen="load_add_on"
10467 lt_cv_dlopen_libs=
10468 lt_cv_dlopen_self=yes
10469 ;;
10470
10471 mingw* | pw32*)
10472 lt_cv_dlopen="LoadLibrary"
10473 lt_cv_dlopen_libs=
10474 ;;
10475
10476 cygwin*)
10477 lt_cv_dlopen="dlopen"
10478 lt_cv_dlopen_libs=
10479 ;;
10480
10481 darwin*)
10482 # if libdl is installed we need to link against it
10483 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10484 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10485 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488 ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-ldl $LIBS"
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496
10497 /* Override any GCC internal prototype to avoid an error.
10498 Use char because int might match the return type of a GCC
10499 builtin and then its argument prototype would still apply. */
10500 #ifdef __cplusplus
10501 extern "C"
10502 #endif
10503 char dlopen ();
10504 int
10505 main ()
10506 {
10507 return dlopen ();
10508 ;
10509 return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (ac_try="$ac_link"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517 esac
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_link") 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest$ac_exeext &&
10529 $as_test_x conftest$ac_exeext; then
10530 ac_cv_lib_dl_dlopen=yes
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 ac_cv_lib_dl_dlopen=no
10536 fi
10537
10538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10539 conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10541 fi
10542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10544 if test $ac_cv_lib_dl_dlopen = yes; then
10545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10546 else
10547
10548 lt_cv_dlopen="dyld"
10549 lt_cv_dlopen_libs=
10550 lt_cv_dlopen_self=yes
10551
10552 fi
10553
10554 ;;
10555
10556 *)
10557 { echo "$as_me:$LINENO: checking for shl_load" >&5
10558 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10559 if test "${ac_cv_func_shl_load+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562 cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h. */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10570 #define shl_load innocuous_shl_load
10571
10572 /* System header to define __stub macros and hopefully few prototypes,
10573 which can conflict with char shl_load (); below.
10574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10575 <limits.h> exists even on freestanding compilers. */
10576
10577 #ifdef __STDC__
10578 # include <limits.h>
10579 #else
10580 # include <assert.h>
10581 #endif
10582
10583 #undef shl_load
10584
10585 /* Override any GCC internal prototype to avoid an error.
10586 Use char because int might match the return type of a GCC
10587 builtin and then its argument prototype would still apply. */
10588 #ifdef __cplusplus
10589 extern "C"
10590 #endif
10591 char shl_load ();
10592 /* The GNU C library defines this for functions which it implements
10593 to always fail with ENOSYS. Some functions are actually named
10594 something starting with __ and the normal name is an alias. */
10595 #if defined __stub_shl_load || defined __stub___shl_load
10596 choke me
10597 #endif
10598
10599 int
10600 main ()
10601 {
10602 return shl_load ();
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest$ac_exeext &&
10624 $as_test_x conftest$ac_exeext; then
10625 ac_cv_func_shl_load=yes
10626 else
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 ac_cv_func_shl_load=no
10631 fi
10632
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10635 fi
10636 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10638 if test $ac_cv_func_shl_load = yes; then
10639 lt_cv_dlopen="shl_load"
10640 else
10641 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldld $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char shl_load ();
10662 int
10663 main ()
10664 {
10665 return shl_load ();
10666 ;
10667 return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_link") 2>conftest.er1
10678 ac_status=$?
10679 grep -v '^ *+' conftest.er1 >conftest.err
10680 rm -f conftest.er1
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } && {
10684 test -z "$ac_c_werror_flag" ||
10685 test ! -s conftest.err
10686 } && test -s conftest$ac_exeext &&
10687 $as_test_x conftest$ac_exeext; then
10688 ac_cv_lib_dld_shl_load=yes
10689 else
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 ac_cv_lib_dld_shl_load=no
10694 fi
10695
10696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10699 fi
10700 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10701 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10702 if test $ac_cv_lib_dld_shl_load = yes; then
10703 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10704 else
10705 { echo "$as_me:$LINENO: checking for dlopen" >&5
10706 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10707 if test "${ac_cv_func_dlopen+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h. */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10718 #define dlopen innocuous_dlopen
10719
10720 /* System header to define __stub macros and hopefully few prototypes,
10721 which can conflict with char dlopen (); below.
10722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10723 <limits.h> exists even on freestanding compilers. */
10724
10725 #ifdef __STDC__
10726 # include <limits.h>
10727 #else
10728 # include <assert.h>
10729 #endif
10730
10731 #undef dlopen
10732
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10736 #ifdef __cplusplus
10737 extern "C"
10738 #endif
10739 char dlopen ();
10740 /* The GNU C library defines this for functions which it implements
10741 to always fail with ENOSYS. Some functions are actually named
10742 something starting with __ and the normal name is an alias. */
10743 #if defined __stub_dlopen || defined __stub___dlopen
10744 choke me
10745 #endif
10746
10747 int
10748 main ()
10749 {
10750 return dlopen ();
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10760 esac
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext &&
10772 $as_test_x conftest$ac_exeext; then
10773 ac_cv_func_dlopen=yes
10774 else
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778 ac_cv_func_dlopen=no
10779 fi
10780
10781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10782 conftest$ac_exeext conftest.$ac_ext
10783 fi
10784 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10785 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10786 if test $ac_cv_func_dlopen = yes; then
10787 lt_cv_dlopen="dlopen"
10788 else
10789 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-ldl $LIBS"
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 char dlopen ();
10810 int
10811 main ()
10812 {
10813 return dlopen ();
10814 ;
10815 return 0;
10816 }
10817 _ACEOF
10818 rm -f conftest.$ac_objext conftest$ac_exeext
10819 if { (ac_try="$ac_link"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823 esac
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_link") 2>conftest.er1
10826 ac_status=$?
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest$ac_exeext &&
10835 $as_test_x conftest$ac_exeext; then
10836 ac_cv_lib_dl_dlopen=yes
10837 else
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 ac_cv_lib_dl_dlopen=no
10842 fi
10843
10844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10847 fi
10848 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10850 if test $ac_cv_lib_dl_dlopen = yes; then
10851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10852 else
10853 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10854 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10855 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858 ac_check_lib_save_LIBS=$LIBS
10859 LIBS="-lsvld $LIBS"
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char dlopen ();
10874 int
10875 main ()
10876 {
10877 return dlopen ();
10878 ;
10879 return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_link") 2>conftest.er1
10890 ac_status=$?
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest$ac_exeext &&
10899 $as_test_x conftest$ac_exeext; then
10900 ac_cv_lib_svld_dlopen=yes
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 ac_cv_lib_svld_dlopen=no
10906 fi
10907
10908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10911 fi
10912 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10913 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10914 if test $ac_cv_lib_svld_dlopen = yes; then
10915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10916 else
10917 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10918 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10919 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922 ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-ldld $LIBS"
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char dld_link ();
10938 int
10939 main ()
10940 {
10941 return dld_link ();
10942 ;
10943 return 0;
10944 }
10945 _ACEOF
10946 rm -f conftest.$ac_objext conftest$ac_exeext
10947 if { (ac_try="$ac_link"
10948 case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_link") 2>conftest.er1
10954 ac_status=$?
10955 grep -v '^ *+' conftest.er1 >conftest.err
10956 rm -f conftest.er1
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } && {
10960 test -z "$ac_c_werror_flag" ||
10961 test ! -s conftest.err
10962 } && test -s conftest$ac_exeext &&
10963 $as_test_x conftest$ac_exeext; then
10964 ac_cv_lib_dld_dld_link=yes
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_cv_lib_dld_dld_link=no
10970 fi
10971
10972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10975 fi
10976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10977 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10978 if test $ac_cv_lib_dld_dld_link = yes; then
10979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10980 fi
10981
10982
10983 fi
10984
10985
10986 fi
10987
10988
10989 fi
10990
10991
10992 fi
10993
10994
10995 fi
10996
10997 ;;
10998 esac
10999
11000 if test "x$lt_cv_dlopen" != xno; then
11001 enable_dlopen=yes
11002 else
11003 enable_dlopen=no
11004 fi
11005
11006 case $lt_cv_dlopen in
11007 dlopen)
11008 save_CPPFLAGS="$CPPFLAGS"
11009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11010
11011 save_LDFLAGS="$LDFLAGS"
11012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11013
11014 save_LIBS="$LIBS"
11015 LIBS="$lt_cv_dlopen_libs $LIBS"
11016
11017 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11018 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11019 if test "${lt_cv_dlopen_self+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 if test "$cross_compiling" = yes; then :
11023 lt_cv_dlopen_self=cross
11024 else
11025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11026 lt_status=$lt_dlunknown
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11028 "configure"
11029 #include "confdefs.h"
11030
11031 #if HAVE_DLFCN_H
11032 #include <dlfcn.h>
11033 #endif
11034
11035 #include <stdio.h>
11036
11037 #ifdef RTLD_GLOBAL
11038 # define LT_DLGLOBAL RTLD_GLOBAL
11039 #else
11040 # ifdef DL_GLOBAL
11041 # define LT_DLGLOBAL DL_GLOBAL
11042 # else
11043 # define LT_DLGLOBAL 0
11044 # endif
11045 #endif
11046
11047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11048 find out it does not work in some platform. */
11049 #ifndef LT_DLLAZY_OR_NOW
11050 # ifdef RTLD_LAZY
11051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11052 # else
11053 # ifdef DL_LAZY
11054 # define LT_DLLAZY_OR_NOW DL_LAZY
11055 # else
11056 # ifdef RTLD_NOW
11057 # define LT_DLLAZY_OR_NOW RTLD_NOW
11058 # else
11059 # ifdef DL_NOW
11060 # define LT_DLLAZY_OR_NOW DL_NOW
11061 # else
11062 # define LT_DLLAZY_OR_NOW 0
11063 # endif
11064 # endif
11065 # endif
11066 # endif
11067 #endif
11068
11069 #ifdef __cplusplus
11070 extern "C" void exit (int);
11071 #endif
11072
11073 void fnord() { int i=42;}
11074 int main ()
11075 {
11076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11077 int status = $lt_dlunknown;
11078
11079 if (self)
11080 {
11081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11083 /* dlclose (self); */
11084 }
11085 else
11086 puts (dlerror ());
11087
11088 exit (status);
11089 }
11090 EOF
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11096 (./conftest; exit; ) >&5 2>/dev/null
11097 lt_status=$?
11098 case x$lt_status in
11099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11101 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11102 esac
11103 else :
11104 # compilation failed
11105 lt_cv_dlopen_self=no
11106 fi
11107 fi
11108 rm -fr conftest*
11109
11110
11111 fi
11112 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11113 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11114
11115 if test "x$lt_cv_dlopen_self" = xyes; then
11116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11117 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11118 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11119 if test "${lt_cv_dlopen_self_static+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 if test "$cross_compiling" = yes; then :
11123 lt_cv_dlopen_self_static=cross
11124 else
11125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11126 lt_status=$lt_dlunknown
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11128 "configure"
11129 #include "confdefs.h"
11130
11131 #if HAVE_DLFCN_H
11132 #include <dlfcn.h>
11133 #endif
11134
11135 #include <stdio.h>
11136
11137 #ifdef RTLD_GLOBAL
11138 # define LT_DLGLOBAL RTLD_GLOBAL
11139 #else
11140 # ifdef DL_GLOBAL
11141 # define LT_DLGLOBAL DL_GLOBAL
11142 # else
11143 # define LT_DLGLOBAL 0
11144 # endif
11145 #endif
11146
11147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11148 find out it does not work in some platform. */
11149 #ifndef LT_DLLAZY_OR_NOW
11150 # ifdef RTLD_LAZY
11151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11152 # else
11153 # ifdef DL_LAZY
11154 # define LT_DLLAZY_OR_NOW DL_LAZY
11155 # else
11156 # ifdef RTLD_NOW
11157 # define LT_DLLAZY_OR_NOW RTLD_NOW
11158 # else
11159 # ifdef DL_NOW
11160 # define LT_DLLAZY_OR_NOW DL_NOW
11161 # else
11162 # define LT_DLLAZY_OR_NOW 0
11163 # endif
11164 # endif
11165 # endif
11166 # endif
11167 #endif
11168
11169 #ifdef __cplusplus
11170 extern "C" void exit (int);
11171 #endif
11172
11173 void fnord() { int i=42;}
11174 int main ()
11175 {
11176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11177 int status = $lt_dlunknown;
11178
11179 if (self)
11180 {
11181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11183 /* dlclose (self); */
11184 }
11185 else
11186 puts (dlerror ());
11187
11188 exit (status);
11189 }
11190 EOF
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192 (eval $ac_link) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11196 (./conftest; exit; ) >&5 2>/dev/null
11197 lt_status=$?
11198 case x$lt_status in
11199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11201 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11202 esac
11203 else :
11204 # compilation failed
11205 lt_cv_dlopen_self_static=no
11206 fi
11207 fi
11208 rm -fr conftest*
11209
11210
11211 fi
11212 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11213 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11214 fi
11215
11216 CPPFLAGS="$save_CPPFLAGS"
11217 LDFLAGS="$save_LDFLAGS"
11218 LIBS="$save_LIBS"
11219 ;;
11220 esac
11221
11222 case $lt_cv_dlopen_self in
11223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11224 *) enable_dlopen_self=unknown ;;
11225 esac
11226
11227 case $lt_cv_dlopen_self_static in
11228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11229 *) enable_dlopen_self_static=unknown ;;
11230 esac
11231 fi
11232
11233
11234 # Report which library types will actually be built
11235 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11236 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11237 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11238 echo "${ECHO_T}$can_build_shared" >&6; }
11239
11240 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11241 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11242 test "$can_build_shared" = "no" && enable_shared=no
11243
11244 # On AIX, shared libraries and static libraries use the same namespace, and
11245 # are all built from PIC.
11246 case $host_os in
11247 aix3*)
11248 test "$enable_shared" = yes && enable_static=no
11249 if test -n "$RANLIB"; then
11250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11251 postinstall_cmds='$RANLIB $lib'
11252 fi
11253 ;;
11254
11255 aix4* | aix5*)
11256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11257 test "$enable_shared" = yes && enable_static=no
11258 fi
11259 ;;
11260 esac
11261 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11262 echo "${ECHO_T}$enable_shared" >&6; }
11263
11264 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11265 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11266 # Make sure either enable_shared or enable_static is yes.
11267 test "$enable_shared" = yes || enable_static=yes
11268 { echo "$as_me:$LINENO: result: $enable_static" >&5
11269 echo "${ECHO_T}$enable_static" >&6; }
11270
11271 # The else clause should only fire when bootstrapping the
11272 # libtool distribution, otherwise you forgot to ship ltmain.sh
11273 # with your package, and you will get complaints that there are
11274 # no rules to generate ltmain.sh.
11275 if test -f "$ltmain"; then
11276 # See if we are running on zsh, and set the options which allow our commands through
11277 # without removal of \ escapes.
11278 if test -n "${ZSH_VERSION+set}" ; then
11279 setopt NO_GLOB_SUBST
11280 fi
11281 # Now quote all the things that may contain metacharacters while being
11282 # careful not to overquote the AC_SUBSTed values. We take copies of the
11283 # variables and quote the copies for generation of the libtool script.
11284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11285 SED SHELL STRIP \
11286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11288 deplibs_check_method reload_flag reload_cmds need_locks \
11289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11290 lt_cv_sys_global_symbol_to_c_name_address \
11291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11292 old_postinstall_cmds old_postuninstall_cmds \
11293 compiler \
11294 CC \
11295 LD \
11296 lt_prog_compiler_wl \
11297 lt_prog_compiler_pic \
11298 lt_prog_compiler_static \
11299 lt_prog_compiler_no_builtin_flag \
11300 export_dynamic_flag_spec \
11301 thread_safe_flag_spec \
11302 whole_archive_flag_spec \
11303 enable_shared_with_static_runtimes \
11304 old_archive_cmds \
11305 old_archive_from_new_cmds \
11306 predep_objects \
11307 postdep_objects \
11308 predeps \
11309 postdeps \
11310 compiler_lib_search_path \
11311 archive_cmds \
11312 archive_expsym_cmds \
11313 postinstall_cmds \
11314 postuninstall_cmds \
11315 old_archive_from_expsyms_cmds \
11316 allow_undefined_flag \
11317 no_undefined_flag \
11318 export_symbols_cmds \
11319 hardcode_libdir_flag_spec \
11320 hardcode_libdir_flag_spec_ld \
11321 hardcode_libdir_separator \
11322 hardcode_automatic \
11323 module_cmds \
11324 module_expsym_cmds \
11325 lt_cv_prog_compiler_c_o \
11326 fix_srcfile_path \
11327 exclude_expsyms \
11328 include_expsyms; do
11329
11330 case $var in
11331 old_archive_cmds | \
11332 old_archive_from_new_cmds | \
11333 archive_cmds | \
11334 archive_expsym_cmds | \
11335 module_cmds | \
11336 module_expsym_cmds | \
11337 old_archive_from_expsyms_cmds | \
11338 export_symbols_cmds | \
11339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11340 postinstall_cmds | postuninstall_cmds | \
11341 old_postinstall_cmds | old_postuninstall_cmds | \
11342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11343 # Double-quote double-evaled strings.
11344 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11345 ;;
11346 *)
11347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11348 ;;
11349 esac
11350 done
11351
11352 case $lt_echo in
11353 *'\$0 --fallback-echo"')
11354 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11355 ;;
11356 esac
11357
11358 cfgfile="${ofile}T"
11359 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11360 $rm -f "$cfgfile"
11361 { echo "$as_me:$LINENO: creating $ofile" >&5
11362 echo "$as_me: creating $ofile" >&6;}
11363
11364 cat <<__EOF__ >> "$cfgfile"
11365 #! $SHELL
11366
11367 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11368 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11369 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11370 #
11371 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11372 # Free Software Foundation, Inc.
11373 #
11374 # This file is part of GNU Libtool:
11375 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11376 #
11377 # This program is free software; you can redistribute it and/or modify
11378 # it under the terms of the GNU General Public License as published by
11379 # the Free Software Foundation; either version 2 of the License, or
11380 # (at your option) any later version.
11381 #
11382 # This program is distributed in the hope that it will be useful, but
11383 # WITHOUT ANY WARRANTY; without even the implied warranty of
11384 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11385 # General Public License for more details.
11386 #
11387 # You should have received a copy of the GNU General Public License
11388 # along with this program; if not, write to the Free Software
11389 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11390 #
11391 # As a special exception to the GNU General Public License, if you
11392 # distribute this file as part of a program that contains a
11393 # configuration script generated by Autoconf, you may include it under
11394 # the same distribution terms that you use for the rest of that program.
11395
11396 # A sed program that does not truncate output.
11397 SED=$lt_SED
11398
11399 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11400 Xsed="$SED -e 1s/^X//"
11401
11402 # The HP-UX ksh and POSIX shell print the target directory to stdout
11403 # if CDPATH is set.
11404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11405
11406 # The names of the tagged configurations supported by this script.
11407 available_tags=
11408
11409 # ### BEGIN LIBTOOL CONFIG
11410
11411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11412
11413 # Shell to use when invoking shell scripts.
11414 SHELL=$lt_SHELL
11415
11416 # Whether or not to build shared libraries.
11417 build_libtool_libs=$enable_shared
11418
11419 # Whether or not to build static libraries.
11420 build_old_libs=$enable_static
11421
11422 # Whether or not to add -lc for building shared libraries.
11423 build_libtool_need_lc=$archive_cmds_need_lc
11424
11425 # Whether or not to disallow shared libs when runtime libs are static
11426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11427
11428 # Whether or not to optimize for fast installation.
11429 fast_install=$enable_fast_install
11430
11431 # The host system.
11432 host_alias=$host_alias
11433 host=$host
11434 host_os=$host_os
11435
11436 # The build system.
11437 build_alias=$build_alias
11438 build=$build
11439 build_os=$build_os
11440
11441 # An echo program that does not interpret backslashes.
11442 echo=$lt_echo
11443
11444 # The archiver.
11445 AR=$lt_AR
11446 AR_FLAGS=$lt_AR_FLAGS
11447
11448 # A C compiler.
11449 LTCC=$lt_LTCC
11450
11451 # LTCC compiler flags.
11452 LTCFLAGS=$lt_LTCFLAGS
11453
11454 # A language-specific compiler.
11455 CC=$lt_compiler
11456
11457 # Is the compiler the GNU C compiler?
11458 with_gcc=$GCC
11459
11460 # An ERE matcher.
11461 EGREP=$lt_EGREP
11462
11463 # The linker used to build libraries.
11464 LD=$lt_LD
11465
11466 # Whether we need hard or soft links.
11467 LN_S=$lt_LN_S
11468
11469 # A BSD-compatible nm program.
11470 NM=$lt_NM
11471
11472 # A symbol stripping program
11473 STRIP=$lt_STRIP
11474
11475 # Used to examine libraries when file_magic_cmd begins "file"
11476 MAGIC_CMD=$MAGIC_CMD
11477
11478 # Used on cygwin: DLL creation program.
11479 DLLTOOL="$DLLTOOL"
11480
11481 # Used on cygwin: object dumper.
11482 OBJDUMP="$OBJDUMP"
11483
11484 # Used on cygwin: assembler.
11485 AS="$AS"
11486
11487 # The name of the directory that contains temporary libtool files.
11488 objdir=$objdir
11489
11490 # How to create reloadable object files.
11491 reload_flag=$lt_reload_flag
11492 reload_cmds=$lt_reload_cmds
11493
11494 # How to pass a linker flag through the compiler.
11495 wl=$lt_lt_prog_compiler_wl
11496
11497 # Object file suffix (normally "o").
11498 objext="$ac_objext"
11499
11500 # Old archive suffix (normally "a").
11501 libext="$libext"
11502
11503 # Shared library suffix (normally ".so").
11504 shrext_cmds='$shrext_cmds'
11505
11506 # Executable file suffix (normally "").
11507 exeext="$exeext"
11508
11509 # Additional compiler flags for building library objects.
11510 pic_flag=$lt_lt_prog_compiler_pic
11511 pic_mode=$pic_mode
11512
11513 # What is the maximum length of a command?
11514 max_cmd_len=$lt_cv_sys_max_cmd_len
11515
11516 # Does compiler simultaneously support -c and -o options?
11517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11518
11519 # Must we lock files when doing compilation?
11520 need_locks=$lt_need_locks
11521
11522 # Do we need the lib prefix for modules?
11523 need_lib_prefix=$need_lib_prefix
11524
11525 # Do we need a version for libraries?
11526 need_version=$need_version
11527
11528 # Whether dlopen is supported.
11529 dlopen_support=$enable_dlopen
11530
11531 # Whether dlopen of programs is supported.
11532 dlopen_self=$enable_dlopen_self
11533
11534 # Whether dlopen of statically linked programs is supported.
11535 dlopen_self_static=$enable_dlopen_self_static
11536
11537 # Compiler flag to prevent dynamic linking.
11538 link_static_flag=$lt_lt_prog_compiler_static
11539
11540 # Compiler flag to turn off builtin functions.
11541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11542
11543 # Compiler flag to allow reflexive dlopens.
11544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11545
11546 # Compiler flag to generate shared objects directly from archives.
11547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11548
11549 # Compiler flag to generate thread-safe objects.
11550 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11551
11552 # Library versioning type.
11553 version_type=$version_type
11554
11555 # Format of library name prefix.
11556 libname_spec=$lt_libname_spec
11557
11558 # List of archive names. First name is the real one, the rest are links.
11559 # The last name is the one that the linker finds with -lNAME.
11560 library_names_spec=$lt_library_names_spec
11561
11562 # The coded name of the library, if different from the real name.
11563 soname_spec=$lt_soname_spec
11564
11565 # Commands used to build and install an old-style archive.
11566 RANLIB=$lt_RANLIB
11567 old_archive_cmds=$lt_old_archive_cmds
11568 old_postinstall_cmds=$lt_old_postinstall_cmds
11569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11570
11571 # Create an old-style archive from a shared archive.
11572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11573
11574 # Create a temporary old-style archive to link instead of a shared archive.
11575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11576
11577 # Commands used to build and install a shared archive.
11578 archive_cmds=$lt_archive_cmds
11579 archive_expsym_cmds=$lt_archive_expsym_cmds
11580 postinstall_cmds=$lt_postinstall_cmds
11581 postuninstall_cmds=$lt_postuninstall_cmds
11582
11583 # Commands used to build a loadable module (assumed same as above if empty)
11584 module_cmds=$lt_module_cmds
11585 module_expsym_cmds=$lt_module_expsym_cmds
11586
11587 # Commands to strip libraries.
11588 old_striplib=$lt_old_striplib
11589 striplib=$lt_striplib
11590
11591 # Dependencies to place before the objects being linked to create a
11592 # shared library.
11593 predep_objects=$lt_predep_objects
11594
11595 # Dependencies to place after the objects being linked to create a
11596 # shared library.
11597 postdep_objects=$lt_postdep_objects
11598
11599 # Dependencies to place before the objects being linked to create a
11600 # shared library.
11601 predeps=$lt_predeps
11602
11603 # Dependencies to place after the objects being linked to create a
11604 # shared library.
11605 postdeps=$lt_postdeps
11606
11607 # The library search path used internally by the compiler when linking
11608 # a shared library.
11609 compiler_lib_search_path=$lt_compiler_lib_search_path
11610
11611 # Method to check whether dependent libraries are shared objects.
11612 deplibs_check_method=$lt_deplibs_check_method
11613
11614 # Command to use when deplibs_check_method == file_magic.
11615 file_magic_cmd=$lt_file_magic_cmd
11616
11617 # Flag that allows shared libraries with undefined symbols to be built.
11618 allow_undefined_flag=$lt_allow_undefined_flag
11619
11620 # Flag that forces no undefined symbols.
11621 no_undefined_flag=$lt_no_undefined_flag
11622
11623 # Commands used to finish a libtool library installation in a directory.
11624 finish_cmds=$lt_finish_cmds
11625
11626 # Same as above, but a single script fragment to be evaled but not shown.
11627 finish_eval=$lt_finish_eval
11628
11629 # Take the output of nm and produce a listing of raw symbols and C names.
11630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11631
11632 # Transform the output of nm in a proper C declaration
11633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11634
11635 # Transform the output of nm in a C name address pair
11636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11637
11638 # This is the shared library runtime path variable.
11639 runpath_var=$runpath_var
11640
11641 # This is the shared library path variable.
11642 shlibpath_var=$shlibpath_var
11643
11644 # Is shlibpath searched before the hard-coded library search path?
11645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11646
11647 # How to hardcode a shared library path into an executable.
11648 hardcode_action=$hardcode_action
11649
11650 # Whether we should hardcode library paths into libraries.
11651 hardcode_into_libs=$hardcode_into_libs
11652
11653 # Flag to hardcode \$libdir into a binary during linking.
11654 # This must work even if \$libdir does not exist.
11655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11656
11657 # If ld is used when linking, flag to hardcode \$libdir into
11658 # a binary during linking. This must work even if \$libdir does
11659 # not exist.
11660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11661
11662 # Whether we need a single -rpath flag with a separated argument.
11663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11664
11665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11666 # resulting binary.
11667 hardcode_direct=$hardcode_direct
11668
11669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11670 # resulting binary.
11671 hardcode_minus_L=$hardcode_minus_L
11672
11673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11674 # the resulting binary.
11675 hardcode_shlibpath_var=$hardcode_shlibpath_var
11676
11677 # Set to yes if building a shared library automatically hardcodes DIR into the library
11678 # and all subsequent libraries and executables linked against it.
11679 hardcode_automatic=$hardcode_automatic
11680
11681 # Variables whose values should be saved in libtool wrapper scripts and
11682 # restored at relink time.
11683 variables_saved_for_relink="$variables_saved_for_relink"
11684
11685 # Whether libtool must link a program against all its dependency libraries.
11686 link_all_deplibs=$link_all_deplibs
11687
11688 # Compile-time system search path for libraries
11689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11690
11691 # Run-time system search path for libraries
11692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11693
11694 # Fix the shell variable \$srcfile for the compiler.
11695 fix_srcfile_path=$lt_fix_srcfile_path
11696
11697 # Set to yes if exported symbols are required.
11698 always_export_symbols=$always_export_symbols
11699
11700 # The commands to list exported symbols.
11701 export_symbols_cmds=$lt_export_symbols_cmds
11702
11703 # The commands to extract the exported symbol list from a shared archive.
11704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11705
11706 # Symbols that should not be listed in the preloaded symbols.
11707 exclude_expsyms=$lt_exclude_expsyms
11708
11709 # Symbols that must always be exported.
11710 include_expsyms=$lt_include_expsyms
11711
11712 # ### END LIBTOOL CONFIG
11713
11714 __EOF__
11715
11716
11717 case $host_os in
11718 aix3*)
11719 cat <<\EOF >> "$cfgfile"
11720
11721 # AIX sometimes has problems with the GCC collect2 program. For some
11722 # reason, if we set the COLLECT_NAMES environment variable, the problems
11723 # vanish in a puff of smoke.
11724 if test "X${COLLECT_NAMES+set}" != Xset; then
11725 COLLECT_NAMES=
11726 export COLLECT_NAMES
11727 fi
11728 EOF
11729 ;;
11730 esac
11731
11732 # We use sed instead of cat because bash on DJGPP gets confused if
11733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11734 # text mode, it properly converts lines to CR/LF. This bash problem
11735 # is reportedly fixed, but why not run on old versions too?
11736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11737
11738 mv -f "$cfgfile" "$ofile" || \
11739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11740 chmod +x "$ofile"
11741
11742 else
11743 # If there is no Makefile yet, we rely on a make rule to execute
11744 # `config.status --recheck' to rerun these tests and create the
11745 # libtool script then.
11746 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11747 if test -f "$ltmain_in"; then
11748 test -f Makefile && make "$ltmain"
11749 fi
11750 fi
11751
11752
11753 ac_ext=c
11754 ac_cpp='$CPP $CPPFLAGS'
11755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11758
11759 CC="$lt_save_CC"
11760
11761
11762 # Check whether --with-tags was given.
11763 if test "${with_tags+set}" = set; then
11764 withval=$with_tags; tagnames="$withval"
11765 fi
11766
11767
11768 if test -f "$ltmain" && test -n "$tagnames"; then
11769 if test ! -f "${ofile}"; then
11770 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11771 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11772 fi
11773
11774 if test -z "$LTCC"; then
11775 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11776 if test -z "$LTCC"; then
11777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11778 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11779 else
11780 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11781 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11782 fi
11783 fi
11784 if test -z "$LTCFLAGS"; then
11785 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11786 fi
11787
11788 # Extract list of available tagged configurations in $ofile.
11789 # Note that this assumes the entire list is on one line.
11790 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11791
11792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11793 for tagname in $tagnames; do
11794 IFS="$lt_save_ifs"
11795 # Check whether tagname contains only valid characters
11796 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11797 "") ;;
11798 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11799 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11800 { (exit 1); exit 1; }; }
11801 ;;
11802 esac
11803
11804 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11805 then
11806 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11807 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11808 { (exit 1); exit 1; }; }
11809 fi
11810
11811 # Update the list of available tags.
11812 if test -n "$tagname"; then
11813 echo appending configuration tag \"$tagname\" to $ofile
11814
11815 case $tagname in
11816 CXX)
11817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11819 (test "X$CXX" != "Xg++"))) ; then
11820 ac_ext=cpp
11821 ac_cpp='$CXXCPP $CPPFLAGS'
11822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11825
11826
11827
11828
11829 archive_cmds_need_lc_CXX=no
11830 allow_undefined_flag_CXX=
11831 always_export_symbols_CXX=no
11832 archive_expsym_cmds_CXX=
11833 export_dynamic_flag_spec_CXX=
11834 hardcode_direct_CXX=no
11835 hardcode_libdir_flag_spec_CXX=
11836 hardcode_libdir_flag_spec_ld_CXX=
11837 hardcode_libdir_separator_CXX=
11838 hardcode_minus_L_CXX=no
11839 hardcode_shlibpath_var_CXX=unsupported
11840 hardcode_automatic_CXX=no
11841 module_cmds_CXX=
11842 module_expsym_cmds_CXX=
11843 link_all_deplibs_CXX=unknown
11844 old_archive_cmds_CXX=$old_archive_cmds
11845 no_undefined_flag_CXX=
11846 whole_archive_flag_spec_CXX=
11847 enable_shared_with_static_runtimes_CXX=no
11848
11849 # Dependencies to place before and after the object being linked:
11850 predep_objects_CXX=
11851 postdep_objects_CXX=
11852 predeps_CXX=
11853 postdeps_CXX=
11854 compiler_lib_search_path_CXX=
11855
11856 # Source file extension for C++ test sources.
11857 ac_ext=cpp
11858
11859 # Object file extension for compiled C++ test sources.
11860 objext=o
11861 objext_CXX=$objext
11862
11863 # Code to be used in simple compile tests
11864 lt_simple_compile_test_code="int some_variable = 0;"
11865
11866 # Code to be used in simple link tests
11867 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11868
11869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11870
11871 # If no C compiler was specified, use CC.
11872 LTCC=${LTCC-"$CC"}
11873
11874 # If no C compiler flags were specified, use CFLAGS.
11875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11876
11877 # Allow CC to be a program name with arguments.
11878 compiler=$CC
11879
11880
11881 # save warnings/boilerplate of simple test code
11882 ac_outfile=conftest.$ac_objext
11883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11885 _lt_compiler_boilerplate=`cat conftest.err`
11886 $rm conftest*
11887
11888 ac_outfile=conftest.$ac_objext
11889 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11891 _lt_linker_boilerplate=`cat conftest.err`
11892 $rm conftest*
11893
11894
11895 # Allow CC to be a program name with arguments.
11896 lt_save_CC=$CC
11897 lt_save_LD=$LD
11898 lt_save_GCC=$GCC
11899 GCC=$GXX
11900 lt_save_with_gnu_ld=$with_gnu_ld
11901 lt_save_path_LD=$lt_cv_path_LD
11902 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11903 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11904 else
11905 $as_unset lt_cv_prog_gnu_ld
11906 fi
11907 if test -n "${lt_cv_path_LDCXX+set}"; then
11908 lt_cv_path_LD=$lt_cv_path_LDCXX
11909 else
11910 $as_unset lt_cv_path_LD
11911 fi
11912 test -z "${LDCXX+set}" || LD=$LDCXX
11913 CC=${CXX-"c++"}
11914 compiler=$CC
11915 compiler_CXX=$CC
11916 for cc_temp in $compiler""; do
11917 case $cc_temp in
11918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11920 \-*) ;;
11921 *) break;;
11922 esac
11923 done
11924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11925
11926
11927 # We don't want -fno-exception wen compiling C++ code, so set the
11928 # no_builtin_flag separately
11929 if test "$GXX" = yes; then
11930 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11931 else
11932 lt_prog_compiler_no_builtin_flag_CXX=
11933 fi
11934
11935 if test "$GXX" = yes; then
11936 # Set up default GNU C++ configuration
11937
11938
11939 # Check whether --with-gnu-ld was given.
11940 if test "${with_gnu_ld+set}" = set; then
11941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11942 else
11943 with_gnu_ld=no
11944 fi
11945
11946 ac_prog=ld
11947 if test "$GCC" = yes; then
11948 # Check if gcc -print-prog-name=ld gives a path.
11949 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11950 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11951 case $host in
11952 *-*-mingw*)
11953 # gcc leaves a trailing carriage return which upsets mingw
11954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11955 *)
11956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11957 esac
11958 case $ac_prog in
11959 # Accept absolute paths.
11960 [\\/]* | ?:[\\/]*)
11961 re_direlt='/[^/][^/]*/\.\./'
11962 # Canonicalize the pathname of ld
11963 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11964 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11965 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11966 done
11967 test -z "$LD" && LD="$ac_prog"
11968 ;;
11969 "")
11970 # If it fails, then pretend we aren't using GCC.
11971 ac_prog=ld
11972 ;;
11973 *)
11974 # If it is relative, then search for the first ld in PATH.
11975 with_gnu_ld=unknown
11976 ;;
11977 esac
11978 elif test "$with_gnu_ld" = yes; then
11979 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11980 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11981 else
11982 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11983 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11984 fi
11985 if test "${lt_cv_path_LD+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988 if test -z "$LD"; then
11989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11990 for ac_dir in $PATH; do
11991 IFS="$lt_save_ifs"
11992 test -z "$ac_dir" && ac_dir=.
11993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11994 lt_cv_path_LD="$ac_dir/$ac_prog"
11995 # Check to see if the program is GNU ld. I'd rather use --version,
11996 # but apparently some variants of GNU ld only accept -v.
11997 # Break only if it was the GNU/non-GNU ld that we prefer.
11998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11999 *GNU* | *'with BFD'*)
12000 test "$with_gnu_ld" != no && break
12001 ;;
12002 *)
12003 test "$with_gnu_ld" != yes && break
12004 ;;
12005 esac
12006 fi
12007 done
12008 IFS="$lt_save_ifs"
12009 else
12010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12011 fi
12012 fi
12013
12014 LD="$lt_cv_path_LD"
12015 if test -n "$LD"; then
12016 { echo "$as_me:$LINENO: result: $LD" >&5
12017 echo "${ECHO_T}$LD" >&6; }
12018 else
12019 { echo "$as_me:$LINENO: result: no" >&5
12020 echo "${ECHO_T}no" >&6; }
12021 fi
12022 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12023 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12024 { (exit 1); exit 1; }; }
12025 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12026 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12027 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12031 case `$LD -v 2>&1 </dev/null` in
12032 *GNU* | *'with BFD'*)
12033 lt_cv_prog_gnu_ld=yes
12034 ;;
12035 *)
12036 lt_cv_prog_gnu_ld=no
12037 ;;
12038 esac
12039 fi
12040 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12041 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12042 with_gnu_ld=$lt_cv_prog_gnu_ld
12043
12044
12045
12046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12047 # archiving commands below assume that GNU ld is being used.
12048 if test "$with_gnu_ld" = yes; then
12049 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050 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'
12051
12052 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12054
12055 # If archive_cmds runs LD, not CC, wlarc should be empty
12056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12057 # investigate it a little bit more. (MM)
12058 wlarc='${wl}'
12059
12060 # ancient GNU ld didn't support --whole-archive et. al.
12061 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12062 grep 'no-whole-archive' > /dev/null; then
12063 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12064 else
12065 whole_archive_flag_spec_CXX=
12066 fi
12067 else
12068 with_gnu_ld=no
12069 wlarc=
12070
12071 # A generic and very simple default shared library creation
12072 # command for GNU C++ for the case where it uses the native
12073 # linker, instead of GNU ld. If possible, this setting should
12074 # overridden to take advantage of the native linker features on
12075 # the platform it is being used on.
12076 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12077 fi
12078
12079 # Commands to make compiler produce verbose output that lists
12080 # what "hidden" libraries, object files and flags are used when
12081 # linking a shared library.
12082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12083
12084 else
12085 GXX=no
12086 with_gnu_ld=no
12087 wlarc=
12088 fi
12089
12090 # PORTME: fill in a description of your system's C++ link characteristics
12091 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12092 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12093 ld_shlibs_CXX=yes
12094 case $host_os in
12095 aix3*)
12096 # FIXME: insert proper C++ library support
12097 ld_shlibs_CXX=no
12098 ;;
12099 aix4* | aix5*)
12100 if test "$host_cpu" = ia64; then
12101 # On IA64, the linker does run time linking by default, so we don't
12102 # have to do anything special.
12103 aix_use_runtimelinking=no
12104 exp_sym_flag='-Bexport'
12105 no_entry_flag=""
12106 else
12107 aix_use_runtimelinking=no
12108
12109 # Test if we are trying to use run time linking or normal
12110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12111 # need to do runtime linking.
12112 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12113 for ld_flag in $LDFLAGS; do
12114 case $ld_flag in
12115 *-brtl*)
12116 aix_use_runtimelinking=yes
12117 break
12118 ;;
12119 esac
12120 done
12121 ;;
12122 esac
12123
12124 exp_sym_flag='-bexport'
12125 no_entry_flag='-bnoentry'
12126 fi
12127
12128 # When large executables or shared objects are built, AIX ld can
12129 # have problems creating the table of contents. If linking a library
12130 # or program results in "error TOC overflow" add -mminimal-toc to
12131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12133
12134 archive_cmds_CXX=''
12135 hardcode_direct_CXX=yes
12136 hardcode_libdir_separator_CXX=':'
12137 link_all_deplibs_CXX=yes
12138
12139 if test "$GXX" = yes; then
12140 case $host_os in aix4.[012]|aix4.[012].*)
12141 # We only want to do this on AIX 4.2 and lower, the check
12142 # below for broken collect2 doesn't work under 4.3+
12143 collect2name=`${CC} -print-prog-name=collect2`
12144 if test -f "$collect2name" && \
12145 strings "$collect2name" | grep resolve_lib_name >/dev/null
12146 then
12147 # We have reworked collect2
12148 :
12149 else
12150 # We have old collect2
12151 hardcode_direct_CXX=unsupported
12152 # It fails to find uninstalled libraries when the uninstalled
12153 # path is not listed in the libpath. Setting hardcode_minus_L
12154 # to unsupported forces relinking
12155 hardcode_minus_L_CXX=yes
12156 hardcode_libdir_flag_spec_CXX='-L$libdir'
12157 hardcode_libdir_separator_CXX=
12158 fi
12159 ;;
12160 esac
12161 shared_flag='-shared'
12162 if test "$aix_use_runtimelinking" = yes; then
12163 shared_flag="$shared_flag "'${wl}-G'
12164 fi
12165 else
12166 # not using gcc
12167 if test "$host_cpu" = ia64; then
12168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12169 # chokes on -Wl,-G. The following line is correct:
12170 shared_flag='-G'
12171 else
12172 if test "$aix_use_runtimelinking" = yes; then
12173 shared_flag='${wl}-G'
12174 else
12175 shared_flag='${wl}-bM:SRE'
12176 fi
12177 fi
12178 fi
12179
12180 # It seems that -bexpall does not export symbols beginning with
12181 # underscore (_), so it is better to generate a list of symbols to export.
12182 always_export_symbols_CXX=yes
12183 if test "$aix_use_runtimelinking" = yes; then
12184 # Warning - without using the other runtime loading flags (-brtl),
12185 # -berok will link without error, but may produce a broken library.
12186 allow_undefined_flag_CXX='-berok'
12187 # Determine the default libpath from the value encoded in an empty executable.
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h. */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194
12195 int
12196 main ()
12197 {
12198
12199 ;
12200 return 0;
12201 }
12202 _ACEOF
12203 rm -f conftest.$ac_objext conftest$ac_exeext
12204 if { (ac_try="$ac_link"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_link") 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_cxx_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest$ac_exeext &&
12220 $as_test_x conftest$ac_exeext; then
12221
12222 lt_aix_libpath_sed='
12223 /Import File Strings/,/^$/ {
12224 /^0/ {
12225 s/^0 *\(.*\)$/\1/
12226 p
12227 }
12228 }'
12229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12230 # Check for a 64-bit object if we didn't find anything.
12231 if test -z "$aix_libpath"; then
12232 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12233 fi
12234 else
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12237
12238
12239 fi
12240
12241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12242 conftest$ac_exeext conftest.$ac_ext
12243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12244
12245 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12246
12247 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"
12248 else
12249 if test "$host_cpu" = ia64; then
12250 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12251 allow_undefined_flag_CXX="-z nodefs"
12252 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"
12253 else
12254 # Determine the default libpath from the value encoded in an empty executable.
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261
12262 int
12263 main ()
12264 {
12265
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_link") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_cxx_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest$ac_exeext &&
12287 $as_test_x conftest$ac_exeext; then
12288
12289 lt_aix_libpath_sed='
12290 /Import File Strings/,/^$/ {
12291 /^0/ {
12292 s/^0 *\(.*\)$/\1/
12293 p
12294 }
12295 }'
12296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12297 # Check for a 64-bit object if we didn't find anything.
12298 if test -z "$aix_libpath"; then
12299 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12300 fi
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305
12306 fi
12307
12308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12309 conftest$ac_exeext conftest.$ac_ext
12310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12311
12312 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12313 # Warning - without using the other run time loading flags,
12314 # -berok will link without error, but may produce a broken library.
12315 no_undefined_flag_CXX=' ${wl}-bernotok'
12316 allow_undefined_flag_CXX=' ${wl}-berok'
12317 # Exported symbols can be pulled into shared objects from archives
12318 whole_archive_flag_spec_CXX='$convenience'
12319 archive_cmds_need_lc_CXX=yes
12320 # This is similar to how AIX traditionally builds its shared libraries.
12321 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'
12322 fi
12323 fi
12324 ;;
12325
12326 beos*)
12327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12328 allow_undefined_flag_CXX=unsupported
12329 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12330 # support --undefined. This deserves some investigation. FIXME
12331 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12332 else
12333 ld_shlibs_CXX=no
12334 fi
12335 ;;
12336
12337 chorus*)
12338 case $cc_basename in
12339 *)
12340 # FIXME: insert proper C++ library support
12341 ld_shlibs_CXX=no
12342 ;;
12343 esac
12344 ;;
12345
12346 cygwin* | mingw* | pw32*)
12347 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12348 # as there is no search path for DLLs.
12349 hardcode_libdir_flag_spec_CXX='-L$libdir'
12350 allow_undefined_flag_CXX=unsupported
12351 always_export_symbols_CXX=no
12352 enable_shared_with_static_runtimes_CXX=yes
12353
12354 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12355 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'
12356 # If the export-symbols file already is a .def file (1st line
12357 # is EXPORTS), use it as is; otherwise, prepend...
12358 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12359 cp $export_symbols $output_objdir/$soname.def;
12360 else
12361 echo EXPORTS > $output_objdir/$soname.def;
12362 cat $export_symbols >> $output_objdir/$soname.def;
12363 fi~
12364 $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'
12365 else
12366 ld_shlibs_CXX=no
12367 fi
12368 ;;
12369 darwin* | rhapsody*)
12370 case $host_os in
12371 rhapsody* | darwin1.[012])
12372 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12373 ;;
12374 *) # Darwin 1.3 on
12375 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12376 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12377 else
12378 case ${MACOSX_DEPLOYMENT_TARGET} in
12379 10.[012])
12380 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12381 ;;
12382 10.*)
12383 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12384 ;;
12385 esac
12386 fi
12387 ;;
12388 esac
12389 archive_cmds_need_lc_CXX=no
12390 hardcode_direct_CXX=no
12391 hardcode_automatic_CXX=yes
12392 hardcode_shlibpath_var_CXX=unsupported
12393 whole_archive_flag_spec_CXX=''
12394 link_all_deplibs_CXX=yes
12395
12396 if test "$GXX" = yes ; then
12397 lt_int_apple_cc_single_mod=no
12398 output_verbose_link_cmd='echo'
12399 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12400 lt_int_apple_cc_single_mod=yes
12401 fi
12402 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12403 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12404 else
12405 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'
12406 fi
12407 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12408 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12409 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12410 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}'
12411 else
12412 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}'
12413 fi
12414 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}'
12415 else
12416 case $cc_basename in
12417 xlc*)
12418 output_verbose_link_cmd='echo'
12419 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'
12420 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12421 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12422 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}'
12423 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}'
12424 ;;
12425 *)
12426 ld_shlibs_CXX=no
12427 ;;
12428 esac
12429 fi
12430 ;;
12431
12432 dgux*)
12433 case $cc_basename in
12434 ec++*)
12435 # FIXME: insert proper C++ library support
12436 ld_shlibs_CXX=no
12437 ;;
12438 ghcx*)
12439 # Green Hills C++ Compiler
12440 # FIXME: insert proper C++ library support
12441 ld_shlibs_CXX=no
12442 ;;
12443 *)
12444 # FIXME: insert proper C++ library support
12445 ld_shlibs_CXX=no
12446 ;;
12447 esac
12448 ;;
12449 freebsd[12]*)
12450 # C++ shared libraries reported to be fairly broken before switch to ELF
12451 ld_shlibs_CXX=no
12452 ;;
12453 freebsd-elf*)
12454 archive_cmds_need_lc_CXX=no
12455 ;;
12456 freebsd* | dragonfly*)
12457 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12458 # conventions
12459 ld_shlibs_CXX=yes
12460 ;;
12461 gnu*)
12462 ;;
12463 hpux9*)
12464 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12465 hardcode_libdir_separator_CXX=:
12466 export_dynamic_flag_spec_CXX='${wl}-E'
12467 hardcode_direct_CXX=yes
12468 hardcode_minus_L_CXX=yes # Not in the search PATH,
12469 # but as the default
12470 # location of the library.
12471
12472 case $cc_basename in
12473 CC*)
12474 # FIXME: insert proper C++ library support
12475 ld_shlibs_CXX=no
12476 ;;
12477 aCC*)
12478 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'
12479 # Commands to make compiler produce verbose output that lists
12480 # what "hidden" libraries, object files and flags are used when
12481 # linking a shared library.
12482 #
12483 # There doesn't appear to be a way to prevent this compiler from
12484 # explicitly linking system object files so we need to strip them
12485 # from the output so that they don't get included in the library
12486 # dependencies.
12487 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'
12488 ;;
12489 *)
12490 if test "$GXX" = yes; then
12491 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'
12492 else
12493 # FIXME: insert proper C++ library support
12494 ld_shlibs_CXX=no
12495 fi
12496 ;;
12497 esac
12498 ;;
12499 hpux10*|hpux11*)
12500 if test $with_gnu_ld = no; then
12501 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12502 hardcode_libdir_separator_CXX=:
12503
12504 case $host_cpu in
12505 hppa*64*|ia64*) ;;
12506 *)
12507 export_dynamic_flag_spec_CXX='${wl}-E'
12508 ;;
12509 esac
12510 fi
12511 case $host_cpu in
12512 hppa*64*|ia64*)
12513 hardcode_direct_CXX=no
12514 hardcode_shlibpath_var_CXX=no
12515 ;;
12516 *)
12517 hardcode_direct_CXX=yes
12518 hardcode_minus_L_CXX=yes # Not in the search PATH,
12519 # but as the default
12520 # location of the library.
12521 ;;
12522 esac
12523
12524 case $cc_basename in
12525 CC*)
12526 # FIXME: insert proper C++ library support
12527 ld_shlibs_CXX=no
12528 ;;
12529 aCC*)
12530 case $host_cpu in
12531 hppa*64*)
12532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12533 ;;
12534 ia64*)
12535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536 ;;
12537 *)
12538 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12539 ;;
12540 esac
12541 # Commands to make compiler produce verbose output that lists
12542 # what "hidden" libraries, object files and flags are used when
12543 # linking a shared library.
12544 #
12545 # There doesn't appear to be a way to prevent this compiler from
12546 # explicitly linking system object files so we need to strip them
12547 # from the output so that they don't get included in the library
12548 # dependencies.
12549 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'
12550 ;;
12551 *)
12552 if test "$GXX" = yes; then
12553 if test $with_gnu_ld = no; then
12554 case $host_cpu in
12555 hppa*64*)
12556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12557 ;;
12558 ia64*)
12559 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12560 ;;
12561 *)
12562 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'
12563 ;;
12564 esac
12565 fi
12566 else
12567 # FIXME: insert proper C++ library support
12568 ld_shlibs_CXX=no
12569 fi
12570 ;;
12571 esac
12572 ;;
12573 interix[3-9]*)
12574 hardcode_direct_CXX=no
12575 hardcode_shlibpath_var_CXX=no
12576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12577 export_dynamic_flag_spec_CXX='${wl}-E'
12578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12579 # Instead, shared libraries are loaded at an image base (0x10000000 by
12580 # default) and relocated if they conflict, which is a slow very memory
12581 # consuming and fragmenting process. To avoid this, we pick a random,
12582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12583 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12584 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'
12585 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'
12586 ;;
12587 irix5* | irix6*)
12588 case $cc_basename in
12589 CC*)
12590 # SGI C++
12591 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'
12592
12593 # Archives containing C++ object files must be created using
12594 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12595 # necessary to make sure instantiated templates are included
12596 # in the archive.
12597 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12598 ;;
12599 *)
12600 if test "$GXX" = yes; then
12601 if test "$with_gnu_ld" = no; then
12602 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'
12603 else
12604 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'
12605 fi
12606 fi
12607 link_all_deplibs_CXX=yes
12608 ;;
12609 esac
12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12611 hardcode_libdir_separator_CXX=:
12612 ;;
12613 linux* | k*bsd*-gnu)
12614 case $cc_basename in
12615 KCC*)
12616 # Kuck and Associates, Inc. (KAI) C++ Compiler
12617
12618 # KCC will only create a shared library if the output file
12619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12620 # to its proper name (with version) after linking.
12621 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'
12622 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'
12623 # Commands to make compiler produce verbose output that lists
12624 # what "hidden" libraries, object files and flags are used when
12625 # linking a shared library.
12626 #
12627 # There doesn't appear to be a way to prevent this compiler from
12628 # explicitly linking system object files so we need to strip them
12629 # from the output so that they don't get included in the library
12630 # dependencies.
12631 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'
12632
12633 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12635
12636 # Archives containing C++ object files must be created using
12637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12638 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12639 ;;
12640 icpc*)
12641 # Intel C++
12642 with_gnu_ld=yes
12643 # version 8.0 and above of icpc choke on multiply defined symbols
12644 # if we add $predep_objects and $postdep_objects, however 7.1 and
12645 # earlier do not add the objects themselves.
12646 case `$CC -V 2>&1` in
12647 *"Version 7."*)
12648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 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'
12650 ;;
12651 *) # Version 8.0 or newer
12652 tmp_idyn=
12653 case $host_cpu in
12654 ia64*) tmp_idyn=' -i_dynamic';;
12655 esac
12656 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657 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'
12658 ;;
12659 esac
12660 archive_cmds_need_lc_CXX=no
12661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12662 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12663 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12664 ;;
12665 pgCC*)
12666 # Portland Group C++ compiler
12667 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12668 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'
12669
12670 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12671 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12672 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'
12673 ;;
12674 cxx*)
12675 # Compaq C++
12676 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 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'
12678
12679 runpath_var=LD_RUN_PATH
12680 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12681 hardcode_libdir_separator_CXX=:
12682
12683 # Commands to make compiler produce verbose output that lists
12684 # what "hidden" libraries, object files and flags are used when
12685 # linking a shared library.
12686 #
12687 # There doesn't appear to be a way to prevent this compiler from
12688 # explicitly linking system object files so we need to strip them
12689 # from the output so that they don't get included in the library
12690 # dependencies.
12691 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'
12692 ;;
12693 *)
12694 case `$CC -V 2>&1 | sed 5q` in
12695 *Sun\ C*)
12696 # Sun C++ 5.9
12697 no_undefined_flag_CXX=' -zdefs'
12698 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12699 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'
12700 hardcode_libdir_flag_spec_CXX='-R$libdir'
12701 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'
12702
12703 # Not sure whether something based on
12704 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12705 # would be better.
12706 output_verbose_link_cmd='echo'
12707
12708 # Archives containing C++ object files must be created using
12709 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12710 # necessary to make sure instantiated templates are included
12711 # in the archive.
12712 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12713 ;;
12714 esac
12715 ;;
12716 esac
12717 ;;
12718 lynxos*)
12719 # FIXME: insert proper C++ library support
12720 ld_shlibs_CXX=no
12721 ;;
12722 m88k*)
12723 # FIXME: insert proper C++ library support
12724 ld_shlibs_CXX=no
12725 ;;
12726 mvs*)
12727 case $cc_basename in
12728 cxx*)
12729 # FIXME: insert proper C++ library support
12730 ld_shlibs_CXX=no
12731 ;;
12732 *)
12733 # FIXME: insert proper C++ library support
12734 ld_shlibs_CXX=no
12735 ;;
12736 esac
12737 ;;
12738 netbsd*)
12739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12740 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12741 wlarc=
12742 hardcode_libdir_flag_spec_CXX='-R$libdir'
12743 hardcode_direct_CXX=yes
12744 hardcode_shlibpath_var_CXX=no
12745 fi
12746 # Workaround some broken pre-1.5 toolchains
12747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12748 ;;
12749 openbsd2*)
12750 # C++ shared libraries are fairly broken
12751 ld_shlibs_CXX=no
12752 ;;
12753 openbsd*)
12754 if test -f /usr/libexec/ld.so; then
12755 hardcode_direct_CXX=yes
12756 hardcode_shlibpath_var_CXX=no
12757 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12759 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12760 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12761 export_dynamic_flag_spec_CXX='${wl}-E'
12762 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12763 fi
12764 output_verbose_link_cmd='echo'
12765 else
12766 ld_shlibs_CXX=no
12767 fi
12768 ;;
12769 osf3*)
12770 case $cc_basename in
12771 KCC*)
12772 # Kuck and Associates, Inc. (KAI) C++ Compiler
12773
12774 # KCC will only create a shared library if the output file
12775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12776 # to its proper name (with version) after linking.
12777 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'
12778
12779 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12780 hardcode_libdir_separator_CXX=:
12781
12782 # Archives containing C++ object files must be created using
12783 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12784 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12785
12786 ;;
12787 RCC*)
12788 # Rational C++ 2.4.1
12789 # FIXME: insert proper C++ library support
12790 ld_shlibs_CXX=no
12791 ;;
12792 cxx*)
12793 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12794 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'
12795
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12797 hardcode_libdir_separator_CXX=:
12798
12799 # Commands to make compiler produce verbose output that lists
12800 # what "hidden" libraries, object files and flags are used when
12801 # linking a shared library.
12802 #
12803 # There doesn't appear to be a way to prevent this compiler from
12804 # explicitly linking system object files so we need to strip them
12805 # from the output so that they don't get included in the library
12806 # dependencies.
12807 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'
12808 ;;
12809 *)
12810 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12812 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'
12813
12814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12815 hardcode_libdir_separator_CXX=:
12816
12817 # Commands to make compiler produce verbose output that lists
12818 # what "hidden" libraries, object files and flags are used when
12819 # linking a shared library.
12820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12821
12822 else
12823 # FIXME: insert proper C++ library support
12824 ld_shlibs_CXX=no
12825 fi
12826 ;;
12827 esac
12828 ;;
12829 osf4* | osf5*)
12830 case $cc_basename in
12831 KCC*)
12832 # Kuck and Associates, Inc. (KAI) C++ Compiler
12833
12834 # KCC will only create a shared library if the output file
12835 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12836 # to its proper name (with version) after linking.
12837 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'
12838
12839 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12840 hardcode_libdir_separator_CXX=:
12841
12842 # Archives containing C++ object files must be created using
12843 # the KAI C++ compiler.
12844 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12845 ;;
12846 RCC*)
12847 # Rational C++ 2.4.1
12848 # FIXME: insert proper C++ library support
12849 ld_shlibs_CXX=no
12850 ;;
12851 cxx*)
12852 allow_undefined_flag_CXX=' -expect_unresolved \*'
12853 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'
12854 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12855 echo "-hidden">> $lib.exp~
12856 $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~
12857 $rm $lib.exp'
12858
12859 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12860 hardcode_libdir_separator_CXX=:
12861
12862 # Commands to make compiler produce verbose output that lists
12863 # what "hidden" libraries, object files and flags are used when
12864 # linking a shared library.
12865 #
12866 # There doesn't appear to be a way to prevent this compiler from
12867 # explicitly linking system object files so we need to strip them
12868 # from the output so that they don't get included in the library
12869 # dependencies.
12870 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'
12871 ;;
12872 *)
12873 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12874 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12875 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'
12876
12877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878 hardcode_libdir_separator_CXX=:
12879
12880 # Commands to make compiler produce verbose output that lists
12881 # what "hidden" libraries, object files and flags are used when
12882 # linking a shared library.
12883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12884
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 fi
12889 ;;
12890 esac
12891 ;;
12892 psos*)
12893 # FIXME: insert proper C++ library support
12894 ld_shlibs_CXX=no
12895 ;;
12896 sunos4*)
12897 case $cc_basename in
12898 CC*)
12899 # Sun C++ 4.x
12900 # FIXME: insert proper C++ library support
12901 ld_shlibs_CXX=no
12902 ;;
12903 lcc*)
12904 # Lucid
12905 # FIXME: insert proper C++ library support
12906 ld_shlibs_CXX=no
12907 ;;
12908 *)
12909 # FIXME: insert proper C++ library support
12910 ld_shlibs_CXX=no
12911 ;;
12912 esac
12913 ;;
12914 solaris*)
12915 case $cc_basename in
12916 CC*)
12917 # Sun C++ 4.2, 5.x and Centerline C++
12918 archive_cmds_need_lc_CXX=yes
12919 no_undefined_flag_CXX=' -zdefs'
12920 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12921 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12922 $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'
12923
12924 hardcode_libdir_flag_spec_CXX='-R$libdir'
12925 hardcode_shlibpath_var_CXX=no
12926 case $host_os in
12927 solaris2.[0-5] | solaris2.[0-5].*) ;;
12928 *)
12929 # The compiler driver will combine and reorder linker options,
12930 # but understands `-z linker_flag'.
12931 # Supported since Solaris 2.6 (maybe 2.5.1?)
12932 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12933 ;;
12934 esac
12935 link_all_deplibs_CXX=yes
12936
12937 output_verbose_link_cmd='echo'
12938
12939 # Archives containing C++ object files must be created using
12940 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12941 # necessary to make sure instantiated templates are included
12942 # in the archive.
12943 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12944 ;;
12945 gcx*)
12946 # Green Hills C++ Compiler
12947 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12948
12949 # The C++ compiler must be used to create the archive.
12950 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12951 ;;
12952 *)
12953 # GNU C++ compiler with Solaris linker
12954 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12955 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12956 if $CC --version | grep -v '^2\.7' > /dev/null; then
12957 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12958 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12959 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12960
12961 # Commands to make compiler produce verbose output that lists
12962 # what "hidden" libraries, object files and flags are used when
12963 # linking a shared library.
12964 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12965 else
12966 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12967 # platform.
12968 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12969 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12970 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12971
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
12975 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12976 fi
12977
12978 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12979 case $host_os in
12980 solaris2.[0-5] | solaris2.[0-5].*) ;;
12981 *)
12982 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12983 ;;
12984 esac
12985 fi
12986 ;;
12987 esac
12988 ;;
12989 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12990 no_undefined_flag_CXX='${wl}-z,text'
12991 archive_cmds_need_lc_CXX=no
12992 hardcode_shlibpath_var_CXX=no
12993 runpath_var='LD_RUN_PATH'
12994
12995 case $cc_basename in
12996 CC*)
12997 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12998 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12999 ;;
13000 *)
13001 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13002 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13003 ;;
13004 esac
13005 ;;
13006 sysv5* | sco3.2v5* | sco5v6*)
13007 # Note: We can NOT use -z defs as we might desire, because we do not
13008 # link with -lc, and that would cause any symbols used from libc to
13009 # always be unresolved, which means just about no library would
13010 # ever link correctly. If we're not using GNU ld we use -z text
13011 # though, which does catch some bad symbols but isn't as heavy-handed
13012 # as -z defs.
13013 # For security reasons, it is highly recommended that you always
13014 # use absolute paths for naming shared libraries, and exclude the
13015 # DT_RUNPATH tag from executables and libraries. But doing so
13016 # requires that you compile everything twice, which is a pain.
13017 # So that behaviour is only enabled if SCOABSPATH is set to a
13018 # non-empty value in the environment. Most likely only useful for
13019 # creating official distributions of packages.
13020 # This is a hack until libtool officially supports absolute path
13021 # names for shared libraries.
13022 no_undefined_flag_CXX='${wl}-z,text'
13023 allow_undefined_flag_CXX='${wl}-z,nodefs'
13024 archive_cmds_need_lc_CXX=no
13025 hardcode_shlibpath_var_CXX=no
13026 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13027 hardcode_libdir_separator_CXX=':'
13028 link_all_deplibs_CXX=yes
13029 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13030 runpath_var='LD_RUN_PATH'
13031
13032 case $cc_basename in
13033 CC*)
13034 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13035 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13036 ;;
13037 *)
13038 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13039 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13040 ;;
13041 esac
13042 ;;
13043 tandem*)
13044 case $cc_basename in
13045 NCC*)
13046 # NonStop-UX NCC 3.20
13047 # FIXME: insert proper C++ library support
13048 ld_shlibs_CXX=no
13049 ;;
13050 *)
13051 # FIXME: insert proper C++ library support
13052 ld_shlibs_CXX=no
13053 ;;
13054 esac
13055 ;;
13056 vxworks*)
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13059 ;;
13060 *)
13061 # FIXME: insert proper C++ library support
13062 ld_shlibs_CXX=no
13063 ;;
13064 esac
13065 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13066 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13067 test "$ld_shlibs_CXX" = no && can_build_shared=no
13068
13069 GCC_CXX="$GXX"
13070 LD_CXX="$LD"
13071
13072
13073 cat > conftest.$ac_ext <<EOF
13074 class Foo
13075 {
13076 public:
13077 Foo (void) { a = 0; }
13078 private:
13079 int a;
13080 };
13081 EOF
13082
13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; then
13088 # Parse the compiler output and extract the necessary
13089 # objects, libraries and library flags.
13090
13091 # Sentinel used to keep track of whether or not we are before
13092 # the conftest object file.
13093 pre_test_object_deps_done=no
13094
13095 # The `*' in the case matches for architectures that use `case' in
13096 # $output_verbose_cmd can trigger glob expansion during the loop
13097 # eval without this substitution.
13098 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13099
13100 for p in `eval $output_verbose_link_cmd`; do
13101 case $p in
13102
13103 -L* | -R* | -l*)
13104 # Some compilers place space between "-{L,R}" and the path.
13105 # Remove the space.
13106 if test $p = "-L" \
13107 || test $p = "-R"; then
13108 prev=$p
13109 continue
13110 else
13111 prev=
13112 fi
13113
13114 if test "$pre_test_object_deps_done" = no; then
13115 case $p in
13116 -L* | -R*)
13117 # Internal compiler library paths should come after those
13118 # provided the user. The postdeps already come after the
13119 # user supplied libs so there is no need to process them.
13120 if test -z "$compiler_lib_search_path_CXX"; then
13121 compiler_lib_search_path_CXX="${prev}${p}"
13122 else
13123 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13124 fi
13125 ;;
13126 # The "-l" case would never come before the object being
13127 # linked, so don't bother handling this case.
13128 esac
13129 else
13130 if test -z "$postdeps_CXX"; then
13131 postdeps_CXX="${prev}${p}"
13132 else
13133 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13134 fi
13135 fi
13136 ;;
13137
13138 *.$objext)
13139 # This assumes that the test object file only shows up
13140 # once in the compiler output.
13141 if test "$p" = "conftest.$objext"; then
13142 pre_test_object_deps_done=yes
13143 continue
13144 fi
13145
13146 if test "$pre_test_object_deps_done" = no; then
13147 if test -z "$predep_objects_CXX"; then
13148 predep_objects_CXX="$p"
13149 else
13150 predep_objects_CXX="$predep_objects_CXX $p"
13151 fi
13152 else
13153 if test -z "$postdep_objects_CXX"; then
13154 postdep_objects_CXX="$p"
13155 else
13156 postdep_objects_CXX="$postdep_objects_CXX $p"
13157 fi
13158 fi
13159 ;;
13160
13161 *) ;; # Ignore the rest.
13162
13163 esac
13164 done
13165
13166 # Clean up.
13167 rm -f a.out a.exe
13168 else
13169 echo "libtool.m4: error: problem compiling CXX test program"
13170 fi
13171
13172 $rm -f confest.$objext
13173
13174 # PORTME: override above test on systems where it is broken
13175 case $host_os in
13176 interix[3-9]*)
13177 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13178 # hack all around it, let's just trust "g++" to DTRT.
13179 predep_objects_CXX=
13180 postdep_objects_CXX=
13181 postdeps_CXX=
13182 ;;
13183
13184 linux*)
13185 case `$CC -V 2>&1 | sed 5q` in
13186 *Sun\ C*)
13187 # Sun C++ 5.9
13188 #
13189 # The more standards-conforming stlport4 library is
13190 # incompatible with the Cstd library. Avoid specifying
13191 # it if it's in CXXFLAGS. Ignore libCrun as
13192 # -library=stlport4 depends on it.
13193 case " $CXX $CXXFLAGS " in
13194 *" -library=stlport4 "*)
13195 solaris_use_stlport4=yes
13196 ;;
13197 esac
13198 if test "$solaris_use_stlport4" != yes; then
13199 postdeps_CXX='-library=Cstd -library=Crun'
13200 fi
13201 ;;
13202 esac
13203 ;;
13204
13205 solaris*)
13206 case $cc_basename in
13207 CC*)
13208 # The more standards-conforming stlport4 library is
13209 # incompatible with the Cstd library. Avoid specifying
13210 # it if it's in CXXFLAGS. Ignore libCrun as
13211 # -library=stlport4 depends on it.
13212 case " $CXX $CXXFLAGS " in
13213 *" -library=stlport4 "*)
13214 solaris_use_stlport4=yes
13215 ;;
13216 esac
13217
13218 # Adding this requires a known-good setup of shared libraries for
13219 # Sun compiler versions before 5.6, else PIC objects from an old
13220 # archive will be linked into the output, leading to subtle bugs.
13221 if test "$solaris_use_stlport4" != yes; then
13222 postdeps_CXX='-library=Cstd -library=Crun'
13223 fi
13224 ;;
13225 esac
13226 ;;
13227 esac
13228
13229
13230 case " $postdeps_CXX " in
13231 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13232 esac
13233
13234 lt_prog_compiler_wl_CXX=
13235 lt_prog_compiler_pic_CXX=
13236 lt_prog_compiler_static_CXX=
13237
13238 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13239 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13240
13241 # C++ specific cases for pic, static, wl, etc.
13242 if test "$GXX" = yes; then
13243 lt_prog_compiler_wl_CXX='-Wl,'
13244 lt_prog_compiler_static_CXX='-static'
13245
13246 case $host_os in
13247 aix*)
13248 # All AIX code is PIC.
13249 if test "$host_cpu" = ia64; then
13250 # AIX 5 now supports IA64 processor
13251 lt_prog_compiler_static_CXX='-Bstatic'
13252 fi
13253 ;;
13254 amigaos*)
13255 # FIXME: we need at least 68020 code to build shared libraries, but
13256 # adding the `-m68020' flag to GCC prevents building anything better,
13257 # like `-m68040'.
13258 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13259 ;;
13260 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13261 # PIC is the default for these OSes.
13262 ;;
13263 mingw* | cygwin* | os2* | pw32*)
13264 # This hack is so that the source file can tell whether it is being
13265 # built for inclusion in a dll (and should export symbols for example).
13266 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13267 # (--disable-auto-import) libraries
13268 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13269 ;;
13270 darwin* | rhapsody*)
13271 # PIC is the default on this platform
13272 # Common symbols not allowed in MH_DYLIB files
13273 lt_prog_compiler_pic_CXX='-fno-common'
13274 ;;
13275 *djgpp*)
13276 # DJGPP does not support shared libraries at all
13277 lt_prog_compiler_pic_CXX=
13278 ;;
13279 interix[3-9]*)
13280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13281 # Instead, we relocate shared libraries at runtime.
13282 ;;
13283 sysv4*MP*)
13284 if test -d /usr/nec; then
13285 lt_prog_compiler_pic_CXX=-Kconform_pic
13286 fi
13287 ;;
13288 hpux*)
13289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13290 # not for PA HP-UX.
13291 case $host_cpu in
13292 hppa*64*|ia64*)
13293 ;;
13294 *)
13295 lt_prog_compiler_pic_CXX='-fPIC'
13296 ;;
13297 esac
13298 ;;
13299 *)
13300 lt_prog_compiler_pic_CXX='-fPIC'
13301 ;;
13302 esac
13303 else
13304 case $host_os in
13305 aix4* | aix5*)
13306 # All AIX code is PIC.
13307 if test "$host_cpu" = ia64; then
13308 # AIX 5 now supports IA64 processor
13309 lt_prog_compiler_static_CXX='-Bstatic'
13310 else
13311 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13312 fi
13313 ;;
13314 chorus*)
13315 case $cc_basename in
13316 cxch68*)
13317 # Green Hills C++ Compiler
13318 # _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"
13319 ;;
13320 esac
13321 ;;
13322 darwin*)
13323 # PIC is the default on this platform
13324 # Common symbols not allowed in MH_DYLIB files
13325 case $cc_basename in
13326 xlc*)
13327 lt_prog_compiler_pic_CXX='-qnocommon'
13328 lt_prog_compiler_wl_CXX='-Wl,'
13329 ;;
13330 esac
13331 ;;
13332 dgux*)
13333 case $cc_basename in
13334 ec++*)
13335 lt_prog_compiler_pic_CXX='-KPIC'
13336 ;;
13337 ghcx*)
13338 # Green Hills C++ Compiler
13339 lt_prog_compiler_pic_CXX='-pic'
13340 ;;
13341 *)
13342 ;;
13343 esac
13344 ;;
13345 freebsd* | dragonfly*)
13346 # FreeBSD uses GNU C++
13347 ;;
13348 hpux9* | hpux10* | hpux11*)
13349 case $cc_basename in
13350 CC*)
13351 lt_prog_compiler_wl_CXX='-Wl,'
13352 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13353 if test "$host_cpu" != ia64; then
13354 lt_prog_compiler_pic_CXX='+Z'
13355 fi
13356 ;;
13357 aCC*)
13358 lt_prog_compiler_wl_CXX='-Wl,'
13359 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13360 case $host_cpu in
13361 hppa*64*|ia64*)
13362 # +Z the default
13363 ;;
13364 *)
13365 lt_prog_compiler_pic_CXX='+Z'
13366 ;;
13367 esac
13368 ;;
13369 *)
13370 ;;
13371 esac
13372 ;;
13373 interix*)
13374 # This is c89, which is MS Visual C++ (no shared libs)
13375 # Anyone wants to do a port?
13376 ;;
13377 irix5* | irix6* | nonstopux*)
13378 case $cc_basename in
13379 CC*)
13380 lt_prog_compiler_wl_CXX='-Wl,'
13381 lt_prog_compiler_static_CXX='-non_shared'
13382 # CC pic flag -KPIC is the default.
13383 ;;
13384 *)
13385 ;;
13386 esac
13387 ;;
13388 linux* | k*bsd*-gnu)
13389 case $cc_basename in
13390 KCC*)
13391 # KAI C++ Compiler
13392 lt_prog_compiler_wl_CXX='--backend -Wl,'
13393 lt_prog_compiler_pic_CXX='-fPIC'
13394 ;;
13395 icpc* | ecpc*)
13396 # Intel C++
13397 lt_prog_compiler_wl_CXX='-Wl,'
13398 lt_prog_compiler_pic_CXX='-KPIC'
13399 lt_prog_compiler_static_CXX='-static'
13400 ;;
13401 pgCC*)
13402 # Portland Group C++ compiler.
13403 lt_prog_compiler_wl_CXX='-Wl,'
13404 lt_prog_compiler_pic_CXX='-fpic'
13405 lt_prog_compiler_static_CXX='-Bstatic'
13406 ;;
13407 cxx*)
13408 # Compaq C++
13409 # Make sure the PIC flag is empty. It appears that all Alpha
13410 # Linux and Compaq Tru64 Unix objects are PIC.
13411 lt_prog_compiler_pic_CXX=
13412 lt_prog_compiler_static_CXX='-non_shared'
13413 ;;
13414 *)
13415 case `$CC -V 2>&1 | sed 5q` in
13416 *Sun\ C*)
13417 # Sun C++ 5.9
13418 lt_prog_compiler_pic_CXX='-KPIC'
13419 lt_prog_compiler_static_CXX='-Bstatic'
13420 lt_prog_compiler_wl_CXX='-Qoption ld '
13421 ;;
13422 esac
13423 ;;
13424 esac
13425 ;;
13426 lynxos*)
13427 ;;
13428 m88k*)
13429 ;;
13430 mvs*)
13431 case $cc_basename in
13432 cxx*)
13433 lt_prog_compiler_pic_CXX='-W c,exportall'
13434 ;;
13435 *)
13436 ;;
13437 esac
13438 ;;
13439 netbsd*)
13440 ;;
13441 osf3* | osf4* | osf5*)
13442 case $cc_basename in
13443 KCC*)
13444 lt_prog_compiler_wl_CXX='--backend -Wl,'
13445 ;;
13446 RCC*)
13447 # Rational C++ 2.4.1
13448 lt_prog_compiler_pic_CXX='-pic'
13449 ;;
13450 cxx*)
13451 # Digital/Compaq C++
13452 lt_prog_compiler_wl_CXX='-Wl,'
13453 # Make sure the PIC flag is empty. It appears that all Alpha
13454 # Linux and Compaq Tru64 Unix objects are PIC.
13455 lt_prog_compiler_pic_CXX=
13456 lt_prog_compiler_static_CXX='-non_shared'
13457 ;;
13458 *)
13459 ;;
13460 esac
13461 ;;
13462 psos*)
13463 ;;
13464 solaris*)
13465 case $cc_basename in
13466 CC*)
13467 # Sun C++ 4.2, 5.x and Centerline C++
13468 lt_prog_compiler_pic_CXX='-KPIC'
13469 lt_prog_compiler_static_CXX='-Bstatic'
13470 lt_prog_compiler_wl_CXX='-Qoption ld '
13471 ;;
13472 gcx*)
13473 # Green Hills C++ Compiler
13474 lt_prog_compiler_pic_CXX='-PIC'
13475 ;;
13476 *)
13477 ;;
13478 esac
13479 ;;
13480 sunos4*)
13481 case $cc_basename in
13482 CC*)
13483 # Sun C++ 4.x
13484 lt_prog_compiler_pic_CXX='-pic'
13485 lt_prog_compiler_static_CXX='-Bstatic'
13486 ;;
13487 lcc*)
13488 # Lucid
13489 lt_prog_compiler_pic_CXX='-pic'
13490 ;;
13491 *)
13492 ;;
13493 esac
13494 ;;
13495 tandem*)
13496 case $cc_basename in
13497 NCC*)
13498 # NonStop-UX NCC 3.20
13499 lt_prog_compiler_pic_CXX='-KPIC'
13500 ;;
13501 *)
13502 ;;
13503 esac
13504 ;;
13505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13506 case $cc_basename in
13507 CC*)
13508 lt_prog_compiler_wl_CXX='-Wl,'
13509 lt_prog_compiler_pic_CXX='-KPIC'
13510 lt_prog_compiler_static_CXX='-Bstatic'
13511 ;;
13512 esac
13513 ;;
13514 vxworks*)
13515 ;;
13516 *)
13517 lt_prog_compiler_can_build_shared_CXX=no
13518 ;;
13519 esac
13520 fi
13521
13522 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13523 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13524
13525 #
13526 # Check to make sure the PIC flag actually works.
13527 #
13528 if test -n "$lt_prog_compiler_pic_CXX"; then
13529
13530 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13531 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13532 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535 lt_prog_compiler_pic_works_CXX=no
13536 ac_outfile=conftest.$ac_objext
13537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13538 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13539 # Insert the option either (1) after the last *FLAGS variable, or
13540 # (2) before a word containing "conftest.", or (3) at the end.
13541 # Note that $ac_compile itself does not contain backslashes and begins
13542 # with a dollar sign (not a hyphen), so the echo should work correctly.
13543 # The option is referenced via a variable to avoid confusing sed.
13544 lt_compile=`echo "$ac_compile" | $SED \
13545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13547 -e 's:$: $lt_compiler_flag:'`
13548 (eval echo "\"\$as_me:13548: $lt_compile\"" >&5)
13549 (eval "$lt_compile" 2>conftest.err)
13550 ac_status=$?
13551 cat conftest.err >&5
13552 echo "$as_me:13552: \$? = $ac_status" >&5
13553 if (exit $ac_status) && test -s "$ac_outfile"; then
13554 # The compiler can only warn and ignore the option if not recognized
13555 # So say no if there are warnings other than the usual output.
13556 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13559 lt_prog_compiler_pic_works_CXX=yes
13560 fi
13561 fi
13562 $rm conftest*
13563
13564 fi
13565 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13566 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13567
13568 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13569 case $lt_prog_compiler_pic_CXX in
13570 "" | " "*) ;;
13571 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13572 esac
13573 else
13574 lt_prog_compiler_pic_CXX=
13575 lt_prog_compiler_can_build_shared_CXX=no
13576 fi
13577
13578 fi
13579 case $host_os in
13580 # For platforms which do not support PIC, -DPIC is meaningless:
13581 *djgpp*)
13582 lt_prog_compiler_pic_CXX=
13583 ;;
13584 *)
13585 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13586 ;;
13587 esac
13588
13589 #
13590 # Check to make sure the static flag actually works.
13591 #
13592 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13593 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13594 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13595 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598 lt_prog_compiler_static_works_CXX=no
13599 save_LDFLAGS="$LDFLAGS"
13600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13601 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13603 # The linker can only warn and ignore the option if not recognized
13604 # So say no if there are warnings
13605 if test -s conftest.err; then
13606 # Append any errors to the config.log.
13607 cat conftest.err 1>&5
13608 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13610 if diff conftest.exp conftest.er2 >/dev/null; then
13611 lt_prog_compiler_static_works_CXX=yes
13612 fi
13613 else
13614 lt_prog_compiler_static_works_CXX=yes
13615 fi
13616 fi
13617 $rm conftest*
13618 LDFLAGS="$save_LDFLAGS"
13619
13620 fi
13621 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13622 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13623
13624 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13625 :
13626 else
13627 lt_prog_compiler_static_CXX=
13628 fi
13629
13630
13631 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13632 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13633 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636 lt_cv_prog_compiler_c_o_CXX=no
13637 $rm -r conftest 2>/dev/null
13638 mkdir conftest
13639 cd conftest
13640 mkdir out
13641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13642
13643 lt_compiler_flag="-o out/conftest2.$ac_objext"
13644 # Insert the option either (1) after the last *FLAGS variable, or
13645 # (2) before a word containing "conftest.", or (3) at the end.
13646 # Note that $ac_compile itself does not contain backslashes and begins
13647 # with a dollar sign (not a hyphen), so the echo should work correctly.
13648 lt_compile=`echo "$ac_compile" | $SED \
13649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13651 -e 's:$: $lt_compiler_flag:'`
13652 (eval echo "\"\$as_me:13652: $lt_compile\"" >&5)
13653 (eval "$lt_compile" 2>out/conftest.err)
13654 ac_status=$?
13655 cat out/conftest.err >&5
13656 echo "$as_me:13656: \$? = $ac_status" >&5
13657 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13658 then
13659 # The compiler can only warn and ignore the option if not recognized
13660 # So say no if there are warnings
13661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13662 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13663 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13664 lt_cv_prog_compiler_c_o_CXX=yes
13665 fi
13666 fi
13667 chmod u+w . 2>&5
13668 $rm conftest*
13669 # SGI C++ compiler will create directory out/ii_files/ for
13670 # template instantiation
13671 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13672 $rm out/* && rmdir out
13673 cd ..
13674 rmdir conftest
13675 $rm conftest*
13676
13677 fi
13678 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13679 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13680
13681
13682 hard_links="nottested"
13683 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13684 # do not overwrite the value of need_locks provided by the user
13685 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13686 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13687 hard_links=yes
13688 $rm conftest*
13689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13690 touch conftest.a
13691 ln conftest.a conftest.b 2>&5 || hard_links=no
13692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13693 { echo "$as_me:$LINENO: result: $hard_links" >&5
13694 echo "${ECHO_T}$hard_links" >&6; }
13695 if test "$hard_links" = no; then
13696 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13697 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13698 need_locks=warn
13699 fi
13700 else
13701 need_locks=no
13702 fi
13703
13704 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13705 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13706
13707 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13708 case $host_os in
13709 aix4* | aix5*)
13710 # If we're using GNU nm, then we don't want the "-C" option.
13711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13712 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13713 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'
13714 else
13715 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'
13716 fi
13717 ;;
13718 pw32*)
13719 export_symbols_cmds_CXX="$ltdll_cmds"
13720 ;;
13721 cygwin* | mingw*)
13722 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'
13723 ;;
13724 *)
13725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13726 ;;
13727 esac
13728
13729 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13730 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13731 test "$ld_shlibs_CXX" = no && can_build_shared=no
13732
13733 #
13734 # Do we need to explicitly link libc?
13735 #
13736 case "x$archive_cmds_need_lc_CXX" in
13737 x|xyes)
13738 # Assume -lc should be added
13739 archive_cmds_need_lc_CXX=yes
13740
13741 if test "$enable_shared" = yes && test "$GCC" = yes; then
13742 case $archive_cmds_CXX in
13743 *'~'*)
13744 # FIXME: we may have to deal with multi-command sequences.
13745 ;;
13746 '$CC '*)
13747 # Test whether the compiler implicitly links with -lc since on some
13748 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13749 # to ld, don't add -lc before -lgcc.
13750 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13751 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13752 $rm conftest*
13753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13754
13755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13756 (eval $ac_compile) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } 2>conftest.err; then
13760 soname=conftest
13761 lib=conftest
13762 libobjs=conftest.$ac_objext
13763 deplibs=
13764 wl=$lt_prog_compiler_wl_CXX
13765 pic_flag=$lt_prog_compiler_pic_CXX
13766 compiler_flags=-v
13767 linker_flags=-v
13768 verstring=
13769 output_objdir=.
13770 libname=conftest
13771 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13772 allow_undefined_flag_CXX=
13773 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13774 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }
13778 then
13779 archive_cmds_need_lc_CXX=no
13780 else
13781 archive_cmds_need_lc_CXX=yes
13782 fi
13783 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13784 else
13785 cat conftest.err 1>&5
13786 fi
13787 $rm conftest*
13788 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13789 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13790 ;;
13791 esac
13792 fi
13793 ;;
13794 esac
13795
13796 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13797 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13798 library_names_spec=
13799 libname_spec='lib$name'
13800 soname_spec=
13801 shrext_cmds=".so"
13802 postinstall_cmds=
13803 postuninstall_cmds=
13804 finish_cmds=
13805 finish_eval=
13806 shlibpath_var=
13807 shlibpath_overrides_runpath=unknown
13808 version_type=none
13809 dynamic_linker="$host_os ld.so"
13810 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13811
13812 need_lib_prefix=unknown
13813 hardcode_into_libs=no
13814
13815 # when you set need_version to no, make sure it does not cause -set_version
13816 # flags to be left without arguments
13817 need_version=unknown
13818
13819 case $host_os in
13820 aix3*)
13821 version_type=linux
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13823 shlibpath_var=LIBPATH
13824
13825 # AIX 3 has no versioning support, so we append a major version to the name.
13826 soname_spec='${libname}${release}${shared_ext}$major'
13827 ;;
13828
13829 aix4* | aix5*)
13830 version_type=linux
13831 need_lib_prefix=no
13832 need_version=no
13833 hardcode_into_libs=yes
13834 if test "$host_cpu" = ia64; then
13835 # AIX 5 supports IA64
13836 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13837 shlibpath_var=LD_LIBRARY_PATH
13838 else
13839 # With GCC up to 2.95.x, collect2 would create an import file
13840 # for dependence libraries. The import file would start with
13841 # the line `#! .'. This would cause the generated library to
13842 # depend on `.', always an invalid library. This was fixed in
13843 # development snapshots of GCC prior to 3.0.
13844 case $host_os in
13845 aix4 | aix4.[01] | aix4.[01].*)
13846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13847 echo ' yes '
13848 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13849 :
13850 else
13851 can_build_shared=no
13852 fi
13853 ;;
13854 esac
13855 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13856 # soname into executable. Probably we can add versioning support to
13857 # collect2, so additional links can be useful in future.
13858 if test "$aix_use_runtimelinking" = yes; then
13859 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13860 # instead of lib<name>.a to let people know that these are not
13861 # typical AIX shared libraries.
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13863 else
13864 # We preserve .a as extension for shared libraries through AIX4.2
13865 # and later when we are not doing run time linking.
13866 library_names_spec='${libname}${release}.a $libname.a'
13867 soname_spec='${libname}${release}${shared_ext}$major'
13868 fi
13869 shlibpath_var=LIBPATH
13870 fi
13871 ;;
13872
13873 amigaos*)
13874 library_names_spec='$libname.ixlibrary $libname.a'
13875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13876 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'
13877 ;;
13878
13879 beos*)
13880 library_names_spec='${libname}${shared_ext}'
13881 dynamic_linker="$host_os ld.so"
13882 shlibpath_var=LIBRARY_PATH
13883 ;;
13884
13885 bsdi[45]*)
13886 version_type=linux
13887 need_version=no
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 soname_spec='${libname}${release}${shared_ext}$major'
13890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13894 # the default ld.so.conf also contains /usr/contrib/lib and
13895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13896 # libtool to hard-code these into programs
13897 ;;
13898
13899 cygwin* | mingw* | pw32*)
13900 version_type=windows
13901 shrext_cmds=".dll"
13902 need_version=no
13903 need_lib_prefix=no
13904
13905 case $GCC,$host_os in
13906 yes,cygwin* | yes,mingw* | yes,pw32*)
13907 library_names_spec='$libname.dll.a'
13908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13909 postinstall_cmds='base_file=`basename \${file}`~
13910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13911 dldir=$destdir/`dirname \$dlpath`~
13912 test -d \$dldir || mkdir -p \$dldir~
13913 $install_prog $dir/$dlname \$dldir/$dlname~
13914 chmod a+x \$dldir/$dlname'
13915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13916 dlpath=$dir/\$dldll~
13917 $rm \$dlpath'
13918 shlibpath_overrides_runpath=yes
13919
13920 case $host_os in
13921 cygwin*)
13922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13924 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13925 ;;
13926 mingw*)
13927 # MinGW DLLs use traditional 'lib' prefix
13928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13930 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13931 # It is most probably a Windows format PATH printed by
13932 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13933 # path with ; separators, and with drive letters. We can handle the
13934 # drive letters (cygwin fileutils understands them), so leave them,
13935 # especially as we might pass files found there to a mingw objdump,
13936 # which wouldn't understand a cygwinified path. Ahh.
13937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13938 else
13939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13940 fi
13941 ;;
13942 pw32*)
13943 # pw32 DLLs use 'pw' prefix rather than 'lib'
13944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13945 ;;
13946 esac
13947 ;;
13948
13949 *)
13950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13951 ;;
13952 esac
13953 dynamic_linker='Win32 ld.exe'
13954 # FIXME: first we should search . and the directory the executable is in
13955 shlibpath_var=PATH
13956 ;;
13957
13958 darwin* | rhapsody*)
13959 dynamic_linker="$host_os dyld"
13960 version_type=darwin
13961 need_lib_prefix=no
13962 need_version=no
13963 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13964 soname_spec='${libname}${release}${major}$shared_ext'
13965 shlibpath_overrides_runpath=yes
13966 shlibpath_var=DYLD_LIBRARY_PATH
13967 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13968
13969 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13970 ;;
13971
13972 dgux*)
13973 version_type=linux
13974 need_lib_prefix=no
13975 need_version=no
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13977 soname_spec='${libname}${release}${shared_ext}$major'
13978 shlibpath_var=LD_LIBRARY_PATH
13979 ;;
13980
13981 freebsd1*)
13982 dynamic_linker=no
13983 ;;
13984
13985 freebsd* | dragonfly*)
13986 # DragonFly does not have aout. When/if they implement a new
13987 # versioning mechanism, adjust this.
13988 if test -x /usr/bin/objformat; then
13989 objformat=`/usr/bin/objformat`
13990 else
13991 case $host_os in
13992 freebsd[123]*) objformat=aout ;;
13993 *) objformat=elf ;;
13994 esac
13995 fi
13996 version_type=freebsd-$objformat
13997 case $version_type in
13998 freebsd-elf*)
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14000 need_version=no
14001 need_lib_prefix=no
14002 ;;
14003 freebsd-*)
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14005 need_version=yes
14006 ;;
14007 esac
14008 shlibpath_var=LD_LIBRARY_PATH
14009 case $host_os in
14010 freebsd2*)
14011 shlibpath_overrides_runpath=yes
14012 ;;
14013 freebsd3.[01]* | freebsdelf3.[01]*)
14014 shlibpath_overrides_runpath=yes
14015 hardcode_into_libs=yes
14016 ;;
14017 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14018 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14019 shlibpath_overrides_runpath=no
14020 hardcode_into_libs=yes
14021 ;;
14022 *) # from 4.6 on, and DragonFly
14023 shlibpath_overrides_runpath=yes
14024 hardcode_into_libs=yes
14025 ;;
14026 esac
14027 ;;
14028
14029 gnu*)
14030 version_type=linux
14031 need_lib_prefix=no
14032 need_version=no
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 hardcode_into_libs=yes
14037 ;;
14038
14039 hpux9* | hpux10* | hpux11*)
14040 # Give a soname corresponding to the major version so that dld.sl refuses to
14041 # link against other versions.
14042 version_type=sunos
14043 need_lib_prefix=no
14044 need_version=no
14045 case $host_cpu in
14046 ia64*)
14047 shrext_cmds='.so'
14048 hardcode_into_libs=yes
14049 dynamic_linker="$host_os dld.so"
14050 shlibpath_var=LD_LIBRARY_PATH
14051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 if test "X$HPUX_IA64_MODE" = X32; then
14055 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14056 else
14057 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14058 fi
14059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14060 ;;
14061 hppa*64*)
14062 shrext_cmds='.sl'
14063 hardcode_into_libs=yes
14064 dynamic_linker="$host_os dld.sl"
14065 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14071 ;;
14072 *)
14073 shrext_cmds='.sl'
14074 dynamic_linker="$host_os dld.sl"
14075 shlibpath_var=SHLIB_PATH
14076 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078 soname_spec='${libname}${release}${shared_ext}$major'
14079 ;;
14080 esac
14081 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14082 postinstall_cmds='chmod 555 $lib'
14083 ;;
14084
14085 interix[3-9]*)
14086 version_type=linux
14087 need_lib_prefix=no
14088 need_version=no
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14090 soname_spec='${libname}${release}${shared_ext}$major'
14091 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 shlibpath_overrides_runpath=no
14094 hardcode_into_libs=yes
14095 ;;
14096
14097 irix5* | irix6* | nonstopux*)
14098 case $host_os in
14099 nonstopux*) version_type=nonstopux ;;
14100 *)
14101 if test "$lt_cv_prog_gnu_ld" = yes; then
14102 version_type=linux
14103 else
14104 version_type=irix
14105 fi ;;
14106 esac
14107 need_lib_prefix=no
14108 need_version=no
14109 soname_spec='${libname}${release}${shared_ext}$major'
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14111 case $host_os in
14112 irix5* | nonstopux*)
14113 libsuff= shlibsuff=
14114 ;;
14115 *)
14116 case $LD in # libtool.m4 will add one of these switches to LD
14117 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14118 libsuff= shlibsuff= libmagic=32-bit;;
14119 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14120 libsuff=32 shlibsuff=N32 libmagic=N32;;
14121 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14122 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14123 *) libsuff= shlibsuff= libmagic=never-match;;
14124 esac
14125 ;;
14126 esac
14127 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14128 shlibpath_overrides_runpath=no
14129 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14130 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14131 hardcode_into_libs=yes
14132 ;;
14133
14134 # No shared lib support for Linux oldld, aout, or coff.
14135 linux*oldld* | linux*aout* | linux*coff*)
14136 dynamic_linker=no
14137 ;;
14138
14139 # This must be Linux ELF.
14140 linux* | k*bsd*-gnu)
14141 version_type=linux
14142 need_lib_prefix=no
14143 need_version=no
14144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145 soname_spec='${libname}${release}${shared_ext}$major'
14146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14147 shlibpath_var=LD_LIBRARY_PATH
14148 shlibpath_overrides_runpath=no
14149 # This implies no fast_install, which is unacceptable.
14150 # Some rework will be needed to allow for fast_install
14151 # before this can be enabled.
14152 hardcode_into_libs=yes
14153 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14154 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14155
14156 # Append ld.so.conf contents to the search path
14157 if test -f /etc/ld.so.conf; then
14158 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' ' '`
14159 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14160 fi
14161
14162 # We used to test for /lib/ld.so.1 and disable shared libraries on
14163 # powerpc, because MkLinux only supported shared libraries with the
14164 # GNU dynamic linker. Since this was broken with cross compilers,
14165 # most powerpc-linux boxes support dynamic linking these days and
14166 # people can always --disable-shared, the test was removed, and we
14167 # assume the GNU/Linux dynamic linker is in use.
14168 dynamic_linker='GNU/Linux ld.so'
14169 ;;
14170
14171 netbsd*)
14172 version_type=sunos
14173 need_lib_prefix=no
14174 need_version=no
14175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14178 dynamic_linker='NetBSD (a.out) ld.so'
14179 else
14180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 dynamic_linker='NetBSD ld.elf_so'
14183 fi
14184 shlibpath_var=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath=yes
14186 hardcode_into_libs=yes
14187 ;;
14188
14189 newsos6)
14190 version_type=linux
14191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 shlibpath_overrides_runpath=yes
14194 ;;
14195
14196 nto-qnx*)
14197 version_type=linux
14198 need_lib_prefix=no
14199 need_version=no
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14201 soname_spec='${libname}${release}${shared_ext}$major'
14202 shlibpath_var=LD_LIBRARY_PATH
14203 shlibpath_overrides_runpath=yes
14204 ;;
14205
14206 openbsd*)
14207 version_type=sunos
14208 sys_lib_dlsearch_path_spec="/usr/lib"
14209 need_lib_prefix=no
14210 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14211 case $host_os in
14212 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14213 *) need_version=no ;;
14214 esac
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14219 case $host_os in
14220 openbsd2.[89] | openbsd2.[89].*)
14221 shlibpath_overrides_runpath=no
14222 ;;
14223 *)
14224 shlibpath_overrides_runpath=yes
14225 ;;
14226 esac
14227 else
14228 shlibpath_overrides_runpath=yes
14229 fi
14230 ;;
14231
14232 os2*)
14233 libname_spec='$name'
14234 shrext_cmds=".dll"
14235 need_lib_prefix=no
14236 library_names_spec='$libname${shared_ext} $libname.a'
14237 dynamic_linker='OS/2 ld.exe'
14238 shlibpath_var=LIBPATH
14239 ;;
14240
14241 osf3* | osf4* | osf5*)
14242 version_type=osf
14243 need_lib_prefix=no
14244 need_version=no
14245 soname_spec='${libname}${release}${shared_ext}$major'
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 shlibpath_var=LD_LIBRARY_PATH
14248 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14249 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14250 ;;
14251
14252 rdos*)
14253 dynamic_linker=no
14254 ;;
14255
14256 solaris*)
14257 version_type=linux
14258 need_lib_prefix=no
14259 need_version=no
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 shlibpath_overrides_runpath=yes
14264 hardcode_into_libs=yes
14265 # ldd complains unless libraries are executable
14266 postinstall_cmds='chmod +x $lib'
14267 ;;
14268
14269 sunos4*)
14270 version_type=sunos
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14272 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 shlibpath_overrides_runpath=yes
14275 if test "$with_gnu_ld" = yes; then
14276 need_lib_prefix=no
14277 fi
14278 need_version=yes
14279 ;;
14280
14281 sysv4 | sysv4.3*)
14282 version_type=linux
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 case $host_vendor in
14287 sni)
14288 shlibpath_overrides_runpath=no
14289 need_lib_prefix=no
14290 export_dynamic_flag_spec='${wl}-Blargedynsym'
14291 runpath_var=LD_RUN_PATH
14292 ;;
14293 siemens)
14294 need_lib_prefix=no
14295 ;;
14296 motorola)
14297 need_lib_prefix=no
14298 need_version=no
14299 shlibpath_overrides_runpath=no
14300 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14301 ;;
14302 esac
14303 ;;
14304
14305 sysv4*MP*)
14306 if test -d /usr/nec ;then
14307 version_type=linux
14308 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14309 soname_spec='$libname${shared_ext}.$major'
14310 shlibpath_var=LD_LIBRARY_PATH
14311 fi
14312 ;;
14313
14314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14315 version_type=freebsd-elf
14316 need_lib_prefix=no
14317 need_version=no
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 shlibpath_var=LD_LIBRARY_PATH
14321 hardcode_into_libs=yes
14322 if test "$with_gnu_ld" = yes; then
14323 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14324 shlibpath_overrides_runpath=no
14325 else
14326 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14327 shlibpath_overrides_runpath=yes
14328 case $host_os in
14329 sco3.2v5*)
14330 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14331 ;;
14332 esac
14333 fi
14334 sys_lib_dlsearch_path_spec='/usr/lib'
14335 ;;
14336
14337 uts4*)
14338 version_type=linux
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 soname_spec='${libname}${release}${shared_ext}$major'
14341 shlibpath_var=LD_LIBRARY_PATH
14342 ;;
14343
14344 *)
14345 dynamic_linker=no
14346 ;;
14347 esac
14348 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14349 echo "${ECHO_T}$dynamic_linker" >&6; }
14350 test "$dynamic_linker" = no && can_build_shared=no
14351
14352 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14353 if test "$GCC" = yes; then
14354 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14355 fi
14356
14357 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14358 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14359 hardcode_action_CXX=
14360 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14361 test -n "$runpath_var_CXX" || \
14362 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14363
14364 # We can hardcode non-existant directories.
14365 if test "$hardcode_direct_CXX" != no &&
14366 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14367 # have to relink, otherwise we might link with an installed library
14368 # when we should be linking with a yet-to-be-installed one
14369 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14370 test "$hardcode_minus_L_CXX" != no; then
14371 # Linking always hardcodes the temporary library directory.
14372 hardcode_action_CXX=relink
14373 else
14374 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14375 hardcode_action_CXX=immediate
14376 fi
14377 else
14378 # We cannot hardcode anything, or else we can only hardcode existing
14379 # directories.
14380 hardcode_action_CXX=unsupported
14381 fi
14382 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14383 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14384
14385 if test "$hardcode_action_CXX" = relink; then
14386 # Fast installation is not supported
14387 enable_fast_install=no
14388 elif test "$shlibpath_overrides_runpath" = yes ||
14389 test "$enable_shared" = no; then
14390 # Fast installation is not necessary
14391 enable_fast_install=needless
14392 fi
14393
14394
14395 # The else clause should only fire when bootstrapping the
14396 # libtool distribution, otherwise you forgot to ship ltmain.sh
14397 # with your package, and you will get complaints that there are
14398 # no rules to generate ltmain.sh.
14399 if test -f "$ltmain"; then
14400 # See if we are running on zsh, and set the options which allow our commands through
14401 # without removal of \ escapes.
14402 if test -n "${ZSH_VERSION+set}" ; then
14403 setopt NO_GLOB_SUBST
14404 fi
14405 # Now quote all the things that may contain metacharacters while being
14406 # careful not to overquote the AC_SUBSTed values. We take copies of the
14407 # variables and quote the copies for generation of the libtool script.
14408 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14409 SED SHELL STRIP \
14410 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14411 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14412 deplibs_check_method reload_flag reload_cmds need_locks \
14413 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14414 lt_cv_sys_global_symbol_to_c_name_address \
14415 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14416 old_postinstall_cmds old_postuninstall_cmds \
14417 compiler_CXX \
14418 CC_CXX \
14419 LD_CXX \
14420 lt_prog_compiler_wl_CXX \
14421 lt_prog_compiler_pic_CXX \
14422 lt_prog_compiler_static_CXX \
14423 lt_prog_compiler_no_builtin_flag_CXX \
14424 export_dynamic_flag_spec_CXX \
14425 thread_safe_flag_spec_CXX \
14426 whole_archive_flag_spec_CXX \
14427 enable_shared_with_static_runtimes_CXX \
14428 old_archive_cmds_CXX \
14429 old_archive_from_new_cmds_CXX \
14430 predep_objects_CXX \
14431 postdep_objects_CXX \
14432 predeps_CXX \
14433 postdeps_CXX \
14434 compiler_lib_search_path_CXX \
14435 archive_cmds_CXX \
14436 archive_expsym_cmds_CXX \
14437 postinstall_cmds_CXX \
14438 postuninstall_cmds_CXX \
14439 old_archive_from_expsyms_cmds_CXX \
14440 allow_undefined_flag_CXX \
14441 no_undefined_flag_CXX \
14442 export_symbols_cmds_CXX \
14443 hardcode_libdir_flag_spec_CXX \
14444 hardcode_libdir_flag_spec_ld_CXX \
14445 hardcode_libdir_separator_CXX \
14446 hardcode_automatic_CXX \
14447 module_cmds_CXX \
14448 module_expsym_cmds_CXX \
14449 lt_cv_prog_compiler_c_o_CXX \
14450 fix_srcfile_path_CXX \
14451 exclude_expsyms_CXX \
14452 include_expsyms_CXX; do
14453
14454 case $var in
14455 old_archive_cmds_CXX | \
14456 old_archive_from_new_cmds_CXX | \
14457 archive_cmds_CXX | \
14458 archive_expsym_cmds_CXX | \
14459 module_cmds_CXX | \
14460 module_expsym_cmds_CXX | \
14461 old_archive_from_expsyms_cmds_CXX | \
14462 export_symbols_cmds_CXX | \
14463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14464 postinstall_cmds | postuninstall_cmds | \
14465 old_postinstall_cmds | old_postuninstall_cmds | \
14466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14467 # Double-quote double-evaled strings.
14468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14469 ;;
14470 *)
14471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14472 ;;
14473 esac
14474 done
14475
14476 case $lt_echo in
14477 *'\$0 --fallback-echo"')
14478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14479 ;;
14480 esac
14481
14482 cfgfile="$ofile"
14483
14484 cat <<__EOF__ >> "$cfgfile"
14485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14486
14487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14488
14489 # Shell to use when invoking shell scripts.
14490 SHELL=$lt_SHELL
14491
14492 # Whether or not to build shared libraries.
14493 build_libtool_libs=$enable_shared
14494
14495 # Whether or not to build static libraries.
14496 build_old_libs=$enable_static
14497
14498 # Whether or not to add -lc for building shared libraries.
14499 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14500
14501 # Whether or not to disallow shared libs when runtime libs are static
14502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14503
14504 # Whether or not to optimize for fast installation.
14505 fast_install=$enable_fast_install
14506
14507 # The host system.
14508 host_alias=$host_alias
14509 host=$host
14510 host_os=$host_os
14511
14512 # The build system.
14513 build_alias=$build_alias
14514 build=$build
14515 build_os=$build_os
14516
14517 # An echo program that does not interpret backslashes.
14518 echo=$lt_echo
14519
14520 # The archiver.
14521 AR=$lt_AR
14522 AR_FLAGS=$lt_AR_FLAGS
14523
14524 # A C compiler.
14525 LTCC=$lt_LTCC
14526
14527 # LTCC compiler flags.
14528 LTCFLAGS=$lt_LTCFLAGS
14529
14530 # A language-specific compiler.
14531 CC=$lt_compiler_CXX
14532
14533 # Is the compiler the GNU C compiler?
14534 with_gcc=$GCC_CXX
14535
14536 # An ERE matcher.
14537 EGREP=$lt_EGREP
14538
14539 # The linker used to build libraries.
14540 LD=$lt_LD_CXX
14541
14542 # Whether we need hard or soft links.
14543 LN_S=$lt_LN_S
14544
14545 # A BSD-compatible nm program.
14546 NM=$lt_NM
14547
14548 # A symbol stripping program
14549 STRIP=$lt_STRIP
14550
14551 # Used to examine libraries when file_magic_cmd begins "file"
14552 MAGIC_CMD=$MAGIC_CMD
14553
14554 # Used on cygwin: DLL creation program.
14555 DLLTOOL="$DLLTOOL"
14556
14557 # Used on cygwin: object dumper.
14558 OBJDUMP="$OBJDUMP"
14559
14560 # Used on cygwin: assembler.
14561 AS="$AS"
14562
14563 # The name of the directory that contains temporary libtool files.
14564 objdir=$objdir
14565
14566 # How to create reloadable object files.
14567 reload_flag=$lt_reload_flag
14568 reload_cmds=$lt_reload_cmds
14569
14570 # How to pass a linker flag through the compiler.
14571 wl=$lt_lt_prog_compiler_wl_CXX
14572
14573 # Object file suffix (normally "o").
14574 objext="$ac_objext"
14575
14576 # Old archive suffix (normally "a").
14577 libext="$libext"
14578
14579 # Shared library suffix (normally ".so").
14580 shrext_cmds='$shrext_cmds'
14581
14582 # Executable file suffix (normally "").
14583 exeext="$exeext"
14584
14585 # Additional compiler flags for building library objects.
14586 pic_flag=$lt_lt_prog_compiler_pic_CXX
14587 pic_mode=$pic_mode
14588
14589 # What is the maximum length of a command?
14590 max_cmd_len=$lt_cv_sys_max_cmd_len
14591
14592 # Does compiler simultaneously support -c and -o options?
14593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14594
14595 # Must we lock files when doing compilation?
14596 need_locks=$lt_need_locks
14597
14598 # Do we need the lib prefix for modules?
14599 need_lib_prefix=$need_lib_prefix
14600
14601 # Do we need a version for libraries?
14602 need_version=$need_version
14603
14604 # Whether dlopen is supported.
14605 dlopen_support=$enable_dlopen
14606
14607 # Whether dlopen of programs is supported.
14608 dlopen_self=$enable_dlopen_self
14609
14610 # Whether dlopen of statically linked programs is supported.
14611 dlopen_self_static=$enable_dlopen_self_static
14612
14613 # Compiler flag to prevent dynamic linking.
14614 link_static_flag=$lt_lt_prog_compiler_static_CXX
14615
14616 # Compiler flag to turn off builtin functions.
14617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14618
14619 # Compiler flag to allow reflexive dlopens.
14620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14621
14622 # Compiler flag to generate shared objects directly from archives.
14623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14624
14625 # Compiler flag to generate thread-safe objects.
14626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14627
14628 # Library versioning type.
14629 version_type=$version_type
14630
14631 # Format of library name prefix.
14632 libname_spec=$lt_libname_spec
14633
14634 # List of archive names. First name is the real one, the rest are links.
14635 # The last name is the one that the linker finds with -lNAME.
14636 library_names_spec=$lt_library_names_spec
14637
14638 # The coded name of the library, if different from the real name.
14639 soname_spec=$lt_soname_spec
14640
14641 # Commands used to build and install an old-style archive.
14642 RANLIB=$lt_RANLIB
14643 old_archive_cmds=$lt_old_archive_cmds_CXX
14644 old_postinstall_cmds=$lt_old_postinstall_cmds
14645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14646
14647 # Create an old-style archive from a shared archive.
14648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14649
14650 # Create a temporary old-style archive to link instead of a shared archive.
14651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14652
14653 # Commands used to build and install a shared archive.
14654 archive_cmds=$lt_archive_cmds_CXX
14655 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14656 postinstall_cmds=$lt_postinstall_cmds
14657 postuninstall_cmds=$lt_postuninstall_cmds
14658
14659 # Commands used to build a loadable module (assumed same as above if empty)
14660 module_cmds=$lt_module_cmds_CXX
14661 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14662
14663 # Commands to strip libraries.
14664 old_striplib=$lt_old_striplib
14665 striplib=$lt_striplib
14666
14667 # Dependencies to place before the objects being linked to create a
14668 # shared library.
14669 predep_objects=$lt_predep_objects_CXX
14670
14671 # Dependencies to place after the objects being linked to create a
14672 # shared library.
14673 postdep_objects=$lt_postdep_objects_CXX
14674
14675 # Dependencies to place before the objects being linked to create a
14676 # shared library.
14677 predeps=$lt_predeps_CXX
14678
14679 # Dependencies to place after the objects being linked to create a
14680 # shared library.
14681 postdeps=$lt_postdeps_CXX
14682
14683 # The library search path used internally by the compiler when linking
14684 # a shared library.
14685 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14686
14687 # Method to check whether dependent libraries are shared objects.
14688 deplibs_check_method=$lt_deplibs_check_method
14689
14690 # Command to use when deplibs_check_method == file_magic.
14691 file_magic_cmd=$lt_file_magic_cmd
14692
14693 # Flag that allows shared libraries with undefined symbols to be built.
14694 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14695
14696 # Flag that forces no undefined symbols.
14697 no_undefined_flag=$lt_no_undefined_flag_CXX
14698
14699 # Commands used to finish a libtool library installation in a directory.
14700 finish_cmds=$lt_finish_cmds
14701
14702 # Same as above, but a single script fragment to be evaled but not shown.
14703 finish_eval=$lt_finish_eval
14704
14705 # Take the output of nm and produce a listing of raw symbols and C names.
14706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14707
14708 # Transform the output of nm in a proper C declaration
14709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14710
14711 # Transform the output of nm in a C name address pair
14712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14713
14714 # This is the shared library runtime path variable.
14715 runpath_var=$runpath_var
14716
14717 # This is the shared library path variable.
14718 shlibpath_var=$shlibpath_var
14719
14720 # Is shlibpath searched before the hard-coded library search path?
14721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14722
14723 # How to hardcode a shared library path into an executable.
14724 hardcode_action=$hardcode_action_CXX
14725
14726 # Whether we should hardcode library paths into libraries.
14727 hardcode_into_libs=$hardcode_into_libs
14728
14729 # Flag to hardcode \$libdir into a binary during linking.
14730 # This must work even if \$libdir does not exist.
14731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14732
14733 # If ld is used when linking, flag to hardcode \$libdir into
14734 # a binary during linking. This must work even if \$libdir does
14735 # not exist.
14736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14737
14738 # Whether we need a single -rpath flag with a separated argument.
14739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14740
14741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14742 # resulting binary.
14743 hardcode_direct=$hardcode_direct_CXX
14744
14745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14746 # resulting binary.
14747 hardcode_minus_L=$hardcode_minus_L_CXX
14748
14749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14750 # the resulting binary.
14751 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14752
14753 # Set to yes if building a shared library automatically hardcodes DIR into the library
14754 # and all subsequent libraries and executables linked against it.
14755 hardcode_automatic=$hardcode_automatic_CXX
14756
14757 # Variables whose values should be saved in libtool wrapper scripts and
14758 # restored at relink time.
14759 variables_saved_for_relink="$variables_saved_for_relink"
14760
14761 # Whether libtool must link a program against all its dependency libraries.
14762 link_all_deplibs=$link_all_deplibs_CXX
14763
14764 # Compile-time system search path for libraries
14765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14766
14767 # Run-time system search path for libraries
14768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14769
14770 # Fix the shell variable \$srcfile for the compiler.
14771 fix_srcfile_path=$lt_fix_srcfile_path
14772
14773 # Set to yes if exported symbols are required.
14774 always_export_symbols=$always_export_symbols_CXX
14775
14776 # The commands to list exported symbols.
14777 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14778
14779 # The commands to extract the exported symbol list from a shared archive.
14780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14781
14782 # Symbols that should not be listed in the preloaded symbols.
14783 exclude_expsyms=$lt_exclude_expsyms_CXX
14784
14785 # Symbols that must always be exported.
14786 include_expsyms=$lt_include_expsyms_CXX
14787
14788 # ### END LIBTOOL TAG CONFIG: $tagname
14789
14790 __EOF__
14791
14792
14793 else
14794 # If there is no Makefile yet, we rely on a make rule to execute
14795 # `config.status --recheck' to rerun these tests and create the
14796 # libtool script then.
14797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14798 if test -f "$ltmain_in"; then
14799 test -f Makefile && make "$ltmain"
14800 fi
14801 fi
14802
14803
14804 ac_ext=c
14805 ac_cpp='$CPP $CPPFLAGS'
14806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14809
14810 CC=$lt_save_CC
14811 LDCXX=$LD
14812 LD=$lt_save_LD
14813 GCC=$lt_save_GCC
14814 with_gnu_ldcxx=$with_gnu_ld
14815 with_gnu_ld=$lt_save_with_gnu_ld
14816 lt_cv_path_LDCXX=$lt_cv_path_LD
14817 lt_cv_path_LD=$lt_save_path_LD
14818 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14819 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14820
14821 else
14822 tagname=""
14823 fi
14824 ;;
14825
14826 F77)
14827 if test -n "$F77" && test "X$F77" != "Xno"; then
14828
14829 ac_ext=f
14830 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14831 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14833
14834
14835 archive_cmds_need_lc_F77=no
14836 allow_undefined_flag_F77=
14837 always_export_symbols_F77=no
14838 archive_expsym_cmds_F77=
14839 export_dynamic_flag_spec_F77=
14840 hardcode_direct_F77=no
14841 hardcode_libdir_flag_spec_F77=
14842 hardcode_libdir_flag_spec_ld_F77=
14843 hardcode_libdir_separator_F77=
14844 hardcode_minus_L_F77=no
14845 hardcode_automatic_F77=no
14846 module_cmds_F77=
14847 module_expsym_cmds_F77=
14848 link_all_deplibs_F77=unknown
14849 old_archive_cmds_F77=$old_archive_cmds
14850 no_undefined_flag_F77=
14851 whole_archive_flag_spec_F77=
14852 enable_shared_with_static_runtimes_F77=no
14853
14854 # Source file extension for f77 test sources.
14855 ac_ext=f
14856
14857 # Object file extension for compiled f77 test sources.
14858 objext=o
14859 objext_F77=$objext
14860
14861 # Code to be used in simple compile tests
14862 lt_simple_compile_test_code="\
14863 subroutine t
14864 return
14865 end
14866 "
14867
14868 # Code to be used in simple link tests
14869 lt_simple_link_test_code="\
14870 program t
14871 end
14872 "
14873
14874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14875
14876 # If no C compiler was specified, use CC.
14877 LTCC=${LTCC-"$CC"}
14878
14879 # If no C compiler flags were specified, use CFLAGS.
14880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14881
14882 # Allow CC to be a program name with arguments.
14883 compiler=$CC
14884
14885
14886 # save warnings/boilerplate of simple test code
14887 ac_outfile=conftest.$ac_objext
14888 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14890 _lt_compiler_boilerplate=`cat conftest.err`
14891 $rm conftest*
14892
14893 ac_outfile=conftest.$ac_objext
14894 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14896 _lt_linker_boilerplate=`cat conftest.err`
14897 $rm conftest*
14898
14899
14900 # Allow CC to be a program name with arguments.
14901 lt_save_CC="$CC"
14902 CC=${F77-"f77"}
14903 compiler=$CC
14904 compiler_F77=$CC
14905 for cc_temp in $compiler""; do
14906 case $cc_temp in
14907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14909 \-*) ;;
14910 *) break;;
14911 esac
14912 done
14913 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14914
14915
14916 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14917 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14918 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14919 echo "${ECHO_T}$can_build_shared" >&6; }
14920
14921 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14922 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14923 test "$can_build_shared" = "no" && enable_shared=no
14924
14925 # On AIX, shared libraries and static libraries use the same namespace, and
14926 # are all built from PIC.
14927 case $host_os in
14928 aix3*)
14929 test "$enable_shared" = yes && enable_static=no
14930 if test -n "$RANLIB"; then
14931 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14932 postinstall_cmds='$RANLIB $lib'
14933 fi
14934 ;;
14935 aix4* | aix5*)
14936 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14937 test "$enable_shared" = yes && enable_static=no
14938 fi
14939 ;;
14940 esac
14941 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14942 echo "${ECHO_T}$enable_shared" >&6; }
14943
14944 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14945 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14946 # Make sure either enable_shared or enable_static is yes.
14947 test "$enable_shared" = yes || enable_static=yes
14948 { echo "$as_me:$LINENO: result: $enable_static" >&5
14949 echo "${ECHO_T}$enable_static" >&6; }
14950
14951 GCC_F77="$G77"
14952 LD_F77="$LD"
14953
14954 lt_prog_compiler_wl_F77=
14955 lt_prog_compiler_pic_F77=
14956 lt_prog_compiler_static_F77=
14957
14958 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14959 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14960
14961 if test "$GCC" = yes; then
14962 lt_prog_compiler_wl_F77='-Wl,'
14963 lt_prog_compiler_static_F77='-static'
14964
14965 case $host_os in
14966 aix*)
14967 # All AIX code is PIC.
14968 if test "$host_cpu" = ia64; then
14969 # AIX 5 now supports IA64 processor
14970 lt_prog_compiler_static_F77='-Bstatic'
14971 fi
14972 ;;
14973
14974 amigaos*)
14975 # FIXME: we need at least 68020 code to build shared libraries, but
14976 # adding the `-m68020' flag to GCC prevents building anything better,
14977 # like `-m68040'.
14978 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14979 ;;
14980
14981 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14982 # PIC is the default for these OSes.
14983 ;;
14984
14985 mingw* | cygwin* | pw32* | os2*)
14986 # This hack is so that the source file can tell whether it is being
14987 # built for inclusion in a dll (and should export symbols for example).
14988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14989 # (--disable-auto-import) libraries
14990 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14991 ;;
14992
14993 darwin* | rhapsody*)
14994 # PIC is the default on this platform
14995 # Common symbols not allowed in MH_DYLIB files
14996 lt_prog_compiler_pic_F77='-fno-common'
14997 ;;
14998
14999 interix[3-9]*)
15000 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15001 # Instead, we relocate shared libraries at runtime.
15002 ;;
15003
15004 msdosdjgpp*)
15005 # Just because we use GCC doesn't mean we suddenly get shared libraries
15006 # on systems that don't support them.
15007 lt_prog_compiler_can_build_shared_F77=no
15008 enable_shared=no
15009 ;;
15010
15011 sysv4*MP*)
15012 if test -d /usr/nec; then
15013 lt_prog_compiler_pic_F77=-Kconform_pic
15014 fi
15015 ;;
15016
15017 hpux*)
15018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15019 # not for PA HP-UX.
15020 case $host_cpu in
15021 hppa*64*|ia64*)
15022 # +Z the default
15023 ;;
15024 *)
15025 lt_prog_compiler_pic_F77='-fPIC'
15026 ;;
15027 esac
15028 ;;
15029
15030 *)
15031 lt_prog_compiler_pic_F77='-fPIC'
15032 ;;
15033 esac
15034 else
15035 # PORTME Check for flag to pass linker flags through the system compiler.
15036 case $host_os in
15037 aix*)
15038 lt_prog_compiler_wl_F77='-Wl,'
15039 if test "$host_cpu" = ia64; then
15040 # AIX 5 now supports IA64 processor
15041 lt_prog_compiler_static_F77='-Bstatic'
15042 else
15043 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15044 fi
15045 ;;
15046 darwin*)
15047 # PIC is the default on this platform
15048 # Common symbols not allowed in MH_DYLIB files
15049 case $cc_basename in
15050 xlc*)
15051 lt_prog_compiler_pic_F77='-qnocommon'
15052 lt_prog_compiler_wl_F77='-Wl,'
15053 ;;
15054 esac
15055 ;;
15056
15057 mingw* | cygwin* | pw32* | os2*)
15058 # This hack is so that the source file can tell whether it is being
15059 # built for inclusion in a dll (and should export symbols for example).
15060 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15061 ;;
15062
15063 hpux9* | hpux10* | hpux11*)
15064 lt_prog_compiler_wl_F77='-Wl,'
15065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15066 # not for PA HP-UX.
15067 case $host_cpu in
15068 hppa*64*|ia64*)
15069 # +Z the default
15070 ;;
15071 *)
15072 lt_prog_compiler_pic_F77='+Z'
15073 ;;
15074 esac
15075 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15076 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15077 ;;
15078
15079 irix5* | irix6* | nonstopux*)
15080 lt_prog_compiler_wl_F77='-Wl,'
15081 # PIC (with -KPIC) is the default.
15082 lt_prog_compiler_static_F77='-non_shared'
15083 ;;
15084
15085 newsos6)
15086 lt_prog_compiler_pic_F77='-KPIC'
15087 lt_prog_compiler_static_F77='-Bstatic'
15088 ;;
15089
15090 linux* | k*bsd*-gnu)
15091 case $cc_basename in
15092 icc* | ecc*)
15093 lt_prog_compiler_wl_F77='-Wl,'
15094 lt_prog_compiler_pic_F77='-KPIC'
15095 lt_prog_compiler_static_F77='-static'
15096 ;;
15097 pgcc* | pgf77* | pgf90* | pgf95*)
15098 # Portland Group compilers (*not* the Pentium gcc compiler,
15099 # which looks to be a dead project)
15100 lt_prog_compiler_wl_F77='-Wl,'
15101 lt_prog_compiler_pic_F77='-fpic'
15102 lt_prog_compiler_static_F77='-Bstatic'
15103 ;;
15104 ccc*)
15105 lt_prog_compiler_wl_F77='-Wl,'
15106 # All Alpha code is PIC.
15107 lt_prog_compiler_static_F77='-non_shared'
15108 ;;
15109 *)
15110 case `$CC -V 2>&1 | sed 5q` in
15111 *Sun\ C*)
15112 # Sun C 5.9
15113 lt_prog_compiler_pic_F77='-KPIC'
15114 lt_prog_compiler_static_F77='-Bstatic'
15115 lt_prog_compiler_wl_F77='-Wl,'
15116 ;;
15117 *Sun\ F*)
15118 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15119 lt_prog_compiler_pic_F77='-KPIC'
15120 lt_prog_compiler_static_F77='-Bstatic'
15121 lt_prog_compiler_wl_F77=''
15122 ;;
15123 esac
15124 ;;
15125 esac
15126 ;;
15127
15128 osf3* | osf4* | osf5*)
15129 lt_prog_compiler_wl_F77='-Wl,'
15130 # All OSF/1 code is PIC.
15131 lt_prog_compiler_static_F77='-non_shared'
15132 ;;
15133
15134 rdos*)
15135 lt_prog_compiler_static_F77='-non_shared'
15136 ;;
15137
15138 solaris*)
15139 lt_prog_compiler_pic_F77='-KPIC'
15140 lt_prog_compiler_static_F77='-Bstatic'
15141 case $cc_basename in
15142 f77* | f90* | f95*)
15143 lt_prog_compiler_wl_F77='-Qoption ld ';;
15144 *)
15145 lt_prog_compiler_wl_F77='-Wl,';;
15146 esac
15147 ;;
15148
15149 sunos4*)
15150 lt_prog_compiler_wl_F77='-Qoption ld '
15151 lt_prog_compiler_pic_F77='-PIC'
15152 lt_prog_compiler_static_F77='-Bstatic'
15153 ;;
15154
15155 sysv4 | sysv4.2uw2* | sysv4.3*)
15156 lt_prog_compiler_wl_F77='-Wl,'
15157 lt_prog_compiler_pic_F77='-KPIC'
15158 lt_prog_compiler_static_F77='-Bstatic'
15159 ;;
15160
15161 sysv4*MP*)
15162 if test -d /usr/nec ;then
15163 lt_prog_compiler_pic_F77='-Kconform_pic'
15164 lt_prog_compiler_static_F77='-Bstatic'
15165 fi
15166 ;;
15167
15168 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15169 lt_prog_compiler_wl_F77='-Wl,'
15170 lt_prog_compiler_pic_F77='-KPIC'
15171 lt_prog_compiler_static_F77='-Bstatic'
15172 ;;
15173
15174 unicos*)
15175 lt_prog_compiler_wl_F77='-Wl,'
15176 lt_prog_compiler_can_build_shared_F77=no
15177 ;;
15178
15179 uts4*)
15180 lt_prog_compiler_pic_F77='-pic'
15181 lt_prog_compiler_static_F77='-Bstatic'
15182 ;;
15183
15184 *)
15185 lt_prog_compiler_can_build_shared_F77=no
15186 ;;
15187 esac
15188 fi
15189
15190 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15191 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15192
15193 #
15194 # Check to make sure the PIC flag actually works.
15195 #
15196 if test -n "$lt_prog_compiler_pic_F77"; then
15197
15198 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15200 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203 lt_prog_compiler_pic_works_F77=no
15204 ac_outfile=conftest.$ac_objext
15205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15206 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15207 # Insert the option either (1) after the last *FLAGS variable, or
15208 # (2) before a word containing "conftest.", or (3) at the end.
15209 # Note that $ac_compile itself does not contain backslashes and begins
15210 # with a dollar sign (not a hyphen), so the echo should work correctly.
15211 # The option is referenced via a variable to avoid confusing sed.
15212 lt_compile=`echo "$ac_compile" | $SED \
15213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15215 -e 's:$: $lt_compiler_flag:'`
15216 (eval echo "\"\$as_me:15216: $lt_compile\"" >&5)
15217 (eval "$lt_compile" 2>conftest.err)
15218 ac_status=$?
15219 cat conftest.err >&5
15220 echo "$as_me:15220: \$? = $ac_status" >&5
15221 if (exit $ac_status) && test -s "$ac_outfile"; then
15222 # The compiler can only warn and ignore the option if not recognized
15223 # So say no if there are warnings other than the usual output.
15224 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15227 lt_prog_compiler_pic_works_F77=yes
15228 fi
15229 fi
15230 $rm conftest*
15231
15232 fi
15233 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15234 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15235
15236 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15237 case $lt_prog_compiler_pic_F77 in
15238 "" | " "*) ;;
15239 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15240 esac
15241 else
15242 lt_prog_compiler_pic_F77=
15243 lt_prog_compiler_can_build_shared_F77=no
15244 fi
15245
15246 fi
15247 case $host_os in
15248 # For platforms which do not support PIC, -DPIC is meaningless:
15249 *djgpp*)
15250 lt_prog_compiler_pic_F77=
15251 ;;
15252 *)
15253 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15254 ;;
15255 esac
15256
15257 #
15258 # Check to make sure the static flag actually works.
15259 #
15260 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15261 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15263 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266 lt_prog_compiler_static_works_F77=no
15267 save_LDFLAGS="$LDFLAGS"
15268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15269 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15271 # The linker can only warn and ignore the option if not recognized
15272 # So say no if there are warnings
15273 if test -s conftest.err; then
15274 # Append any errors to the config.log.
15275 cat conftest.err 1>&5
15276 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15278 if diff conftest.exp conftest.er2 >/dev/null; then
15279 lt_prog_compiler_static_works_F77=yes
15280 fi
15281 else
15282 lt_prog_compiler_static_works_F77=yes
15283 fi
15284 fi
15285 $rm conftest*
15286 LDFLAGS="$save_LDFLAGS"
15287
15288 fi
15289 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15290 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15291
15292 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15293 :
15294 else
15295 lt_prog_compiler_static_F77=
15296 fi
15297
15298
15299 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15301 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15304 lt_cv_prog_compiler_c_o_F77=no
15305 $rm -r conftest 2>/dev/null
15306 mkdir conftest
15307 cd conftest
15308 mkdir out
15309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15310
15311 lt_compiler_flag="-o out/conftest2.$ac_objext"
15312 # Insert the option either (1) after the last *FLAGS variable, or
15313 # (2) before a word containing "conftest.", or (3) at the end.
15314 # Note that $ac_compile itself does not contain backslashes and begins
15315 # with a dollar sign (not a hyphen), so the echo should work correctly.
15316 lt_compile=`echo "$ac_compile" | $SED \
15317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15319 -e 's:$: $lt_compiler_flag:'`
15320 (eval echo "\"\$as_me:15320: $lt_compile\"" >&5)
15321 (eval "$lt_compile" 2>out/conftest.err)
15322 ac_status=$?
15323 cat out/conftest.err >&5
15324 echo "$as_me:15324: \$? = $ac_status" >&5
15325 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15326 then
15327 # The compiler can only warn and ignore the option if not recognized
15328 # So say no if there are warnings
15329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15332 lt_cv_prog_compiler_c_o_F77=yes
15333 fi
15334 fi
15335 chmod u+w . 2>&5
15336 $rm conftest*
15337 # SGI C++ compiler will create directory out/ii_files/ for
15338 # template instantiation
15339 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15340 $rm out/* && rmdir out
15341 cd ..
15342 rmdir conftest
15343 $rm conftest*
15344
15345 fi
15346 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15348
15349
15350 hard_links="nottested"
15351 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15352 # do not overwrite the value of need_locks provided by the user
15353 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15355 hard_links=yes
15356 $rm conftest*
15357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15358 touch conftest.a
15359 ln conftest.a conftest.b 2>&5 || hard_links=no
15360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361 { echo "$as_me:$LINENO: result: $hard_links" >&5
15362 echo "${ECHO_T}$hard_links" >&6; }
15363 if test "$hard_links" = no; then
15364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15366 need_locks=warn
15367 fi
15368 else
15369 need_locks=no
15370 fi
15371
15372 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15374
15375 runpath_var=
15376 allow_undefined_flag_F77=
15377 enable_shared_with_static_runtimes_F77=no
15378 archive_cmds_F77=
15379 archive_expsym_cmds_F77=
15380 old_archive_From_new_cmds_F77=
15381 old_archive_from_expsyms_cmds_F77=
15382 export_dynamic_flag_spec_F77=
15383 whole_archive_flag_spec_F77=
15384 thread_safe_flag_spec_F77=
15385 hardcode_libdir_flag_spec_F77=
15386 hardcode_libdir_flag_spec_ld_F77=
15387 hardcode_libdir_separator_F77=
15388 hardcode_direct_F77=no
15389 hardcode_minus_L_F77=no
15390 hardcode_shlibpath_var_F77=unsupported
15391 link_all_deplibs_F77=unknown
15392 hardcode_automatic_F77=no
15393 module_cmds_F77=
15394 module_expsym_cmds_F77=
15395 always_export_symbols_F77=no
15396 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397 # include_expsyms should be a list of space-separated symbols to be *always*
15398 # included in the symbol list
15399 include_expsyms_F77=
15400 # exclude_expsyms can be an extended regexp of symbols to exclude
15401 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15402 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15403 # as well as any symbol that contains `d'.
15404 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15406 # platforms (ab)use it in PIC code, but their linkers get confused if
15407 # the symbol is explicitly referenced. Since portable code cannot
15408 # rely on this symbol name, it's probably fine to never include it in
15409 # preloaded symbol tables.
15410 extract_expsyms_cmds=
15411 # Just being paranoid about ensuring that cc_basename is set.
15412 for cc_temp in $compiler""; do
15413 case $cc_temp in
15414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15416 \-*) ;;
15417 *) break;;
15418 esac
15419 done
15420 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15421
15422 case $host_os in
15423 cygwin* | mingw* | pw32*)
15424 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15425 # When not using gcc, we currently assume that we are using
15426 # Microsoft Visual C++.
15427 if test "$GCC" != yes; then
15428 with_gnu_ld=no
15429 fi
15430 ;;
15431 interix*)
15432 # we just hope/assume this is gcc and not c89 (= MSVC++)
15433 with_gnu_ld=yes
15434 ;;
15435 openbsd*)
15436 with_gnu_ld=no
15437 ;;
15438 esac
15439
15440 ld_shlibs_F77=yes
15441 if test "$with_gnu_ld" = yes; then
15442 # If archive_cmds runs LD, not CC, wlarc should be empty
15443 wlarc='${wl}'
15444
15445 # Set some defaults for GNU ld with shared library support. These
15446 # are reset later if shared libraries are not supported. Putting them
15447 # here allows them to be overridden if necessary.
15448 runpath_var=LD_RUN_PATH
15449 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15450 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15451 # ancient GNU ld didn't support --whole-archive et. al.
15452 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15453 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15454 else
15455 whole_archive_flag_spec_F77=
15456 fi
15457 supports_anon_versioning=no
15458 case `$LD -v 2>/dev/null` in
15459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15462 *\ 2.11.*) ;; # other 2.11 versions
15463 *) supports_anon_versioning=yes ;;
15464 esac
15465
15466 # See if GNU ld supports shared libraries.
15467 case $host_os in
15468 aix3* | aix4* | aix5*)
15469 # On AIX/PPC, the GNU linker is very broken
15470 if test "$host_cpu" != ia64; then
15471 ld_shlibs_F77=no
15472 cat <<EOF 1>&2
15473
15474 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475 *** to be unable to reliably create shared libraries on AIX.
15476 *** Therefore, libtool is disabling shared libraries support. If you
15477 *** really care for shared libraries, you may want to modify your PATH
15478 *** so that a non-GNU linker is found, and then restart.
15479
15480 EOF
15481 fi
15482 ;;
15483
15484 amigaos*)
15485 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)'
15486 hardcode_libdir_flag_spec_F77='-L$libdir'
15487 hardcode_minus_L_F77=yes
15488
15489 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490 # that the semantics of dynamic libraries on AmigaOS, at least up
15491 # to version 4, is to share data among multiple programs linked
15492 # with the same dynamic library. Since this doesn't match the
15493 # behavior of shared libraries on other platforms, we can't use
15494 # them.
15495 ld_shlibs_F77=no
15496 ;;
15497
15498 beos*)
15499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500 allow_undefined_flag_F77=unsupported
15501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502 # support --undefined. This deserves some investigation. FIXME
15503 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504 else
15505 ld_shlibs_F77=no
15506 fi
15507 ;;
15508
15509 cygwin* | mingw* | pw32*)
15510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15511 # as there is no search path for DLLs.
15512 hardcode_libdir_flag_spec_F77='-L$libdir'
15513 allow_undefined_flag_F77=unsupported
15514 always_export_symbols_F77=no
15515 enable_shared_with_static_runtimes_F77=yes
15516 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15517
15518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15520 # If the export-symbols file already is a .def file (1st line
15521 # is EXPORTS), use it as is; otherwise, prepend...
15522 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523 cp $export_symbols $output_objdir/$soname.def;
15524 else
15525 echo EXPORTS > $output_objdir/$soname.def;
15526 cat $export_symbols >> $output_objdir/$soname.def;
15527 fi~
15528 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15529 else
15530 ld_shlibs_F77=no
15531 fi
15532 ;;
15533
15534 interix[3-9]*)
15535 hardcode_direct_F77=no
15536 hardcode_shlibpath_var_F77=no
15537 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15538 export_dynamic_flag_spec_F77='${wl}-E'
15539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15540 # Instead, shared libraries are loaded at an image base (0x10000000 by
15541 # default) and relocated if they conflict, which is a slow very memory
15542 # consuming and fragmenting process. To avoid this, we pick a random,
15543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15545 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'
15546 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'
15547 ;;
15548
15549 gnu* | linux* | k*bsd*-gnu)
15550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15551 tmp_addflag=
15552 case $cc_basename,$host_cpu in
15553 pgcc*) # Portland Group C compiler
15554 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'
15555 tmp_addflag=' $pic_flag'
15556 ;;
15557 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15558 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'
15559 tmp_addflag=' $pic_flag -Mnomain' ;;
15560 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15561 tmp_addflag=' -i_dynamic' ;;
15562 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15563 tmp_addflag=' -i_dynamic -nofor_main' ;;
15564 ifc* | ifort*) # Intel Fortran compiler
15565 tmp_addflag=' -nofor_main' ;;
15566 esac
15567 case `$CC -V 2>&1 | sed 5q` in
15568 *Sun\ C*) # Sun C 5.9
15569 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'
15570 tmp_sharedflag='-G' ;;
15571 *Sun\ F*) # Sun Fortran 8.3
15572 tmp_sharedflag='-G' ;;
15573 *)
15574 tmp_sharedflag='-shared' ;;
15575 esac
15576 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15577
15578 if test $supports_anon_versioning = yes; then
15579 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15581 $echo "local: *; };" >> $output_objdir/$libname.ver~
15582 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15583 fi
15584 else
15585 ld_shlibs_F77=no
15586 fi
15587 ;;
15588
15589 netbsd*)
15590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15591 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15592 wlarc=
15593 else
15594 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15595 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15596 fi
15597 ;;
15598
15599 solaris*)
15600 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15601 ld_shlibs_F77=no
15602 cat <<EOF 1>&2
15603
15604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15605 *** create shared libraries on Solaris systems. Therefore, libtool
15606 *** is disabling shared libraries support. We urge you to upgrade GNU
15607 *** binutils to release 2.9.1 or newer. Another option is to modify
15608 *** your PATH or compiler configuration so that the native linker is
15609 *** used, and then restart.
15610
15611 EOF
15612 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15613 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15614 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15615 else
15616 ld_shlibs_F77=no
15617 fi
15618 ;;
15619
15620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15621 case `$LD -v 2>&1` in
15622 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15623 ld_shlibs_F77=no
15624 cat <<_LT_EOF 1>&2
15625
15626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15627 *** reliably create shared libraries on SCO systems. Therefore, libtool
15628 *** is disabling shared libraries support. We urge you to upgrade GNU
15629 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15630 *** your PATH or compiler configuration so that the native linker is
15631 *** used, and then restart.
15632
15633 _LT_EOF
15634 ;;
15635 *)
15636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15637 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15638 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15639 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15640 else
15641 ld_shlibs_F77=no
15642 fi
15643 ;;
15644 esac
15645 ;;
15646
15647 sunos4*)
15648 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15649 wlarc=
15650 hardcode_direct_F77=yes
15651 hardcode_shlibpath_var_F77=no
15652 ;;
15653
15654 *)
15655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15657 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15658 else
15659 ld_shlibs_F77=no
15660 fi
15661 ;;
15662 esac
15663
15664 if test "$ld_shlibs_F77" = no; then
15665 runpath_var=
15666 hardcode_libdir_flag_spec_F77=
15667 export_dynamic_flag_spec_F77=
15668 whole_archive_flag_spec_F77=
15669 fi
15670 else
15671 # PORTME fill in a description of your system's linker (not GNU ld)
15672 case $host_os in
15673 aix3*)
15674 allow_undefined_flag_F77=unsupported
15675 always_export_symbols_F77=yes
15676 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'
15677 # Note: this linker hardcodes the directories in LIBPATH if there
15678 # are no directories specified by -L.
15679 hardcode_minus_L_F77=yes
15680 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15681 # Neither direct hardcoding nor static linking is supported with a
15682 # broken collect2.
15683 hardcode_direct_F77=unsupported
15684 fi
15685 ;;
15686
15687 aix4* | aix5*)
15688 if test "$host_cpu" = ia64; then
15689 # On IA64, the linker does run time linking by default, so we don't
15690 # have to do anything special.
15691 aix_use_runtimelinking=no
15692 exp_sym_flag='-Bexport'
15693 no_entry_flag=""
15694 else
15695 # If we're using GNU nm, then we don't want the "-C" option.
15696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15697 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15698 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'
15699 else
15700 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'
15701 fi
15702 aix_use_runtimelinking=no
15703
15704 # Test if we are trying to use run time linking or normal
15705 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15706 # need to do runtime linking.
15707 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15708 for ld_flag in $LDFLAGS; do
15709 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15710 aix_use_runtimelinking=yes
15711 break
15712 fi
15713 done
15714 ;;
15715 esac
15716
15717 exp_sym_flag='-bexport'
15718 no_entry_flag='-bnoentry'
15719 fi
15720
15721 # When large executables or shared objects are built, AIX ld can
15722 # have problems creating the table of contents. If linking a library
15723 # or program results in "error TOC overflow" add -mminimal-toc to
15724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15726
15727 archive_cmds_F77=''
15728 hardcode_direct_F77=yes
15729 hardcode_libdir_separator_F77=':'
15730 link_all_deplibs_F77=yes
15731
15732 if test "$GCC" = yes; then
15733 case $host_os in aix4.[012]|aix4.[012].*)
15734 # We only want to do this on AIX 4.2 and lower, the check
15735 # below for broken collect2 doesn't work under 4.3+
15736 collect2name=`${CC} -print-prog-name=collect2`
15737 if test -f "$collect2name" && \
15738 strings "$collect2name" | grep resolve_lib_name >/dev/null
15739 then
15740 # We have reworked collect2
15741 :
15742 else
15743 # We have old collect2
15744 hardcode_direct_F77=unsupported
15745 # It fails to find uninstalled libraries when the uninstalled
15746 # path is not listed in the libpath. Setting hardcode_minus_L
15747 # to unsupported forces relinking
15748 hardcode_minus_L_F77=yes
15749 hardcode_libdir_flag_spec_F77='-L$libdir'
15750 hardcode_libdir_separator_F77=
15751 fi
15752 ;;
15753 esac
15754 shared_flag='-shared'
15755 if test "$aix_use_runtimelinking" = yes; then
15756 shared_flag="$shared_flag "'${wl}-G'
15757 fi
15758 else
15759 # not using gcc
15760 if test "$host_cpu" = ia64; then
15761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15762 # chokes on -Wl,-G. The following line is correct:
15763 shared_flag='-G'
15764 else
15765 if test "$aix_use_runtimelinking" = yes; then
15766 shared_flag='${wl}-G'
15767 else
15768 shared_flag='${wl}-bM:SRE'
15769 fi
15770 fi
15771 fi
15772
15773 # It seems that -bexpall does not export symbols beginning with
15774 # underscore (_), so it is better to generate a list of symbols to export.
15775 always_export_symbols_F77=yes
15776 if test "$aix_use_runtimelinking" = yes; then
15777 # Warning - without using the other runtime loading flags (-brtl),
15778 # -berok will link without error, but may produce a broken library.
15779 allow_undefined_flag_F77='-berok'
15780 # Determine the default libpath from the value encoded in an empty executable.
15781 cat >conftest.$ac_ext <<_ACEOF
15782 program main
15783
15784 end
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_f77_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest$ac_exeext &&
15803 $as_test_x conftest$ac_exeext; then
15804
15805 lt_aix_libpath_sed='
15806 /Import File Strings/,/^$/ {
15807 /^0/ {
15808 s/^0 *\(.*\)$/\1/
15809 p
15810 }
15811 }'
15812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15813 # Check for a 64-bit object if we didn't find anything.
15814 if test -z "$aix_libpath"; then
15815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15816 fi
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821
15822 fi
15823
15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
15826 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15827
15828 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15829 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"
15830 else
15831 if test "$host_cpu" = ia64; then
15832 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15833 allow_undefined_flag_F77="-z nodefs"
15834 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"
15835 else
15836 # Determine the default libpath from the value encoded in an empty executable.
15837 cat >conftest.$ac_ext <<_ACEOF
15838 program main
15839
15840 end
15841 _ACEOF
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (ac_try="$ac_link"
15844 case "(($ac_try" in
15845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846 *) ac_try_echo=$ac_try;;
15847 esac
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849 (eval "$ac_link") 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && {
15856 test -z "$ac_f77_werror_flag" ||
15857 test ! -s conftest.err
15858 } && test -s conftest$ac_exeext &&
15859 $as_test_x conftest$ac_exeext; then
15860
15861 lt_aix_libpath_sed='
15862 /Import File Strings/,/^$/ {
15863 /^0/ {
15864 s/^0 *\(.*\)$/\1/
15865 p
15866 }
15867 }'
15868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15869 # Check for a 64-bit object if we didn't find anything.
15870 if test -z "$aix_libpath"; then
15871 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15872 fi
15873 else
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15876
15877
15878 fi
15879
15880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15881 conftest$ac_exeext conftest.$ac_ext
15882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15883
15884 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15885 # Warning - without using the other run time loading flags,
15886 # -berok will link without error, but may produce a broken library.
15887 no_undefined_flag_F77=' ${wl}-bernotok'
15888 allow_undefined_flag_F77=' ${wl}-berok'
15889 # Exported symbols can be pulled into shared objects from archives
15890 whole_archive_flag_spec_F77='$convenience'
15891 archive_cmds_need_lc_F77=yes
15892 # This is similar to how AIX traditionally builds its shared libraries.
15893 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'
15894 fi
15895 fi
15896 ;;
15897
15898 amigaos*)
15899 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)'
15900 hardcode_libdir_flag_spec_F77='-L$libdir'
15901 hardcode_minus_L_F77=yes
15902 # see comment about different semantics on the GNU ld section
15903 ld_shlibs_F77=no
15904 ;;
15905
15906 bsdi[45]*)
15907 export_dynamic_flag_spec_F77=-rdynamic
15908 ;;
15909
15910 cygwin* | mingw* | pw32*)
15911 # When not using gcc, we currently assume that we are using
15912 # Microsoft Visual C++.
15913 # hardcode_libdir_flag_spec is actually meaningless, as there is
15914 # no search path for DLLs.
15915 hardcode_libdir_flag_spec_F77=' '
15916 allow_undefined_flag_F77=unsupported
15917 # Tell ltmain to make .lib files, not .a files.
15918 libext=lib
15919 # Tell ltmain to make .dll files, not .so files.
15920 shrext_cmds=".dll"
15921 # FIXME: Setting linknames here is a bad hack.
15922 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15923 # The linker will automatically build a .lib file if we build a DLL.
15924 old_archive_From_new_cmds_F77='true'
15925 # FIXME: Should let the user specify the lib program.
15926 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15927 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15928 enable_shared_with_static_runtimes_F77=yes
15929 ;;
15930
15931 darwin* | rhapsody*)
15932 case $host_os in
15933 rhapsody* | darwin1.[012])
15934 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15935 ;;
15936 *) # Darwin 1.3 on
15937 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15938 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15939 else
15940 case ${MACOSX_DEPLOYMENT_TARGET} in
15941 10.[012])
15942 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15943 ;;
15944 10.*)
15945 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15946 ;;
15947 esac
15948 fi
15949 ;;
15950 esac
15951 archive_cmds_need_lc_F77=no
15952 hardcode_direct_F77=no
15953 hardcode_automatic_F77=yes
15954 hardcode_shlibpath_var_F77=unsupported
15955 whole_archive_flag_spec_F77=''
15956 link_all_deplibs_F77=yes
15957 if test "$GCC" = yes ; then
15958 output_verbose_link_cmd='echo'
15959 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15960 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15962 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}'
15963 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}'
15964 else
15965 case $cc_basename in
15966 xlc*)
15967 output_verbose_link_cmd='echo'
15968 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15969 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15970 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15971 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}'
15972 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}'
15973 ;;
15974 *)
15975 ld_shlibs_F77=no
15976 ;;
15977 esac
15978 fi
15979 ;;
15980
15981 dgux*)
15982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15983 hardcode_libdir_flag_spec_F77='-L$libdir'
15984 hardcode_shlibpath_var_F77=no
15985 ;;
15986
15987 freebsd1*)
15988 ld_shlibs_F77=no
15989 ;;
15990
15991 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15992 # support. Future versions do this automatically, but an explicit c++rt0.o
15993 # does not break anything, and helps significantly (at the cost of a little
15994 # extra space).
15995 freebsd2.2*)
15996 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15997 hardcode_libdir_flag_spec_F77='-R$libdir'
15998 hardcode_direct_F77=yes
15999 hardcode_shlibpath_var_F77=no
16000 ;;
16001
16002 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16003 freebsd2*)
16004 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16005 hardcode_direct_F77=yes
16006 hardcode_minus_L_F77=yes
16007 hardcode_shlibpath_var_F77=no
16008 ;;
16009
16010 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16011 freebsd* | dragonfly*)
16012 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16013 hardcode_libdir_flag_spec_F77='-R$libdir'
16014 hardcode_direct_F77=yes
16015 hardcode_shlibpath_var_F77=no
16016 ;;
16017
16018 hpux9*)
16019 if test "$GCC" = yes; then
16020 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'
16021 else
16022 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'
16023 fi
16024 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16025 hardcode_libdir_separator_F77=:
16026 hardcode_direct_F77=yes
16027
16028 # hardcode_minus_L: Not really in the search PATH,
16029 # but as the default location of the library.
16030 hardcode_minus_L_F77=yes
16031 export_dynamic_flag_spec_F77='${wl}-E'
16032 ;;
16033
16034 hpux10*)
16035 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16036 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16037 else
16038 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16039 fi
16040 if test "$with_gnu_ld" = no; then
16041 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16042 hardcode_libdir_separator_F77=:
16043
16044 hardcode_direct_F77=yes
16045 export_dynamic_flag_spec_F77='${wl}-E'
16046
16047 # hardcode_minus_L: Not really in the search PATH,
16048 # but as the default location of the library.
16049 hardcode_minus_L_F77=yes
16050 fi
16051 ;;
16052
16053 hpux11*)
16054 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16055 case $host_cpu in
16056 hppa*64*)
16057 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16058 ;;
16059 ia64*)
16060 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16061 ;;
16062 *)
16063 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16064 ;;
16065 esac
16066 else
16067 case $host_cpu in
16068 hppa*64*)
16069 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16070 ;;
16071 ia64*)
16072 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16073 ;;
16074 *)
16075 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16076 ;;
16077 esac
16078 fi
16079 if test "$with_gnu_ld" = no; then
16080 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16081 hardcode_libdir_separator_F77=:
16082
16083 case $host_cpu in
16084 hppa*64*|ia64*)
16085 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16086 hardcode_direct_F77=no
16087 hardcode_shlibpath_var_F77=no
16088 ;;
16089 *)
16090 hardcode_direct_F77=yes
16091 export_dynamic_flag_spec_F77='${wl}-E'
16092
16093 # hardcode_minus_L: Not really in the search PATH,
16094 # but as the default location of the library.
16095 hardcode_minus_L_F77=yes
16096 ;;
16097 esac
16098 fi
16099 ;;
16100
16101 irix5* | irix6* | nonstopux*)
16102 if test "$GCC" = yes; then
16103 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'
16104 else
16105 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'
16106 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16107 fi
16108 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16109 hardcode_libdir_separator_F77=:
16110 link_all_deplibs_F77=yes
16111 ;;
16112
16113 netbsd*)
16114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16115 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16116 else
16117 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16118 fi
16119 hardcode_libdir_flag_spec_F77='-R$libdir'
16120 hardcode_direct_F77=yes
16121 hardcode_shlibpath_var_F77=no
16122 ;;
16123
16124 newsos6)
16125 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_direct_F77=yes
16127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16128 hardcode_libdir_separator_F77=:
16129 hardcode_shlibpath_var_F77=no
16130 ;;
16131
16132 openbsd*)
16133 if test -f /usr/libexec/ld.so; then
16134 hardcode_direct_F77=yes
16135 hardcode_shlibpath_var_F77=no
16136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16137 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16139 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16140 export_dynamic_flag_spec_F77='${wl}-E'
16141 else
16142 case $host_os in
16143 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16144 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16145 hardcode_libdir_flag_spec_F77='-R$libdir'
16146 ;;
16147 *)
16148 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16149 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16150 ;;
16151 esac
16152 fi
16153 else
16154 ld_shlibs_F77=no
16155 fi
16156 ;;
16157
16158 os2*)
16159 hardcode_libdir_flag_spec_F77='-L$libdir'
16160 hardcode_minus_L_F77=yes
16161 allow_undefined_flag_F77=unsupported
16162 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'
16163 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16164 ;;
16165
16166 osf3*)
16167 if test "$GCC" = yes; then
16168 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16169 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'
16170 else
16171 allow_undefined_flag_F77=' -expect_unresolved \*'
16172 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'
16173 fi
16174 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16175 hardcode_libdir_separator_F77=:
16176 ;;
16177
16178 osf4* | osf5*) # as osf3* with the addition of -msym flag
16179 if test "$GCC" = yes; then
16180 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16181 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'
16182 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16183 else
16184 allow_undefined_flag_F77=' -expect_unresolved \*'
16185 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'
16186 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~
16187 $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'
16188
16189 # Both c and cxx compiler support -rpath directly
16190 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16191 fi
16192 hardcode_libdir_separator_F77=:
16193 ;;
16194
16195 solaris*)
16196 no_undefined_flag_F77=' -z text'
16197 if test "$GCC" = yes; then
16198 wlarc='${wl}'
16199 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16201 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16202 else
16203 wlarc=''
16204 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16207 fi
16208 hardcode_libdir_flag_spec_F77='-R$libdir'
16209 hardcode_shlibpath_var_F77=no
16210 case $host_os in
16211 solaris2.[0-5] | solaris2.[0-5].*) ;;
16212 *)
16213 # The compiler driver will combine and reorder linker options,
16214 # but understands `-z linker_flag'. GCC discards it without `$wl',
16215 # but is careful enough not to reorder.
16216 # Supported since Solaris 2.6 (maybe 2.5.1?)
16217 if test "$GCC" = yes; then
16218 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16219 else
16220 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16221 fi
16222 ;;
16223 esac
16224 link_all_deplibs_F77=yes
16225 ;;
16226
16227 sunos4*)
16228 if test "x$host_vendor" = xsequent; then
16229 # Use $CC to link under sequent, because it throws in some extra .o
16230 # files that make .init and .fini sections work.
16231 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16232 else
16233 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16234 fi
16235 hardcode_libdir_flag_spec_F77='-L$libdir'
16236 hardcode_direct_F77=yes
16237 hardcode_minus_L_F77=yes
16238 hardcode_shlibpath_var_F77=no
16239 ;;
16240
16241 sysv4)
16242 case $host_vendor in
16243 sni)
16244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245 hardcode_direct_F77=yes # is this really true???
16246 ;;
16247 siemens)
16248 ## LD is ld it makes a PLAMLIB
16249 ## CC just makes a GrossModule.
16250 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16251 reload_cmds_F77='$CC -r -o $output$reload_objs'
16252 hardcode_direct_F77=no
16253 ;;
16254 motorola)
16255 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16257 ;;
16258 esac
16259 runpath_var='LD_RUN_PATH'
16260 hardcode_shlibpath_var_F77=no
16261 ;;
16262
16263 sysv4.3*)
16264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265 hardcode_shlibpath_var_F77=no
16266 export_dynamic_flag_spec_F77='-Bexport'
16267 ;;
16268
16269 sysv4*MP*)
16270 if test -d /usr/nec; then
16271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16272 hardcode_shlibpath_var_F77=no
16273 runpath_var=LD_RUN_PATH
16274 hardcode_runpath_var=yes
16275 ld_shlibs_F77=yes
16276 fi
16277 ;;
16278
16279 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16280 no_undefined_flag_F77='${wl}-z,text'
16281 archive_cmds_need_lc_F77=no
16282 hardcode_shlibpath_var_F77=no
16283 runpath_var='LD_RUN_PATH'
16284
16285 if test "$GCC" = yes; then
16286 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16287 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16288 else
16289 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16290 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16291 fi
16292 ;;
16293
16294 sysv5* | sco3.2v5* | sco5v6*)
16295 # Note: We can NOT use -z defs as we might desire, because we do not
16296 # link with -lc, and that would cause any symbols used from libc to
16297 # always be unresolved, which means just about no library would
16298 # ever link correctly. If we're not using GNU ld we use -z text
16299 # though, which does catch some bad symbols but isn't as heavy-handed
16300 # as -z defs.
16301 no_undefined_flag_F77='${wl}-z,text'
16302 allow_undefined_flag_F77='${wl}-z,nodefs'
16303 archive_cmds_need_lc_F77=no
16304 hardcode_shlibpath_var_F77=no
16305 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16306 hardcode_libdir_separator_F77=':'
16307 link_all_deplibs_F77=yes
16308 export_dynamic_flag_spec_F77='${wl}-Bexport'
16309 runpath_var='LD_RUN_PATH'
16310
16311 if test "$GCC" = yes; then
16312 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16313 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 else
16315 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16316 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16317 fi
16318 ;;
16319
16320 uts4*)
16321 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322 hardcode_libdir_flag_spec_F77='-L$libdir'
16323 hardcode_shlibpath_var_F77=no
16324 ;;
16325
16326 *)
16327 ld_shlibs_F77=no
16328 ;;
16329 esac
16330 fi
16331
16332 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16333 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16334 test "$ld_shlibs_F77" = no && can_build_shared=no
16335
16336 #
16337 # Do we need to explicitly link libc?
16338 #
16339 case "x$archive_cmds_need_lc_F77" in
16340 x|xyes)
16341 # Assume -lc should be added
16342 archive_cmds_need_lc_F77=yes
16343
16344 if test "$enable_shared" = yes && test "$GCC" = yes; then
16345 case $archive_cmds_F77 in
16346 *'~'*)
16347 # FIXME: we may have to deal with multi-command sequences.
16348 ;;
16349 '$CC '*)
16350 # Test whether the compiler implicitly links with -lc since on some
16351 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16352 # to ld, don't add -lc before -lgcc.
16353 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16354 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16355 $rm conftest*
16356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16357
16358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16359 (eval $ac_compile) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } 2>conftest.err; then
16363 soname=conftest
16364 lib=conftest
16365 libobjs=conftest.$ac_objext
16366 deplibs=
16367 wl=$lt_prog_compiler_wl_F77
16368 pic_flag=$lt_prog_compiler_pic_F77
16369 compiler_flags=-v
16370 linker_flags=-v
16371 verstring=
16372 output_objdir=.
16373 libname=conftest
16374 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16375 allow_undefined_flag_F77=
16376 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16377 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }
16381 then
16382 archive_cmds_need_lc_F77=no
16383 else
16384 archive_cmds_need_lc_F77=yes
16385 fi
16386 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16387 else
16388 cat conftest.err 1>&5
16389 fi
16390 $rm conftest*
16391 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16392 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16393 ;;
16394 esac
16395 fi
16396 ;;
16397 esac
16398
16399 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16401 library_names_spec=
16402 libname_spec='lib$name'
16403 soname_spec=
16404 shrext_cmds=".so"
16405 postinstall_cmds=
16406 postuninstall_cmds=
16407 finish_cmds=
16408 finish_eval=
16409 shlibpath_var=
16410 shlibpath_overrides_runpath=unknown
16411 version_type=none
16412 dynamic_linker="$host_os ld.so"
16413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16414
16415 need_lib_prefix=unknown
16416 hardcode_into_libs=no
16417
16418 # when you set need_version to no, make sure it does not cause -set_version
16419 # flags to be left without arguments
16420 need_version=unknown
16421
16422 case $host_os in
16423 aix3*)
16424 version_type=linux
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16426 shlibpath_var=LIBPATH
16427
16428 # AIX 3 has no versioning support, so we append a major version to the name.
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 ;;
16431
16432 aix4* | aix5*)
16433 version_type=linux
16434 need_lib_prefix=no
16435 need_version=no
16436 hardcode_into_libs=yes
16437 if test "$host_cpu" = ia64; then
16438 # AIX 5 supports IA64
16439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 else
16442 # With GCC up to 2.95.x, collect2 would create an import file
16443 # for dependence libraries. The import file would start with
16444 # the line `#! .'. This would cause the generated library to
16445 # depend on `.', always an invalid library. This was fixed in
16446 # development snapshots of GCC prior to 3.0.
16447 case $host_os in
16448 aix4 | aix4.[01] | aix4.[01].*)
16449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16450 echo ' yes '
16451 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16452 :
16453 else
16454 can_build_shared=no
16455 fi
16456 ;;
16457 esac
16458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16459 # soname into executable. Probably we can add versioning support to
16460 # collect2, so additional links can be useful in future.
16461 if test "$aix_use_runtimelinking" = yes; then
16462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16463 # instead of lib<name>.a to let people know that these are not
16464 # typical AIX shared libraries.
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 else
16467 # We preserve .a as extension for shared libraries through AIX4.2
16468 # and later when we are not doing run time linking.
16469 library_names_spec='${libname}${release}.a $libname.a'
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 fi
16472 shlibpath_var=LIBPATH
16473 fi
16474 ;;
16475
16476 amigaos*)
16477 library_names_spec='$libname.ixlibrary $libname.a'
16478 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16479 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'
16480 ;;
16481
16482 beos*)
16483 library_names_spec='${libname}${shared_ext}'
16484 dynamic_linker="$host_os ld.so"
16485 shlibpath_var=LIBRARY_PATH
16486 ;;
16487
16488 bsdi[45]*)
16489 version_type=linux
16490 need_version=no
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16497 # the default ld.so.conf also contains /usr/contrib/lib and
16498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16499 # libtool to hard-code these into programs
16500 ;;
16501
16502 cygwin* | mingw* | pw32*)
16503 version_type=windows
16504 shrext_cmds=".dll"
16505 need_version=no
16506 need_lib_prefix=no
16507
16508 case $GCC,$host_os in
16509 yes,cygwin* | yes,mingw* | yes,pw32*)
16510 library_names_spec='$libname.dll.a'
16511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16512 postinstall_cmds='base_file=`basename \${file}`~
16513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16514 dldir=$destdir/`dirname \$dlpath`~
16515 test -d \$dldir || mkdir -p \$dldir~
16516 $install_prog $dir/$dlname \$dldir/$dlname~
16517 chmod a+x \$dldir/$dlname'
16518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16519 dlpath=$dir/\$dldll~
16520 $rm \$dlpath'
16521 shlibpath_overrides_runpath=yes
16522
16523 case $host_os in
16524 cygwin*)
16525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16527 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16528 ;;
16529 mingw*)
16530 # MinGW DLLs use traditional 'lib' prefix
16531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16533 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16534 # It is most probably a Windows format PATH printed by
16535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16536 # path with ; separators, and with drive letters. We can handle the
16537 # drive letters (cygwin fileutils understands them), so leave them,
16538 # especially as we might pass files found there to a mingw objdump,
16539 # which wouldn't understand a cygwinified path. Ahh.
16540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16541 else
16542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16543 fi
16544 ;;
16545 pw32*)
16546 # pw32 DLLs use 'pw' prefix rather than 'lib'
16547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16548 ;;
16549 esac
16550 ;;
16551
16552 *)
16553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16554 ;;
16555 esac
16556 dynamic_linker='Win32 ld.exe'
16557 # FIXME: first we should search . and the directory the executable is in
16558 shlibpath_var=PATH
16559 ;;
16560
16561 darwin* | rhapsody*)
16562 dynamic_linker="$host_os dyld"
16563 version_type=darwin
16564 need_lib_prefix=no
16565 need_version=no
16566 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16567 soname_spec='${libname}${release}${major}$shared_ext'
16568 shlibpath_overrides_runpath=yes
16569 shlibpath_var=DYLD_LIBRARY_PATH
16570 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16571
16572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16573 ;;
16574
16575 dgux*)
16576 version_type=linux
16577 need_lib_prefix=no
16578 need_version=no
16579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16580 soname_spec='${libname}${release}${shared_ext}$major'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 ;;
16583
16584 freebsd1*)
16585 dynamic_linker=no
16586 ;;
16587
16588 freebsd* | dragonfly*)
16589 # DragonFly does not have aout. When/if they implement a new
16590 # versioning mechanism, adjust this.
16591 if test -x /usr/bin/objformat; then
16592 objformat=`/usr/bin/objformat`
16593 else
16594 case $host_os in
16595 freebsd[123]*) objformat=aout ;;
16596 *) objformat=elf ;;
16597 esac
16598 fi
16599 version_type=freebsd-$objformat
16600 case $version_type in
16601 freebsd-elf*)
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16603 need_version=no
16604 need_lib_prefix=no
16605 ;;
16606 freebsd-*)
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16608 need_version=yes
16609 ;;
16610 esac
16611 shlibpath_var=LD_LIBRARY_PATH
16612 case $host_os in
16613 freebsd2*)
16614 shlibpath_overrides_runpath=yes
16615 ;;
16616 freebsd3.[01]* | freebsdelf3.[01]*)
16617 shlibpath_overrides_runpath=yes
16618 hardcode_into_libs=yes
16619 ;;
16620 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16621 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16622 shlibpath_overrides_runpath=no
16623 hardcode_into_libs=yes
16624 ;;
16625 *) # from 4.6 on, and DragonFly
16626 shlibpath_overrides_runpath=yes
16627 hardcode_into_libs=yes
16628 ;;
16629 esac
16630 ;;
16631
16632 gnu*)
16633 version_type=linux
16634 need_lib_prefix=no
16635 need_version=no
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 shlibpath_var=LD_LIBRARY_PATH
16639 hardcode_into_libs=yes
16640 ;;
16641
16642 hpux9* | hpux10* | hpux11*)
16643 # Give a soname corresponding to the major version so that dld.sl refuses to
16644 # link against other versions.
16645 version_type=sunos
16646 need_lib_prefix=no
16647 need_version=no
16648 case $host_cpu in
16649 ia64*)
16650 shrext_cmds='.so'
16651 hardcode_into_libs=yes
16652 dynamic_linker="$host_os dld.so"
16653 shlibpath_var=LD_LIBRARY_PATH
16654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 if test "X$HPUX_IA64_MODE" = X32; then
16658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16659 else
16660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16661 fi
16662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16663 ;;
16664 hppa*64*)
16665 shrext_cmds='.sl'
16666 hardcode_into_libs=yes
16667 dynamic_linker="$host_os dld.sl"
16668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671 soname_spec='${libname}${release}${shared_ext}$major'
16672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16674 ;;
16675 *)
16676 shrext_cmds='.sl'
16677 dynamic_linker="$host_os dld.sl"
16678 shlibpath_var=SHLIB_PATH
16679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 ;;
16683 esac
16684 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16685 postinstall_cmds='chmod 555 $lib'
16686 ;;
16687
16688 interix[3-9]*)
16689 version_type=linux
16690 need_lib_prefix=no
16691 need_version=no
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=no
16697 hardcode_into_libs=yes
16698 ;;
16699
16700 irix5* | irix6* | nonstopux*)
16701 case $host_os in
16702 nonstopux*) version_type=nonstopux ;;
16703 *)
16704 if test "$lt_cv_prog_gnu_ld" = yes; then
16705 version_type=linux
16706 else
16707 version_type=irix
16708 fi ;;
16709 esac
16710 need_lib_prefix=no
16711 need_version=no
16712 soname_spec='${libname}${release}${shared_ext}$major'
16713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16714 case $host_os in
16715 irix5* | nonstopux*)
16716 libsuff= shlibsuff=
16717 ;;
16718 *)
16719 case $LD in # libtool.m4 will add one of these switches to LD
16720 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16721 libsuff= shlibsuff= libmagic=32-bit;;
16722 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16723 libsuff=32 shlibsuff=N32 libmagic=N32;;
16724 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16725 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16726 *) libsuff= shlibsuff= libmagic=never-match;;
16727 esac
16728 ;;
16729 esac
16730 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16731 shlibpath_overrides_runpath=no
16732 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16733 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16734 hardcode_into_libs=yes
16735 ;;
16736
16737 # No shared lib support for Linux oldld, aout, or coff.
16738 linux*oldld* | linux*aout* | linux*coff*)
16739 dynamic_linker=no
16740 ;;
16741
16742 # This must be Linux ELF.
16743 linux* | k*bsd*-gnu)
16744 version_type=linux
16745 need_lib_prefix=no
16746 need_version=no
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 soname_spec='${libname}${release}${shared_ext}$major'
16749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=no
16752 # This implies no fast_install, which is unacceptable.
16753 # Some rework will be needed to allow for fast_install
16754 # before this can be enabled.
16755 hardcode_into_libs=yes
16756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16758
16759 # Append ld.so.conf contents to the search path
16760 if test -f /etc/ld.so.conf; then
16761 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' ' '`
16762 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16763 fi
16764
16765 # We used to test for /lib/ld.so.1 and disable shared libraries on
16766 # powerpc, because MkLinux only supported shared libraries with the
16767 # GNU dynamic linker. Since this was broken with cross compilers,
16768 # most powerpc-linux boxes support dynamic linking these days and
16769 # people can always --disable-shared, the test was removed, and we
16770 # assume the GNU/Linux dynamic linker is in use.
16771 dynamic_linker='GNU/Linux ld.so'
16772 ;;
16773
16774 netbsd*)
16775 version_type=sunos
16776 need_lib_prefix=no
16777 need_version=no
16778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16781 dynamic_linker='NetBSD (a.out) ld.so'
16782 else
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16784 soname_spec='${libname}${release}${shared_ext}$major'
16785 dynamic_linker='NetBSD ld.elf_so'
16786 fi
16787 shlibpath_var=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath=yes
16789 hardcode_into_libs=yes
16790 ;;
16791
16792 newsos6)
16793 version_type=linux
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 shlibpath_overrides_runpath=yes
16797 ;;
16798
16799 nto-qnx*)
16800 version_type=linux
16801 need_lib_prefix=no
16802 need_version=no
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=yes
16807 ;;
16808
16809 openbsd*)
16810 version_type=sunos
16811 sys_lib_dlsearch_path_spec="/usr/lib"
16812 need_lib_prefix=no
16813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16814 case $host_os in
16815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16816 *) need_version=no ;;
16817 esac
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16822 case $host_os in
16823 openbsd2.[89] | openbsd2.[89].*)
16824 shlibpath_overrides_runpath=no
16825 ;;
16826 *)
16827 shlibpath_overrides_runpath=yes
16828 ;;
16829 esac
16830 else
16831 shlibpath_overrides_runpath=yes
16832 fi
16833 ;;
16834
16835 os2*)
16836 libname_spec='$name'
16837 shrext_cmds=".dll"
16838 need_lib_prefix=no
16839 library_names_spec='$libname${shared_ext} $libname.a'
16840 dynamic_linker='OS/2 ld.exe'
16841 shlibpath_var=LIBPATH
16842 ;;
16843
16844 osf3* | osf4* | osf5*)
16845 version_type=osf
16846 need_lib_prefix=no
16847 need_version=no
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 shlibpath_var=LD_LIBRARY_PATH
16851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16853 ;;
16854
16855 rdos*)
16856 dynamic_linker=no
16857 ;;
16858
16859 solaris*)
16860 version_type=linux
16861 need_lib_prefix=no
16862 need_version=no
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16867 hardcode_into_libs=yes
16868 # ldd complains unless libraries are executable
16869 postinstall_cmds='chmod +x $lib'
16870 ;;
16871
16872 sunos4*)
16873 version_type=sunos
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 shlibpath_overrides_runpath=yes
16878 if test "$with_gnu_ld" = yes; then
16879 need_lib_prefix=no
16880 fi
16881 need_version=yes
16882 ;;
16883
16884 sysv4 | sysv4.3*)
16885 version_type=linux
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 case $host_vendor in
16890 sni)
16891 shlibpath_overrides_runpath=no
16892 need_lib_prefix=no
16893 export_dynamic_flag_spec='${wl}-Blargedynsym'
16894 runpath_var=LD_RUN_PATH
16895 ;;
16896 siemens)
16897 need_lib_prefix=no
16898 ;;
16899 motorola)
16900 need_lib_prefix=no
16901 need_version=no
16902 shlibpath_overrides_runpath=no
16903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16904 ;;
16905 esac
16906 ;;
16907
16908 sysv4*MP*)
16909 if test -d /usr/nec ;then
16910 version_type=linux
16911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16912 soname_spec='$libname${shared_ext}.$major'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 fi
16915 ;;
16916
16917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16918 version_type=freebsd-elf
16919 need_lib_prefix=no
16920 need_version=no
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 hardcode_into_libs=yes
16925 if test "$with_gnu_ld" = yes; then
16926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16927 shlibpath_overrides_runpath=no
16928 else
16929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16930 shlibpath_overrides_runpath=yes
16931 case $host_os in
16932 sco3.2v5*)
16933 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16934 ;;
16935 esac
16936 fi
16937 sys_lib_dlsearch_path_spec='/usr/lib'
16938 ;;
16939
16940 uts4*)
16941 version_type=linux
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16944 shlibpath_var=LD_LIBRARY_PATH
16945 ;;
16946
16947 *)
16948 dynamic_linker=no
16949 ;;
16950 esac
16951 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16952 echo "${ECHO_T}$dynamic_linker" >&6; }
16953 test "$dynamic_linker" = no && can_build_shared=no
16954
16955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16956 if test "$GCC" = yes; then
16957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16958 fi
16959
16960 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16961 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16962 hardcode_action_F77=
16963 if test -n "$hardcode_libdir_flag_spec_F77" || \
16964 test -n "$runpath_var_F77" || \
16965 test "X$hardcode_automatic_F77" = "Xyes" ; then
16966
16967 # We can hardcode non-existant directories.
16968 if test "$hardcode_direct_F77" != no &&
16969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16970 # have to relink, otherwise we might link with an installed library
16971 # when we should be linking with a yet-to-be-installed one
16972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16973 test "$hardcode_minus_L_F77" != no; then
16974 # Linking always hardcodes the temporary library directory.
16975 hardcode_action_F77=relink
16976 else
16977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16978 hardcode_action_F77=immediate
16979 fi
16980 else
16981 # We cannot hardcode anything, or else we can only hardcode existing
16982 # directories.
16983 hardcode_action_F77=unsupported
16984 fi
16985 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16986 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16987
16988 if test "$hardcode_action_F77" = relink; then
16989 # Fast installation is not supported
16990 enable_fast_install=no
16991 elif test "$shlibpath_overrides_runpath" = yes ||
16992 test "$enable_shared" = no; then
16993 # Fast installation is not necessary
16994 enable_fast_install=needless
16995 fi
16996
16997
16998 # The else clause should only fire when bootstrapping the
16999 # libtool distribution, otherwise you forgot to ship ltmain.sh
17000 # with your package, and you will get complaints that there are
17001 # no rules to generate ltmain.sh.
17002 if test -f "$ltmain"; then
17003 # See if we are running on zsh, and set the options which allow our commands through
17004 # without removal of \ escapes.
17005 if test -n "${ZSH_VERSION+set}" ; then
17006 setopt NO_GLOB_SUBST
17007 fi
17008 # Now quote all the things that may contain metacharacters while being
17009 # careful not to overquote the AC_SUBSTed values. We take copies of the
17010 # variables and quote the copies for generation of the libtool script.
17011 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17012 SED SHELL STRIP \
17013 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17014 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17015 deplibs_check_method reload_flag reload_cmds need_locks \
17016 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17017 lt_cv_sys_global_symbol_to_c_name_address \
17018 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17019 old_postinstall_cmds old_postuninstall_cmds \
17020 compiler_F77 \
17021 CC_F77 \
17022 LD_F77 \
17023 lt_prog_compiler_wl_F77 \
17024 lt_prog_compiler_pic_F77 \
17025 lt_prog_compiler_static_F77 \
17026 lt_prog_compiler_no_builtin_flag_F77 \
17027 export_dynamic_flag_spec_F77 \
17028 thread_safe_flag_spec_F77 \
17029 whole_archive_flag_spec_F77 \
17030 enable_shared_with_static_runtimes_F77 \
17031 old_archive_cmds_F77 \
17032 old_archive_from_new_cmds_F77 \
17033 predep_objects_F77 \
17034 postdep_objects_F77 \
17035 predeps_F77 \
17036 postdeps_F77 \
17037 compiler_lib_search_path_F77 \
17038 archive_cmds_F77 \
17039 archive_expsym_cmds_F77 \
17040 postinstall_cmds_F77 \
17041 postuninstall_cmds_F77 \
17042 old_archive_from_expsyms_cmds_F77 \
17043 allow_undefined_flag_F77 \
17044 no_undefined_flag_F77 \
17045 export_symbols_cmds_F77 \
17046 hardcode_libdir_flag_spec_F77 \
17047 hardcode_libdir_flag_spec_ld_F77 \
17048 hardcode_libdir_separator_F77 \
17049 hardcode_automatic_F77 \
17050 module_cmds_F77 \
17051 module_expsym_cmds_F77 \
17052 lt_cv_prog_compiler_c_o_F77 \
17053 fix_srcfile_path_F77 \
17054 exclude_expsyms_F77 \
17055 include_expsyms_F77; do
17056
17057 case $var in
17058 old_archive_cmds_F77 | \
17059 old_archive_from_new_cmds_F77 | \
17060 archive_cmds_F77 | \
17061 archive_expsym_cmds_F77 | \
17062 module_cmds_F77 | \
17063 module_expsym_cmds_F77 | \
17064 old_archive_from_expsyms_cmds_F77 | \
17065 export_symbols_cmds_F77 | \
17066 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17067 postinstall_cmds | postuninstall_cmds | \
17068 old_postinstall_cmds | old_postuninstall_cmds | \
17069 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17070 # Double-quote double-evaled strings.
17071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17072 ;;
17073 *)
17074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17075 ;;
17076 esac
17077 done
17078
17079 case $lt_echo in
17080 *'\$0 --fallback-echo"')
17081 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17082 ;;
17083 esac
17084
17085 cfgfile="$ofile"
17086
17087 cat <<__EOF__ >> "$cfgfile"
17088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17089
17090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17091
17092 # Shell to use when invoking shell scripts.
17093 SHELL=$lt_SHELL
17094
17095 # Whether or not to build shared libraries.
17096 build_libtool_libs=$enable_shared
17097
17098 # Whether or not to build static libraries.
17099 build_old_libs=$enable_static
17100
17101 # Whether or not to add -lc for building shared libraries.
17102 build_libtool_need_lc=$archive_cmds_need_lc_F77
17103
17104 # Whether or not to disallow shared libs when runtime libs are static
17105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17106
17107 # Whether or not to optimize for fast installation.
17108 fast_install=$enable_fast_install
17109
17110 # The host system.
17111 host_alias=$host_alias
17112 host=$host
17113 host_os=$host_os
17114
17115 # The build system.
17116 build_alias=$build_alias
17117 build=$build
17118 build_os=$build_os
17119
17120 # An echo program that does not interpret backslashes.
17121 echo=$lt_echo
17122
17123 # The archiver.
17124 AR=$lt_AR
17125 AR_FLAGS=$lt_AR_FLAGS
17126
17127 # A C compiler.
17128 LTCC=$lt_LTCC
17129
17130 # LTCC compiler flags.
17131 LTCFLAGS=$lt_LTCFLAGS
17132
17133 # A language-specific compiler.
17134 CC=$lt_compiler_F77
17135
17136 # Is the compiler the GNU C compiler?
17137 with_gcc=$GCC_F77
17138
17139 # An ERE matcher.
17140 EGREP=$lt_EGREP
17141
17142 # The linker used to build libraries.
17143 LD=$lt_LD_F77
17144
17145 # Whether we need hard or soft links.
17146 LN_S=$lt_LN_S
17147
17148 # A BSD-compatible nm program.
17149 NM=$lt_NM
17150
17151 # A symbol stripping program
17152 STRIP=$lt_STRIP
17153
17154 # Used to examine libraries when file_magic_cmd begins "file"
17155 MAGIC_CMD=$MAGIC_CMD
17156
17157 # Used on cygwin: DLL creation program.
17158 DLLTOOL="$DLLTOOL"
17159
17160 # Used on cygwin: object dumper.
17161 OBJDUMP="$OBJDUMP"
17162
17163 # Used on cygwin: assembler.
17164 AS="$AS"
17165
17166 # The name of the directory that contains temporary libtool files.
17167 objdir=$objdir
17168
17169 # How to create reloadable object files.
17170 reload_flag=$lt_reload_flag
17171 reload_cmds=$lt_reload_cmds
17172
17173 # How to pass a linker flag through the compiler.
17174 wl=$lt_lt_prog_compiler_wl_F77
17175
17176 # Object file suffix (normally "o").
17177 objext="$ac_objext"
17178
17179 # Old archive suffix (normally "a").
17180 libext="$libext"
17181
17182 # Shared library suffix (normally ".so").
17183 shrext_cmds='$shrext_cmds'
17184
17185 # Executable file suffix (normally "").
17186 exeext="$exeext"
17187
17188 # Additional compiler flags for building library objects.
17189 pic_flag=$lt_lt_prog_compiler_pic_F77
17190 pic_mode=$pic_mode
17191
17192 # What is the maximum length of a command?
17193 max_cmd_len=$lt_cv_sys_max_cmd_len
17194
17195 # Does compiler simultaneously support -c and -o options?
17196 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17197
17198 # Must we lock files when doing compilation?
17199 need_locks=$lt_need_locks
17200
17201 # Do we need the lib prefix for modules?
17202 need_lib_prefix=$need_lib_prefix
17203
17204 # Do we need a version for libraries?
17205 need_version=$need_version
17206
17207 # Whether dlopen is supported.
17208 dlopen_support=$enable_dlopen
17209
17210 # Whether dlopen of programs is supported.
17211 dlopen_self=$enable_dlopen_self
17212
17213 # Whether dlopen of statically linked programs is supported.
17214 dlopen_self_static=$enable_dlopen_self_static
17215
17216 # Compiler flag to prevent dynamic linking.
17217 link_static_flag=$lt_lt_prog_compiler_static_F77
17218
17219 # Compiler flag to turn off builtin functions.
17220 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17221
17222 # Compiler flag to allow reflexive dlopens.
17223 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17224
17225 # Compiler flag to generate shared objects directly from archives.
17226 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17227
17228 # Compiler flag to generate thread-safe objects.
17229 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17230
17231 # Library versioning type.
17232 version_type=$version_type
17233
17234 # Format of library name prefix.
17235 libname_spec=$lt_libname_spec
17236
17237 # List of archive names. First name is the real one, the rest are links.
17238 # The last name is the one that the linker finds with -lNAME.
17239 library_names_spec=$lt_library_names_spec
17240
17241 # The coded name of the library, if different from the real name.
17242 soname_spec=$lt_soname_spec
17243
17244 # Commands used to build and install an old-style archive.
17245 RANLIB=$lt_RANLIB
17246 old_archive_cmds=$lt_old_archive_cmds_F77
17247 old_postinstall_cmds=$lt_old_postinstall_cmds
17248 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17249
17250 # Create an old-style archive from a shared archive.
17251 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17252
17253 # Create a temporary old-style archive to link instead of a shared archive.
17254 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17255
17256 # Commands used to build and install a shared archive.
17257 archive_cmds=$lt_archive_cmds_F77
17258 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17259 postinstall_cmds=$lt_postinstall_cmds
17260 postuninstall_cmds=$lt_postuninstall_cmds
17261
17262 # Commands used to build a loadable module (assumed same as above if empty)
17263 module_cmds=$lt_module_cmds_F77
17264 module_expsym_cmds=$lt_module_expsym_cmds_F77
17265
17266 # Commands to strip libraries.
17267 old_striplib=$lt_old_striplib
17268 striplib=$lt_striplib
17269
17270 # Dependencies to place before the objects being linked to create a
17271 # shared library.
17272 predep_objects=$lt_predep_objects_F77
17273
17274 # Dependencies to place after the objects being linked to create a
17275 # shared library.
17276 postdep_objects=$lt_postdep_objects_F77
17277
17278 # Dependencies to place before the objects being linked to create a
17279 # shared library.
17280 predeps=$lt_predeps_F77
17281
17282 # Dependencies to place after the objects being linked to create a
17283 # shared library.
17284 postdeps=$lt_postdeps_F77
17285
17286 # The library search path used internally by the compiler when linking
17287 # a shared library.
17288 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17289
17290 # Method to check whether dependent libraries are shared objects.
17291 deplibs_check_method=$lt_deplibs_check_method
17292
17293 # Command to use when deplibs_check_method == file_magic.
17294 file_magic_cmd=$lt_file_magic_cmd
17295
17296 # Flag that allows shared libraries with undefined symbols to be built.
17297 allow_undefined_flag=$lt_allow_undefined_flag_F77
17298
17299 # Flag that forces no undefined symbols.
17300 no_undefined_flag=$lt_no_undefined_flag_F77
17301
17302 # Commands used to finish a libtool library installation in a directory.
17303 finish_cmds=$lt_finish_cmds
17304
17305 # Same as above, but a single script fragment to be evaled but not shown.
17306 finish_eval=$lt_finish_eval
17307
17308 # Take the output of nm and produce a listing of raw symbols and C names.
17309 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17310
17311 # Transform the output of nm in a proper C declaration
17312 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17313
17314 # Transform the output of nm in a C name address pair
17315 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17316
17317 # This is the shared library runtime path variable.
17318 runpath_var=$runpath_var
17319
17320 # This is the shared library path variable.
17321 shlibpath_var=$shlibpath_var
17322
17323 # Is shlibpath searched before the hard-coded library search path?
17324 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17325
17326 # How to hardcode a shared library path into an executable.
17327 hardcode_action=$hardcode_action_F77
17328
17329 # Whether we should hardcode library paths into libraries.
17330 hardcode_into_libs=$hardcode_into_libs
17331
17332 # Flag to hardcode \$libdir into a binary during linking.
17333 # This must work even if \$libdir does not exist.
17334 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17335
17336 # If ld is used when linking, flag to hardcode \$libdir into
17337 # a binary during linking. This must work even if \$libdir does
17338 # not exist.
17339 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17340
17341 # Whether we need a single -rpath flag with a separated argument.
17342 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17343
17344 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17345 # resulting binary.
17346 hardcode_direct=$hardcode_direct_F77
17347
17348 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17349 # resulting binary.
17350 hardcode_minus_L=$hardcode_minus_L_F77
17351
17352 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17353 # the resulting binary.
17354 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17355
17356 # Set to yes if building a shared library automatically hardcodes DIR into the library
17357 # and all subsequent libraries and executables linked against it.
17358 hardcode_automatic=$hardcode_automatic_F77
17359
17360 # Variables whose values should be saved in libtool wrapper scripts and
17361 # restored at relink time.
17362 variables_saved_for_relink="$variables_saved_for_relink"
17363
17364 # Whether libtool must link a program against all its dependency libraries.
17365 link_all_deplibs=$link_all_deplibs_F77
17366
17367 # Compile-time system search path for libraries
17368 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17369
17370 # Run-time system search path for libraries
17371 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17372
17373 # Fix the shell variable \$srcfile for the compiler.
17374 fix_srcfile_path=$lt_fix_srcfile_path
17375
17376 # Set to yes if exported symbols are required.
17377 always_export_symbols=$always_export_symbols_F77
17378
17379 # The commands to list exported symbols.
17380 export_symbols_cmds=$lt_export_symbols_cmds_F77
17381
17382 # The commands to extract the exported symbol list from a shared archive.
17383 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17384
17385 # Symbols that should not be listed in the preloaded symbols.
17386 exclude_expsyms=$lt_exclude_expsyms_F77
17387
17388 # Symbols that must always be exported.
17389 include_expsyms=$lt_include_expsyms_F77
17390
17391 # ### END LIBTOOL TAG CONFIG: $tagname
17392
17393 __EOF__
17394
17395
17396 else
17397 # If there is no Makefile yet, we rely on a make rule to execute
17398 # `config.status --recheck' to rerun these tests and create the
17399 # libtool script then.
17400 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17401 if test -f "$ltmain_in"; then
17402 test -f Makefile && make "$ltmain"
17403 fi
17404 fi
17405
17406
17407 ac_ext=c
17408 ac_cpp='$CPP $CPPFLAGS'
17409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17412
17413 CC="$lt_save_CC"
17414
17415 else
17416 tagname=""
17417 fi
17418 ;;
17419
17420 GCJ)
17421 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17422
17423
17424 # Source file extension for Java test sources.
17425 ac_ext=java
17426
17427 # Object file extension for compiled Java test sources.
17428 objext=o
17429 objext_GCJ=$objext
17430
17431 # Code to be used in simple compile tests
17432 lt_simple_compile_test_code="class foo {}"
17433
17434 # Code to be used in simple link tests
17435 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17436
17437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17438
17439 # If no C compiler was specified, use CC.
17440 LTCC=${LTCC-"$CC"}
17441
17442 # If no C compiler flags were specified, use CFLAGS.
17443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17444
17445 # Allow CC to be a program name with arguments.
17446 compiler=$CC
17447
17448
17449 # save warnings/boilerplate of simple test code
17450 ac_outfile=conftest.$ac_objext
17451 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17453 _lt_compiler_boilerplate=`cat conftest.err`
17454 $rm conftest*
17455
17456 ac_outfile=conftest.$ac_objext
17457 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17459 _lt_linker_boilerplate=`cat conftest.err`
17460 $rm conftest*
17461
17462
17463 # Allow CC to be a program name with arguments.
17464 lt_save_CC="$CC"
17465 CC=${GCJ-"gcj"}
17466 compiler=$CC
17467 compiler_GCJ=$CC
17468 for cc_temp in $compiler""; do
17469 case $cc_temp in
17470 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17471 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17472 \-*) ;;
17473 *) break;;
17474 esac
17475 done
17476 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17477
17478
17479 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17480 archive_cmds_need_lc_GCJ=no
17481
17482 old_archive_cmds_GCJ=$old_archive_cmds
17483
17484
17485 lt_prog_compiler_no_builtin_flag_GCJ=
17486
17487 if test "$GCC" = yes; then
17488 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17489
17490
17491 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17492 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17493 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496 lt_cv_prog_compiler_rtti_exceptions=no
17497 ac_outfile=conftest.$ac_objext
17498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17499 lt_compiler_flag="-fno-rtti -fno-exceptions"
17500 # Insert the option either (1) after the last *FLAGS variable, or
17501 # (2) before a word containing "conftest.", or (3) at the end.
17502 # Note that $ac_compile itself does not contain backslashes and begins
17503 # with a dollar sign (not a hyphen), so the echo should work correctly.
17504 # The option is referenced via a variable to avoid confusing sed.
17505 lt_compile=`echo "$ac_compile" | $SED \
17506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17508 -e 's:$: $lt_compiler_flag:'`
17509 (eval echo "\"\$as_me:17509: $lt_compile\"" >&5)
17510 (eval "$lt_compile" 2>conftest.err)
17511 ac_status=$?
17512 cat conftest.err >&5
17513 echo "$as_me:17513: \$? = $ac_status" >&5
17514 if (exit $ac_status) && test -s "$ac_outfile"; then
17515 # The compiler can only warn and ignore the option if not recognized
17516 # So say no if there are warnings other than the usual output.
17517 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17520 lt_cv_prog_compiler_rtti_exceptions=yes
17521 fi
17522 fi
17523 $rm conftest*
17524
17525 fi
17526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17527 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17528
17529 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17530 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17531 else
17532 :
17533 fi
17534
17535 fi
17536
17537 lt_prog_compiler_wl_GCJ=
17538 lt_prog_compiler_pic_GCJ=
17539 lt_prog_compiler_static_GCJ=
17540
17541 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17542 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17543
17544 if test "$GCC" = yes; then
17545 lt_prog_compiler_wl_GCJ='-Wl,'
17546 lt_prog_compiler_static_GCJ='-static'
17547
17548 case $host_os in
17549 aix*)
17550 # All AIX code is PIC.
17551 if test "$host_cpu" = ia64; then
17552 # AIX 5 now supports IA64 processor
17553 lt_prog_compiler_static_GCJ='-Bstatic'
17554 fi
17555 ;;
17556
17557 amigaos*)
17558 # FIXME: we need at least 68020 code to build shared libraries, but
17559 # adding the `-m68020' flag to GCC prevents building anything better,
17560 # like `-m68040'.
17561 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17562 ;;
17563
17564 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17565 # PIC is the default for these OSes.
17566 ;;
17567
17568 mingw* | cygwin* | pw32* | os2*)
17569 # This hack is so that the source file can tell whether it is being
17570 # built for inclusion in a dll (and should export symbols for example).
17571 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17572 # (--disable-auto-import) libraries
17573 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17574 ;;
17575
17576 darwin* | rhapsody*)
17577 # PIC is the default on this platform
17578 # Common symbols not allowed in MH_DYLIB files
17579 lt_prog_compiler_pic_GCJ='-fno-common'
17580 ;;
17581
17582 interix[3-9]*)
17583 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17584 # Instead, we relocate shared libraries at runtime.
17585 ;;
17586
17587 msdosdjgpp*)
17588 # Just because we use GCC doesn't mean we suddenly get shared libraries
17589 # on systems that don't support them.
17590 lt_prog_compiler_can_build_shared_GCJ=no
17591 enable_shared=no
17592 ;;
17593
17594 sysv4*MP*)
17595 if test -d /usr/nec; then
17596 lt_prog_compiler_pic_GCJ=-Kconform_pic
17597 fi
17598 ;;
17599
17600 hpux*)
17601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17602 # not for PA HP-UX.
17603 case $host_cpu in
17604 hppa*64*|ia64*)
17605 # +Z the default
17606 ;;
17607 *)
17608 lt_prog_compiler_pic_GCJ='-fPIC'
17609 ;;
17610 esac
17611 ;;
17612
17613 *)
17614 lt_prog_compiler_pic_GCJ='-fPIC'
17615 ;;
17616 esac
17617 else
17618 # PORTME Check for flag to pass linker flags through the system compiler.
17619 case $host_os in
17620 aix*)
17621 lt_prog_compiler_wl_GCJ='-Wl,'
17622 if test "$host_cpu" = ia64; then
17623 # AIX 5 now supports IA64 processor
17624 lt_prog_compiler_static_GCJ='-Bstatic'
17625 else
17626 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17627 fi
17628 ;;
17629 darwin*)
17630 # PIC is the default on this platform
17631 # Common symbols not allowed in MH_DYLIB files
17632 case $cc_basename in
17633 xlc*)
17634 lt_prog_compiler_pic_GCJ='-qnocommon'
17635 lt_prog_compiler_wl_GCJ='-Wl,'
17636 ;;
17637 esac
17638 ;;
17639
17640 mingw* | cygwin* | pw32* | os2*)
17641 # This hack is so that the source file can tell whether it is being
17642 # built for inclusion in a dll (and should export symbols for example).
17643 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17644 ;;
17645
17646 hpux9* | hpux10* | hpux11*)
17647 lt_prog_compiler_wl_GCJ='-Wl,'
17648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17649 # not for PA HP-UX.
17650 case $host_cpu in
17651 hppa*64*|ia64*)
17652 # +Z the default
17653 ;;
17654 *)
17655 lt_prog_compiler_pic_GCJ='+Z'
17656 ;;
17657 esac
17658 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17659 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17660 ;;
17661
17662 irix5* | irix6* | nonstopux*)
17663 lt_prog_compiler_wl_GCJ='-Wl,'
17664 # PIC (with -KPIC) is the default.
17665 lt_prog_compiler_static_GCJ='-non_shared'
17666 ;;
17667
17668 newsos6)
17669 lt_prog_compiler_pic_GCJ='-KPIC'
17670 lt_prog_compiler_static_GCJ='-Bstatic'
17671 ;;
17672
17673 linux* | k*bsd*-gnu)
17674 case $cc_basename in
17675 icc* | ecc*)
17676 lt_prog_compiler_wl_GCJ='-Wl,'
17677 lt_prog_compiler_pic_GCJ='-KPIC'
17678 lt_prog_compiler_static_GCJ='-static'
17679 ;;
17680 pgcc* | pgf77* | pgf90* | pgf95*)
17681 # Portland Group compilers (*not* the Pentium gcc compiler,
17682 # which looks to be a dead project)
17683 lt_prog_compiler_wl_GCJ='-Wl,'
17684 lt_prog_compiler_pic_GCJ='-fpic'
17685 lt_prog_compiler_static_GCJ='-Bstatic'
17686 ;;
17687 ccc*)
17688 lt_prog_compiler_wl_GCJ='-Wl,'
17689 # All Alpha code is PIC.
17690 lt_prog_compiler_static_GCJ='-non_shared'
17691 ;;
17692 *)
17693 case `$CC -V 2>&1 | sed 5q` in
17694 *Sun\ C*)
17695 # Sun C 5.9
17696 lt_prog_compiler_pic_GCJ='-KPIC'
17697 lt_prog_compiler_static_GCJ='-Bstatic'
17698 lt_prog_compiler_wl_GCJ='-Wl,'
17699 ;;
17700 *Sun\ F*)
17701 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17702 lt_prog_compiler_pic_GCJ='-KPIC'
17703 lt_prog_compiler_static_GCJ='-Bstatic'
17704 lt_prog_compiler_wl_GCJ=''
17705 ;;
17706 esac
17707 ;;
17708 esac
17709 ;;
17710
17711 osf3* | osf4* | osf5*)
17712 lt_prog_compiler_wl_GCJ='-Wl,'
17713 # All OSF/1 code is PIC.
17714 lt_prog_compiler_static_GCJ='-non_shared'
17715 ;;
17716
17717 rdos*)
17718 lt_prog_compiler_static_GCJ='-non_shared'
17719 ;;
17720
17721 solaris*)
17722 lt_prog_compiler_pic_GCJ='-KPIC'
17723 lt_prog_compiler_static_GCJ='-Bstatic'
17724 case $cc_basename in
17725 f77* | f90* | f95*)
17726 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17727 *)
17728 lt_prog_compiler_wl_GCJ='-Wl,';;
17729 esac
17730 ;;
17731
17732 sunos4*)
17733 lt_prog_compiler_wl_GCJ='-Qoption ld '
17734 lt_prog_compiler_pic_GCJ='-PIC'
17735 lt_prog_compiler_static_GCJ='-Bstatic'
17736 ;;
17737
17738 sysv4 | sysv4.2uw2* | sysv4.3*)
17739 lt_prog_compiler_wl_GCJ='-Wl,'
17740 lt_prog_compiler_pic_GCJ='-KPIC'
17741 lt_prog_compiler_static_GCJ='-Bstatic'
17742 ;;
17743
17744 sysv4*MP*)
17745 if test -d /usr/nec ;then
17746 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17747 lt_prog_compiler_static_GCJ='-Bstatic'
17748 fi
17749 ;;
17750
17751 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17752 lt_prog_compiler_wl_GCJ='-Wl,'
17753 lt_prog_compiler_pic_GCJ='-KPIC'
17754 lt_prog_compiler_static_GCJ='-Bstatic'
17755 ;;
17756
17757 unicos*)
17758 lt_prog_compiler_wl_GCJ='-Wl,'
17759 lt_prog_compiler_can_build_shared_GCJ=no
17760 ;;
17761
17762 uts4*)
17763 lt_prog_compiler_pic_GCJ='-pic'
17764 lt_prog_compiler_static_GCJ='-Bstatic'
17765 ;;
17766
17767 *)
17768 lt_prog_compiler_can_build_shared_GCJ=no
17769 ;;
17770 esac
17771 fi
17772
17773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17774 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17775
17776 #
17777 # Check to make sure the PIC flag actually works.
17778 #
17779 if test -n "$lt_prog_compiler_pic_GCJ"; then
17780
17781 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17783 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786 lt_prog_compiler_pic_works_GCJ=no
17787 ac_outfile=conftest.$ac_objext
17788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17789 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17790 # Insert the option either (1) after the last *FLAGS variable, or
17791 # (2) before a word containing "conftest.", or (3) at the end.
17792 # Note that $ac_compile itself does not contain backslashes and begins
17793 # with a dollar sign (not a hyphen), so the echo should work correctly.
17794 # The option is referenced via a variable to avoid confusing sed.
17795 lt_compile=`echo "$ac_compile" | $SED \
17796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17798 -e 's:$: $lt_compiler_flag:'`
17799 (eval echo "\"\$as_me:17799: $lt_compile\"" >&5)
17800 (eval "$lt_compile" 2>conftest.err)
17801 ac_status=$?
17802 cat conftest.err >&5
17803 echo "$as_me:17803: \$? = $ac_status" >&5
17804 if (exit $ac_status) && test -s "$ac_outfile"; then
17805 # The compiler can only warn and ignore the option if not recognized
17806 # So say no if there are warnings other than the usual output.
17807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17810 lt_prog_compiler_pic_works_GCJ=yes
17811 fi
17812 fi
17813 $rm conftest*
17814
17815 fi
17816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17817 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17818
17819 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17820 case $lt_prog_compiler_pic_GCJ in
17821 "" | " "*) ;;
17822 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17823 esac
17824 else
17825 lt_prog_compiler_pic_GCJ=
17826 lt_prog_compiler_can_build_shared_GCJ=no
17827 fi
17828
17829 fi
17830 case $host_os in
17831 # For platforms which do not support PIC, -DPIC is meaningless:
17832 *djgpp*)
17833 lt_prog_compiler_pic_GCJ=
17834 ;;
17835 *)
17836 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17837 ;;
17838 esac
17839
17840 #
17841 # Check to make sure the static flag actually works.
17842 #
17843 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17844 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17846 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849 lt_prog_compiler_static_works_GCJ=no
17850 save_LDFLAGS="$LDFLAGS"
17851 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17852 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17854 # The linker can only warn and ignore the option if not recognized
17855 # So say no if there are warnings
17856 if test -s conftest.err; then
17857 # Append any errors to the config.log.
17858 cat conftest.err 1>&5
17859 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17861 if diff conftest.exp conftest.er2 >/dev/null; then
17862 lt_prog_compiler_static_works_GCJ=yes
17863 fi
17864 else
17865 lt_prog_compiler_static_works_GCJ=yes
17866 fi
17867 fi
17868 $rm conftest*
17869 LDFLAGS="$save_LDFLAGS"
17870
17871 fi
17872 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17873 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17874
17875 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17876 :
17877 else
17878 lt_prog_compiler_static_GCJ=
17879 fi
17880
17881
17882 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17883 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17884 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887 lt_cv_prog_compiler_c_o_GCJ=no
17888 $rm -r conftest 2>/dev/null
17889 mkdir conftest
17890 cd conftest
17891 mkdir out
17892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17893
17894 lt_compiler_flag="-o out/conftest2.$ac_objext"
17895 # Insert the option either (1) after the last *FLAGS variable, or
17896 # (2) before a word containing "conftest.", or (3) at the end.
17897 # Note that $ac_compile itself does not contain backslashes and begins
17898 # with a dollar sign (not a hyphen), so the echo should work correctly.
17899 lt_compile=`echo "$ac_compile" | $SED \
17900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17902 -e 's:$: $lt_compiler_flag:'`
17903 (eval echo "\"\$as_me:17903: $lt_compile\"" >&5)
17904 (eval "$lt_compile" 2>out/conftest.err)
17905 ac_status=$?
17906 cat out/conftest.err >&5
17907 echo "$as_me:17907: \$? = $ac_status" >&5
17908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17909 then
17910 # The compiler can only warn and ignore the option if not recognized
17911 # So say no if there are warnings
17912 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17915 lt_cv_prog_compiler_c_o_GCJ=yes
17916 fi
17917 fi
17918 chmod u+w . 2>&5
17919 $rm conftest*
17920 # SGI C++ compiler will create directory out/ii_files/ for
17921 # template instantiation
17922 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17923 $rm out/* && rmdir out
17924 cd ..
17925 rmdir conftest
17926 $rm conftest*
17927
17928 fi
17929 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17931
17932
17933 hard_links="nottested"
17934 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17935 # do not overwrite the value of need_locks provided by the user
17936 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17938 hard_links=yes
17939 $rm conftest*
17940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17941 touch conftest.a
17942 ln conftest.a conftest.b 2>&5 || hard_links=no
17943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17944 { echo "$as_me:$LINENO: result: $hard_links" >&5
17945 echo "${ECHO_T}$hard_links" >&6; }
17946 if test "$hard_links" = no; then
17947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17949 need_locks=warn
17950 fi
17951 else
17952 need_locks=no
17953 fi
17954
17955 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17957
17958 runpath_var=
17959 allow_undefined_flag_GCJ=
17960 enable_shared_with_static_runtimes_GCJ=no
17961 archive_cmds_GCJ=
17962 archive_expsym_cmds_GCJ=
17963 old_archive_From_new_cmds_GCJ=
17964 old_archive_from_expsyms_cmds_GCJ=
17965 export_dynamic_flag_spec_GCJ=
17966 whole_archive_flag_spec_GCJ=
17967 thread_safe_flag_spec_GCJ=
17968 hardcode_libdir_flag_spec_GCJ=
17969 hardcode_libdir_flag_spec_ld_GCJ=
17970 hardcode_libdir_separator_GCJ=
17971 hardcode_direct_GCJ=no
17972 hardcode_minus_L_GCJ=no
17973 hardcode_shlibpath_var_GCJ=unsupported
17974 link_all_deplibs_GCJ=unknown
17975 hardcode_automatic_GCJ=no
17976 module_cmds_GCJ=
17977 module_expsym_cmds_GCJ=
17978 always_export_symbols_GCJ=no
17979 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17980 # include_expsyms should be a list of space-separated symbols to be *always*
17981 # included in the symbol list
17982 include_expsyms_GCJ=
17983 # exclude_expsyms can be an extended regexp of symbols to exclude
17984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17986 # as well as any symbol that contains `d'.
17987 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17989 # platforms (ab)use it in PIC code, but their linkers get confused if
17990 # the symbol is explicitly referenced. Since portable code cannot
17991 # rely on this symbol name, it's probably fine to never include it in
17992 # preloaded symbol tables.
17993 extract_expsyms_cmds=
17994 # Just being paranoid about ensuring that cc_basename is set.
17995 for cc_temp in $compiler""; do
17996 case $cc_temp in
17997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17999 \-*) ;;
18000 *) break;;
18001 esac
18002 done
18003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18004
18005 case $host_os in
18006 cygwin* | mingw* | pw32*)
18007 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18008 # When not using gcc, we currently assume that we are using
18009 # Microsoft Visual C++.
18010 if test "$GCC" != yes; then
18011 with_gnu_ld=no
18012 fi
18013 ;;
18014 interix*)
18015 # we just hope/assume this is gcc and not c89 (= MSVC++)
18016 with_gnu_ld=yes
18017 ;;
18018 openbsd*)
18019 with_gnu_ld=no
18020 ;;
18021 esac
18022
18023 ld_shlibs_GCJ=yes
18024 if test "$with_gnu_ld" = yes; then
18025 # If archive_cmds runs LD, not CC, wlarc should be empty
18026 wlarc='${wl}'
18027
18028 # Set some defaults for GNU ld with shared library support. These
18029 # are reset later if shared libraries are not supported. Putting them
18030 # here allows them to be overridden if necessary.
18031 runpath_var=LD_RUN_PATH
18032 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18033 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18034 # ancient GNU ld didn't support --whole-archive et. al.
18035 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18036 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18037 else
18038 whole_archive_flag_spec_GCJ=
18039 fi
18040 supports_anon_versioning=no
18041 case `$LD -v 2>/dev/null` in
18042 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18043 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18044 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18045 *\ 2.11.*) ;; # other 2.11 versions
18046 *) supports_anon_versioning=yes ;;
18047 esac
18048
18049 # See if GNU ld supports shared libraries.
18050 case $host_os in
18051 aix3* | aix4* | aix5*)
18052 # On AIX/PPC, the GNU linker is very broken
18053 if test "$host_cpu" != ia64; then
18054 ld_shlibs_GCJ=no
18055 cat <<EOF 1>&2
18056
18057 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18058 *** to be unable to reliably create shared libraries on AIX.
18059 *** Therefore, libtool is disabling shared libraries support. If you
18060 *** really care for shared libraries, you may want to modify your PATH
18061 *** so that a non-GNU linker is found, and then restart.
18062
18063 EOF
18064 fi
18065 ;;
18066
18067 amigaos*)
18068 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)'
18069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18070 hardcode_minus_L_GCJ=yes
18071
18072 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18073 # that the semantics of dynamic libraries on AmigaOS, at least up
18074 # to version 4, is to share data among multiple programs linked
18075 # with the same dynamic library. Since this doesn't match the
18076 # behavior of shared libraries on other platforms, we can't use
18077 # them.
18078 ld_shlibs_GCJ=no
18079 ;;
18080
18081 beos*)
18082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18083 allow_undefined_flag_GCJ=unsupported
18084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18085 # support --undefined. This deserves some investigation. FIXME
18086 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18087 else
18088 ld_shlibs_GCJ=no
18089 fi
18090 ;;
18091
18092 cygwin* | mingw* | pw32*)
18093 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18094 # as there is no search path for DLLs.
18095 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18096 allow_undefined_flag_GCJ=unsupported
18097 always_export_symbols_GCJ=no
18098 enable_shared_with_static_runtimes_GCJ=yes
18099 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18100
18101 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18102 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18103 # If the export-symbols file already is a .def file (1st line
18104 # is EXPORTS), use it as is; otherwise, prepend...
18105 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18106 cp $export_symbols $output_objdir/$soname.def;
18107 else
18108 echo EXPORTS > $output_objdir/$soname.def;
18109 cat $export_symbols >> $output_objdir/$soname.def;
18110 fi~
18111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18112 else
18113 ld_shlibs_GCJ=no
18114 fi
18115 ;;
18116
18117 interix[3-9]*)
18118 hardcode_direct_GCJ=no
18119 hardcode_shlibpath_var_GCJ=no
18120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18121 export_dynamic_flag_spec_GCJ='${wl}-E'
18122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18123 # Instead, shared libraries are loaded at an image base (0x10000000 by
18124 # default) and relocated if they conflict, which is a slow very memory
18125 # consuming and fragmenting process. To avoid this, we pick a random,
18126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18128 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'
18129 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'
18130 ;;
18131
18132 gnu* | linux* | k*bsd*-gnu)
18133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18134 tmp_addflag=
18135 case $cc_basename,$host_cpu in
18136 pgcc*) # Portland Group C compiler
18137 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'
18138 tmp_addflag=' $pic_flag'
18139 ;;
18140 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18141 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'
18142 tmp_addflag=' $pic_flag -Mnomain' ;;
18143 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18144 tmp_addflag=' -i_dynamic' ;;
18145 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18146 tmp_addflag=' -i_dynamic -nofor_main' ;;
18147 ifc* | ifort*) # Intel Fortran compiler
18148 tmp_addflag=' -nofor_main' ;;
18149 esac
18150 case `$CC -V 2>&1 | sed 5q` in
18151 *Sun\ C*) # Sun C 5.9
18152 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'
18153 tmp_sharedflag='-G' ;;
18154 *Sun\ F*) # Sun Fortran 8.3
18155 tmp_sharedflag='-G' ;;
18156 *)
18157 tmp_sharedflag='-shared' ;;
18158 esac
18159 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18160
18161 if test $supports_anon_versioning = yes; then
18162 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18164 $echo "local: *; };" >> $output_objdir/$libname.ver~
18165 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18166 fi
18167 else
18168 ld_shlibs_GCJ=no
18169 fi
18170 ;;
18171
18172 netbsd*)
18173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18174 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18175 wlarc=
18176 else
18177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18179 fi
18180 ;;
18181
18182 solaris*)
18183 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18184 ld_shlibs_GCJ=no
18185 cat <<EOF 1>&2
18186
18187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18188 *** create shared libraries on Solaris systems. Therefore, libtool
18189 *** is disabling shared libraries support. We urge you to upgrade GNU
18190 *** binutils to release 2.9.1 or newer. Another option is to modify
18191 *** your PATH or compiler configuration so that the native linker is
18192 *** used, and then restart.
18193
18194 EOF
18195 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18196 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18197 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18198 else
18199 ld_shlibs_GCJ=no
18200 fi
18201 ;;
18202
18203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18204 case `$LD -v 2>&1` in
18205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18206 ld_shlibs_GCJ=no
18207 cat <<_LT_EOF 1>&2
18208
18209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18210 *** reliably create shared libraries on SCO systems. Therefore, libtool
18211 *** is disabling shared libraries support. We urge you to upgrade GNU
18212 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18213 *** your PATH or compiler configuration so that the native linker is
18214 *** used, and then restart.
18215
18216 _LT_EOF
18217 ;;
18218 *)
18219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18220 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18221 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18222 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18223 else
18224 ld_shlibs_GCJ=no
18225 fi
18226 ;;
18227 esac
18228 ;;
18229
18230 sunos4*)
18231 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18232 wlarc=
18233 hardcode_direct_GCJ=yes
18234 hardcode_shlibpath_var_GCJ=no
18235 ;;
18236
18237 *)
18238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18240 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18241 else
18242 ld_shlibs_GCJ=no
18243 fi
18244 ;;
18245 esac
18246
18247 if test "$ld_shlibs_GCJ" = no; then
18248 runpath_var=
18249 hardcode_libdir_flag_spec_GCJ=
18250 export_dynamic_flag_spec_GCJ=
18251 whole_archive_flag_spec_GCJ=
18252 fi
18253 else
18254 # PORTME fill in a description of your system's linker (not GNU ld)
18255 case $host_os in
18256 aix3*)
18257 allow_undefined_flag_GCJ=unsupported
18258 always_export_symbols_GCJ=yes
18259 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'
18260 # Note: this linker hardcodes the directories in LIBPATH if there
18261 # are no directories specified by -L.
18262 hardcode_minus_L_GCJ=yes
18263 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18264 # Neither direct hardcoding nor static linking is supported with a
18265 # broken collect2.
18266 hardcode_direct_GCJ=unsupported
18267 fi
18268 ;;
18269
18270 aix4* | aix5*)
18271 if test "$host_cpu" = ia64; then
18272 # On IA64, the linker does run time linking by default, so we don't
18273 # have to do anything special.
18274 aix_use_runtimelinking=no
18275 exp_sym_flag='-Bexport'
18276 no_entry_flag=""
18277 else
18278 # If we're using GNU nm, then we don't want the "-C" option.
18279 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18280 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18281 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'
18282 else
18283 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'
18284 fi
18285 aix_use_runtimelinking=no
18286
18287 # Test if we are trying to use run time linking or normal
18288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18289 # need to do runtime linking.
18290 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18291 for ld_flag in $LDFLAGS; do
18292 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18293 aix_use_runtimelinking=yes
18294 break
18295 fi
18296 done
18297 ;;
18298 esac
18299
18300 exp_sym_flag='-bexport'
18301 no_entry_flag='-bnoentry'
18302 fi
18303
18304 # When large executables or shared objects are built, AIX ld can
18305 # have problems creating the table of contents. If linking a library
18306 # or program results in "error TOC overflow" add -mminimal-toc to
18307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18309
18310 archive_cmds_GCJ=''
18311 hardcode_direct_GCJ=yes
18312 hardcode_libdir_separator_GCJ=':'
18313 link_all_deplibs_GCJ=yes
18314
18315 if test "$GCC" = yes; then
18316 case $host_os in aix4.[012]|aix4.[012].*)
18317 # We only want to do this on AIX 4.2 and lower, the check
18318 # below for broken collect2 doesn't work under 4.3+
18319 collect2name=`${CC} -print-prog-name=collect2`
18320 if test -f "$collect2name" && \
18321 strings "$collect2name" | grep resolve_lib_name >/dev/null
18322 then
18323 # We have reworked collect2
18324 :
18325 else
18326 # We have old collect2
18327 hardcode_direct_GCJ=unsupported
18328 # It fails to find uninstalled libraries when the uninstalled
18329 # path is not listed in the libpath. Setting hardcode_minus_L
18330 # to unsupported forces relinking
18331 hardcode_minus_L_GCJ=yes
18332 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18333 hardcode_libdir_separator_GCJ=
18334 fi
18335 ;;
18336 esac
18337 shared_flag='-shared'
18338 if test "$aix_use_runtimelinking" = yes; then
18339 shared_flag="$shared_flag "'${wl}-G'
18340 fi
18341 else
18342 # not using gcc
18343 if test "$host_cpu" = ia64; then
18344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18345 # chokes on -Wl,-G. The following line is correct:
18346 shared_flag='-G'
18347 else
18348 if test "$aix_use_runtimelinking" = yes; then
18349 shared_flag='${wl}-G'
18350 else
18351 shared_flag='${wl}-bM:SRE'
18352 fi
18353 fi
18354 fi
18355
18356 # It seems that -bexpall does not export symbols beginning with
18357 # underscore (_), so it is better to generate a list of symbols to export.
18358 always_export_symbols_GCJ=yes
18359 if test "$aix_use_runtimelinking" = yes; then
18360 # Warning - without using the other runtime loading flags (-brtl),
18361 # -berok will link without error, but may produce a broken library.
18362 allow_undefined_flag_GCJ='-berok'
18363 # Determine the default libpath from the value encoded in an empty executable.
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h. */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18370
18371 int
18372 main ()
18373 {
18374
18375 ;
18376 return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest.$ac_objext conftest$ac_exeext
18380 if { (ac_try="$ac_link"
18381 case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18384 esac
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_link") 2>conftest.er1
18387 ac_status=$?
18388 grep -v '^ *+' conftest.er1 >conftest.err
18389 rm -f conftest.er1
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } && {
18393 test -z "$ac_c_werror_flag" ||
18394 test ! -s conftest.err
18395 } && test -s conftest$ac_exeext &&
18396 $as_test_x conftest$ac_exeext; then
18397
18398 lt_aix_libpath_sed='
18399 /Import File Strings/,/^$/ {
18400 /^0/ {
18401 s/^0 *\(.*\)$/\1/
18402 p
18403 }
18404 }'
18405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18406 # Check for a 64-bit object if we didn't find anything.
18407 if test -z "$aix_libpath"; then
18408 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18409 fi
18410 else
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414
18415 fi
18416
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418 conftest$ac_exeext conftest.$ac_ext
18419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18420
18421 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18422 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"
18423 else
18424 if test "$host_cpu" = ia64; then
18425 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18426 allow_undefined_flag_GCJ="-z nodefs"
18427 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"
18428 else
18429 # Determine the default libpath from the value encoded in an empty executable.
18430 cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h. */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18436
18437 int
18438 main ()
18439 {
18440
18441 ;
18442 return 0;
18443 }
18444 _ACEOF
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18453 ac_status=$?
18454 grep -v '^ *+' conftest.er1 >conftest.err
18455 rm -f conftest.er1
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } && {
18459 test -z "$ac_c_werror_flag" ||
18460 test ! -s conftest.err
18461 } && test -s conftest$ac_exeext &&
18462 $as_test_x conftest$ac_exeext; then
18463
18464 lt_aix_libpath_sed='
18465 /Import File Strings/,/^$/ {
18466 /^0/ {
18467 s/^0 *\(.*\)$/\1/
18468 p
18469 }
18470 }'
18471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18472 # Check for a 64-bit object if we didn't find anything.
18473 if test -z "$aix_libpath"; then
18474 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18475 fi
18476 else
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480
18481 fi
18482
18483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18484 conftest$ac_exeext conftest.$ac_ext
18485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18486
18487 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18488 # Warning - without using the other run time loading flags,
18489 # -berok will link without error, but may produce a broken library.
18490 no_undefined_flag_GCJ=' ${wl}-bernotok'
18491 allow_undefined_flag_GCJ=' ${wl}-berok'
18492 # Exported symbols can be pulled into shared objects from archives
18493 whole_archive_flag_spec_GCJ='$convenience'
18494 archive_cmds_need_lc_GCJ=yes
18495 # This is similar to how AIX traditionally builds its shared libraries.
18496 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'
18497 fi
18498 fi
18499 ;;
18500
18501 amigaos*)
18502 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)'
18503 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18504 hardcode_minus_L_GCJ=yes
18505 # see comment about different semantics on the GNU ld section
18506 ld_shlibs_GCJ=no
18507 ;;
18508
18509 bsdi[45]*)
18510 export_dynamic_flag_spec_GCJ=-rdynamic
18511 ;;
18512
18513 cygwin* | mingw* | pw32*)
18514 # When not using gcc, we currently assume that we are using
18515 # Microsoft Visual C++.
18516 # hardcode_libdir_flag_spec is actually meaningless, as there is
18517 # no search path for DLLs.
18518 hardcode_libdir_flag_spec_GCJ=' '
18519 allow_undefined_flag_GCJ=unsupported
18520 # Tell ltmain to make .lib files, not .a files.
18521 libext=lib
18522 # Tell ltmain to make .dll files, not .so files.
18523 shrext_cmds=".dll"
18524 # FIXME: Setting linknames here is a bad hack.
18525 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18526 # The linker will automatically build a .lib file if we build a DLL.
18527 old_archive_From_new_cmds_GCJ='true'
18528 # FIXME: Should let the user specify the lib program.
18529 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18530 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18531 enable_shared_with_static_runtimes_GCJ=yes
18532 ;;
18533
18534 darwin* | rhapsody*)
18535 case $host_os in
18536 rhapsody* | darwin1.[012])
18537 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18538 ;;
18539 *) # Darwin 1.3 on
18540 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18541 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18542 else
18543 case ${MACOSX_DEPLOYMENT_TARGET} in
18544 10.[012])
18545 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18546 ;;
18547 10.*)
18548 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18549 ;;
18550 esac
18551 fi
18552 ;;
18553 esac
18554 archive_cmds_need_lc_GCJ=no
18555 hardcode_direct_GCJ=no
18556 hardcode_automatic_GCJ=yes
18557 hardcode_shlibpath_var_GCJ=unsupported
18558 whole_archive_flag_spec_GCJ=''
18559 link_all_deplibs_GCJ=yes
18560 if test "$GCC" = yes ; then
18561 output_verbose_link_cmd='echo'
18562 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18563 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18564 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18565 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}'
18566 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}'
18567 else
18568 case $cc_basename in
18569 xlc*)
18570 output_verbose_link_cmd='echo'
18571 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18572 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18574 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}'
18575 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}'
18576 ;;
18577 *)
18578 ld_shlibs_GCJ=no
18579 ;;
18580 esac
18581 fi
18582 ;;
18583
18584 dgux*)
18585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18587 hardcode_shlibpath_var_GCJ=no
18588 ;;
18589
18590 freebsd1*)
18591 ld_shlibs_GCJ=no
18592 ;;
18593
18594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18595 # support. Future versions do this automatically, but an explicit c++rt0.o
18596 # does not break anything, and helps significantly (at the cost of a little
18597 # extra space).
18598 freebsd2.2*)
18599 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18600 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18601 hardcode_direct_GCJ=yes
18602 hardcode_shlibpath_var_GCJ=no
18603 ;;
18604
18605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18606 freebsd2*)
18607 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18608 hardcode_direct_GCJ=yes
18609 hardcode_minus_L_GCJ=yes
18610 hardcode_shlibpath_var_GCJ=no
18611 ;;
18612
18613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18614 freebsd* | dragonfly*)
18615 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18616 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18617 hardcode_direct_GCJ=yes
18618 hardcode_shlibpath_var_GCJ=no
18619 ;;
18620
18621 hpux9*)
18622 if test "$GCC" = yes; then
18623 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'
18624 else
18625 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'
18626 fi
18627 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18628 hardcode_libdir_separator_GCJ=:
18629 hardcode_direct_GCJ=yes
18630
18631 # hardcode_minus_L: Not really in the search PATH,
18632 # but as the default location of the library.
18633 hardcode_minus_L_GCJ=yes
18634 export_dynamic_flag_spec_GCJ='${wl}-E'
18635 ;;
18636
18637 hpux10*)
18638 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18639 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18640 else
18641 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18642 fi
18643 if test "$with_gnu_ld" = no; then
18644 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18645 hardcode_libdir_separator_GCJ=:
18646
18647 hardcode_direct_GCJ=yes
18648 export_dynamic_flag_spec_GCJ='${wl}-E'
18649
18650 # hardcode_minus_L: Not really in the search PATH,
18651 # but as the default location of the library.
18652 hardcode_minus_L_GCJ=yes
18653 fi
18654 ;;
18655
18656 hpux11*)
18657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18658 case $host_cpu in
18659 hppa*64*)
18660 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18661 ;;
18662 ia64*)
18663 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18664 ;;
18665 *)
18666 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18667 ;;
18668 esac
18669 else
18670 case $host_cpu in
18671 hppa*64*)
18672 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18673 ;;
18674 ia64*)
18675 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18676 ;;
18677 *)
18678 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18679 ;;
18680 esac
18681 fi
18682 if test "$with_gnu_ld" = no; then
18683 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18684 hardcode_libdir_separator_GCJ=:
18685
18686 case $host_cpu in
18687 hppa*64*|ia64*)
18688 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18689 hardcode_direct_GCJ=no
18690 hardcode_shlibpath_var_GCJ=no
18691 ;;
18692 *)
18693 hardcode_direct_GCJ=yes
18694 export_dynamic_flag_spec_GCJ='${wl}-E'
18695
18696 # hardcode_minus_L: Not really in the search PATH,
18697 # but as the default location of the library.
18698 hardcode_minus_L_GCJ=yes
18699 ;;
18700 esac
18701 fi
18702 ;;
18703
18704 irix5* | irix6* | nonstopux*)
18705 if test "$GCC" = yes; then
18706 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'
18707 else
18708 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'
18709 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18710 fi
18711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18712 hardcode_libdir_separator_GCJ=:
18713 link_all_deplibs_GCJ=yes
18714 ;;
18715
18716 netbsd*)
18717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18718 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18719 else
18720 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18721 fi
18722 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18723 hardcode_direct_GCJ=yes
18724 hardcode_shlibpath_var_GCJ=no
18725 ;;
18726
18727 newsos6)
18728 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18729 hardcode_direct_GCJ=yes
18730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18731 hardcode_libdir_separator_GCJ=:
18732 hardcode_shlibpath_var_GCJ=no
18733 ;;
18734
18735 openbsd*)
18736 if test -f /usr/libexec/ld.so; then
18737 hardcode_direct_GCJ=yes
18738 hardcode_shlibpath_var_GCJ=no
18739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18740 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18741 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18742 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18743 export_dynamic_flag_spec_GCJ='${wl}-E'
18744 else
18745 case $host_os in
18746 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18747 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18748 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18749 ;;
18750 *)
18751 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18753 ;;
18754 esac
18755 fi
18756 else
18757 ld_shlibs_GCJ=no
18758 fi
18759 ;;
18760
18761 os2*)
18762 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18763 hardcode_minus_L_GCJ=yes
18764 allow_undefined_flag_GCJ=unsupported
18765 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'
18766 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18767 ;;
18768
18769 osf3*)
18770 if test "$GCC" = yes; then
18771 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18772 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'
18773 else
18774 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18775 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'
18776 fi
18777 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18778 hardcode_libdir_separator_GCJ=:
18779 ;;
18780
18781 osf4* | osf5*) # as osf3* with the addition of -msym flag
18782 if test "$GCC" = yes; then
18783 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18784 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'
18785 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18786 else
18787 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18788 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'
18789 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~
18790 $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'
18791
18792 # Both c and cxx compiler support -rpath directly
18793 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18794 fi
18795 hardcode_libdir_separator_GCJ=:
18796 ;;
18797
18798 solaris*)
18799 no_undefined_flag_GCJ=' -z text'
18800 if test "$GCC" = yes; then
18801 wlarc='${wl}'
18802 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18803 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18804 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18805 else
18806 wlarc=''
18807 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18808 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18809 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18810 fi
18811 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18812 hardcode_shlibpath_var_GCJ=no
18813 case $host_os in
18814 solaris2.[0-5] | solaris2.[0-5].*) ;;
18815 *)
18816 # The compiler driver will combine and reorder linker options,
18817 # but understands `-z linker_flag'. GCC discards it without `$wl',
18818 # but is careful enough not to reorder.
18819 # Supported since Solaris 2.6 (maybe 2.5.1?)
18820 if test "$GCC" = yes; then
18821 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18822 else
18823 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18824 fi
18825 ;;
18826 esac
18827 link_all_deplibs_GCJ=yes
18828 ;;
18829
18830 sunos4*)
18831 if test "x$host_vendor" = xsequent; then
18832 # Use $CC to link under sequent, because it throws in some extra .o
18833 # files that make .init and .fini sections work.
18834 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18835 else
18836 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18837 fi
18838 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18839 hardcode_direct_GCJ=yes
18840 hardcode_minus_L_GCJ=yes
18841 hardcode_shlibpath_var_GCJ=no
18842 ;;
18843
18844 sysv4)
18845 case $host_vendor in
18846 sni)
18847 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18848 hardcode_direct_GCJ=yes # is this really true???
18849 ;;
18850 siemens)
18851 ## LD is ld it makes a PLAMLIB
18852 ## CC just makes a GrossModule.
18853 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18854 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18855 hardcode_direct_GCJ=no
18856 ;;
18857 motorola)
18858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18859 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18860 ;;
18861 esac
18862 runpath_var='LD_RUN_PATH'
18863 hardcode_shlibpath_var_GCJ=no
18864 ;;
18865
18866 sysv4.3*)
18867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18868 hardcode_shlibpath_var_GCJ=no
18869 export_dynamic_flag_spec_GCJ='-Bexport'
18870 ;;
18871
18872 sysv4*MP*)
18873 if test -d /usr/nec; then
18874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18875 hardcode_shlibpath_var_GCJ=no
18876 runpath_var=LD_RUN_PATH
18877 hardcode_runpath_var=yes
18878 ld_shlibs_GCJ=yes
18879 fi
18880 ;;
18881
18882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18883 no_undefined_flag_GCJ='${wl}-z,text'
18884 archive_cmds_need_lc_GCJ=no
18885 hardcode_shlibpath_var_GCJ=no
18886 runpath_var='LD_RUN_PATH'
18887
18888 if test "$GCC" = yes; then
18889 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18890 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18891 else
18892 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18893 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18894 fi
18895 ;;
18896
18897 sysv5* | sco3.2v5* | sco5v6*)
18898 # Note: We can NOT use -z defs as we might desire, because we do not
18899 # link with -lc, and that would cause any symbols used from libc to
18900 # always be unresolved, which means just about no library would
18901 # ever link correctly. If we're not using GNU ld we use -z text
18902 # though, which does catch some bad symbols but isn't as heavy-handed
18903 # as -z defs.
18904 no_undefined_flag_GCJ='${wl}-z,text'
18905 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18906 archive_cmds_need_lc_GCJ=no
18907 hardcode_shlibpath_var_GCJ=no
18908 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18909 hardcode_libdir_separator_GCJ=':'
18910 link_all_deplibs_GCJ=yes
18911 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18912 runpath_var='LD_RUN_PATH'
18913
18914 if test "$GCC" = yes; then
18915 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18916 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18917 else
18918 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18919 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18920 fi
18921 ;;
18922
18923 uts4*)
18924 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18925 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18926 hardcode_shlibpath_var_GCJ=no
18927 ;;
18928
18929 *)
18930 ld_shlibs_GCJ=no
18931 ;;
18932 esac
18933 fi
18934
18935 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18936 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18937 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18938
18939 #
18940 # Do we need to explicitly link libc?
18941 #
18942 case "x$archive_cmds_need_lc_GCJ" in
18943 x|xyes)
18944 # Assume -lc should be added
18945 archive_cmds_need_lc_GCJ=yes
18946
18947 if test "$enable_shared" = yes && test "$GCC" = yes; then
18948 case $archive_cmds_GCJ in
18949 *'~'*)
18950 # FIXME: we may have to deal with multi-command sequences.
18951 ;;
18952 '$CC '*)
18953 # Test whether the compiler implicitly links with -lc since on some
18954 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18955 # to ld, don't add -lc before -lgcc.
18956 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18957 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18958 $rm conftest*
18959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18960
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } 2>conftest.err; then
18966 soname=conftest
18967 lib=conftest
18968 libobjs=conftest.$ac_objext
18969 deplibs=
18970 wl=$lt_prog_compiler_wl_GCJ
18971 pic_flag=$lt_prog_compiler_pic_GCJ
18972 compiler_flags=-v
18973 linker_flags=-v
18974 verstring=
18975 output_objdir=.
18976 libname=conftest
18977 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18978 allow_undefined_flag_GCJ=
18979 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18980 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }
18984 then
18985 archive_cmds_need_lc_GCJ=no
18986 else
18987 archive_cmds_need_lc_GCJ=yes
18988 fi
18989 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18990 else
18991 cat conftest.err 1>&5
18992 fi
18993 $rm conftest*
18994 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18995 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18996 ;;
18997 esac
18998 fi
18999 ;;
19000 esac
19001
19002 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19004 library_names_spec=
19005 libname_spec='lib$name'
19006 soname_spec=
19007 shrext_cmds=".so"
19008 postinstall_cmds=
19009 postuninstall_cmds=
19010 finish_cmds=
19011 finish_eval=
19012 shlibpath_var=
19013 shlibpath_overrides_runpath=unknown
19014 version_type=none
19015 dynamic_linker="$host_os ld.so"
19016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19017
19018 need_lib_prefix=unknown
19019 hardcode_into_libs=no
19020
19021 # when you set need_version to no, make sure it does not cause -set_version
19022 # flags to be left without arguments
19023 need_version=unknown
19024
19025 case $host_os in
19026 aix3*)
19027 version_type=linux
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19029 shlibpath_var=LIBPATH
19030
19031 # AIX 3 has no versioning support, so we append a major version to the name.
19032 soname_spec='${libname}${release}${shared_ext}$major'
19033 ;;
19034
19035 aix4* | aix5*)
19036 version_type=linux
19037 need_lib_prefix=no
19038 need_version=no
19039 hardcode_into_libs=yes
19040 if test "$host_cpu" = ia64; then
19041 # AIX 5 supports IA64
19042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19043 shlibpath_var=LD_LIBRARY_PATH
19044 else
19045 # With GCC up to 2.95.x, collect2 would create an import file
19046 # for dependence libraries. The import file would start with
19047 # the line `#! .'. This would cause the generated library to
19048 # depend on `.', always an invalid library. This was fixed in
19049 # development snapshots of GCC prior to 3.0.
19050 case $host_os in
19051 aix4 | aix4.[01] | aix4.[01].*)
19052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19053 echo ' yes '
19054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19055 :
19056 else
19057 can_build_shared=no
19058 fi
19059 ;;
19060 esac
19061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19062 # soname into executable. Probably we can add versioning support to
19063 # collect2, so additional links can be useful in future.
19064 if test "$aix_use_runtimelinking" = yes; then
19065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19066 # instead of lib<name>.a to let people know that these are not
19067 # typical AIX shared libraries.
19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19069 else
19070 # We preserve .a as extension for shared libraries through AIX4.2
19071 # and later when we are not doing run time linking.
19072 library_names_spec='${libname}${release}.a $libname.a'
19073 soname_spec='${libname}${release}${shared_ext}$major'
19074 fi
19075 shlibpath_var=LIBPATH
19076 fi
19077 ;;
19078
19079 amigaos*)
19080 library_names_spec='$libname.ixlibrary $libname.a'
19081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19082 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'
19083 ;;
19084
19085 beos*)
19086 library_names_spec='${libname}${shared_ext}'
19087 dynamic_linker="$host_os ld.so"
19088 shlibpath_var=LIBRARY_PATH
19089 ;;
19090
19091 bsdi[45]*)
19092 version_type=linux
19093 need_version=no
19094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19095 soname_spec='${libname}${release}${shared_ext}$major'
19096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19097 shlibpath_var=LD_LIBRARY_PATH
19098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19100 # the default ld.so.conf also contains /usr/contrib/lib and
19101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19102 # libtool to hard-code these into programs
19103 ;;
19104
19105 cygwin* | mingw* | pw32*)
19106 version_type=windows
19107 shrext_cmds=".dll"
19108 need_version=no
19109 need_lib_prefix=no
19110
19111 case $GCC,$host_os in
19112 yes,cygwin* | yes,mingw* | yes,pw32*)
19113 library_names_spec='$libname.dll.a'
19114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19115 postinstall_cmds='base_file=`basename \${file}`~
19116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19117 dldir=$destdir/`dirname \$dlpath`~
19118 test -d \$dldir || mkdir -p \$dldir~
19119 $install_prog $dir/$dlname \$dldir/$dlname~
19120 chmod a+x \$dldir/$dlname'
19121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19122 dlpath=$dir/\$dldll~
19123 $rm \$dlpath'
19124 shlibpath_overrides_runpath=yes
19125
19126 case $host_os in
19127 cygwin*)
19128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19131 ;;
19132 mingw*)
19133 # MinGW DLLs use traditional 'lib' prefix
19134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19137 # It is most probably a Windows format PATH printed by
19138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19139 # path with ; separators, and with drive letters. We can handle the
19140 # drive letters (cygwin fileutils understands them), so leave them,
19141 # especially as we might pass files found there to a mingw objdump,
19142 # which wouldn't understand a cygwinified path. Ahh.
19143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19144 else
19145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19146 fi
19147 ;;
19148 pw32*)
19149 # pw32 DLLs use 'pw' prefix rather than 'lib'
19150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19151 ;;
19152 esac
19153 ;;
19154
19155 *)
19156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19157 ;;
19158 esac
19159 dynamic_linker='Win32 ld.exe'
19160 # FIXME: first we should search . and the directory the executable is in
19161 shlibpath_var=PATH
19162 ;;
19163
19164 darwin* | rhapsody*)
19165 dynamic_linker="$host_os dyld"
19166 version_type=darwin
19167 need_lib_prefix=no
19168 need_version=no
19169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19170 soname_spec='${libname}${release}${major}$shared_ext'
19171 shlibpath_overrides_runpath=yes
19172 shlibpath_var=DYLD_LIBRARY_PATH
19173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19174
19175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19176 ;;
19177
19178 dgux*)
19179 version_type=linux
19180 need_lib_prefix=no
19181 need_version=no
19182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19183 soname_spec='${libname}${release}${shared_ext}$major'
19184 shlibpath_var=LD_LIBRARY_PATH
19185 ;;
19186
19187 freebsd1*)
19188 dynamic_linker=no
19189 ;;
19190
19191 freebsd* | dragonfly*)
19192 # DragonFly does not have aout. When/if they implement a new
19193 # versioning mechanism, adjust this.
19194 if test -x /usr/bin/objformat; then
19195 objformat=`/usr/bin/objformat`
19196 else
19197 case $host_os in
19198 freebsd[123]*) objformat=aout ;;
19199 *) objformat=elf ;;
19200 esac
19201 fi
19202 version_type=freebsd-$objformat
19203 case $version_type in
19204 freebsd-elf*)
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19206 need_version=no
19207 need_lib_prefix=no
19208 ;;
19209 freebsd-*)
19210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19211 need_version=yes
19212 ;;
19213 esac
19214 shlibpath_var=LD_LIBRARY_PATH
19215 case $host_os in
19216 freebsd2*)
19217 shlibpath_overrides_runpath=yes
19218 ;;
19219 freebsd3.[01]* | freebsdelf3.[01]*)
19220 shlibpath_overrides_runpath=yes
19221 hardcode_into_libs=yes
19222 ;;
19223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19225 shlibpath_overrides_runpath=no
19226 hardcode_into_libs=yes
19227 ;;
19228 *) # from 4.6 on, and DragonFly
19229 shlibpath_overrides_runpath=yes
19230 hardcode_into_libs=yes
19231 ;;
19232 esac
19233 ;;
19234
19235 gnu*)
19236 version_type=linux
19237 need_lib_prefix=no
19238 need_version=no
19239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19240 soname_spec='${libname}${release}${shared_ext}$major'
19241 shlibpath_var=LD_LIBRARY_PATH
19242 hardcode_into_libs=yes
19243 ;;
19244
19245 hpux9* | hpux10* | hpux11*)
19246 # Give a soname corresponding to the major version so that dld.sl refuses to
19247 # link against other versions.
19248 version_type=sunos
19249 need_lib_prefix=no
19250 need_version=no
19251 case $host_cpu in
19252 ia64*)
19253 shrext_cmds='.so'
19254 hardcode_into_libs=yes
19255 dynamic_linker="$host_os dld.so"
19256 shlibpath_var=LD_LIBRARY_PATH
19257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19259 soname_spec='${libname}${release}${shared_ext}$major'
19260 if test "X$HPUX_IA64_MODE" = X32; then
19261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19262 else
19263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19264 fi
19265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19266 ;;
19267 hppa*64*)
19268 shrext_cmds='.sl'
19269 hardcode_into_libs=yes
19270 dynamic_linker="$host_os dld.sl"
19271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274 soname_spec='${libname}${release}${shared_ext}$major'
19275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19277 ;;
19278 *)
19279 shrext_cmds='.sl'
19280 dynamic_linker="$host_os dld.sl"
19281 shlibpath_var=SHLIB_PATH
19282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19284 soname_spec='${libname}${release}${shared_ext}$major'
19285 ;;
19286 esac
19287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19288 postinstall_cmds='chmod 555 $lib'
19289 ;;
19290
19291 interix[3-9]*)
19292 version_type=linux
19293 need_lib_prefix=no
19294 need_version=no
19295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19296 soname_spec='${libname}${release}${shared_ext}$major'
19297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19298 shlibpath_var=LD_LIBRARY_PATH
19299 shlibpath_overrides_runpath=no
19300 hardcode_into_libs=yes
19301 ;;
19302
19303 irix5* | irix6* | nonstopux*)
19304 case $host_os in
19305 nonstopux*) version_type=nonstopux ;;
19306 *)
19307 if test "$lt_cv_prog_gnu_ld" = yes; then
19308 version_type=linux
19309 else
19310 version_type=irix
19311 fi ;;
19312 esac
19313 need_lib_prefix=no
19314 need_version=no
19315 soname_spec='${libname}${release}${shared_ext}$major'
19316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19317 case $host_os in
19318 irix5* | nonstopux*)
19319 libsuff= shlibsuff=
19320 ;;
19321 *)
19322 case $LD in # libtool.m4 will add one of these switches to LD
19323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19324 libsuff= shlibsuff= libmagic=32-bit;;
19325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19326 libsuff=32 shlibsuff=N32 libmagic=N32;;
19327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19329 *) libsuff= shlibsuff= libmagic=never-match;;
19330 esac
19331 ;;
19332 esac
19333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19334 shlibpath_overrides_runpath=no
19335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19337 hardcode_into_libs=yes
19338 ;;
19339
19340 # No shared lib support for Linux oldld, aout, or coff.
19341 linux*oldld* | linux*aout* | linux*coff*)
19342 dynamic_linker=no
19343 ;;
19344
19345 # This must be Linux ELF.
19346 linux* | k*bsd*-gnu)
19347 version_type=linux
19348 need_lib_prefix=no
19349 need_version=no
19350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19351 soname_spec='${libname}${release}${shared_ext}$major'
19352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19353 shlibpath_var=LD_LIBRARY_PATH
19354 shlibpath_overrides_runpath=no
19355 # This implies no fast_install, which is unacceptable.
19356 # Some rework will be needed to allow for fast_install
19357 # before this can be enabled.
19358 hardcode_into_libs=yes
19359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19361
19362 # Append ld.so.conf contents to the search path
19363 if test -f /etc/ld.so.conf; then
19364 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' ' '`
19365 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19366 fi
19367
19368 # We used to test for /lib/ld.so.1 and disable shared libraries on
19369 # powerpc, because MkLinux only supported shared libraries with the
19370 # GNU dynamic linker. Since this was broken with cross compilers,
19371 # most powerpc-linux boxes support dynamic linking these days and
19372 # people can always --disable-shared, the test was removed, and we
19373 # assume the GNU/Linux dynamic linker is in use.
19374 dynamic_linker='GNU/Linux ld.so'
19375 ;;
19376
19377 netbsd*)
19378 version_type=sunos
19379 need_lib_prefix=no
19380 need_version=no
19381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19384 dynamic_linker='NetBSD (a.out) ld.so'
19385 else
19386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19387 soname_spec='${libname}${release}${shared_ext}$major'
19388 dynamic_linker='NetBSD ld.elf_so'
19389 fi
19390 shlibpath_var=LD_LIBRARY_PATH
19391 shlibpath_overrides_runpath=yes
19392 hardcode_into_libs=yes
19393 ;;
19394
19395 newsos6)
19396 version_type=linux
19397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19398 shlibpath_var=LD_LIBRARY_PATH
19399 shlibpath_overrides_runpath=yes
19400 ;;
19401
19402 nto-qnx*)
19403 version_type=linux
19404 need_lib_prefix=no
19405 need_version=no
19406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19407 soname_spec='${libname}${release}${shared_ext}$major'
19408 shlibpath_var=LD_LIBRARY_PATH
19409 shlibpath_overrides_runpath=yes
19410 ;;
19411
19412 openbsd*)
19413 version_type=sunos
19414 sys_lib_dlsearch_path_spec="/usr/lib"
19415 need_lib_prefix=no
19416 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19417 case $host_os in
19418 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19419 *) need_version=no ;;
19420 esac
19421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19423 shlibpath_var=LD_LIBRARY_PATH
19424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19425 case $host_os in
19426 openbsd2.[89] | openbsd2.[89].*)
19427 shlibpath_overrides_runpath=no
19428 ;;
19429 *)
19430 shlibpath_overrides_runpath=yes
19431 ;;
19432 esac
19433 else
19434 shlibpath_overrides_runpath=yes
19435 fi
19436 ;;
19437
19438 os2*)
19439 libname_spec='$name'
19440 shrext_cmds=".dll"
19441 need_lib_prefix=no
19442 library_names_spec='$libname${shared_ext} $libname.a'
19443 dynamic_linker='OS/2 ld.exe'
19444 shlibpath_var=LIBPATH
19445 ;;
19446
19447 osf3* | osf4* | osf5*)
19448 version_type=osf
19449 need_lib_prefix=no
19450 need_version=no
19451 soname_spec='${libname}${release}${shared_ext}$major'
19452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19453 shlibpath_var=LD_LIBRARY_PATH
19454 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19455 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19456 ;;
19457
19458 rdos*)
19459 dynamic_linker=no
19460 ;;
19461
19462 solaris*)
19463 version_type=linux
19464 need_lib_prefix=no
19465 need_version=no
19466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19467 soname_spec='${libname}${release}${shared_ext}$major'
19468 shlibpath_var=LD_LIBRARY_PATH
19469 shlibpath_overrides_runpath=yes
19470 hardcode_into_libs=yes
19471 # ldd complains unless libraries are executable
19472 postinstall_cmds='chmod +x $lib'
19473 ;;
19474
19475 sunos4*)
19476 version_type=sunos
19477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19478 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19479 shlibpath_var=LD_LIBRARY_PATH
19480 shlibpath_overrides_runpath=yes
19481 if test "$with_gnu_ld" = yes; then
19482 need_lib_prefix=no
19483 fi
19484 need_version=yes
19485 ;;
19486
19487 sysv4 | sysv4.3*)
19488 version_type=linux
19489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19490 soname_spec='${libname}${release}${shared_ext}$major'
19491 shlibpath_var=LD_LIBRARY_PATH
19492 case $host_vendor in
19493 sni)
19494 shlibpath_overrides_runpath=no
19495 need_lib_prefix=no
19496 export_dynamic_flag_spec='${wl}-Blargedynsym'
19497 runpath_var=LD_RUN_PATH
19498 ;;
19499 siemens)
19500 need_lib_prefix=no
19501 ;;
19502 motorola)
19503 need_lib_prefix=no
19504 need_version=no
19505 shlibpath_overrides_runpath=no
19506 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19507 ;;
19508 esac
19509 ;;
19510
19511 sysv4*MP*)
19512 if test -d /usr/nec ;then
19513 version_type=linux
19514 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19515 soname_spec='$libname${shared_ext}.$major'
19516 shlibpath_var=LD_LIBRARY_PATH
19517 fi
19518 ;;
19519
19520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19521 version_type=freebsd-elf
19522 need_lib_prefix=no
19523 need_version=no
19524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19525 soname_spec='${libname}${release}${shared_ext}$major'
19526 shlibpath_var=LD_LIBRARY_PATH
19527 hardcode_into_libs=yes
19528 if test "$with_gnu_ld" = yes; then
19529 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19530 shlibpath_overrides_runpath=no
19531 else
19532 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19533 shlibpath_overrides_runpath=yes
19534 case $host_os in
19535 sco3.2v5*)
19536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19537 ;;
19538 esac
19539 fi
19540 sys_lib_dlsearch_path_spec='/usr/lib'
19541 ;;
19542
19543 uts4*)
19544 version_type=linux
19545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19546 soname_spec='${libname}${release}${shared_ext}$major'
19547 shlibpath_var=LD_LIBRARY_PATH
19548 ;;
19549
19550 *)
19551 dynamic_linker=no
19552 ;;
19553 esac
19554 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19555 echo "${ECHO_T}$dynamic_linker" >&6; }
19556 test "$dynamic_linker" = no && can_build_shared=no
19557
19558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19559 if test "$GCC" = yes; then
19560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19561 fi
19562
19563 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19564 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19565 hardcode_action_GCJ=
19566 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19567 test -n "$runpath_var_GCJ" || \
19568 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19569
19570 # We can hardcode non-existant directories.
19571 if test "$hardcode_direct_GCJ" != no &&
19572 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19573 # have to relink, otherwise we might link with an installed library
19574 # when we should be linking with a yet-to-be-installed one
19575 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19576 test "$hardcode_minus_L_GCJ" != no; then
19577 # Linking always hardcodes the temporary library directory.
19578 hardcode_action_GCJ=relink
19579 else
19580 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19581 hardcode_action_GCJ=immediate
19582 fi
19583 else
19584 # We cannot hardcode anything, or else we can only hardcode existing
19585 # directories.
19586 hardcode_action_GCJ=unsupported
19587 fi
19588 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19589 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19590
19591 if test "$hardcode_action_GCJ" = relink; then
19592 # Fast installation is not supported
19593 enable_fast_install=no
19594 elif test "$shlibpath_overrides_runpath" = yes ||
19595 test "$enable_shared" = no; then
19596 # Fast installation is not necessary
19597 enable_fast_install=needless
19598 fi
19599
19600
19601 # The else clause should only fire when bootstrapping the
19602 # libtool distribution, otherwise you forgot to ship ltmain.sh
19603 # with your package, and you will get complaints that there are
19604 # no rules to generate ltmain.sh.
19605 if test -f "$ltmain"; then
19606 # See if we are running on zsh, and set the options which allow our commands through
19607 # without removal of \ escapes.
19608 if test -n "${ZSH_VERSION+set}" ; then
19609 setopt NO_GLOB_SUBST
19610 fi
19611 # Now quote all the things that may contain metacharacters while being
19612 # careful not to overquote the AC_SUBSTed values. We take copies of the
19613 # variables and quote the copies for generation of the libtool script.
19614 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19615 SED SHELL STRIP \
19616 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19617 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19618 deplibs_check_method reload_flag reload_cmds need_locks \
19619 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19620 lt_cv_sys_global_symbol_to_c_name_address \
19621 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19622 old_postinstall_cmds old_postuninstall_cmds \
19623 compiler_GCJ \
19624 CC_GCJ \
19625 LD_GCJ \
19626 lt_prog_compiler_wl_GCJ \
19627 lt_prog_compiler_pic_GCJ \
19628 lt_prog_compiler_static_GCJ \
19629 lt_prog_compiler_no_builtin_flag_GCJ \
19630 export_dynamic_flag_spec_GCJ \
19631 thread_safe_flag_spec_GCJ \
19632 whole_archive_flag_spec_GCJ \
19633 enable_shared_with_static_runtimes_GCJ \
19634 old_archive_cmds_GCJ \
19635 old_archive_from_new_cmds_GCJ \
19636 predep_objects_GCJ \
19637 postdep_objects_GCJ \
19638 predeps_GCJ \
19639 postdeps_GCJ \
19640 compiler_lib_search_path_GCJ \
19641 archive_cmds_GCJ \
19642 archive_expsym_cmds_GCJ \
19643 postinstall_cmds_GCJ \
19644 postuninstall_cmds_GCJ \
19645 old_archive_from_expsyms_cmds_GCJ \
19646 allow_undefined_flag_GCJ \
19647 no_undefined_flag_GCJ \
19648 export_symbols_cmds_GCJ \
19649 hardcode_libdir_flag_spec_GCJ \
19650 hardcode_libdir_flag_spec_ld_GCJ \
19651 hardcode_libdir_separator_GCJ \
19652 hardcode_automatic_GCJ \
19653 module_cmds_GCJ \
19654 module_expsym_cmds_GCJ \
19655 lt_cv_prog_compiler_c_o_GCJ \
19656 fix_srcfile_path_GCJ \
19657 exclude_expsyms_GCJ \
19658 include_expsyms_GCJ; do
19659
19660 case $var in
19661 old_archive_cmds_GCJ | \
19662 old_archive_from_new_cmds_GCJ | \
19663 archive_cmds_GCJ | \
19664 archive_expsym_cmds_GCJ | \
19665 module_cmds_GCJ | \
19666 module_expsym_cmds_GCJ | \
19667 old_archive_from_expsyms_cmds_GCJ | \
19668 export_symbols_cmds_GCJ | \
19669 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19670 postinstall_cmds | postuninstall_cmds | \
19671 old_postinstall_cmds | old_postuninstall_cmds | \
19672 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19673 # Double-quote double-evaled strings.
19674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19675 ;;
19676 *)
19677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19678 ;;
19679 esac
19680 done
19681
19682 case $lt_echo in
19683 *'\$0 --fallback-echo"')
19684 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19685 ;;
19686 esac
19687
19688 cfgfile="$ofile"
19689
19690 cat <<__EOF__ >> "$cfgfile"
19691 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19692
19693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19694
19695 # Shell to use when invoking shell scripts.
19696 SHELL=$lt_SHELL
19697
19698 # Whether or not to build shared libraries.
19699 build_libtool_libs=$enable_shared
19700
19701 # Whether or not to build static libraries.
19702 build_old_libs=$enable_static
19703
19704 # Whether or not to add -lc for building shared libraries.
19705 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19706
19707 # Whether or not to disallow shared libs when runtime libs are static
19708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19709
19710 # Whether or not to optimize for fast installation.
19711 fast_install=$enable_fast_install
19712
19713 # The host system.
19714 host_alias=$host_alias
19715 host=$host
19716 host_os=$host_os
19717
19718 # The build system.
19719 build_alias=$build_alias
19720 build=$build
19721 build_os=$build_os
19722
19723 # An echo program that does not interpret backslashes.
19724 echo=$lt_echo
19725
19726 # The archiver.
19727 AR=$lt_AR
19728 AR_FLAGS=$lt_AR_FLAGS
19729
19730 # A C compiler.
19731 LTCC=$lt_LTCC
19732
19733 # LTCC compiler flags.
19734 LTCFLAGS=$lt_LTCFLAGS
19735
19736 # A language-specific compiler.
19737 CC=$lt_compiler_GCJ
19738
19739 # Is the compiler the GNU C compiler?
19740 with_gcc=$GCC_GCJ
19741
19742 # An ERE matcher.
19743 EGREP=$lt_EGREP
19744
19745 # The linker used to build libraries.
19746 LD=$lt_LD_GCJ
19747
19748 # Whether we need hard or soft links.
19749 LN_S=$lt_LN_S
19750
19751 # A BSD-compatible nm program.
19752 NM=$lt_NM
19753
19754 # A symbol stripping program
19755 STRIP=$lt_STRIP
19756
19757 # Used to examine libraries when file_magic_cmd begins "file"
19758 MAGIC_CMD=$MAGIC_CMD
19759
19760 # Used on cygwin: DLL creation program.
19761 DLLTOOL="$DLLTOOL"
19762
19763 # Used on cygwin: object dumper.
19764 OBJDUMP="$OBJDUMP"
19765
19766 # Used on cygwin: assembler.
19767 AS="$AS"
19768
19769 # The name of the directory that contains temporary libtool files.
19770 objdir=$objdir
19771
19772 # How to create reloadable object files.
19773 reload_flag=$lt_reload_flag
19774 reload_cmds=$lt_reload_cmds
19775
19776 # How to pass a linker flag through the compiler.
19777 wl=$lt_lt_prog_compiler_wl_GCJ
19778
19779 # Object file suffix (normally "o").
19780 objext="$ac_objext"
19781
19782 # Old archive suffix (normally "a").
19783 libext="$libext"
19784
19785 # Shared library suffix (normally ".so").
19786 shrext_cmds='$shrext_cmds'
19787
19788 # Executable file suffix (normally "").
19789 exeext="$exeext"
19790
19791 # Additional compiler flags for building library objects.
19792 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19793 pic_mode=$pic_mode
19794
19795 # What is the maximum length of a command?
19796 max_cmd_len=$lt_cv_sys_max_cmd_len
19797
19798 # Does compiler simultaneously support -c and -o options?
19799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19800
19801 # Must we lock files when doing compilation?
19802 need_locks=$lt_need_locks
19803
19804 # Do we need the lib prefix for modules?
19805 need_lib_prefix=$need_lib_prefix
19806
19807 # Do we need a version for libraries?
19808 need_version=$need_version
19809
19810 # Whether dlopen is supported.
19811 dlopen_support=$enable_dlopen
19812
19813 # Whether dlopen of programs is supported.
19814 dlopen_self=$enable_dlopen_self
19815
19816 # Whether dlopen of statically linked programs is supported.
19817 dlopen_self_static=$enable_dlopen_self_static
19818
19819 # Compiler flag to prevent dynamic linking.
19820 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19821
19822 # Compiler flag to turn off builtin functions.
19823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19824
19825 # Compiler flag to allow reflexive dlopens.
19826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19827
19828 # Compiler flag to generate shared objects directly from archives.
19829 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19830
19831 # Compiler flag to generate thread-safe objects.
19832 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19833
19834 # Library versioning type.
19835 version_type=$version_type
19836
19837 # Format of library name prefix.
19838 libname_spec=$lt_libname_spec
19839
19840 # List of archive names. First name is the real one, the rest are links.
19841 # The last name is the one that the linker finds with -lNAME.
19842 library_names_spec=$lt_library_names_spec
19843
19844 # The coded name of the library, if different from the real name.
19845 soname_spec=$lt_soname_spec
19846
19847 # Commands used to build and install an old-style archive.
19848 RANLIB=$lt_RANLIB
19849 old_archive_cmds=$lt_old_archive_cmds_GCJ
19850 old_postinstall_cmds=$lt_old_postinstall_cmds
19851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19852
19853 # Create an old-style archive from a shared archive.
19854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19855
19856 # Create a temporary old-style archive to link instead of a shared archive.
19857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19858
19859 # Commands used to build and install a shared archive.
19860 archive_cmds=$lt_archive_cmds_GCJ
19861 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19862 postinstall_cmds=$lt_postinstall_cmds
19863 postuninstall_cmds=$lt_postuninstall_cmds
19864
19865 # Commands used to build a loadable module (assumed same as above if empty)
19866 module_cmds=$lt_module_cmds_GCJ
19867 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19868
19869 # Commands to strip libraries.
19870 old_striplib=$lt_old_striplib
19871 striplib=$lt_striplib
19872
19873 # Dependencies to place before the objects being linked to create a
19874 # shared library.
19875 predep_objects=$lt_predep_objects_GCJ
19876
19877 # Dependencies to place after the objects being linked to create a
19878 # shared library.
19879 postdep_objects=$lt_postdep_objects_GCJ
19880
19881 # Dependencies to place before the objects being linked to create a
19882 # shared library.
19883 predeps=$lt_predeps_GCJ
19884
19885 # Dependencies to place after the objects being linked to create a
19886 # shared library.
19887 postdeps=$lt_postdeps_GCJ
19888
19889 # The library search path used internally by the compiler when linking
19890 # a shared library.
19891 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19892
19893 # Method to check whether dependent libraries are shared objects.
19894 deplibs_check_method=$lt_deplibs_check_method
19895
19896 # Command to use when deplibs_check_method == file_magic.
19897 file_magic_cmd=$lt_file_magic_cmd
19898
19899 # Flag that allows shared libraries with undefined symbols to be built.
19900 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19901
19902 # Flag that forces no undefined symbols.
19903 no_undefined_flag=$lt_no_undefined_flag_GCJ
19904
19905 # Commands used to finish a libtool library installation in a directory.
19906 finish_cmds=$lt_finish_cmds
19907
19908 # Same as above, but a single script fragment to be evaled but not shown.
19909 finish_eval=$lt_finish_eval
19910
19911 # Take the output of nm and produce a listing of raw symbols and C names.
19912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19913
19914 # Transform the output of nm in a proper C declaration
19915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19916
19917 # Transform the output of nm in a C name address pair
19918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19919
19920 # This is the shared library runtime path variable.
19921 runpath_var=$runpath_var
19922
19923 # This is the shared library path variable.
19924 shlibpath_var=$shlibpath_var
19925
19926 # Is shlibpath searched before the hard-coded library search path?
19927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19928
19929 # How to hardcode a shared library path into an executable.
19930 hardcode_action=$hardcode_action_GCJ
19931
19932 # Whether we should hardcode library paths into libraries.
19933 hardcode_into_libs=$hardcode_into_libs
19934
19935 # Flag to hardcode \$libdir into a binary during linking.
19936 # This must work even if \$libdir does not exist.
19937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19938
19939 # If ld is used when linking, flag to hardcode \$libdir into
19940 # a binary during linking. This must work even if \$libdir does
19941 # not exist.
19942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19943
19944 # Whether we need a single -rpath flag with a separated argument.
19945 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19946
19947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19948 # resulting binary.
19949 hardcode_direct=$hardcode_direct_GCJ
19950
19951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19952 # resulting binary.
19953 hardcode_minus_L=$hardcode_minus_L_GCJ
19954
19955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19956 # the resulting binary.
19957 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19958
19959 # Set to yes if building a shared library automatically hardcodes DIR into the library
19960 # and all subsequent libraries and executables linked against it.
19961 hardcode_automatic=$hardcode_automatic_GCJ
19962
19963 # Variables whose values should be saved in libtool wrapper scripts and
19964 # restored at relink time.
19965 variables_saved_for_relink="$variables_saved_for_relink"
19966
19967 # Whether libtool must link a program against all its dependency libraries.
19968 link_all_deplibs=$link_all_deplibs_GCJ
19969
19970 # Compile-time system search path for libraries
19971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19972
19973 # Run-time system search path for libraries
19974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19975
19976 # Fix the shell variable \$srcfile for the compiler.
19977 fix_srcfile_path=$lt_fix_srcfile_path
19978
19979 # Set to yes if exported symbols are required.
19980 always_export_symbols=$always_export_symbols_GCJ
19981
19982 # The commands to list exported symbols.
19983 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19984
19985 # The commands to extract the exported symbol list from a shared archive.
19986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19987
19988 # Symbols that should not be listed in the preloaded symbols.
19989 exclude_expsyms=$lt_exclude_expsyms_GCJ
19990
19991 # Symbols that must always be exported.
19992 include_expsyms=$lt_include_expsyms_GCJ
19993
19994 # ### END LIBTOOL TAG CONFIG: $tagname
19995
19996 __EOF__
19997
19998
19999 else
20000 # If there is no Makefile yet, we rely on a make rule to execute
20001 # `config.status --recheck' to rerun these tests and create the
20002 # libtool script then.
20003 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20004 if test -f "$ltmain_in"; then
20005 test -f Makefile && make "$ltmain"
20006 fi
20007 fi
20008
20009
20010 ac_ext=c
20011 ac_cpp='$CPP $CPPFLAGS'
20012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20015
20016 CC="$lt_save_CC"
20017
20018 else
20019 tagname=""
20020 fi
20021 ;;
20022
20023 RC)
20024
20025
20026 # Source file extension for RC test sources.
20027 ac_ext=rc
20028
20029 # Object file extension for compiled RC test sources.
20030 objext=o
20031 objext_RC=$objext
20032
20033 # Code to be used in simple compile tests
20034 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20035
20036 # Code to be used in simple link tests
20037 lt_simple_link_test_code="$lt_simple_compile_test_code"
20038
20039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20040
20041 # If no C compiler was specified, use CC.
20042 LTCC=${LTCC-"$CC"}
20043
20044 # If no C compiler flags were specified, use CFLAGS.
20045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20046
20047 # Allow CC to be a program name with arguments.
20048 compiler=$CC
20049
20050
20051 # save warnings/boilerplate of simple test code
20052 ac_outfile=conftest.$ac_objext
20053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20055 _lt_compiler_boilerplate=`cat conftest.err`
20056 $rm conftest*
20057
20058 ac_outfile=conftest.$ac_objext
20059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20061 _lt_linker_boilerplate=`cat conftest.err`
20062 $rm conftest*
20063
20064
20065 # Allow CC to be a program name with arguments.
20066 lt_save_CC="$CC"
20067 CC=${RC-"windres"}
20068 compiler=$CC
20069 compiler_RC=$CC
20070 for cc_temp in $compiler""; do
20071 case $cc_temp in
20072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20074 \-*) ;;
20075 *) break;;
20076 esac
20077 done
20078 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20079
20080 lt_cv_prog_compiler_c_o_RC=yes
20081
20082 # The else clause should only fire when bootstrapping the
20083 # libtool distribution, otherwise you forgot to ship ltmain.sh
20084 # with your package, and you will get complaints that there are
20085 # no rules to generate ltmain.sh.
20086 if test -f "$ltmain"; then
20087 # See if we are running on zsh, and set the options which allow our commands through
20088 # without removal of \ escapes.
20089 if test -n "${ZSH_VERSION+set}" ; then
20090 setopt NO_GLOB_SUBST
20091 fi
20092 # Now quote all the things that may contain metacharacters while being
20093 # careful not to overquote the AC_SUBSTed values. We take copies of the
20094 # variables and quote the copies for generation of the libtool script.
20095 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20096 SED SHELL STRIP \
20097 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20098 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20099 deplibs_check_method reload_flag reload_cmds need_locks \
20100 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20101 lt_cv_sys_global_symbol_to_c_name_address \
20102 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20103 old_postinstall_cmds old_postuninstall_cmds \
20104 compiler_RC \
20105 CC_RC \
20106 LD_RC \
20107 lt_prog_compiler_wl_RC \
20108 lt_prog_compiler_pic_RC \
20109 lt_prog_compiler_static_RC \
20110 lt_prog_compiler_no_builtin_flag_RC \
20111 export_dynamic_flag_spec_RC \
20112 thread_safe_flag_spec_RC \
20113 whole_archive_flag_spec_RC \
20114 enable_shared_with_static_runtimes_RC \
20115 old_archive_cmds_RC \
20116 old_archive_from_new_cmds_RC \
20117 predep_objects_RC \
20118 postdep_objects_RC \
20119 predeps_RC \
20120 postdeps_RC \
20121 compiler_lib_search_path_RC \
20122 archive_cmds_RC \
20123 archive_expsym_cmds_RC \
20124 postinstall_cmds_RC \
20125 postuninstall_cmds_RC \
20126 old_archive_from_expsyms_cmds_RC \
20127 allow_undefined_flag_RC \
20128 no_undefined_flag_RC \
20129 export_symbols_cmds_RC \
20130 hardcode_libdir_flag_spec_RC \
20131 hardcode_libdir_flag_spec_ld_RC \
20132 hardcode_libdir_separator_RC \
20133 hardcode_automatic_RC \
20134 module_cmds_RC \
20135 module_expsym_cmds_RC \
20136 lt_cv_prog_compiler_c_o_RC \
20137 fix_srcfile_path_RC \
20138 exclude_expsyms_RC \
20139 include_expsyms_RC; do
20140
20141 case $var in
20142 old_archive_cmds_RC | \
20143 old_archive_from_new_cmds_RC | \
20144 archive_cmds_RC | \
20145 archive_expsym_cmds_RC | \
20146 module_cmds_RC | \
20147 module_expsym_cmds_RC | \
20148 old_archive_from_expsyms_cmds_RC | \
20149 export_symbols_cmds_RC | \
20150 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20151 postinstall_cmds | postuninstall_cmds | \
20152 old_postinstall_cmds | old_postuninstall_cmds | \
20153 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20154 # Double-quote double-evaled strings.
20155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20156 ;;
20157 *)
20158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20159 ;;
20160 esac
20161 done
20162
20163 case $lt_echo in
20164 *'\$0 --fallback-echo"')
20165 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20166 ;;
20167 esac
20168
20169 cfgfile="$ofile"
20170
20171 cat <<__EOF__ >> "$cfgfile"
20172 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20173
20174 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20175
20176 # Shell to use when invoking shell scripts.
20177 SHELL=$lt_SHELL
20178
20179 # Whether or not to build shared libraries.
20180 build_libtool_libs=$enable_shared
20181
20182 # Whether or not to build static libraries.
20183 build_old_libs=$enable_static
20184
20185 # Whether or not to add -lc for building shared libraries.
20186 build_libtool_need_lc=$archive_cmds_need_lc_RC
20187
20188 # Whether or not to disallow shared libs when runtime libs are static
20189 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20190
20191 # Whether or not to optimize for fast installation.
20192 fast_install=$enable_fast_install
20193
20194 # The host system.
20195 host_alias=$host_alias
20196 host=$host
20197 host_os=$host_os
20198
20199 # The build system.
20200 build_alias=$build_alias
20201 build=$build
20202 build_os=$build_os
20203
20204 # An echo program that does not interpret backslashes.
20205 echo=$lt_echo
20206
20207 # The archiver.
20208 AR=$lt_AR
20209 AR_FLAGS=$lt_AR_FLAGS
20210
20211 # A C compiler.
20212 LTCC=$lt_LTCC
20213
20214 # LTCC compiler flags.
20215 LTCFLAGS=$lt_LTCFLAGS
20216
20217 # A language-specific compiler.
20218 CC=$lt_compiler_RC
20219
20220 # Is the compiler the GNU C compiler?
20221 with_gcc=$GCC_RC
20222
20223 # An ERE matcher.
20224 EGREP=$lt_EGREP
20225
20226 # The linker used to build libraries.
20227 LD=$lt_LD_RC
20228
20229 # Whether we need hard or soft links.
20230 LN_S=$lt_LN_S
20231
20232 # A BSD-compatible nm program.
20233 NM=$lt_NM
20234
20235 # A symbol stripping program
20236 STRIP=$lt_STRIP
20237
20238 # Used to examine libraries when file_magic_cmd begins "file"
20239 MAGIC_CMD=$MAGIC_CMD
20240
20241 # Used on cygwin: DLL creation program.
20242 DLLTOOL="$DLLTOOL"
20243
20244 # Used on cygwin: object dumper.
20245 OBJDUMP="$OBJDUMP"
20246
20247 # Used on cygwin: assembler.
20248 AS="$AS"
20249
20250 # The name of the directory that contains temporary libtool files.
20251 objdir=$objdir
20252
20253 # How to create reloadable object files.
20254 reload_flag=$lt_reload_flag
20255 reload_cmds=$lt_reload_cmds
20256
20257 # How to pass a linker flag through the compiler.
20258 wl=$lt_lt_prog_compiler_wl_RC
20259
20260 # Object file suffix (normally "o").
20261 objext="$ac_objext"
20262
20263 # Old archive suffix (normally "a").
20264 libext="$libext"
20265
20266 # Shared library suffix (normally ".so").
20267 shrext_cmds='$shrext_cmds'
20268
20269 # Executable file suffix (normally "").
20270 exeext="$exeext"
20271
20272 # Additional compiler flags for building library objects.
20273 pic_flag=$lt_lt_prog_compiler_pic_RC
20274 pic_mode=$pic_mode
20275
20276 # What is the maximum length of a command?
20277 max_cmd_len=$lt_cv_sys_max_cmd_len
20278
20279 # Does compiler simultaneously support -c and -o options?
20280 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20281
20282 # Must we lock files when doing compilation?
20283 need_locks=$lt_need_locks
20284
20285 # Do we need the lib prefix for modules?
20286 need_lib_prefix=$need_lib_prefix
20287
20288 # Do we need a version for libraries?
20289 need_version=$need_version
20290
20291 # Whether dlopen is supported.
20292 dlopen_support=$enable_dlopen
20293
20294 # Whether dlopen of programs is supported.
20295 dlopen_self=$enable_dlopen_self
20296
20297 # Whether dlopen of statically linked programs is supported.
20298 dlopen_self_static=$enable_dlopen_self_static
20299
20300 # Compiler flag to prevent dynamic linking.
20301 link_static_flag=$lt_lt_prog_compiler_static_RC
20302
20303 # Compiler flag to turn off builtin functions.
20304 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20305
20306 # Compiler flag to allow reflexive dlopens.
20307 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20308
20309 # Compiler flag to generate shared objects directly from archives.
20310 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20311
20312 # Compiler flag to generate thread-safe objects.
20313 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20314
20315 # Library versioning type.
20316 version_type=$version_type
20317
20318 # Format of library name prefix.
20319 libname_spec=$lt_libname_spec
20320
20321 # List of archive names. First name is the real one, the rest are links.
20322 # The last name is the one that the linker finds with -lNAME.
20323 library_names_spec=$lt_library_names_spec
20324
20325 # The coded name of the library, if different from the real name.
20326 soname_spec=$lt_soname_spec
20327
20328 # Commands used to build and install an old-style archive.
20329 RANLIB=$lt_RANLIB
20330 old_archive_cmds=$lt_old_archive_cmds_RC
20331 old_postinstall_cmds=$lt_old_postinstall_cmds
20332 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20333
20334 # Create an old-style archive from a shared archive.
20335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20336
20337 # Create a temporary old-style archive to link instead of a shared archive.
20338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20339
20340 # Commands used to build and install a shared archive.
20341 archive_cmds=$lt_archive_cmds_RC
20342 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20343 postinstall_cmds=$lt_postinstall_cmds
20344 postuninstall_cmds=$lt_postuninstall_cmds
20345
20346 # Commands used to build a loadable module (assumed same as above if empty)
20347 module_cmds=$lt_module_cmds_RC
20348 module_expsym_cmds=$lt_module_expsym_cmds_RC
20349
20350 # Commands to strip libraries.
20351 old_striplib=$lt_old_striplib
20352 striplib=$lt_striplib
20353
20354 # Dependencies to place before the objects being linked to create a
20355 # shared library.
20356 predep_objects=$lt_predep_objects_RC
20357
20358 # Dependencies to place after the objects being linked to create a
20359 # shared library.
20360 postdep_objects=$lt_postdep_objects_RC
20361
20362 # Dependencies to place before the objects being linked to create a
20363 # shared library.
20364 predeps=$lt_predeps_RC
20365
20366 # Dependencies to place after the objects being linked to create a
20367 # shared library.
20368 postdeps=$lt_postdeps_RC
20369
20370 # The library search path used internally by the compiler when linking
20371 # a shared library.
20372 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20373
20374 # Method to check whether dependent libraries are shared objects.
20375 deplibs_check_method=$lt_deplibs_check_method
20376
20377 # Command to use when deplibs_check_method == file_magic.
20378 file_magic_cmd=$lt_file_magic_cmd
20379
20380 # Flag that allows shared libraries with undefined symbols to be built.
20381 allow_undefined_flag=$lt_allow_undefined_flag_RC
20382
20383 # Flag that forces no undefined symbols.
20384 no_undefined_flag=$lt_no_undefined_flag_RC
20385
20386 # Commands used to finish a libtool library installation in a directory.
20387 finish_cmds=$lt_finish_cmds
20388
20389 # Same as above, but a single script fragment to be evaled but not shown.
20390 finish_eval=$lt_finish_eval
20391
20392 # Take the output of nm and produce a listing of raw symbols and C names.
20393 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20394
20395 # Transform the output of nm in a proper C declaration
20396 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20397
20398 # Transform the output of nm in a C name address pair
20399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20400
20401 # This is the shared library runtime path variable.
20402 runpath_var=$runpath_var
20403
20404 # This is the shared library path variable.
20405 shlibpath_var=$shlibpath_var
20406
20407 # Is shlibpath searched before the hard-coded library search path?
20408 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20409
20410 # How to hardcode a shared library path into an executable.
20411 hardcode_action=$hardcode_action_RC
20412
20413 # Whether we should hardcode library paths into libraries.
20414 hardcode_into_libs=$hardcode_into_libs
20415
20416 # Flag to hardcode \$libdir into a binary during linking.
20417 # This must work even if \$libdir does not exist.
20418 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20419
20420 # If ld is used when linking, flag to hardcode \$libdir into
20421 # a binary during linking. This must work even if \$libdir does
20422 # not exist.
20423 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20424
20425 # Whether we need a single -rpath flag with a separated argument.
20426 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20427
20428 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20429 # resulting binary.
20430 hardcode_direct=$hardcode_direct_RC
20431
20432 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20433 # resulting binary.
20434 hardcode_minus_L=$hardcode_minus_L_RC
20435
20436 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20437 # the resulting binary.
20438 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20439
20440 # Set to yes if building a shared library automatically hardcodes DIR into the library
20441 # and all subsequent libraries and executables linked against it.
20442 hardcode_automatic=$hardcode_automatic_RC
20443
20444 # Variables whose values should be saved in libtool wrapper scripts and
20445 # restored at relink time.
20446 variables_saved_for_relink="$variables_saved_for_relink"
20447
20448 # Whether libtool must link a program against all its dependency libraries.
20449 link_all_deplibs=$link_all_deplibs_RC
20450
20451 # Compile-time system search path for libraries
20452 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20453
20454 # Run-time system search path for libraries
20455 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20456
20457 # Fix the shell variable \$srcfile for the compiler.
20458 fix_srcfile_path=$lt_fix_srcfile_path
20459
20460 # Set to yes if exported symbols are required.
20461 always_export_symbols=$always_export_symbols_RC
20462
20463 # The commands to list exported symbols.
20464 export_symbols_cmds=$lt_export_symbols_cmds_RC
20465
20466 # The commands to extract the exported symbol list from a shared archive.
20467 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20468
20469 # Symbols that should not be listed in the preloaded symbols.
20470 exclude_expsyms=$lt_exclude_expsyms_RC
20471
20472 # Symbols that must always be exported.
20473 include_expsyms=$lt_include_expsyms_RC
20474
20475 # ### END LIBTOOL TAG CONFIG: $tagname
20476
20477 __EOF__
20478
20479
20480 else
20481 # If there is no Makefile yet, we rely on a make rule to execute
20482 # `config.status --recheck' to rerun these tests and create the
20483 # libtool script then.
20484 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20485 if test -f "$ltmain_in"; then
20486 test -f Makefile && make "$ltmain"
20487 fi
20488 fi
20489
20490
20491 ac_ext=c
20492 ac_cpp='$CPP $CPPFLAGS'
20493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20496
20497 CC="$lt_save_CC"
20498
20499 ;;
20500
20501 *)
20502 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20503 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20504 { (exit 1); exit 1; }; }
20505 ;;
20506 esac
20507
20508 # Append the new tag name to the list of available tags.
20509 if test -n "$tagname" ; then
20510 available_tags="$available_tags $tagname"
20511 fi
20512 fi
20513 done
20514 IFS="$lt_save_ifs"
20515
20516 # Now substitute the updated list of available tags.
20517 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20518 mv "${ofile}T" "$ofile"
20519 chmod +x "$ofile"
20520 else
20521 rm -f "${ofile}T"
20522 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20523 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20524 { (exit 1); exit 1; }; }
20525 fi
20526 fi
20527
20528
20529
20530 # This can be used to rebuild libtool when needed
20531 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20532
20533 # Always use our own libtool.
20534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20535
20536 # Prevent multiple expansion
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558 if test "$PS" = "ps"
20559 then
20560 { { echo "$as_me:$LINENO: error: Cannot find pathname to ps" >&5
20561 echo "$as_me: error: Cannot find pathname to ps" >&2;}
20562 { (exit 1); exit 1; }; }
20563 fi
20564
20565 if test x$GXX = xyes
20566 then
20567 CFLAGS="-Wall $CFLAGS"
20568 fi
20569
20570 CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
20571
20572
20573 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20574 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20575 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 #include <sys/types.h>
20585 #include <sys/wait.h>
20586 #ifndef WEXITSTATUS
20587 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20588 #endif
20589 #ifndef WIFEXITED
20590 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20591 #endif
20592
20593 int
20594 main ()
20595 {
20596 int s;
20597 wait (&s);
20598 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20599 ;
20600 return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext
20604 if { (ac_try="$ac_compile"
20605 case "(($ac_try" in
20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20608 esac
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20611 ac_status=$?
20612 grep -v '^ *+' conftest.er1 >conftest.err
20613 rm -f conftest.er1
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest.$ac_objext; then
20620 ac_cv_header_sys_wait_h=yes
20621 else
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20624
20625 ac_cv_header_sys_wait_h=no
20626 fi
20627
20628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20629 fi
20630 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20631 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20632 if test $ac_cv_header_sys_wait_h = yes; then
20633
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_SYS_WAIT_H 1
20636 _ACEOF
20637
20638 fi
20639
20640
20641
20642 for ac_header in unistd.h fcntl.h
20643 do
20644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 fi
20651 ac_res=`eval echo '${'$as_ac_Header'}'`
20652 { echo "$as_me:$LINENO: result: $ac_res" >&5
20653 echo "${ECHO_T}$ac_res" >&6; }
20654 else
20655 # Is the header compilable?
20656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20658 cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h. */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 $ac_includes_default
20665 #include <$ac_header>
20666 _ACEOF
20667 rm -f conftest.$ac_objext
20668 if { (ac_try="$ac_compile"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672 esac
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_compile") 2>conftest.er1
20675 ac_status=$?
20676 grep -v '^ *+' conftest.er1 >conftest.err
20677 rm -f conftest.er1
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } && {
20681 test -z "$ac_c_werror_flag" ||
20682 test ! -s conftest.err
20683 } && test -s conftest.$ac_objext; then
20684 ac_header_compiler=yes
20685 else
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ac_header_compiler=no
20690 fi
20691
20692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20694 echo "${ECHO_T}$ac_header_compiler" >&6; }
20695
20696 # Is the header present?
20697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 #include <$ac_header>
20706 _ACEOF
20707 if { (ac_try="$ac_cpp conftest.$ac_ext"
20708 case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20711 esac
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20714 ac_status=$?
20715 grep -v '^ *+' conftest.er1 >conftest.err
20716 rm -f conftest.er1
20717 cat conftest.err >&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } >/dev/null && {
20720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20721 test ! -s conftest.err
20722 }; then
20723 ac_header_preproc=yes
20724 else
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728 ac_header_preproc=no
20729 fi
20730
20731 rm -f conftest.err conftest.$ac_ext
20732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20733 echo "${ECHO_T}$ac_header_preproc" >&6; }
20734
20735 # So? What about this header?
20736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20737 yes:no: )
20738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20742 ac_header_preproc=yes
20743 ;;
20744 no:yes:* )
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20757 ( cat <<\_ASBOX
20758 ## -------------------------------------------------- ##
20759 ## Report this to courier-users@lists.sourceforge.net ##
20760 ## -------------------------------------------------- ##
20761 _ASBOX
20762 ) | sed "s/^/$as_me: WARNING: /" >&2
20763 ;;
20764 esac
20765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770 eval "$as_ac_Header=\$ac_header_preproc"
20771 fi
20772 ac_res=`eval echo '${'$as_ac_Header'}'`
20773 { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20775
20776 fi
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20780 _ACEOF
20781
20782 fi
20783
20784 done
20785
20786
20787 { echo "$as_me:$LINENO: checking for pid_t" >&5
20788 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20789 if test "${ac_cv_type_pid_t+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 else
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 $ac_includes_default
20799 typedef pid_t ac__type_new_;
20800 int
20801 main ()
20802 {
20803 if ((ac__type_new_ *) 0)
20804 return 0;
20805 if (sizeof (ac__type_new_))
20806 return 0;
20807 ;
20808 return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_compile") 2>conftest.er1
20819 ac_status=$?
20820 grep -v '^ *+' conftest.er1 >conftest.err
20821 rm -f conftest.er1
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest.$ac_objext; then
20828 ac_cv_type_pid_t=yes
20829 else
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833 ac_cv_type_pid_t=no
20834 fi
20835
20836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20837 fi
20838 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20839 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20840 if test $ac_cv_type_pid_t = yes; then
20841 :
20842 else
20843
20844 cat >>confdefs.h <<_ACEOF
20845 #define pid_t int
20846 _ACEOF
20847
20848 fi
20849
20850
20851
20852 # Check whether --with-random was given.
20853 if test "${with_random+set}" = set; then
20854 withval=$with_random; random="$withval"
20855 else
20856 random="y"
20857 fi
20858
20859
20860 case "$random" in
20861 /*)
20862 ;;
20863 y*|1*)
20864 { echo "$as_me:$LINENO: checking for random source" >&5
20865 echo $ECHO_N "checking for random source... $ECHO_C" >&6; }
20866 if test "${random_cv_RANDOM+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869 if test -c /dev/urandom
20870 then
20871 random_cv_RANDOM=/dev/urandom
20872 else
20873 if test -c /dev/random
20874 then
20875 random_cv_RANDOM=/dev/random
20876 else
20877 random_cv_RANDOM="none"
20878 fi
20879 fi
20880
20881 fi
20882 { echo "$as_me:$LINENO: result: $random_cv_RANDOM" >&5
20883 echo "${ECHO_T}$random_cv_RANDOM" >&6; }
20884 random="$random_cv_RANDOM"
20885 ;;
20886 *)
20887 random="none"
20888 ;;
20889 esac
20890
20891 if test "$random" != "none"
20892 then
20893
20894 cat >>confdefs.h <<_ACEOF
20895 #define RANDOM "$random"
20896 _ACEOF
20897
20898 fi
20899
20900 { echo "$as_me:$LINENO: checking for some good options for ps" >&5
20901 echo $ECHO_N "checking for some good options for ps... $ECHO_C" >&6; }
20902 if test "${random_cv_PS_OPTIONS+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
20906 do
20907 ps $opts >/dev/null 2>/dev/null || continue
20908 break
20909 done
20910 random_cv_PS_OPTIONS="$opts"
20911
20912 fi
20913 { echo "$as_me:$LINENO: result: $random_cv_PS_OPTIONS" >&5
20914 echo "${ECHO_T}$random_cv_PS_OPTIONS" >&6; }
20915
20916
20917 cat >>confdefs.h <<_ACEOF
20918 #define PS_OPTIONS "$random_cv_PS_OPTIONS"
20919 _ACEOF
20920
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define PS "$PS"
20924 _ACEOF
20925
20926
20927 if test "$W" != "w"
20928 then
20929
20930 cat >>confdefs.h <<_ACEOF
20931 #define W "$w"
20932 _ACEOF
20933
20934 fi
20935
20936 ac_config_files="$ac_config_files Makefile"
20937
20938 cat >confcache <<\_ACEOF
20939 # This file is a shell script that caches the results of configure
20940 # tests run on this system so they can be shared between configure
20941 # scripts and configure runs, see configure's option --config-cache.
20942 # It is not useful on other systems. If it contains results you don't
20943 # want to keep, you may remove or edit it.
20944 #
20945 # config.status only pays attention to the cache file if you give it
20946 # the --recheck option to rerun configure.
20947 #
20948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20950 # following values.
20951
20952 _ACEOF
20953
20954 # The following way of writing the cache mishandles newlines in values,
20955 # but we know of no workaround that is simple, portable, and efficient.
20956 # So, we kill variables containing newlines.
20957 # Ultrix sh set writes to stderr and can't be redirected directly,
20958 # and sets the high bit in the cache file unless we assign to the vars.
20959 (
20960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20961 eval ac_val=\$$ac_var
20962 case $ac_val in #(
20963 *${as_nl}*)
20964 case $ac_var in #(
20965 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20966 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20967 esac
20968 case $ac_var in #(
20969 _ | IFS | as_nl) ;; #(
20970 *) $as_unset $ac_var ;;
20971 esac ;;
20972 esac
20973 done
20974
20975 (set) 2>&1 |
20976 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20977 *${as_nl}ac_space=\ *)
20978 # `set' does not quote correctly, so add quotes (double-quote
20979 # substitution turns \\\\ into \\, and sed turns \\ into \).
20980 sed -n \
20981 "s/'/'\\\\''/g;
20982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20983 ;; #(
20984 *)
20985 # `set' quotes correctly as required by POSIX, so do not add quotes.
20986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20987 ;;
20988 esac |
20989 sort
20990 ) |
20991 sed '
20992 /^ac_cv_env_/b end
20993 t clear
20994 :clear
20995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20996 t end
20997 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20998 :end' >>confcache
20999 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21000 if test -w "$cache_file"; then
21001 test "x$cache_file" != "x/dev/null" &&
21002 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21003 echo "$as_me: updating cache $cache_file" >&6;}
21004 cat confcache >$cache_file
21005 else
21006 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21007 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21008 fi
21009 fi
21010 rm -f confcache
21011
21012 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21013 # Let make expand exec_prefix.
21014 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21015
21016 DEFS=-DHAVE_CONFIG_H
21017
21018 ac_libobjs=
21019 ac_ltlibobjs=
21020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21021 # 1. Remove the extension, and $U if already installed.
21022 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21023 ac_i=`echo "$ac_i" | sed "$ac_script"`
21024 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21025 # will be set to the directory where LIBOBJS objects are built.
21026 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21027 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21028 done
21029 LIBOBJS=$ac_libobjs
21030
21031 LTLIBOBJS=$ac_ltlibobjs
21032
21033
21034 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21035 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21036 Usually this means the macro was only invoked conditionally." >&5
21037 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21038 Usually this means the macro was only invoked conditionally." >&2;}
21039 { (exit 1); exit 1; }; }
21040 fi
21041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21042 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21043 Usually this means the macro was only invoked conditionally." >&5
21044 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21045 Usually this means the macro was only invoked conditionally." >&2;}
21046 { (exit 1); exit 1; }; }
21047 fi
21048 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21049 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21050 Usually this means the macro was only invoked conditionally." >&5
21051 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21052 Usually this means the macro was only invoked conditionally." >&2;}
21053 { (exit 1); exit 1; }; }
21054 fi
21055 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21056 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21057 Usually this means the macro was only invoked conditionally." >&5
21058 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21059 Usually this means the macro was only invoked conditionally." >&2;}
21060 { (exit 1); exit 1; }; }
21061 fi
21062
21063 : ${CONFIG_STATUS=./config.status}
21064 ac_clean_files_save=$ac_clean_files
21065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21066 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21067 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21068 cat >$CONFIG_STATUS <<_ACEOF
21069 #! $SHELL
21070 # Generated by $as_me.
21071 # Run this file to recreate the current configuration.
21072 # Compiler output produced by configure, useful for debugging
21073 # configure, is in config.log if it exists.
21074
21075 debug=false
21076 ac_cs_recheck=false
21077 ac_cs_silent=false
21078 SHELL=\${CONFIG_SHELL-$SHELL}
21079 _ACEOF
21080
21081 cat >>$CONFIG_STATUS <<\_ACEOF
21082 ## --------------------- ##
21083 ## M4sh Initialization. ##
21084 ## --------------------- ##
21085
21086 # Be more Bourne compatible
21087 DUALCASE=1; export DUALCASE # for MKS sh
21088 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21089 emulate sh
21090 NULLCMD=:
21091 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21092 # is contrary to our usage. Disable this feature.
21093 alias -g '${1+"$@"}'='"$@"'
21094 setopt NO_GLOB_SUBST
21095 else
21096 case `(set -o) 2>/dev/null` in
21097 *posix*) set -o posix ;;
21098 esac
21099
21100 fi
21101
21102
21103
21104
21105 # PATH needs CR
21106 # Avoid depending upon Character Ranges.
21107 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21108 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21109 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21110 as_cr_digits='0123456789'
21111 as_cr_alnum=$as_cr_Letters$as_cr_digits
21112
21113 # The user is always right.
21114 if test "${PATH_SEPARATOR+set}" != set; then
21115 echo "#! /bin/sh" >conf$$.sh
21116 echo "exit 0" >>conf$$.sh
21117 chmod +x conf$$.sh
21118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21119 PATH_SEPARATOR=';'
21120 else
21121 PATH_SEPARATOR=:
21122 fi
21123 rm -f conf$$.sh
21124 fi
21125
21126 # Support unset when possible.
21127 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21128 as_unset=unset
21129 else
21130 as_unset=false
21131 fi
21132
21133
21134 # IFS
21135 # We need space, tab and new line, in precisely that order. Quoting is
21136 # there to prevent editors from complaining about space-tab.
21137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21138 # splitting by setting IFS to empty value.)
21139 as_nl='
21140 '
21141 IFS=" "" $as_nl"
21142
21143 # Find who we are. Look in the path if we contain no directory separator.
21144 case $0 in
21145 *[\\/]* ) as_myself=$0 ;;
21146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21147 for as_dir in $PATH
21148 do
21149 IFS=$as_save_IFS
21150 test -z "$as_dir" && as_dir=.
21151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21152 done
21153 IFS=$as_save_IFS
21154
21155 ;;
21156 esac
21157 # We did not find ourselves, most probably we were run as `sh COMMAND'
21158 # in which case we are not to be found in the path.
21159 if test "x$as_myself" = x; then
21160 as_myself=$0
21161 fi
21162 if test ! -f "$as_myself"; then
21163 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21164 { (exit 1); exit 1; }
21165 fi
21166
21167 # Work around bugs in pre-3.0 UWIN ksh.
21168 for as_var in ENV MAIL MAILPATH
21169 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21170 done
21171 PS1='$ '
21172 PS2='> '
21173 PS4='+ '
21174
21175 # NLS nuisances.
21176 for as_var in \
21177 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21178 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21179 LC_TELEPHONE LC_TIME
21180 do
21181 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21182 eval $as_var=C; export $as_var
21183 else
21184 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21185 fi
21186 done
21187
21188 # Required to use basename.
21189 if expr a : '\(a\)' >/dev/null 2>&1 &&
21190 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21191 as_expr=expr
21192 else
21193 as_expr=false
21194 fi
21195
21196 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21197 as_basename=basename
21198 else
21199 as_basename=false
21200 fi
21201
21202
21203 # Name of the executable.
21204 as_me=`$as_basename -- "$0" ||
21205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21206 X"$0" : 'X\(//\)$' \| \
21207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21208 echo X/"$0" |
21209 sed '/^.*\/\([^/][^/]*\)\/*$/{
21210 s//\1/
21211 q
21212 }
21213 /^X\/\(\/\/\)$/{
21214 s//\1/
21215 q
21216 }
21217 /^X\/\(\/\).*/{
21218 s//\1/
21219 q
21220 }
21221 s/.*/./; q'`
21222
21223 # CDPATH.
21224 $as_unset CDPATH
21225
21226
21227
21228 as_lineno_1=$LINENO
21229 as_lineno_2=$LINENO
21230 test "x$as_lineno_1" != "x$as_lineno_2" &&
21231 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21232
21233 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21234 # uniformly replaced by the line number. The first 'sed' inserts a
21235 # line-number line after each line using $LINENO; the second 'sed'
21236 # does the real work. The second script uses 'N' to pair each
21237 # line-number line with the line containing $LINENO, and appends
21238 # trailing '-' during substitution so that $LINENO is not a special
21239 # case at line end.
21240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21241 # scripts with optimization help from Paolo Bonzini. Blame Lee
21242 # E. McMahon (1931-1989) for sed's syntax. :-)
21243 sed -n '
21244 p
21245 /[$]LINENO/=
21246 ' <$as_myself |
21247 sed '
21248 s/[$]LINENO.*/&-/
21249 t lineno
21250 b
21251 :lineno
21252 N
21253 :loop
21254 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21255 t loop
21256 s/-\n.*//
21257 ' >$as_me.lineno &&
21258 chmod +x "$as_me.lineno" ||
21259 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21260 { (exit 1); exit 1; }; }
21261
21262 # Don't try to exec as it changes $[0], causing all sort of problems
21263 # (the dirname of $[0] is not the place where we might find the
21264 # original and so on. Autoconf is especially sensitive to this).
21265 . "./$as_me.lineno"
21266 # Exit status is that of the last command.
21267 exit
21268 }
21269
21270
21271 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21272 as_dirname=dirname
21273 else
21274 as_dirname=false
21275 fi
21276
21277 ECHO_C= ECHO_N= ECHO_T=
21278 case `echo -n x` in
21279 -n*)
21280 case `echo 'x\c'` in
21281 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21282 *) ECHO_C='\c';;
21283 esac;;
21284 *)
21285 ECHO_N='-n';;
21286 esac
21287
21288 if expr a : '\(a\)' >/dev/null 2>&1 &&
21289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21290 as_expr=expr
21291 else
21292 as_expr=false
21293 fi
21294
21295 rm -f conf$$ conf$$.exe conf$$.file
21296 if test -d conf$$.dir; then
21297 rm -f conf$$.dir/conf$$.file
21298 else
21299 rm -f conf$$.dir
21300 mkdir conf$$.dir
21301 fi
21302 echo >conf$$.file
21303 if ln -s conf$$.file conf$$ 2>/dev/null; then
21304 as_ln_s='ln -s'
21305 # ... but there are two gotchas:
21306 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21307 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21308 # In both cases, we have to default to `cp -p'.
21309 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21310 as_ln_s='cp -p'
21311 elif ln conf$$.file conf$$ 2>/dev/null; then
21312 as_ln_s=ln
21313 else
21314 as_ln_s='cp -p'
21315 fi
21316 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21317 rmdir conf$$.dir 2>/dev/null
21318
21319 if mkdir -p . 2>/dev/null; then
21320 as_mkdir_p=:
21321 else
21322 test -d ./-p && rmdir ./-p
21323 as_mkdir_p=false
21324 fi
21325
21326 if test -x / >/dev/null 2>&1; then
21327 as_test_x='test -x'
21328 else
21329 if ls -dL / >/dev/null 2>&1; then
21330 as_ls_L_option=L
21331 else
21332 as_ls_L_option=
21333 fi
21334 as_test_x='
21335 eval sh -c '\''
21336 if test -d "$1"; then
21337 test -d "$1/.";
21338 else
21339 case $1 in
21340 -*)set "./$1";;
21341 esac;
21342 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21343 ???[sx]*):;;*)false;;esac;fi
21344 '\'' sh
21345 '
21346 fi
21347 as_executable_p=$as_test_x
21348
21349 # Sed expression to map a string onto a valid CPP name.
21350 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21351
21352 # Sed expression to map a string onto a valid variable name.
21353 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21354
21355
21356 exec 6>&1
21357
21358 # Save the log message, to keep $[0] and so on meaningful, and to
21359 # report actual input values of CONFIG_FILES etc. instead of their
21360 # values after options handling.
21361 ac_log="
21362 This file was extended by random128 $as_me 0.10, which was
21363 generated by GNU Autoconf 2.61. Invocation command line was
21364
21365 CONFIG_FILES = $CONFIG_FILES
21366 CONFIG_HEADERS = $CONFIG_HEADERS
21367 CONFIG_LINKS = $CONFIG_LINKS
21368 CONFIG_COMMANDS = $CONFIG_COMMANDS
21369 $ $0 $@
21370
21371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21372 "
21373
21374 _ACEOF
21375
21376 cat >>$CONFIG_STATUS <<_ACEOF
21377 # Files that config.status was made for.
21378 config_files="$ac_config_files"
21379 config_headers="$ac_config_headers"
21380 config_commands="$ac_config_commands"
21381
21382 _ACEOF
21383
21384 cat >>$CONFIG_STATUS <<\_ACEOF
21385 ac_cs_usage="\
21386 \`$as_me' instantiates files from templates according to the
21387 current configuration.
21388
21389 Usage: $0 [OPTIONS] [FILE]...
21390
21391 -h, --help print this help, then exit
21392 -V, --version print version number and configuration settings, then exit
21393 -q, --quiet do not print progress messages
21394 -d, --debug don't remove temporary files
21395 --recheck update $as_me by reconfiguring in the same conditions
21396 --file=FILE[:TEMPLATE]
21397 instantiate the configuration file FILE
21398 --header=FILE[:TEMPLATE]
21399 instantiate the configuration header FILE
21400
21401 Configuration files:
21402 $config_files
21403
21404 Configuration headers:
21405 $config_headers
21406
21407 Configuration commands:
21408 $config_commands
21409
21410 Report bugs to <bug-autoconf@gnu.org>."
21411
21412 _ACEOF
21413 cat >>$CONFIG_STATUS <<_ACEOF
21414 ac_cs_version="\\
21415 random128 config.status 0.10
21416 configured by $0, generated by GNU Autoconf 2.61,
21417 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21418
21419 Copyright (C) 2006 Free Software Foundation, Inc.
21420 This config.status script is free software; the Free Software Foundation
21421 gives unlimited permission to copy, distribute and modify it."
21422
21423 ac_pwd='$ac_pwd'
21424 srcdir='$srcdir'
21425 INSTALL='$INSTALL'
21426 MKDIR_P='$MKDIR_P'
21427 _ACEOF
21428
21429 cat >>$CONFIG_STATUS <<\_ACEOF
21430 # If no file are specified by the user, then we need to provide default
21431 # value. By we need to know if files were specified by the user.
21432 ac_need_defaults=:
21433 while test $# != 0
21434 do
21435 case $1 in
21436 --*=*)
21437 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21438 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21439 ac_shift=:
21440 ;;
21441 *)
21442 ac_option=$1
21443 ac_optarg=$2
21444 ac_shift=shift
21445 ;;
21446 esac
21447
21448 case $ac_option in
21449 # Handling of the options.
21450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21451 ac_cs_recheck=: ;;
21452 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21453 echo "$ac_cs_version"; exit ;;
21454 --debug | --debu | --deb | --de | --d | -d )
21455 debug=: ;;
21456 --file | --fil | --fi | --f )
21457 $ac_shift
21458 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21459 ac_need_defaults=false;;
21460 --header | --heade | --head | --hea )
21461 $ac_shift
21462 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21463 ac_need_defaults=false;;
21464 --he | --h)
21465 # Conflict between --help and --header
21466 { echo "$as_me: error: ambiguous option: $1
21467 Try \`$0 --help' for more information." >&2
21468 { (exit 1); exit 1; }; };;
21469 --help | --hel | -h )
21470 echo "$ac_cs_usage"; exit ;;
21471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21472 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21473 ac_cs_silent=: ;;
21474
21475 # This is an error.
21476 -*) { echo "$as_me: error: unrecognized option: $1
21477 Try \`$0 --help' for more information." >&2
21478 { (exit 1); exit 1; }; } ;;
21479
21480 *) ac_config_targets="$ac_config_targets $1"
21481 ac_need_defaults=false ;;
21482
21483 esac
21484 shift
21485 done
21486
21487 ac_configure_extra_args=
21488
21489 if $ac_cs_silent; then
21490 exec 6>/dev/null
21491 ac_configure_extra_args="$ac_configure_extra_args --silent"
21492 fi
21493
21494 _ACEOF
21495 cat >>$CONFIG_STATUS <<_ACEOF
21496 if \$ac_cs_recheck; then
21497 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21498 CONFIG_SHELL=$SHELL
21499 export CONFIG_SHELL
21500 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21501 fi
21502
21503 _ACEOF
21504 cat >>$CONFIG_STATUS <<\_ACEOF
21505 exec 5>>config.log
21506 {
21507 echo
21508 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21509 ## Running $as_me. ##
21510 _ASBOX
21511 echo "$ac_log"
21512 } >&5
21513
21514 _ACEOF
21515 cat >>$CONFIG_STATUS <<_ACEOF
21516 #
21517 # INIT-COMMANDS
21518 #
21519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21520
21521 _ACEOF
21522
21523 cat >>$CONFIG_STATUS <<\_ACEOF
21524
21525 # Handling of arguments.
21526 for ac_config_target in $ac_config_targets
21527 do
21528 case $ac_config_target in
21529 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21530 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21531 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21532
21533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21534 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21535 { (exit 1); exit 1; }; };;
21536 esac
21537 done
21538
21539
21540 # If the user did not use the arguments to specify the items to instantiate,
21541 # then the envvar interface is used. Set only those that are not.
21542 # We use the long form for the default assignment because of an extremely
21543 # bizarre bug on SunOS 4.1.3.
21544 if $ac_need_defaults; then
21545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21548 fi
21549
21550 # Have a temporary directory for convenience. Make it in the build tree
21551 # simply because there is no reason against having it here, and in addition,
21552 # creating and moving files from /tmp can sometimes cause problems.
21553 # Hook for its removal unless debugging.
21554 # Note that there is a small window in which the directory will not be cleaned:
21555 # after its creation but before its name has been assigned to `$tmp'.
21556 $debug ||
21557 {
21558 tmp=
21559 trap 'exit_status=$?
21560 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21561 ' 0
21562 trap '{ (exit 1); exit 1; }' 1 2 13 15
21563 }
21564 # Create a (secure) tmp directory for tmp files.
21565
21566 {
21567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21568 test -n "$tmp" && test -d "$tmp"
21569 } ||
21570 {
21571 tmp=./conf$$-$RANDOM
21572 (umask 077 && mkdir "$tmp")
21573 } ||
21574 {
21575 echo "$me: cannot create a temporary directory in ." >&2
21576 { (exit 1); exit 1; }
21577 }
21578
21579 #
21580 # Set up the sed scripts for CONFIG_FILES section.
21581 #
21582
21583 # No need to generate the scripts if there are no CONFIG_FILES.
21584 # This happens for instance when ./config.status config.h
21585 if test -n "$CONFIG_FILES"; then
21586
21587 _ACEOF
21588
21589
21590
21591 ac_delim='%!_!# '
21592 for ac_last_try in false false false false false :; do
21593 cat >conf$$subs.sed <<_ACEOF
21594 SHELL!$SHELL$ac_delim
21595 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21596 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21597 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21598 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21599 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21600 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21601 exec_prefix!$exec_prefix$ac_delim
21602 prefix!$prefix$ac_delim
21603 program_transform_name!$program_transform_name$ac_delim
21604 bindir!$bindir$ac_delim
21605 sbindir!$sbindir$ac_delim
21606 libexecdir!$libexecdir$ac_delim
21607 datarootdir!$datarootdir$ac_delim
21608 datadir!$datadir$ac_delim
21609 sysconfdir!$sysconfdir$ac_delim
21610 sharedstatedir!$sharedstatedir$ac_delim
21611 localstatedir!$localstatedir$ac_delim
21612 includedir!$includedir$ac_delim
21613 oldincludedir!$oldincludedir$ac_delim
21614 docdir!$docdir$ac_delim
21615 infodir!$infodir$ac_delim
21616 htmldir!$htmldir$ac_delim
21617 dvidir!$dvidir$ac_delim
21618 pdfdir!$pdfdir$ac_delim
21619 psdir!$psdir$ac_delim
21620 libdir!$libdir$ac_delim
21621 localedir!$localedir$ac_delim
21622 mandir!$mandir$ac_delim
21623 DEFS!$DEFS$ac_delim
21624 ECHO_C!$ECHO_C$ac_delim
21625 ECHO_N!$ECHO_N$ac_delim
21626 ECHO_T!$ECHO_T$ac_delim
21627 LIBS!$LIBS$ac_delim
21628 build_alias!$build_alias$ac_delim
21629 host_alias!$host_alias$ac_delim
21630 target_alias!$target_alias$ac_delim
21631 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21632 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21633 INSTALL_DATA!$INSTALL_DATA$ac_delim
21634 am__isrc!$am__isrc$ac_delim
21635 CYGPATH_W!$CYGPATH_W$ac_delim
21636 PACKAGE!$PACKAGE$ac_delim
21637 VERSION!$VERSION$ac_delim
21638 ACLOCAL!$ACLOCAL$ac_delim
21639 AUTOCONF!$AUTOCONF$ac_delim
21640 AUTOMAKE!$AUTOMAKE$ac_delim
21641 AUTOHEADER!$AUTOHEADER$ac_delim
21642 MAKEINFO!$MAKEINFO$ac_delim
21643 install_sh!$install_sh$ac_delim
21644 STRIP!$STRIP$ac_delim
21645 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21646 mkdir_p!$mkdir_p$ac_delim
21647 AWK!$AWK$ac_delim
21648 SET_MAKE!$SET_MAKE$ac_delim
21649 am__leading_dot!$am__leading_dot$ac_delim
21650 AMTAR!$AMTAR$ac_delim
21651 am__tar!$am__tar$ac_delim
21652 am__untar!$am__untar$ac_delim
21653 CC!$CC$ac_delim
21654 CFLAGS!$CFLAGS$ac_delim
21655 LDFLAGS!$LDFLAGS$ac_delim
21656 CPPFLAGS!$CPPFLAGS$ac_delim
21657 ac_ct_CC!$ac_ct_CC$ac_delim
21658 EXEEXT!$EXEEXT$ac_delim
21659 OBJEXT!$OBJEXT$ac_delim
21660 DEPDIR!$DEPDIR$ac_delim
21661 am__include!$am__include$ac_delim
21662 am__quote!$am__quote$ac_delim
21663 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21664 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21665 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21666 CCDEPMODE!$CCDEPMODE$ac_delim
21667 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21668 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21669 CPP!$CPP$ac_delim
21670 GREP!$GREP$ac_delim
21671 EGREP!$EGREP$ac_delim
21672 LN_S!$LN_S$ac_delim
21673 PS!$PS$ac_delim
21674 W!$W$ac_delim
21675 build!$build$ac_delim
21676 build_cpu!$build_cpu$ac_delim
21677 build_vendor!$build_vendor$ac_delim
21678 build_os!$build_os$ac_delim
21679 host!$host$ac_delim
21680 host_cpu!$host_cpu$ac_delim
21681 host_vendor!$host_vendor$ac_delim
21682 host_os!$host_os$ac_delim
21683 SED!$SED$ac_delim
21684 ECHO!$ECHO$ac_delim
21685 AR!$AR$ac_delim
21686 RANLIB!$RANLIB$ac_delim
21687 CXX!$CXX$ac_delim
21688 CXXFLAGS!$CXXFLAGS$ac_delim
21689 ac_ct_CXX!$ac_ct_CXX$ac_delim
21690 CXXDEPMODE!$CXXDEPMODE$ac_delim
21691 _ACEOF
21692
21693 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21694 break
21695 elif $ac_last_try; then
21696 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21697 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21698 { (exit 1); exit 1; }; }
21699 else
21700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21701 fi
21702 done
21703
21704 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21705 if test -n "$ac_eof"; then
21706 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21707 ac_eof=`expr $ac_eof + 1`
21708 fi
21709
21710 cat >>$CONFIG_STATUS <<_ACEOF
21711 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21713 _ACEOF
21714 sed '
21715 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21716 s/^/s,@/; s/!/@,|#_!!_#|/
21717 :n
21718 t n
21719 s/'"$ac_delim"'$/,g/; t
21720 s/$/\\/; p
21721 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21722 ' >>$CONFIG_STATUS <conf$$subs.sed
21723 rm -f conf$$subs.sed
21724 cat >>$CONFIG_STATUS <<_ACEOF
21725 CEOF$ac_eof
21726 _ACEOF
21727
21728
21729 ac_delim='%!_!# '
21730 for ac_last_try in false false false false false :; do
21731 cat >conf$$subs.sed <<_ACEOF
21732 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21733 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21734 CXXCPP!$CXXCPP$ac_delim
21735 F77!$F77$ac_delim
21736 FFLAGS!$FFLAGS$ac_delim
21737 ac_ct_F77!$ac_ct_F77$ac_delim
21738 LIBTOOL!$LIBTOOL$ac_delim
21739 LIBOBJS!$LIBOBJS$ac_delim
21740 LTLIBOBJS!$LTLIBOBJS$ac_delim
21741 _ACEOF
21742
21743 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21744 break
21745 elif $ac_last_try; then
21746 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21747 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21748 { (exit 1); exit 1; }; }
21749 else
21750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21751 fi
21752 done
21753
21754 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21755 if test -n "$ac_eof"; then
21756 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21757 ac_eof=`expr $ac_eof + 1`
21758 fi
21759
21760 cat >>$CONFIG_STATUS <<_ACEOF
21761 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21763 _ACEOF
21764 sed '
21765 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21766 s/^/s,@/; s/!/@,|#_!!_#|/
21767 :n
21768 t n
21769 s/'"$ac_delim"'$/,g/; t
21770 s/$/\\/; p
21771 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21772 ' >>$CONFIG_STATUS <conf$$subs.sed
21773 rm -f conf$$subs.sed
21774 cat >>$CONFIG_STATUS <<_ACEOF
21775 :end
21776 s/|#_!!_#|//g
21777 CEOF$ac_eof
21778 _ACEOF
21779
21780
21781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21783 # trailing colons and then remove the whole line if VPATH becomes empty
21784 # (actually we leave an empty line to preserve line numbers).
21785 if test "x$srcdir" = x.; then
21786 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21787 s/:*\$(srcdir):*/:/
21788 s/:*\${srcdir}:*/:/
21789 s/:*@srcdir@:*/:/
21790 s/^\([^=]*=[ ]*\):*/\1/
21791 s/:*$//
21792 s/^[^=]*=[ ]*$//
21793 }'
21794 fi
21795
21796 cat >>$CONFIG_STATUS <<\_ACEOF
21797 fi # test -n "$CONFIG_FILES"
21798
21799
21800 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21801 do
21802 case $ac_tag in
21803 :[FHLC]) ac_mode=$ac_tag; continue;;
21804 esac
21805 case $ac_mode$ac_tag in
21806 :[FHL]*:*);;
21807 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21808 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21809 { (exit 1); exit 1; }; };;
21810 :[FH]-) ac_tag=-:-;;
21811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21812 esac
21813 ac_save_IFS=$IFS
21814 IFS=:
21815 set x $ac_tag
21816 IFS=$ac_save_IFS
21817 shift
21818 ac_file=$1
21819 shift
21820
21821 case $ac_mode in
21822 :L) ac_source=$1;;
21823 :[FH])
21824 ac_file_inputs=
21825 for ac_f
21826 do
21827 case $ac_f in
21828 -) ac_f="$tmp/stdin";;
21829 *) # Look for the file first in the build tree, then in the source tree
21830 # (if the path is not absolute). The absolute path cannot be DOS-style,
21831 # because $ac_f cannot contain `:'.
21832 test -f "$ac_f" ||
21833 case $ac_f in
21834 [\\/$]*) false;;
21835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21836 esac ||
21837 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21838 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21839 { (exit 1); exit 1; }; };;
21840 esac
21841 ac_file_inputs="$ac_file_inputs $ac_f"
21842 done
21843
21844 # Let's still pretend it is `configure' which instantiates (i.e., don't
21845 # use $as_me), people would be surprised to read:
21846 # /* config.h. Generated by config.status. */
21847 configure_input="Generated from "`IFS=:
21848 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21849 if test x"$ac_file" != x-; then
21850 configure_input="$ac_file. $configure_input"
21851 { echo "$as_me:$LINENO: creating $ac_file" >&5
21852 echo "$as_me: creating $ac_file" >&6;}
21853 fi
21854
21855 case $ac_tag in
21856 *:-:* | *:-) cat >"$tmp/stdin";;
21857 esac
21858 ;;
21859 esac
21860
21861 ac_dir=`$as_dirname -- "$ac_file" ||
21862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21863 X"$ac_file" : 'X\(//\)[^/]' \| \
21864 X"$ac_file" : 'X\(//\)$' \| \
21865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21866 echo X"$ac_file" |
21867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21868 s//\1/
21869 q
21870 }
21871 /^X\(\/\/\)[^/].*/{
21872 s//\1/
21873 q
21874 }
21875 /^X\(\/\/\)$/{
21876 s//\1/
21877 q
21878 }
21879 /^X\(\/\).*/{
21880 s//\1/
21881 q
21882 }
21883 s/.*/./; q'`
21884 { as_dir="$ac_dir"
21885 case $as_dir in #(
21886 -*) as_dir=./$as_dir;;
21887 esac
21888 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21889 as_dirs=
21890 while :; do
21891 case $as_dir in #(
21892 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21893 *) as_qdir=$as_dir;;
21894 esac
21895 as_dirs="'$as_qdir' $as_dirs"
21896 as_dir=`$as_dirname -- "$as_dir" ||
21897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21898 X"$as_dir" : 'X\(//\)[^/]' \| \
21899 X"$as_dir" : 'X\(//\)$' \| \
21900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21901 echo X"$as_dir" |
21902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21903 s//\1/
21904 q
21905 }
21906 /^X\(\/\/\)[^/].*/{
21907 s//\1/
21908 q
21909 }
21910 /^X\(\/\/\)$/{
21911 s//\1/
21912 q
21913 }
21914 /^X\(\/\).*/{
21915 s//\1/
21916 q
21917 }
21918 s/.*/./; q'`
21919 test -d "$as_dir" && break
21920 done
21921 test -z "$as_dirs" || eval "mkdir $as_dirs"
21922 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21923 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21924 { (exit 1); exit 1; }; }; }
21925 ac_builddir=.
21926
21927 case "$ac_dir" in
21928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21929 *)
21930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21931 # A ".." for each directory in $ac_dir_suffix.
21932 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21933 case $ac_top_builddir_sub in
21934 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21935 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21936 esac ;;
21937 esac
21938 ac_abs_top_builddir=$ac_pwd
21939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21940 # for backward compatibility:
21941 ac_top_builddir=$ac_top_build_prefix
21942
21943 case $srcdir in
21944 .) # We are building in place.
21945 ac_srcdir=.
21946 ac_top_srcdir=$ac_top_builddir_sub
21947 ac_abs_top_srcdir=$ac_pwd ;;
21948 [\\/]* | ?:[\\/]* ) # Absolute name.
21949 ac_srcdir=$srcdir$ac_dir_suffix;
21950 ac_top_srcdir=$srcdir
21951 ac_abs_top_srcdir=$srcdir ;;
21952 *) # Relative name.
21953 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21954 ac_top_srcdir=$ac_top_build_prefix$srcdir
21955 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21956 esac
21957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21958
21959
21960 case $ac_mode in
21961 :F)
21962 #
21963 # CONFIG_FILE
21964 #
21965
21966 case $INSTALL in
21967 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21968 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21969 esac
21970 ac_MKDIR_P=$MKDIR_P
21971 case $MKDIR_P in
21972 [\\/$]* | ?:[\\/]* ) ;;
21973 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21974 esac
21975 _ACEOF
21976
21977 cat >>$CONFIG_STATUS <<\_ACEOF
21978 # If the template does not know about datarootdir, expand it.
21979 # FIXME: This hack should be removed a few years after 2.60.
21980 ac_datarootdir_hack=; ac_datarootdir_seen=
21981
21982 case `sed -n '/datarootdir/ {
21983 p
21984 q
21985 }
21986 /@datadir@/p
21987 /@docdir@/p
21988 /@infodir@/p
21989 /@localedir@/p
21990 /@mandir@/p
21991 ' $ac_file_inputs` in
21992 *datarootdir*) ac_datarootdir_seen=yes;;
21993 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21994 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21995 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21996 _ACEOF
21997 cat >>$CONFIG_STATUS <<_ACEOF
21998 ac_datarootdir_hack='
21999 s&@datadir@&$datadir&g
22000 s&@docdir@&$docdir&g
22001 s&@infodir@&$infodir&g
22002 s&@localedir@&$localedir&g
22003 s&@mandir@&$mandir&g
22004 s&\\\${datarootdir}&$datarootdir&g' ;;
22005 esac
22006 _ACEOF
22007
22008 # Neutralize VPATH when `$srcdir' = `.'.
22009 # Shell code in configure.ac might set extrasub.
22010 # FIXME: do we really want to maintain this feature?
22011 cat >>$CONFIG_STATUS <<_ACEOF
22012 sed "$ac_vpsub
22013 $extrasub
22014 _ACEOF
22015 cat >>$CONFIG_STATUS <<\_ACEOF
22016 :t
22017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22018 s&@configure_input@&$configure_input&;t t
22019 s&@top_builddir@&$ac_top_builddir_sub&;t t
22020 s&@srcdir@&$ac_srcdir&;t t
22021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22022 s&@top_srcdir@&$ac_top_srcdir&;t t
22023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22024 s&@builddir@&$ac_builddir&;t t
22025 s&@abs_builddir@&$ac_abs_builddir&;t t
22026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22027 s&@INSTALL@&$ac_INSTALL&;t t
22028 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22029 $ac_datarootdir_hack
22030 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22031
22032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22033 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22035 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22036 which seems to be undefined. Please make sure it is defined." >&5
22037 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22038 which seems to be undefined. Please make sure it is defined." >&2;}
22039
22040 rm -f "$tmp/stdin"
22041 case $ac_file in
22042 -) cat "$tmp/out"; rm -f "$tmp/out";;
22043 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22044 esac
22045 ;;
22046 :H)
22047 #
22048 # CONFIG_HEADER
22049 #
22050 _ACEOF
22051
22052 # Transform confdefs.h into a sed script `conftest.defines', that
22053 # substitutes the proper values into config.h.in to produce config.h.
22054 rm -f conftest.defines conftest.tail
22055 # First, append a space to every undef/define line, to ease matching.
22056 echo 's/$/ /' >conftest.defines
22057 # Then, protect against being on the right side of a sed subst, or in
22058 # an unquoted here document, in config.status. If some macros were
22059 # called several times there might be several #defines for the same
22060 # symbol, which is useless. But do not sort them, since the last
22061 # AC_DEFINE must be honored.
22062 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22063 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22064 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22065 # PARAMS is the parameter list in the macro definition--in most cases, it's
22066 # just an empty string.
22067 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22068 ac_dB='\\)[ (].*,\\1define\\2'
22069 ac_dC=' '
22070 ac_dD=' ,'
22071
22072 uniq confdefs.h |
22073 sed -n '
22074 t rset
22075 :rset
22076 s/^[ ]*#[ ]*define[ ][ ]*//
22077 t ok
22078 d
22079 :ok
22080 s/[\\&,]/\\&/g
22081 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22082 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22083 ' >>conftest.defines
22084
22085 # Remove the space that was appended to ease matching.
22086 # Then replace #undef with comments. This is necessary, for
22087 # example, in the case of _POSIX_SOURCE, which is predefined and required
22088 # on some systems where configure will not decide to define it.
22089 # (The regexp can be short, since the line contains either #define or #undef.)
22090 echo 's/ $//
22091 s,^[ #]*u.*,/* & */,' >>conftest.defines
22092
22093 # Break up conftest.defines:
22094 ac_max_sed_lines=50
22095
22096 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22097 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22098 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22099 # et cetera.
22100 ac_in='$ac_file_inputs'
22101 ac_out='"$tmp/out1"'
22102 ac_nxt='"$tmp/out2"'
22103
22104 while :
22105 do
22106 # Write a here document:
22107 cat >>$CONFIG_STATUS <<_ACEOF
22108 # First, check the format of the line:
22109 cat >"\$tmp/defines.sed" <<\\CEOF
22110 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22111 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22112 b
22113 :def
22114 _ACEOF
22115 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22116 echo 'CEOF
22117 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22118 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22119 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22120 grep . conftest.tail >/dev/null || break
22121 rm -f conftest.defines
22122 mv conftest.tail conftest.defines
22123 done
22124 rm -f conftest.defines conftest.tail
22125
22126 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22127 cat >>$CONFIG_STATUS <<\_ACEOF
22128 if test x"$ac_file" != x-; then
22129 echo "/* $configure_input */" >"$tmp/config.h"
22130 cat "$ac_result" >>"$tmp/config.h"
22131 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22132 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22133 echo "$as_me: $ac_file is unchanged" >&6;}
22134 else
22135 rm -f $ac_file
22136 mv "$tmp/config.h" $ac_file
22137 fi
22138 else
22139 echo "/* $configure_input */"
22140 cat "$ac_result"
22141 fi
22142 rm -f "$tmp/out12"
22143 # Compute $ac_file's index in $config_headers.
22144 _am_arg=$ac_file
22145 _am_stamp_count=1
22146 for _am_header in $config_headers :; do
22147 case $_am_header in
22148 $_am_arg | $_am_arg:* )
22149 break ;;
22150 * )
22151 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22152 esac
22153 done
22154 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22155 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156 X"$_am_arg" : 'X\(//\)[^/]' \| \
22157 X"$_am_arg" : 'X\(//\)$' \| \
22158 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22159 echo X"$_am_arg" |
22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\/\)[^/].*/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\/\)$/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\).*/{
22173 s//\1/
22174 q
22175 }
22176 s/.*/./; q'`/stamp-h$_am_stamp_count
22177 ;;
22178
22179 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22180 echo "$as_me: executing $ac_file commands" >&6;}
22181 ;;
22182 esac
22183
22184
22185 case $ac_file$ac_mode in
22186 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22187 # Strip MF so we end up with the name of the file.
22188 mf=`echo "$mf" | sed -e 's/:.*$//'`
22189 # Check whether this is an Automake generated Makefile or not.
22190 # We used to match only the files named `Makefile.in', but
22191 # some people rename them; so instead we look at the file content.
22192 # Grep'ing the first line is not enough: some people post-process
22193 # each Makefile.in and add a new line on top of each file to say so.
22194 # Grep'ing the whole file is not good either: AIX grep has a line
22195 # limit of 2048, but all sed's we know have understand at least 4000.
22196 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22197 dirpart=`$as_dirname -- "$mf" ||
22198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22199 X"$mf" : 'X\(//\)[^/]' \| \
22200 X"$mf" : 'X\(//\)$' \| \
22201 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22202 echo X"$mf" |
22203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22204 s//\1/
22205 q
22206 }
22207 /^X\(\/\/\)[^/].*/{
22208 s//\1/
22209 q
22210 }
22211 /^X\(\/\/\)$/{
22212 s//\1/
22213 q
22214 }
22215 /^X\(\/\).*/{
22216 s//\1/
22217 q
22218 }
22219 s/.*/./; q'`
22220 else
22221 continue
22222 fi
22223 # Extract the definition of DEPDIR, am__include, and am__quote
22224 # from the Makefile without running `make'.
22225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22226 test -z "$DEPDIR" && continue
22227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22228 test -z "am__include" && continue
22229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22230 # When using ansi2knr, U may be empty or an underscore; expand it
22231 U=`sed -n 's/^U = //p' < "$mf"`
22232 # Find all dependency output files, they are included files with
22233 # $(DEPDIR) in their names. We invoke sed twice because it is the
22234 # simplest approach to changing $(DEPDIR) to its actual value in the
22235 # expansion.
22236 for file in `sed -n "
22237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22239 # Make sure the directory exists.
22240 test -f "$dirpart/$file" && continue
22241 fdir=`$as_dirname -- "$file" ||
22242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22243 X"$file" : 'X\(//\)[^/]' \| \
22244 X"$file" : 'X\(//\)$' \| \
22245 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22246 echo X"$file" |
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22248 s//\1/
22249 q
22250 }
22251 /^X\(\/\/\)[^/].*/{
22252 s//\1/
22253 q
22254 }
22255 /^X\(\/\/\)$/{
22256 s//\1/
22257 q
22258 }
22259 /^X\(\/\).*/{
22260 s//\1/
22261 q
22262 }
22263 s/.*/./; q'`
22264 { as_dir=$dirpart/$fdir
22265 case $as_dir in #(
22266 -*) as_dir=./$as_dir;;
22267 esac
22268 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22269 as_dirs=
22270 while :; do
22271 case $as_dir in #(
22272 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22273 *) as_qdir=$as_dir;;
22274 esac
22275 as_dirs="'$as_qdir' $as_dirs"
22276 as_dir=`$as_dirname -- "$as_dir" ||
22277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22278 X"$as_dir" : 'X\(//\)[^/]' \| \
22279 X"$as_dir" : 'X\(//\)$' \| \
22280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22281 echo X"$as_dir" |
22282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22283 s//\1/
22284 q
22285 }
22286 /^X\(\/\/\)[^/].*/{
22287 s//\1/
22288 q
22289 }
22290 /^X\(\/\/\)$/{
22291 s//\1/
22292 q
22293 }
22294 /^X\(\/\).*/{
22295 s//\1/
22296 q
22297 }
22298 s/.*/./; q'`
22299 test -d "$as_dir" && break
22300 done
22301 test -z "$as_dirs" || eval "mkdir $as_dirs"
22302 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22303 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22304 { (exit 1); exit 1; }; }; }
22305 # echo "creating $dirpart/$file"
22306 echo '# dummy' > "$dirpart/$file"
22307 done
22308 done
22309 ;;
22310
22311 esac
22312 done # for ac_tag
22313
22314
22315 { (exit 0); exit 0; }
22316 _ACEOF
22317 chmod +x $CONFIG_STATUS
22318 ac_clean_files=$ac_clean_files_save
22319
22320
22321 # configure is writing to config.log, and then calls config.status.
22322 # config.status does its own redirection, appending to config.log.
22323 # Unfortunately, on DOS this fails, as config.log is still kept open
22324 # by configure, so config.status won't be able to write to it; its
22325 # output is simply discarded. So we exec the FD to /dev/null,
22326 # effectively closing config.log, so it can be properly (re)opened and
22327 # appended to by config.status. When coming back to configure, we
22328 # need to make the FD available again.
22329 if test "$no_create" != yes; then
22330 ac_cs_success=:
22331 ac_config_status_args=
22332 test "$silent" = yes &&
22333 ac_config_status_args="$ac_config_status_args --quiet"
22334 exec 5>/dev/null
22335 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22336 exec 5>>config.log
22337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22338 # would make configure fail if this is the last instruction.
22339 $ac_cs_success || { (exit 1); exit 1; }
22340 fi
22341