Imported upstream version 0.61.0
[hcoop/debian/courier-authlib.git] / bdbobj / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for bdbobj 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='bdbobj'
730 PACKAGE_TARNAME='bdbobj'
731 PACKAGE_VERSION='0.10'
732 PACKAGE_STRING='bdbobj 0.10'
733 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735 ac_unique_file="bdbobj.h"
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 CXX
851 CXXFLAGS
852 ac_ct_CXX
853 CXXDEPMODE
854 am__fastdepCXX_TRUE
855 am__fastdepCXX_FALSE
856 build
857 build_cpu
858 build_vendor
859 build_os
860 host
861 host_cpu
862 host_vendor
863 host_os
864 SED
865 LN_S
866 ECHO
867 AR
868 RANLIB
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 LIBDB
875 FOUND_DB_TRUE
876 FOUND_DB_FALSE
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 CXX
890 CXXFLAGS
891 CCC
892 CXXCPP
893 F77
894 FFLAGS'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
950 ac_prev=
951 continue
952 fi
953
954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
969
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
984
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
989
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1015
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1248
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1262
1263 *)
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 ;;
1270
1271 esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1285 do
1286 eval ac_val=\$$ac_var
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
1337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1359 fi
1360 else
1361 ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366 { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures bdbobj 0.10 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/bdbobj]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1451
1452 cat <<\_ACEOF
1453
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of bdbobj 0.10:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-tags[=TAGS] include additional configurations [automatic]
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1502 F77 Fortran 77 compiler command
1503 FFLAGS Fortran 77 compiler flags
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <courier-users@lists.sourceforge.net>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" || continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 bdbobj configure 0.10
1570 generated by GNU Autoconf 2.61
1571
1572 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1573 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1582
1583 It was created by bdbobj $as_me 0.10, which was
1584 generated by GNU Autoconf 2.61. Invocation command line was
1585
1586 $ $0 $@
1587
1588 _ACEOF
1589 exec 5>>config.log
1590 {
1591 cat <<_ASUNAME
1592 ## --------- ##
1593 ## Platform. ##
1594 ## --------- ##
1595
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604
1605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612
1613 _ASUNAME
1614
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 echo "PATH: $as_dir"
1621 done
1622 IFS=$as_save_IFS
1623
1624 } >&5
1625
1626 cat >&5 <<_ACEOF
1627
1628
1629 ## ----------- ##
1630 ## Core tests. ##
1631 ## ----------- ##
1632
1633 _ACEOF
1634
1635
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_configure_args=
1642 ac_configure_args0=
1643 ac_configure_args1=
1644 ac_must_keep_next=false
1645 for ac_pass in 1 2
1646 do
1647 for ac_arg
1648 do
1649 case $ac_arg in
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1653 continue ;;
1654 *\'*)
1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 esac
1657 case $ac_pass in
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 2)
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1663 else
1664 case $ac_arg in
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 esac
1672 ;;
1673 -* ) ac_must_keep_next=true ;;
1674 esac
1675 fi
1676 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 ;;
1678 esac
1679 done
1680 done
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log. We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1691 {
1692 echo
1693
1694 cat <<\_ASBOX
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1698 _ASBOX
1699 echo
1700 # The following way of writing the cache mishandles newlines in values,
1701 (
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1704 case $ac_val in #(
1705 *${as_nl}*)
1706 case $ac_var in #(
1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 esac
1710 case $ac_var in #(
1711 _ | IFS | as_nl) ;; #(
1712 *) $as_unset $ac_var ;;
1713 esac ;;
1714 esac
1715 done
1716 (set) 2>&1 |
1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
1719 sed -n \
1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722 ;; #(
1723 *)
1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ;;
1726 esac |
1727 sort
1728 )
1729 echo
1730
1731 cat <<\_ASBOX
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1735 _ASBOX
1736 echo
1737 for ac_var in $ac_subst_vars
1738 do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 echo "$ac_var='\''$ac_val'\''"
1744 done | sort
1745 echo
1746
1747 if test -n "$ac_subst_files"; then
1748 cat <<\_ASBOX
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1752 _ASBOX
1753 echo
1754 for ac_var in $ac_subst_files
1755 do
1756 eval ac_val=\$$ac_var
1757 case $ac_val in
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 esac
1760 echo "$ac_var='\''$ac_val'\''"
1761 done | sort
1762 echo
1763 fi
1764
1765 if test -s confdefs.h; then
1766 cat <<\_ASBOX
1767 ## ----------- ##
1768 ## confdefs.h. ##
1769 ## ----------- ##
1770 _ASBOX
1771 echo
1772 cat confdefs.h
1773 echo
1774 fi
1775 test "$ac_signal" != 0 &&
1776 echo "$as_me: caught signal $ac_signal"
1777 echo "$as_me: exit $exit_status"
1778 } >&5
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1781 exit $exit_status
1782 ' 0
1783 for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 done
1786 ac_signal=0
1787
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1790
1791 # Predefined preprocessor variables.
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 _ACEOF
1816
1817
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer explicitly selected file to automatically selected ones.
1820 if test -n "$CONFIG_SITE"; then
1821 set x "$CONFIG_SITE"
1822 elif test "x$prefix" != xNONE; then
1823 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 else
1825 set x "$ac_default_prefix/share/config.site" \
1826 "$ac_default_prefix/etc/config.site"
1827 fi
1828 shift
1829 for ac_site_file
1830 do
1831 if test -r "$ac_site_file"; then
1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833 echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1835 . "$ac_site_file"
1836 fi
1837 done
1838
1839 if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844 echo "$as_me: loading cache $cache_file" >&6;}
1845 case $cache_file in
1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
1848 esac
1849 fi
1850 else
1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852 echo "$as_me: creating cache $cache_file" >&6;}
1853 >$cache_file
1854 fi
1855
1856 # Check that the precious variables saved in the cache have kept the same
1857 # value.
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
1864 case $ac_old_set,$ac_new_set in
1865 set,)
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1869 ,set)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,);;
1874 *)
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879 echo "$as_me: former value: $ac_old_val" >&2;}
1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881 echo "$as_me: current value: $ac_new_val" >&2;}
1882 ac_cache_corrupted=:
1883 fi;;
1884 esac
1885 # Pass precious variables to config.status.
1886 if test "$ac_new_set" = set; then
1887 case $ac_new_val in
1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889 *) ac_arg=$ac_var=$ac_new_val ;;
1890 esac
1891 case " $ac_configure_args " in
1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 esac
1895 fi
1896 done
1897 if $ac_cache_corrupted; then
1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1904
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 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936
1937 >confdefs.h # Kill PACKAGE_ macros
1938
1939
1940 am__api_version='1.10'
1941
1942 ac_aux_dir=
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 break
1948 elif test -f "$ac_dir/install.sh"; then
1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 break
1952 elif test -f "$ac_dir/shtool"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 break
1956 fi
1957 done
1958 if test -z "$ac_aux_dir"; then
1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961 { (exit 1); exit 1; }; }
1962 fi
1963
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971
1972
1973 # Find a good install program. We prefer a C program (faster),
1974 # so one script is as good as another. But avoid the broken or
1975 # incompatible versions:
1976 # SysV /etc/install, /usr/sbin/install
1977 # SunOS /usr/etc/install
1978 # IRIX /sbin/install
1979 # AIX /bin/install
1980 # AmigaOS /C/install, which installs bootblocks on floppy discs
1981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984 # OS/2's system install, which has a completely different semantic
1985 # ./install, which can be erroneously created by make from ./install.sh.
1986 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1988 if test -z "$INSTALL"; then
1989 if test "${ac_cv_path_install+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 # Account for people who put trailing slashes in PATH elements.
1998 case $as_dir/ in
1999 ./ | .// | /cC/* | \
2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002 /usr/ucb/* ) ;;
2003 *)
2004 # OSF1 and SCO ODT 3.0 have their own names for install.
2005 # Don't use installbsd from OSF since it installs stuff as root
2006 # by default.
2007 for ac_prog in ginstall scoinst install; do
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2010 if test $ac_prog = install &&
2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # AIX install. It has an incompatible calling convention.
2013 :
2014 elif test $ac_prog = install &&
2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016 # program-specific install script used by HP pwplus--don't use.
2017 :
2018 else
2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020 break 3
2021 fi
2022 fi
2023 done
2024 done
2025 ;;
2026 esac
2027 done
2028 IFS=$as_save_IFS
2029
2030
2031 fi
2032 if test "${ac_cv_path_install+set}" = set; then
2033 INSTALL=$ac_cv_path_install
2034 else
2035 # As a last resort, use the slow shell script. Don't cache a
2036 # value for INSTALL within a source directory, because that will
2037 # break other packages using the cache if that directory is
2038 # removed, or if the value is a relative name.
2039 INSTALL=$ac_install_sh
2040 fi
2041 fi
2042 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2043 echo "${ECHO_T}$INSTALL" >&6; }
2044
2045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046 # It thinks the first close brace ends the variable substitution.
2047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
2053 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2055 # Just in case
2056 sleep 1
2057 echo timestamp > conftest.file
2058 # Do `set' in a subshell so we don't clobber the current shell's
2059 # arguments. Must try -L first in case configure is actually a
2060 # symlink; some systems play weird games with the mod time of symlinks
2061 # (eg FreeBSD returns the mod time of the symlink's containing
2062 # directory).
2063 if (
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065 if test "$*" = "X"; then
2066 # -L didn't work.
2067 set X `ls -t $srcdir/configure conftest.file`
2068 fi
2069 rm -f conftest.file
2070 if test "$*" != "X $srcdir/configure conftest.file" \
2071 && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073 # If neither matched, then we have a broken ls. This can happen
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a
2075 # broken ls alias from the environment. This has actually
2076 # happened. Such a system could not be considered "sane".
2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2078 alias in your environment" >&5
2079 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2080 alias in your environment" >&2;}
2081 { (exit 1); exit 1; }; }
2082 fi
2083
2084 test "$2" = conftest.file
2085 )
2086 then
2087 # Ok.
2088 :
2089 else
2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091 Check your system clock" >&5
2092 echo "$as_me: error: newly created file is older than distributed files!
2093 Check your system clock" >&2;}
2094 { (exit 1); exit 1; }; }
2095 fi
2096 { echo "$as_me:$LINENO: result: yes" >&5
2097 echo "${ECHO_T}yes" >&6; }
2098 test "$program_prefix" != NONE &&
2099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2100 # Use a double $ so make ignores it.
2101 test "$program_suffix" != NONE &&
2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2103 # Double any \ or $. echo might interpret backslashes.
2104 # By default was `s,x,x', remove it if useless.
2105 cat <<\_ACEOF >conftest.sed
2106 s/[\\$]/&&/g;s/;s,x,x,$//
2107 _ACEOF
2108 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2109 rm -f conftest.sed
2110
2111 # expand $ac_aux_dir to an absolute path
2112 am_aux_dir=`cd $ac_aux_dir && pwd`
2113
2114 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115 # Use eval to expand $SHELL
2116 if eval "$MISSING --run true"; then
2117 am_missing_run="$MISSING --run "
2118 else
2119 am_missing_run=
2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122 fi
2123
2124 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126 if test -z "$MKDIR_P"; then
2127 if test "${ac_cv_path_mkdir+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132 do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_prog in mkdir gmkdir; do
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139 'mkdir (GNU coreutils) '* | \
2140 'mkdir (coreutils) '* | \
2141 'mkdir (fileutils) '4.1*)
2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143 break 3;;
2144 esac
2145 done
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 fi
2151
2152 if test "${ac_cv_path_mkdir+set}" = set; then
2153 MKDIR_P="$ac_cv_path_mkdir -p"
2154 else
2155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for MKDIR_P within a source directory, because that will
2157 # break other packages using the cache if that directory is
2158 # removed, or if the value is a relative name.
2159 test -d ./--version && rmdir ./--version
2160 MKDIR_P="$ac_install_sh -d"
2161 fi
2162 fi
2163 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164 echo "${ECHO_T}$MKDIR_P" >&6; }
2165
2166 mkdir_p="$MKDIR_P"
2167 case $mkdir_p in
2168 [\\/$]* | ?:[\\/]*) ;;
2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170 esac
2171
2172 for ac_prog in gawk mawk nawk awk
2173 do
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175 set dummy $ac_prog; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_AWK+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$AWK"; then
2182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 ac_cv_prog_AWK="$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195 done
2196 done
2197 IFS=$as_save_IFS
2198
2199 fi
2200 fi
2201 AWK=$ac_cv_prog_AWK
2202 if test -n "$AWK"; then
2203 { echo "$as_me:$LINENO: result: $AWK" >&5
2204 echo "${ECHO_T}$AWK" >&6; }
2205 else
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2208 fi
2209
2210
2211 test -n "$AWK" && break
2212 done
2213
2214 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 cat >conftest.make <<\_ACEOF
2221 SHELL = /bin/sh
2222 all:
2223 @echo '@@@%%%=$(MAKE)=@@@%%%'
2224 _ACEOF
2225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227 *@@@%%%=?*=@@@%%%*)
2228 eval ac_cv_prog_make_${ac_make}_set=yes;;
2229 *)
2230 eval ac_cv_prog_make_${ac_make}_set=no;;
2231 esac
2232 rm -f conftest.make
2233 fi
2234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2237 SET_MAKE=
2238 else
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2241 SET_MAKE="MAKE=${MAKE-make}"
2242 fi
2243
2244 rm -rf .tst 2>/dev/null
2245 mkdir .tst 2>/dev/null
2246 if test -d .tst; then
2247 am__leading_dot=.
2248 else
2249 am__leading_dot=_
2250 fi
2251 rmdir .tst 2>/dev/null
2252
2253 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255 # is not polluted with repeated "-I."
2256 am__isrc=' -I$(srcdir)'
2257 # test to see if srcdir already configured
2258 if test -f $srcdir/config.status; then
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2260 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261 { (exit 1); exit 1; }; }
2262 fi
2263 fi
2264
2265 # test whether we have cygpath
2266 if test -z "$CYGPATH_W"; then
2267 if (cygpath --version) >/dev/null 2>/dev/null; then
2268 CYGPATH_W='cygpath -w'
2269 else
2270 CYGPATH_W=echo
2271 fi
2272 fi
2273
2274
2275 # Define the identity of the package.
2276 PACKAGE='bdbobj'
2277 VERSION='0.10'
2278
2279
2280 # Some tools Automake needs.
2281
2282 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2283
2284
2285 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2286
2287
2288 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2289
2290
2291 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2292
2293
2294 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295
2296 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2297
2298 # Installed binaries are usually stripped using `strip' when the user
2299 # run `make install-strip'. However `strip' might not be the right
2300 # tool to use in cross-compilation environments, therefore Automake
2301 # will honor the `STRIP' environment variable to overrule this program.
2302 if test "$cross_compiling" != no; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_STRIP+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325 done
2326 done
2327 IFS=$as_save_IFS
2328
2329 fi
2330 fi
2331 STRIP=$ac_cv_prog_STRIP
2332 if test -n "$STRIP"; then
2333 { echo "$as_me:$LINENO: result: $STRIP" >&5
2334 echo "${ECHO_T}$STRIP" >&6; }
2335 else
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340
2341 fi
2342 if test -z "$ac_cv_prog_STRIP"; then
2343 ac_ct_STRIP=$STRIP
2344 # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test -n "$ac_ct_STRIP"; then
2352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_ac_ct_STRIP="strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372 if test -n "$ac_ct_STRIP"; then
2373 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2374 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2375 else
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380 if test "x$ac_ct_STRIP" = x; then
2381 STRIP=":"
2382 else
2383 case $cross_compiling:$ac_tool_warned in
2384 yes:)
2385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet. If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&5
2388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2391 ac_tool_warned=yes ;;
2392 esac
2393 STRIP=$ac_ct_STRIP
2394 fi
2395 else
2396 STRIP="$ac_cv_prog_STRIP"
2397 fi
2398
2399 fi
2400 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2401
2402 # We need awk for the "check" target. The system "awk" is bad on
2403 # some platforms.
2404 # Always define AMTAR for backward compatibility.
2405
2406 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407
2408 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2409
2410
2411
2412
2413
2414 ac_config_headers="$ac_config_headers config.h"
2415
2416
2417 ac_ext=c
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2454 else
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2457 fi
2458
2459
2460 fi
2461 if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_ac_ct_CC="gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6; }
2494 else
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet. If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512 CC=$ac_ct_CC
2513 fi
2514 else
2515 CC="$ac_cv_prog_CC"
2516 fi
2517
2518 if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2551 else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556
2557 fi
2558 fi
2559 if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570 ac_prog_rejected=no
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2580 continue
2581 fi
2582 ac_cv_prog_CC="cc"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2593 shift
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2598 shift
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600 fi
2601 fi
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2608 else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2618 do
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2650 else
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2653 fi
2654
2655
2656 test -n "$CC" && break
2657 done
2658 fi
2659 if test -z "$CC"; then
2660 ac_ct_CC=$CC
2661 for ac_prog in cl.exe
2662 do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 echo "${ECHO_T}$ac_ct_CC" >&6; }
2694 else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
2700 test -n "$ac_ct_CC" && break
2701 done
2702
2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet. If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2715 esac
2716 CC=$ac_ct_CC
2717 fi
2718 fi
2719
2720 fi
2721
2722
2723 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: no acceptable C compiler found in \$PATH
2726 See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2728
2729 # Provide some information about the compiler.
2730 echo "$as_me:$LINENO: checking for C compiler version" >&5
2731 ac_compiler=`set X $ac_compile; echo $2`
2732 { (ac_try="$ac_compiler --version >&5"
2733 case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742 { (ac_try="$ac_compiler -v >&5"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -v >&5") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752 { (ac_try="$ac_compiler -V >&5"
2753 case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -V >&5") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2769
2770 int
2771 main ()
2772 {
2773
2774 ;
2775 return 0;
2776 }
2777 _ACEOF
2778 ac_clean_files_save=$ac_clean_files
2779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780 # Try to create an executable without -o first, disregard a.out.
2781 # It will help us diagnose broken compilers, and finding out an intuition
2782 # of exeext.
2783 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786 #
2787 # List of possible output files, starting from the most likely.
2788 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789 # only as a last resort. b.out is created by i960 compilers.
2790 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791 #
2792 # The IRIX 6 linker writes into existing files which may not be
2793 # executable, retaining their permissions. Remove them first so a
2794 # subsequent execution test works.
2795 ac_rmfiles=
2796 for ac_file in $ac_files
2797 do
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2801 esac
2802 done
2803 rm -f $ac_rmfiles
2804
2805 if { (ac_try="$ac_link_default"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link_default") 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2818 # so that the user can short-circuit this test for compilers unknown to
2819 # Autoconf.
2820 for ac_file in $ac_files ''
2821 do
2822 test -f "$ac_file" || continue
2823 case $ac_file in
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2825 ;;
2826 [ab].out )
2827 # We found the default executable, but exeext='' is most
2828 # certainly right.
2829 break;;
2830 *.* )
2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 then :; else
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 fi
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2839 # actually working.
2840 break;;
2841 * )
2842 break;;
2843 esac
2844 done
2845 test "$ac_cv_exeext" = no && ac_cv_exeext=
2846
2847 else
2848 ac_file=''
2849 fi
2850
2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
2852 echo "${ECHO_T}$ac_file" >&6; }
2853 if test -z "$ac_file"; then
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2862 fi
2863
2864 ac_exeext=$ac_cv_exeext
2865
2866 # Check that the compiler produces executables we can run. If not, either
2867 # the compiler is broken, or we cross compile.
2868 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871 # If not cross compiling, check that we can run a simple program.
2872 if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 cross_compiling=no
2884 else
2885 if test "$cross_compiling" = maybe; then
2886 cross_compiling=yes
2887 else
2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2895 fi
2896 fi
2897 fi
2898 { echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6; }
2900
2901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902 ac_clean_files=$ac_clean_files_save
2903 # Check that the compiler produces executables we can run. If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908 echo "${ECHO_T}$cross_compiling" >&6; }
2909
2910 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912 if { (ac_try="$ac_link"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924 # work properly (i.e., refer to `conftest.exe'), while it won't with
2925 # `rm'.
2926 for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 break;;
2932 * ) break;;
2933 esac
2934 done
2935 else
2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." >&5
2938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2941 fi
2942
2943 rm -f conftest$ac_cv_exeext
2944 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2946
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2949 ac_exeext=$EXEEXT
2950 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2952 if test "${ac_cv_objext+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955 cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h. */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961
2962 int
2963 main ()
2964 {
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.o conftest.obj
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986 break;;
2987 esac
2988 done
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998 fi
2999
3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001 fi
3002 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003 echo "${ECHO_T}$ac_cv_objext" >&6; }
3004 OBJEXT=$ac_cv_objext
3005 ac_objext=$OBJEXT
3006 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017
3018 int
3019 main ()
3020 {
3021 #ifndef __GNUC__
3022 choke me
3023 #endif
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
3046 ac_compiler_gnu=yes
3047 else
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 ac_compiler_gnu=no
3052 fi
3053
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057 fi
3058 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078
3079 int
3080 main ()
3081 {
3082
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_cv_prog_cc_g=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116
3117 int
3118 main ()
3119 {
3120
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 :
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h. */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3155
3156 int
3157 main ()
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_cv_prog_cc_g=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3197 fi
3198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200 if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202 elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
3205 else
3206 CFLAGS="-g"
3207 fi
3208 else
3209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
3211 else
3212 CFLAGS=
3213 fi
3214 fi
3215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_cc_c89+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 ac_cv_prog_cc_c89=no
3221 ac_save_CC=$CC
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <stdarg.h>
3229 #include <stdio.h>
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3236 char **p;
3237 int i;
3238 {
3239 return p[i];
3240 }
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3242 {
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249 }
3250
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262 #define FOO(x) 'x'
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269 int argc;
3270 char **argv;
3271 int
3272 main ()
3273 {
3274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277 }
3278 _ACEOF
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 do
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_c89=$ac_arg
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305
3306 fi
3307
3308 rm -f core conftest.err conftest.$ac_objext
3309 test "x$ac_cv_prog_cc_c89" != "xno" && break
3310 done
3311 rm -f conftest.$ac_ext
3312 CC=$ac_save_CC
3313
3314 fi
3315 # AC_CACHE_VAL
3316 case "x$ac_cv_prog_cc_c89" in
3317 x)
3318 { echo "$as_me:$LINENO: result: none needed" >&5
3319 echo "${ECHO_T}none needed" >&6; } ;;
3320 xno)
3321 { echo "$as_me:$LINENO: result: unsupported" >&5
3322 echo "${ECHO_T}unsupported" >&6; } ;;
3323 *)
3324 CC="$CC $ac_cv_prog_cc_c89"
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3327 esac
3328
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 DEPDIR="${am__leading_dot}deps"
3336
3337 ac_config_commands="$ac_config_commands depfiles"
3338
3339
3340 am_make=${MAKE-make}
3341 cat > confinc << 'END'
3342 am__doit:
3343 @echo done
3344 .PHONY: am__doit
3345 END
3346 # If we don't find an include directive, just comment out the code.
3347 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3348 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3349 am__include="#"
3350 am__quote=
3351 _am_result=none
3352 # First try GNU make style include.
3353 echo "include confinc" > confmf
3354 # We grep out `Entering directory' and `Leaving directory'
3355 # messages which can occur if `w' ends up in MAKEFLAGS.
3356 # In particular we don't look at `^make:' because GNU make might
3357 # be invoked under some other name (usually "gmake"), in which
3358 # case it prints its new name instead of `make'.
3359 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3360 am__include=include
3361 am__quote=
3362 _am_result=GNU
3363 fi
3364 # Now try BSD make style include.
3365 if test "$am__include" = "#"; then
3366 echo '.include "confinc"' > confmf
3367 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3368 am__include=.include
3369 am__quote="\""
3370 _am_result=BSD
3371 fi
3372 fi
3373
3374
3375 { echo "$as_me:$LINENO: result: $_am_result" >&5
3376 echo "${ECHO_T}$_am_result" >&6; }
3377 rm -f confinc confmf
3378
3379 # Check whether --enable-dependency-tracking was given.
3380 if test "${enable_dependency_tracking+set}" = set; then
3381 enableval=$enable_dependency_tracking;
3382 fi
3383
3384 if test "x$enable_dependency_tracking" != xno; then
3385 am_depcomp="$ac_aux_dir/depcomp"
3386 AMDEPBACKSLASH='\'
3387 fi
3388 if test "x$enable_dependency_tracking" != xno; then
3389 AMDEP_TRUE=
3390 AMDEP_FALSE='#'
3391 else
3392 AMDEP_TRUE='#'
3393 AMDEP_FALSE=
3394 fi
3395
3396
3397
3398 depcc="$CC" am_compiler_list=
3399
3400 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3401 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3402 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3406 # We make a subdir and do the tests there. Otherwise we can end up
3407 # making bogus files that we don't know about and never remove. For
3408 # instance it was reported that on HP-UX the gcc test will end up
3409 # making a dummy file named `D' -- because `-MD' means `put the output
3410 # in D'.
3411 mkdir conftest.dir
3412 # Copy depcomp to subdir because otherwise we won't find it if we're
3413 # using a relative directory.
3414 cp "$am_depcomp" conftest.dir
3415 cd conftest.dir
3416 # We will build objects and dependencies in a subdirectory because
3417 # it helps to detect inapplicable dependency modes. For instance
3418 # both Tru64's cc and ICC support -MD to output dependencies as a
3419 # side effect of compilation, but ICC will put the dependencies in
3420 # the current directory while Tru64 will put them in the object
3421 # directory.
3422 mkdir sub
3423
3424 am_cv_CC_dependencies_compiler_type=none
3425 if test "$am_compiler_list" = ""; then
3426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3427 fi
3428 for depmode in $am_compiler_list; do
3429 # Setup a source with many dependencies, because some compilers
3430 # like to wrap large dependency lists on column 80 (with \), and
3431 # we should not choose a depcomp mode which is confused by this.
3432 #
3433 # We need to recreate these files for each test, as the compiler may
3434 # overwrite some of them when testing with obscure command lines.
3435 # This happens at least with the AIX C compiler.
3436 : > sub/conftest.c
3437 for i in 1 2 3 4 5 6; do
3438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3440 # Solaris 8's {/usr,}/bin/sh.
3441 touch sub/conftst$i.h
3442 done
3443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444
3445 case $depmode in
3446 nosideeffect)
3447 # after this tag, mechanisms are not by side-effect, so they'll
3448 # only be used when explicitly requested
3449 if test "x$enable_dependency_tracking" = xyes; then
3450 continue
3451 else
3452 break
3453 fi
3454 ;;
3455 none) break ;;
3456 esac
3457 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3458 # mode. It turns out that the SunPro C++ compiler does not properly
3459 # handle `-M -o', and we need to detect this.
3460 if depmode=$depmode \
3461 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3463 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3464 >/dev/null 2>conftest.err &&
3465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3467 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3469 # icc doesn't choke on unknown options, it will just issue warnings
3470 # or remarks (even with -Werror). So we grep stderr for any message
3471 # that says an option was ignored or not supported.
3472 # When given -MP, icc 7.0 and 7.1 complain thusly:
3473 # icc: Command line warning: ignoring option '-M'; no argument required
3474 # The diagnosis changed in icc 8.0:
3475 # icc: Command line remark: option '-MP' not supported
3476 if (grep 'ignoring option' conftest.err ||
3477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3478 am_cv_CC_dependencies_compiler_type=$depmode
3479 break
3480 fi
3481 fi
3482 done
3483
3484 cd ..
3485 rm -rf conftest.dir
3486 else
3487 am_cv_CC_dependencies_compiler_type=none
3488 fi
3489
3490 fi
3491 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3492 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3493 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3494
3495 if
3496 test "x$enable_dependency_tracking" != xno \
3497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3498 am__fastdepCC_TRUE=
3499 am__fastdepCC_FALSE='#'
3500 else
3501 am__fastdepCC_TRUE='#'
3502 am__fastdepCC_FALSE=
3503 fi
3504
3505
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3513 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3514 # On Suns, sometimes $CPP names a directory.
3515 if test -n "$CPP" && test -d "$CPP"; then
3516 CPP=
3517 fi
3518 if test -z "$CPP"; then
3519 if test "${ac_cv_prog_CPP+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 # Double quotes because CPP needs to be expanded
3523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3524 do
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3527 do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545 Syntax error
3546 _ACEOF
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null && {
3560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 }; then
3563 :
3564 else
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 # Broken: fails on valid input.
3569 continue
3570 fi
3571
3572 rm -f conftest.err conftest.$ac_ext
3573
3574 # OK, works on sane cases. Now check whether nonexistent headers
3575 # can be detected and how.
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <ac_nonexistent.h>
3583 _ACEOF
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 }; then
3600 # Broken: success on invalid input.
3601 continue
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3605
3606 # Passes both tests.
3607 ac_preproc_ok=:
3608 break
3609 fi
3610
3611 rm -f conftest.err conftest.$ac_ext
3612
3613 done
3614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615 rm -f conftest.err conftest.$ac_ext
3616 if $ac_preproc_ok; then
3617 break
3618 fi
3619
3620 done
3621 ac_cv_prog_CPP=$CPP
3622
3623 fi
3624 CPP=$ac_cv_prog_CPP
3625 else
3626 ac_cv_prog_CPP=$CPP
3627 fi
3628 { echo "$as_me:$LINENO: result: $CPP" >&5
3629 echo "${ECHO_T}$CPP" >&6; }
3630 ac_preproc_ok=false
3631 for ac_c_preproc_warn_flag in '' yes
3632 do
3633 # Use a header file that comes with gcc, so configuring glibc
3634 # with a fresh cross-compiler works.
3635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 # <limits.h> exists even on freestanding compilers.
3637 # On the NeXT, cc -E runs the code through the compiler's parser,
3638 # not just through cpp. "Syntax error" is here to catch this case.
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #ifdef __STDC__
3646 # include <limits.h>
3647 #else
3648 # include <assert.h>
3649 #endif
3650 Syntax error
3651 _ACEOF
3652 if { (ac_try="$ac_cpp conftest.$ac_ext"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev/null && {
3665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3666 test ! -s conftest.err
3667 }; then
3668 :
3669 else
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 # Broken: fails on valid input.
3674 continue
3675 fi
3676
3677 rm -f conftest.err conftest.$ac_ext
3678
3679 # OK, works on sane cases. Now check whether nonexistent headers
3680 # can be detected and how.
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687 #include <ac_nonexistent.h>
3688 _ACEOF
3689 if { (ac_try="$ac_cpp conftest.$ac_ext"
3690 case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } >/dev/null && {
3702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3703 test ! -s conftest.err
3704 }; then
3705 # Broken: success on invalid input.
3706 continue
3707 else
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 # Passes both tests.
3712 ac_preproc_ok=:
3713 break
3714 fi
3715
3716 rm -f conftest.err conftest.$ac_ext
3717
3718 done
3719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720 rm -f conftest.err conftest.$ac_ext
3721 if $ac_preproc_ok; then
3722 :
3723 else
3724 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3725 See \`config.log' for more details." >&5
3726 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3727 See \`config.log' for more details." >&2;}
3728 { (exit 1); exit 1; }; }
3729 fi
3730
3731 ac_ext=c
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
3737
3738 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3739 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3740 if test "${ac_cv_path_GREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 # Extract the first word of "grep ggrep" to use in msg output
3744 if test -z "$GREP"; then
3745 set dummy grep ggrep; ac_prog_name=$2
3746 if test "${ac_cv_path_GREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 ac_path_GREP_found=false
3750 # Loop through the user's path and test for each of PROGNAME-LIST
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_prog in grep ggrep; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3760 # Check for GNU ac_path_GREP and select it if it is found.
3761 # Check for GNU $ac_path_GREP
3762 case `"$ac_path_GREP" --version 2>&1` in
3763 *GNU*)
3764 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3765 *)
3766 ac_count=0
3767 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768 while :
3769 do
3770 cat "conftest.in" "conftest.in" >"conftest.tmp"
3771 mv "conftest.tmp" "conftest.in"
3772 cp "conftest.in" "conftest.nl"
3773 echo 'GREP' >> "conftest.nl"
3774 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776 ac_count=`expr $ac_count + 1`
3777 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778 # Best one so far, save it but keep looking for a better one
3779 ac_cv_path_GREP="$ac_path_GREP"
3780 ac_path_GREP_max=$ac_count
3781 fi
3782 # 10*(2^10) chars as input seems more than enough
3783 test $ac_count -gt 10 && break
3784 done
3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786 esac
3787
3788
3789 $ac_path_GREP_found && break 3
3790 done
3791 done
3792
3793 done
3794 IFS=$as_save_IFS
3795
3796
3797 fi
3798
3799 GREP="$ac_cv_path_GREP"
3800 if test -z "$GREP"; then
3801 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803 { (exit 1); exit 1; }; }
3804 fi
3805
3806 else
3807 ac_cv_path_GREP=$GREP
3808 fi
3809
3810
3811 fi
3812 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3813 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3814 GREP="$ac_cv_path_GREP"
3815
3816
3817 { echo "$as_me:$LINENO: checking for egrep" >&5
3818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3819 if test "${ac_cv_path_EGREP+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3823 then ac_cv_path_EGREP="$GREP -E"
3824 else
3825 # Extract the first word of "egrep" to use in msg output
3826 if test -z "$EGREP"; then
3827 set dummy egrep; ac_prog_name=$2
3828 if test "${ac_cv_path_EGREP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 ac_path_EGREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in egrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3842 # Check for GNU ac_path_EGREP and select it if it is found.
3843 # Check for GNU $ac_path_EGREP
3844 case `"$ac_path_EGREP" --version 2>&1` in
3845 *GNU*)
3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847 *)
3848 ac_count=0
3849 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 echo 'EGREP' >> "conftest.nl"
3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 ac_count=`expr $ac_count + 1`
3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_EGREP="$ac_path_EGREP"
3862 ac_path_EGREP_max=$ac_count
3863 fi
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 esac
3869
3870
3871 $ac_path_EGREP_found && break 3
3872 done
3873 done
3874
3875 done
3876 IFS=$as_save_IFS
3877
3878
3879 fi
3880
3881 EGREP="$ac_cv_path_EGREP"
3882 if test -z "$EGREP"; then
3883 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3884 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3885 { (exit 1); exit 1; }; }
3886 fi
3887
3888 else
3889 ac_cv_path_EGREP=$EGREP
3890 fi
3891
3892
3893 fi
3894 fi
3895 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3896 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3897 EGREP="$ac_cv_path_EGREP"
3898
3899
3900
3901 { echo "$as_me:$LINENO: checking for AIX" >&5
3902 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #ifdef _AIX
3910 yes
3911 #endif
3912
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "yes" >/dev/null 2>&1; then
3916 { echo "$as_me:$LINENO: result: yes" >&5
3917 echo "${ECHO_T}yes" >&6; }
3918 cat >>confdefs.h <<\_ACEOF
3919 #define _ALL_SOURCE 1
3920 _ACEOF
3921
3922 else
3923 { echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6; }
3925 fi
3926 rm -f conftest*
3927
3928
3929 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3931 if test "${ac_cv_header_stdc+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <stdlib.h>
3941 #include <stdarg.h>
3942 #include <string.h>
3943 #include <float.h>
3944
3945 int
3946 main ()
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext
3954 if { (ac_try="$ac_compile"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_compile") 2>conftest.er1
3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
3970 ac_cv_header_stdc=yes
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 ac_cv_header_stdc=no
3976 fi
3977
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979
3980 if test $ac_cv_header_stdc = yes; then
3981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 #include <string.h>
3989
3990 _ACEOF
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "memchr" >/dev/null 2>&1; then
3993 :
3994 else
3995 ac_cv_header_stdc=no
3996 fi
3997 rm -f conftest*
3998
3999 fi
4000
4001 if test $ac_cv_header_stdc = yes; then
4002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <stdlib.h>
4010
4011 _ACEOF
4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 $EGREP "free" >/dev/null 2>&1; then
4014 :
4015 else
4016 ac_cv_header_stdc=no
4017 fi
4018 rm -f conftest*
4019
4020 fi
4021
4022 if test $ac_cv_header_stdc = yes; then
4023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024 if test "$cross_compiling" = yes; then
4025 :
4026 else
4027 cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h. */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 #include <ctype.h>
4034 #include <stdlib.h>
4035 #if ((' ' & 0x0FF) == 0x020)
4036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038 #else
4039 # define ISLOWER(c) \
4040 (('a' <= (c) && (c) <= 'i') \
4041 || ('j' <= (c) && (c) <= 'r') \
4042 || ('s' <= (c) && (c) <= 'z'))
4043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044 #endif
4045
4046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4047 int
4048 main ()
4049 {
4050 int i;
4051 for (i = 0; i < 256; i++)
4052 if (XOR (islower (i), ISLOWER (i))
4053 || toupper (i) != TOUPPER (i))
4054 return 2;
4055 return 0;
4056 }
4057 _ACEOF
4058 rm -f conftest$ac_exeext
4059 if { (ac_try="$ac_link"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_link") 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 :
4079 else
4080 echo "$as_me: program exited with status $ac_status" >&5
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 ( exit $ac_status )
4085 ac_cv_header_stdc=no
4086 fi
4087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4088 fi
4089
4090
4091 fi
4092 fi
4093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4095 if test $ac_cv_header_stdc = yes; then
4096
4097 cat >>confdefs.h <<\_ACEOF
4098 #define STDC_HEADERS 1
4099 _ACEOF
4100
4101 fi
4102
4103 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4114 inttypes.h stdint.h unistd.h
4115 do
4116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122 cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h. */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4128 $ac_includes_default
4129
4130 #include <$ac_header>
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && {
4146 test -z "$ac_c_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
4149 eval "$as_ac_Header=yes"
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 eval "$as_ac_Header=no"
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 fi
4159 ac_res=`eval echo '${'$as_ac_Header'}'`
4160 { echo "$as_me:$LINENO: result: $ac_res" >&5
4161 echo "${ECHO_T}$ac_res" >&6; }
4162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4163 cat >>confdefs.h <<_ACEOF
4164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4165 _ACEOF
4166
4167 fi
4168
4169 done
4170
4171
4172 if test "${ac_cv_header_minix_config_h+set}" = set; then
4173 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4174 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4175 if test "${ac_cv_header_minix_config_h+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 fi
4178 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4179 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4180 else
4181 # Is the header compilable?
4182 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4183 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 $ac_includes_default
4191 #include <minix/config.h>
4192 _ACEOF
4193 rm -f conftest.$ac_objext
4194 if { (ac_try="$ac_compile"
4195 case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198 esac
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_compile") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } && {
4207 test -z "$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 } && test -s conftest.$ac_objext; then
4210 ac_header_compiler=yes
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 ac_header_compiler=no
4216 fi
4217
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4220 echo "${ECHO_T}$ac_header_compiler" >&6; }
4221
4222 # Is the header present?
4223 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4224 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <minix/config.h>
4232 _ACEOF
4233 if { (ac_try="$ac_cpp conftest.$ac_ext"
4234 case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } >/dev/null && {
4246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4247 test ! -s conftest.err
4248 }; then
4249 ac_header_preproc=yes
4250 else
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 ac_header_preproc=no
4255 fi
4256
4257 rm -f conftest.err conftest.$ac_ext
4258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4259 echo "${ECHO_T}$ac_header_preproc" >&6; }
4260
4261 # So? What about this header?
4262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4263 yes:no: )
4264 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4265 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4266 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4267 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4268 ac_header_preproc=yes
4269 ;;
4270 no:yes:* )
4271 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4272 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4273 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4274 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4276 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4278 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4279 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4280 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4281 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4282 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4283 ( cat <<\_ASBOX
4284 ## -------------------------------------------------- ##
4285 ## Report this to courier-users@lists.sourceforge.net ##
4286 ## -------------------------------------------------- ##
4287 _ASBOX
4288 ) | sed "s/^/$as_me: WARNING: /" >&2
4289 ;;
4290 esac
4291 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4292 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4293 if test "${ac_cv_header_minix_config_h+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 ac_cv_header_minix_config_h=$ac_header_preproc
4297 fi
4298 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4299 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4300
4301 fi
4302 if test $ac_cv_header_minix_config_h = yes; then
4303 MINIX=yes
4304 else
4305 MINIX=
4306 fi
4307
4308
4309 if test "$MINIX" = yes; then
4310
4311 cat >>confdefs.h <<\_ACEOF
4312 #define _POSIX_SOURCE 1
4313 _ACEOF
4314
4315
4316 cat >>confdefs.h <<\_ACEOF
4317 #define _POSIX_1_SOURCE 2
4318 _ACEOF
4319
4320
4321 cat >>confdefs.h <<\_ACEOF
4322 #define _MINIX 1
4323 _ACEOF
4324
4325 fi
4326
4327 for ac_prog in gawk mawk nawk awk
4328 do
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy $ac_prog; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_prog_AWK+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336 if test -n "$AWK"; then
4337 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_AWK="$ac_prog"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354 fi
4355 fi
4356 AWK=$ac_cv_prog_AWK
4357 if test -n "$AWK"; then
4358 { echo "$as_me:$LINENO: result: $AWK" >&5
4359 echo "${ECHO_T}$AWK" >&6; }
4360 else
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4363 fi
4364
4365
4366 test -n "$AWK" && break
4367 done
4368
4369 ac_ext=cpp
4370 ac_cpp='$CXXCPP $CPPFLAGS'
4371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4374 if test -z "$CXX"; then
4375 if test -n "$CCC"; then
4376 CXX=$CCC
4377 else
4378 if test -n "$ac_tool_prefix"; then
4379 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4380 do
4381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4385 if test "${ac_cv_prog_CXX+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 if test -n "$CXX"; then
4389 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402 done
4403 done
4404 IFS=$as_save_IFS
4405
4406 fi
4407 fi
4408 CXX=$ac_cv_prog_CXX
4409 if test -n "$CXX"; then
4410 { echo "$as_me:$LINENO: result: $CXX" >&5
4411 echo "${ECHO_T}$CXX" >&6; }
4412 else
4413 { echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6; }
4415 fi
4416
4417
4418 test -n "$CXX" && break
4419 done
4420 fi
4421 if test -z "$CXX"; then
4422 ac_ct_CXX=$CXX
4423 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4424 do
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 if test -n "$ac_ct_CXX"; then
4433 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_ac_ct_CXX="$ac_prog"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4453 if test -n "$ac_ct_CXX"; then
4454 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4455 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4456 else
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4460
4461
4462 test -n "$ac_ct_CXX" && break
4463 done
4464
4465 if test "x$ac_ct_CXX" = x; then
4466 CXX="g++"
4467 else
4468 case $cross_compiling:$ac_tool_warned in
4469 yes:)
4470 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4471 whose name does not start with the host triplet. If you think this
4472 configuration is useful to you, please write to autoconf@gnu.org." >&5
4473 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4474 whose name does not start with the host triplet. If you think this
4475 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4476 ac_tool_warned=yes ;;
4477 esac
4478 CXX=$ac_ct_CXX
4479 fi
4480 fi
4481
4482 fi
4483 fi
4484 # Provide some information about the compiler.
4485 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4486 ac_compiler=`set X $ac_compile; echo $2`
4487 { (ac_try="$ac_compiler --version >&5"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_compiler --version >&5") 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }
4497 { (ac_try="$ac_compiler -v >&5"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_compiler -v >&5") 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }
4507 { (ac_try="$ac_compiler -V >&5"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_compiler -V >&5") 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }
4517
4518 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4519 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529
4530 int
4531 main ()
4532 {
4533 #ifndef __GNUC__
4534 choke me
4535 #endif
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (ac_try="$ac_compile"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && {
4555 test -z "$ac_cxx_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest.$ac_objext; then
4558 ac_compiler_gnu=yes
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 ac_compiler_gnu=no
4564 fi
4565
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4568
4569 fi
4570 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4571 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4572 GXX=`test $ac_compiler_gnu = yes && echo yes`
4573 ac_test_CXXFLAGS=${CXXFLAGS+set}
4574 ac_save_CXXFLAGS=$CXXFLAGS
4575 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4576 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4577 if test "${ac_cv_prog_cxx_g+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4581 ac_cxx_werror_flag=yes
4582 ac_cv_prog_cxx_g=no
4583 CXXFLAGS="-g"
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590
4591 int
4592 main ()
4593 {
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (ac_try="$ac_compile"
4601 case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_compile") 2>conftest.er1
4607 ac_status=$?
4608 grep -v '^ *+' conftest.er1 >conftest.err
4609 rm -f conftest.er1
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } && {
4613 test -z "$ac_cxx_werror_flag" ||
4614 test ! -s conftest.err
4615 } && test -s conftest.$ac_objext; then
4616 ac_cv_prog_cxx_g=yes
4617 else
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 CXXFLAGS=""
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628
4629 int
4630 main ()
4631 {
4632
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 rm -f conftest.$ac_objext
4638 if { (ac_try="$ac_compile"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_compile") 2>conftest.er1
4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && {
4651 test -z "$ac_cxx_werror_flag" ||
4652 test ! -s conftest.err
4653 } && test -s conftest.$ac_objext; then
4654 :
4655 else
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4660 CXXFLAGS="-g"
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667
4668 int
4669 main ()
4670 {
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_cxx_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 ac_cv_prog_cxx_g=yes
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698
4699 fi
4700
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 fi
4706
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4709 fi
4710 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4711 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4712 if test "$ac_test_CXXFLAGS" = set; then
4713 CXXFLAGS=$ac_save_CXXFLAGS
4714 elif test $ac_cv_prog_cxx_g = yes; then
4715 if test "$GXX" = yes; then
4716 CXXFLAGS="-g -O2"
4717 else
4718 CXXFLAGS="-g"
4719 fi
4720 else
4721 if test "$GXX" = yes; then
4722 CXXFLAGS="-O2"
4723 else
4724 CXXFLAGS=
4725 fi
4726 fi
4727 ac_ext=c
4728 ac_cpp='$CPP $CPPFLAGS'
4729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732
4733 depcc="$CXX" am_compiler_list=
4734
4735 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4736 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4737 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4741 # We make a subdir and do the tests there. Otherwise we can end up
4742 # making bogus files that we don't know about and never remove. For
4743 # instance it was reported that on HP-UX the gcc test will end up
4744 # making a dummy file named `D' -- because `-MD' means `put the output
4745 # in D'.
4746 mkdir conftest.dir
4747 # Copy depcomp to subdir because otherwise we won't find it if we're
4748 # using a relative directory.
4749 cp "$am_depcomp" conftest.dir
4750 cd conftest.dir
4751 # We will build objects and dependencies in a subdirectory because
4752 # it helps to detect inapplicable dependency modes. For instance
4753 # both Tru64's cc and ICC support -MD to output dependencies as a
4754 # side effect of compilation, but ICC will put the dependencies in
4755 # the current directory while Tru64 will put them in the object
4756 # directory.
4757 mkdir sub
4758
4759 am_cv_CXX_dependencies_compiler_type=none
4760 if test "$am_compiler_list" = ""; then
4761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4762 fi
4763 for depmode in $am_compiler_list; do
4764 # Setup a source with many dependencies, because some compilers
4765 # like to wrap large dependency lists on column 80 (with \), and
4766 # we should not choose a depcomp mode which is confused by this.
4767 #
4768 # We need to recreate these files for each test, as the compiler may
4769 # overwrite some of them when testing with obscure command lines.
4770 # This happens at least with the AIX C compiler.
4771 : > sub/conftest.c
4772 for i in 1 2 3 4 5 6; do
4773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4775 # Solaris 8's {/usr,}/bin/sh.
4776 touch sub/conftst$i.h
4777 done
4778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4779
4780 case $depmode in
4781 nosideeffect)
4782 # after this tag, mechanisms are not by side-effect, so they'll
4783 # only be used when explicitly requested
4784 if test "x$enable_dependency_tracking" = xyes; then
4785 continue
4786 else
4787 break
4788 fi
4789 ;;
4790 none) break ;;
4791 esac
4792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4793 # mode. It turns out that the SunPro C++ compiler does not properly
4794 # handle `-M -o', and we need to detect this.
4795 if depmode=$depmode \
4796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4799 >/dev/null 2>conftest.err &&
4800 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4801 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4802 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4803 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4804 # icc doesn't choke on unknown options, it will just issue warnings
4805 # or remarks (even with -Werror). So we grep stderr for any message
4806 # that says an option was ignored or not supported.
4807 # When given -MP, icc 7.0 and 7.1 complain thusly:
4808 # icc: Command line warning: ignoring option '-M'; no argument required
4809 # The diagnosis changed in icc 8.0:
4810 # icc: Command line remark: option '-MP' not supported
4811 if (grep 'ignoring option' conftest.err ||
4812 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4813 am_cv_CXX_dependencies_compiler_type=$depmode
4814 break
4815 fi
4816 fi
4817 done
4818
4819 cd ..
4820 rm -rf conftest.dir
4821 else
4822 am_cv_CXX_dependencies_compiler_type=none
4823 fi
4824
4825 fi
4826 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4827 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4828 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4829
4830 if
4831 test "x$enable_dependency_tracking" != xno \
4832 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4833 am__fastdepCXX_TRUE=
4834 am__fastdepCXX_FALSE='#'
4835 else
4836 am__fastdepCXX_TRUE='#'
4837 am__fastdepCXX_FALSE=
4838 fi
4839
4840
4841 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4842 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4843 if test "${ac_cv_search_strerror+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 ac_func_search_save_LIBS=$LIBS
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853
4854 /* Override any GCC internal prototype to avoid an error.
4855 Use char because int might match the return type of a GCC
4856 builtin and then its argument prototype would still apply. */
4857 #ifdef __cplusplus
4858 extern "C"
4859 #endif
4860 char strerror ();
4861 int
4862 main ()
4863 {
4864 return strerror ();
4865 ;
4866 return 0;
4867 }
4868 _ACEOF
4869 for ac_lib in '' cposix; do
4870 if test -z "$ac_lib"; then
4871 ac_res="none required"
4872 else
4873 ac_res=-l$ac_lib
4874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4875 fi
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (ac_try="$ac_link"
4878 case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881 esac
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_link") 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && {
4890 test -z "$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 } && test -s conftest$ac_exeext &&
4893 $as_test_x conftest$ac_exeext; then
4894 ac_cv_search_strerror=$ac_res
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899
4900 fi
4901
4902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4903 conftest$ac_exeext
4904 if test "${ac_cv_search_strerror+set}" = set; then
4905 break
4906 fi
4907 done
4908 if test "${ac_cv_search_strerror+set}" = set; then
4909 :
4910 else
4911 ac_cv_search_strerror=no
4912 fi
4913 rm conftest.$ac_ext
4914 LIBS=$ac_func_search_save_LIBS
4915 fi
4916 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4917 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4918 ac_res=$ac_cv_search_strerror
4919 if test "$ac_res" != no; then
4920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4921
4922 fi
4923
4924 # Check whether --enable-shared was given.
4925 if test "${enable_shared+set}" = set; then
4926 enableval=$enable_shared; p=${PACKAGE-default}
4927 case $enableval in
4928 yes) enable_shared=yes ;;
4929 no) enable_shared=no ;;
4930 *)
4931 enable_shared=no
4932 # Look at the argument we got. We use all the common list separators.
4933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4934 for pkg in $enableval; do
4935 IFS="$lt_save_ifs"
4936 if test "X$pkg" = "X$p"; then
4937 enable_shared=yes
4938 fi
4939 done
4940 IFS="$lt_save_ifs"
4941 ;;
4942 esac
4943 else
4944 enable_shared=yes
4945 fi
4946
4947
4948 # Check whether --enable-static was given.
4949 if test "${enable_static+set}" = set; then
4950 enableval=$enable_static; p=${PACKAGE-default}
4951 case $enableval in
4952 yes) enable_static=yes ;;
4953 no) enable_static=no ;;
4954 *)
4955 enable_static=no
4956 # Look at the argument we got. We use all the common list separators.
4957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4958 for pkg in $enableval; do
4959 IFS="$lt_save_ifs"
4960 if test "X$pkg" = "X$p"; then
4961 enable_static=yes
4962 fi
4963 done
4964 IFS="$lt_save_ifs"
4965 ;;
4966 esac
4967 else
4968 enable_static=yes
4969 fi
4970
4971
4972 # Check whether --enable-fast-install was given.
4973 if test "${enable_fast_install+set}" = set; then
4974 enableval=$enable_fast_install; p=${PACKAGE-default}
4975 case $enableval in
4976 yes) enable_fast_install=yes ;;
4977 no) enable_fast_install=no ;;
4978 *)
4979 enable_fast_install=no
4980 # Look at the argument we got. We use all the common list separators.
4981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4982 for pkg in $enableval; do
4983 IFS="$lt_save_ifs"
4984 if test "X$pkg" = "X$p"; then
4985 enable_fast_install=yes
4986 fi
4987 done
4988 IFS="$lt_save_ifs"
4989 ;;
4990 esac
4991 else
4992 enable_fast_install=yes
4993 fi
4994
4995
4996 # Make sure we can run config.sub.
4997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4998 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4999 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5000 { (exit 1); exit 1; }; }
5001
5002 { echo "$as_me:$LINENO: checking build system type" >&5
5003 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5004 if test "${ac_cv_build+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 ac_build_alias=$build_alias
5008 test "x$ac_build_alias" = x &&
5009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5010 test "x$ac_build_alias" = x &&
5011 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5012 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5013 { (exit 1); exit 1; }; }
5014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5015 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5016 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5017 { (exit 1); exit 1; }; }
5018
5019 fi
5020 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5021 echo "${ECHO_T}$ac_cv_build" >&6; }
5022 case $ac_cv_build in
5023 *-*-*) ;;
5024 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5025 echo "$as_me: error: invalid value of canonical build" >&2;}
5026 { (exit 1); exit 1; }; };;
5027 esac
5028 build=$ac_cv_build
5029 ac_save_IFS=$IFS; IFS='-'
5030 set x $ac_cv_build
5031 shift
5032 build_cpu=$1
5033 build_vendor=$2
5034 shift; shift
5035 # Remember, the first character of IFS is used to create $*,
5036 # except with old shells:
5037 build_os=$*
5038 IFS=$ac_save_IFS
5039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5040
5041
5042 { echo "$as_me:$LINENO: checking host system type" >&5
5043 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5044 if test "${ac_cv_host+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 if test "x$host_alias" = x; then
5048 ac_cv_host=$ac_cv_build
5049 else
5050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5051 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5052 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5053 { (exit 1); exit 1; }; }
5054 fi
5055
5056 fi
5057 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5058 echo "${ECHO_T}$ac_cv_host" >&6; }
5059 case $ac_cv_host in
5060 *-*-*) ;;
5061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5062 echo "$as_me: error: invalid value of canonical host" >&2;}
5063 { (exit 1); exit 1; }; };;
5064 esac
5065 host=$ac_cv_host
5066 ac_save_IFS=$IFS; IFS='-'
5067 set x $ac_cv_host
5068 shift
5069 host_cpu=$1
5070 host_vendor=$2
5071 shift; shift
5072 # Remember, the first character of IFS is used to create $*,
5073 # except with old shells:
5074 host_os=$*
5075 IFS=$ac_save_IFS
5076 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5077
5078
5079 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5080 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5081 if test "${lt_cv_path_SED+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 # Loop through the user's path and test for sed and gsed.
5085 # Then use that list of sed's as ones to test for truncation.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for lt_ac_prog in sed gsed; do
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5094 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5095 fi
5096 done
5097 done
5098 done
5099 IFS=$as_save_IFS
5100 lt_ac_max=0
5101 lt_ac_count=0
5102 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5103 # along with /bin/sed that truncates output.
5104 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5105 test ! -f $lt_ac_sed && continue
5106 cat /dev/null > conftest.in
5107 lt_ac_count=0
5108 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5109 # Check for GNU sed and select it if it is found.
5110 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5111 lt_cv_path_SED=$lt_ac_sed
5112 break
5113 fi
5114 while true; do
5115 cat conftest.in conftest.in >conftest.tmp
5116 mv conftest.tmp conftest.in
5117 cp conftest.in conftest.nl
5118 echo >>conftest.nl
5119 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5120 cmp -s conftest.out conftest.nl || break
5121 # 10000 chars as input seems more than enough
5122 test $lt_ac_count -gt 10 && break
5123 lt_ac_count=`expr $lt_ac_count + 1`
5124 if test $lt_ac_count -gt $lt_ac_max; then
5125 lt_ac_max=$lt_ac_count
5126 lt_cv_path_SED=$lt_ac_sed
5127 fi
5128 done
5129 done
5130
5131 fi
5132
5133 SED=$lt_cv_path_SED
5134
5135 { echo "$as_me:$LINENO: result: $SED" >&5
5136 echo "${ECHO_T}$SED" >&6; }
5137
5138
5139 # Check whether --with-gnu-ld was given.
5140 if test "${with_gnu_ld+set}" = set; then
5141 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5142 else
5143 with_gnu_ld=no
5144 fi
5145
5146 ac_prog=ld
5147 if test "$GCC" = yes; then
5148 # Check if gcc -print-prog-name=ld gives a path.
5149 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5150 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5151 case $host in
5152 *-*-mingw*)
5153 # gcc leaves a trailing carriage return which upsets mingw
5154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5155 *)
5156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5157 esac
5158 case $ac_prog in
5159 # Accept absolute paths.
5160 [\\/]* | ?:[\\/]*)
5161 re_direlt='/[^/][^/]*/\.\./'
5162 # Canonicalize the pathname of ld
5163 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5164 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5165 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5166 done
5167 test -z "$LD" && LD="$ac_prog"
5168 ;;
5169 "")
5170 # If it fails, then pretend we aren't using GCC.
5171 ac_prog=ld
5172 ;;
5173 *)
5174 # If it is relative, then search for the first ld in PATH.
5175 with_gnu_ld=unknown
5176 ;;
5177 esac
5178 elif test "$with_gnu_ld" = yes; then
5179 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5180 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5181 else
5182 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5183 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5184 fi
5185 if test "${lt_cv_path_LD+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 if test -z "$LD"; then
5189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5190 for ac_dir in $PATH; do
5191 IFS="$lt_save_ifs"
5192 test -z "$ac_dir" && ac_dir=.
5193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5194 lt_cv_path_LD="$ac_dir/$ac_prog"
5195 # Check to see if the program is GNU ld. I'd rather use --version,
5196 # but apparently some variants of GNU ld only accept -v.
5197 # Break only if it was the GNU/non-GNU ld that we prefer.
5198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5199 *GNU* | *'with BFD'*)
5200 test "$with_gnu_ld" != no && break
5201 ;;
5202 *)
5203 test "$with_gnu_ld" != yes && break
5204 ;;
5205 esac
5206 fi
5207 done
5208 IFS="$lt_save_ifs"
5209 else
5210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5211 fi
5212 fi
5213
5214 LD="$lt_cv_path_LD"
5215 if test -n "$LD"; then
5216 { echo "$as_me:$LINENO: result: $LD" >&5
5217 echo "${ECHO_T}$LD" >&6; }
5218 else
5219 { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5221 fi
5222 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5223 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5224 { (exit 1); exit 1; }; }
5225 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5226 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5227 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5231 case `$LD -v 2>&1 </dev/null` in
5232 *GNU* | *'with BFD'*)
5233 lt_cv_prog_gnu_ld=yes
5234 ;;
5235 *)
5236 lt_cv_prog_gnu_ld=no
5237 ;;
5238 esac
5239 fi
5240 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5241 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5242 with_gnu_ld=$lt_cv_prog_gnu_ld
5243
5244
5245 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5246 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5247 if test "${lt_cv_ld_reload_flag+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 lt_cv_ld_reload_flag='-r'
5251 fi
5252 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5253 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5254 reload_flag=$lt_cv_ld_reload_flag
5255 case $reload_flag in
5256 "" | " "*) ;;
5257 *) reload_flag=" $reload_flag" ;;
5258 esac
5259 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260 case $host_os in
5261 darwin*)
5262 if test "$GCC" = yes; then
5263 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5264 else
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5266 fi
5267 ;;
5268 esac
5269
5270 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5271 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5272 if test "${lt_cv_path_NM+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 if test -n "$NM"; then
5276 # Let the user override the test.
5277 lt_cv_path_NM="$NM"
5278 else
5279 lt_nm_to_check="${ac_tool_prefix}nm"
5280 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5281 lt_nm_to_check="$lt_nm_to_check nm"
5282 fi
5283 for lt_tmp_nm in $lt_nm_to_check; do
5284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5285 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5286 IFS="$lt_save_ifs"
5287 test -z "$ac_dir" && ac_dir=.
5288 tmp_nm="$ac_dir/$lt_tmp_nm"
5289 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5290 # Check to see if the nm accepts a BSD-compat flag.
5291 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5292 # nm: unknown option "B" ignored
5293 # Tru64's nm complains that /dev/null is an invalid object file
5294 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5295 */dev/null* | *'Invalid file or object type'*)
5296 lt_cv_path_NM="$tmp_nm -B"
5297 break
5298 ;;
5299 *)
5300 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5301 */dev/null*)
5302 lt_cv_path_NM="$tmp_nm -p"
5303 break
5304 ;;
5305 *)
5306 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5307 continue # so that we can try to find one that supports BSD flags
5308 ;;
5309 esac
5310 ;;
5311 esac
5312 fi
5313 done
5314 IFS="$lt_save_ifs"
5315 done
5316 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5317 fi
5318 fi
5319 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5320 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5321 NM="$lt_cv_path_NM"
5322
5323 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5324 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5325 LN_S=$as_ln_s
5326 if test "$LN_S" = "ln -s"; then
5327 { echo "$as_me:$LINENO: result: yes" >&5
5328 echo "${ECHO_T}yes" >&6; }
5329 else
5330 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5331 echo "${ECHO_T}no, using $LN_S" >&6; }
5332 fi
5333
5334 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5335 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5336 if test "${lt_cv_deplibs_check_method+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 lt_cv_file_magic_cmd='$MAGIC_CMD'
5340 lt_cv_file_magic_test_file=
5341 lt_cv_deplibs_check_method='unknown'
5342 # Need to set the preceding variable on all platforms that support
5343 # interlibrary dependencies.
5344 # 'none' -- dependencies not supported.
5345 # `unknown' -- same as none, but documents that we really don't know.
5346 # 'pass_all' -- all dependencies passed with no checks.
5347 # 'test_compile' -- check by making test program.
5348 # 'file_magic [[regex]]' -- check by looking for files in library path
5349 # which responds to the $file_magic_cmd with a given extended regex.
5350 # If you have `file' or equivalent on your system and you're not sure
5351 # whether `pass_all' will *always* work, you probably want this one.
5352
5353 case $host_os in
5354 aix4* | aix5*)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357
5358 beos*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362 bsdi[45]*)
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5364 lt_cv_file_magic_cmd='/usr/bin/file -L'
5365 lt_cv_file_magic_test_file=/shlib/libc.so
5366 ;;
5367
5368 cygwin*)
5369 # func_win32_libid is a shell function defined in ltmain.sh
5370 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5371 lt_cv_file_magic_cmd='func_win32_libid'
5372 ;;
5373
5374 mingw* | pw32*)
5375 # Base MSYS/MinGW do not provide the 'file' command needed by
5376 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5377 # unless we find 'file', for example because we are cross-compiling.
5378 if ( file / ) >/dev/null 2>&1; then
5379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5380 lt_cv_file_magic_cmd='func_win32_libid'
5381 else
5382 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5383 lt_cv_file_magic_cmd='$OBJDUMP -f'
5384 fi
5385 ;;
5386
5387 darwin* | rhapsody*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390
5391 freebsd* | dragonfly*)
5392 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5393 case $host_cpu in
5394 i*86 )
5395 # Not sure whether the presence of OpenBSD here was a mistake.
5396 # Let's accept both of them until this is cleared up.
5397 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5400 ;;
5401 esac
5402 else
5403 lt_cv_deplibs_check_method=pass_all
5404 fi
5405 ;;
5406
5407 gnu*)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410
5411 hpux10.20* | hpux11*)
5412 lt_cv_file_magic_cmd=/usr/bin/file
5413 case $host_cpu in
5414 ia64*)
5415 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5416 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5417 ;;
5418 hppa*64*)
5419 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]'
5420 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5421 ;;
5422 *)
5423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5424 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5425 ;;
5426 esac
5427 ;;
5428
5429 interix[3-9]*)
5430 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5432 ;;
5433
5434 irix5* | irix6* | nonstopux*)
5435 case $LD in
5436 *-32|*"-32 ") libmagic=32-bit;;
5437 *-n32|*"-n32 ") libmagic=N32;;
5438 *-64|*"-64 ") libmagic=64-bit;;
5439 *) libmagic=never-match;;
5440 esac
5441 lt_cv_deplibs_check_method=pass_all
5442 ;;
5443
5444 # This must be Linux ELF.
5445 linux* | k*bsd*-gnu)
5446 lt_cv_deplibs_check_method=pass_all
5447 ;;
5448
5449 netbsd*)
5450 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5452 else
5453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5454 fi
5455 ;;
5456
5457 newos6*)
5458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5459 lt_cv_file_magic_cmd=/usr/bin/file
5460 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5461 ;;
5462
5463 nto-qnx*)
5464 lt_cv_deplibs_check_method=unknown
5465 ;;
5466
5467 openbsd*)
5468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5470 else
5471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5472 fi
5473 ;;
5474
5475 osf3* | osf4* | osf5*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
5479 rdos*)
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
5482
5483 solaris*)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486
5487 sysv4 | sysv4.3*)
5488 case $host_vendor in
5489 motorola)
5490 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]'
5491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5492 ;;
5493 ncr)
5494 lt_cv_deplibs_check_method=pass_all
5495 ;;
5496 sequent)
5497 lt_cv_file_magic_cmd='/bin/file'
5498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5499 ;;
5500 sni)
5501 lt_cv_file_magic_cmd='/bin/file'
5502 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5503 lt_cv_file_magic_test_file=/lib/libc.so
5504 ;;
5505 siemens)
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508 pc)
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511 esac
5512 ;;
5513
5514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5515 lt_cv_deplibs_check_method=pass_all
5516 ;;
5517 esac
5518
5519 fi
5520 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5521 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5522 file_magic_cmd=$lt_cv_file_magic_cmd
5523 deplibs_check_method=$lt_cv_deplibs_check_method
5524 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5525
5526
5527
5528
5529 # If no C compiler was specified, use CC.
5530 LTCC=${LTCC-"$CC"}
5531
5532 # If no C compiler flags were specified, use CFLAGS.
5533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5534
5535 # Allow CC to be a program name with arguments.
5536 compiler=$CC
5537
5538 # Check whether --enable-libtool-lock was given.
5539 if test "${enable_libtool_lock+set}" = set; then
5540 enableval=$enable_libtool_lock;
5541 fi
5542
5543 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5544
5545 # Some flags need to be propagated to the compiler or linker for good
5546 # libtool support.
5547 case $host in
5548 ia64-*-hpux*)
5549 # Find out which ABI we are using.
5550 echo 'int i;' > conftest.$ac_ext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; then
5556 case `/usr/bin/file conftest.$ac_objext` in
5557 *ELF-32*)
5558 HPUX_IA64_MODE="32"
5559 ;;
5560 *ELF-64*)
5561 HPUX_IA64_MODE="64"
5562 ;;
5563 esac
5564 fi
5565 rm -rf conftest*
5566 ;;
5567 *-*-irix6*)
5568 # Find out which ABI we are using.
5569 echo '#line 5569 "configure"' > conftest.$ac_ext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; then
5575 if test "$lt_cv_prog_gnu_ld" = yes; then
5576 case `/usr/bin/file conftest.$ac_objext` in
5577 *32-bit*)
5578 LD="${LD-ld} -melf32bsmip"
5579 ;;
5580 *N32*)
5581 LD="${LD-ld} -melf32bmipn32"
5582 ;;
5583 *64-bit*)
5584 LD="${LD-ld} -melf64bmip"
5585 ;;
5586 esac
5587 else
5588 case `/usr/bin/file conftest.$ac_objext` in
5589 *32-bit*)
5590 LD="${LD-ld} -32"
5591 ;;
5592 *N32*)
5593 LD="${LD-ld} -n32"
5594 ;;
5595 *64-bit*)
5596 LD="${LD-ld} -64"
5597 ;;
5598 esac
5599 fi
5600 fi
5601 rm -rf conftest*
5602 ;;
5603
5604 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5605 s390*-*linux*|sparc*-*linux*)
5606 # Find out which ABI we are using.
5607 echo 'int i;' > conftest.$ac_ext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; then
5613 case `/usr/bin/file conftest.o` in
5614 *32-bit*)
5615 case $host in
5616 x86_64-*kfreebsd*-gnu)
5617 LD="${LD-ld} -m elf_i386_fbsd"
5618 ;;
5619 x86_64-*linux*)
5620 LD="${LD-ld} -m elf_i386"
5621 ;;
5622 ppc64-*linux*|powerpc64-*linux*)
5623 LD="${LD-ld} -m elf32ppclinux"
5624 ;;
5625 s390x-*linux*)
5626 LD="${LD-ld} -m elf_s390"
5627 ;;
5628 sparc64-*linux*)
5629 LD="${LD-ld} -m elf32_sparc"
5630 ;;
5631 esac
5632 ;;
5633 *64-bit*)
5634 libsuff=64
5635 case $host in
5636 x86_64-*kfreebsd*-gnu)
5637 LD="${LD-ld} -m elf_x86_64_fbsd"
5638 ;;
5639 x86_64-*linux*)
5640 LD="${LD-ld} -m elf_x86_64"
5641 ;;
5642 ppc*-*linux*|powerpc*-*linux*)
5643 LD="${LD-ld} -m elf64ppc"
5644 ;;
5645 s390*-*linux*)
5646 LD="${LD-ld} -m elf64_s390"
5647 ;;
5648 sparc*-*linux*)
5649 LD="${LD-ld} -m elf64_sparc"
5650 ;;
5651 esac
5652 ;;
5653 esac
5654 fi
5655 rm -rf conftest*
5656 ;;
5657
5658 *-*-sco3.2v5*)
5659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5660 SAVE_CFLAGS="$CFLAGS"
5661 CFLAGS="$CFLAGS -belf"
5662 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5663 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5664 if test "${lt_cv_cc_needs_belf+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 ac_ext=c
5668 ac_cpp='$CPP $CPPFLAGS'
5669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5672
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679
5680 int
5681 main ()
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (ac_try="$ac_link"
5690 case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_link") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest$ac_exeext &&
5705 $as_test_x conftest$ac_exeext; then
5706 lt_cv_cc_needs_belf=yes
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 lt_cv_cc_needs_belf=no
5712 fi
5713
5714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5715 conftest$ac_exeext conftest.$ac_ext
5716 ac_ext=c
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722 fi
5723 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5724 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5725 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5726 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5727 CFLAGS="$SAVE_CFLAGS"
5728 fi
5729 ;;
5730 sparc*-*solaris*)
5731 # Find out which ABI we are using.
5732 echo 'int i;' > conftest.$ac_ext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; then
5738 case `/usr/bin/file conftest.o` in
5739 *64-bit*)
5740 case $lt_cv_prog_gnu_ld in
5741 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5742 *) LD="${LD-ld} -64" ;;
5743 esac
5744 ;;
5745 esac
5746 fi
5747 rm -rf conftest*
5748 ;;
5749
5750
5751 esac
5752
5753 need_locks="$enable_libtool_lock"
5754
5755
5756
5757 for ac_header in dlfcn.h
5758 do
5759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 fi
5766 ac_res=`eval echo '${'$as_ac_Header'}'`
5767 { echo "$as_me:$LINENO: result: $ac_res" >&5
5768 echo "${ECHO_T}$ac_res" >&6; }
5769 else
5770 # Is the header compilable?
5771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 $ac_includes_default
5780 #include <$ac_header>
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5799 ac_header_compiler=yes
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_header_compiler=no
5805 fi
5806
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5809 echo "${ECHO_T}$ac_header_compiler" >&6; }
5810
5811 # Is the header present?
5812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <$ac_header>
5821 _ACEOF
5822 if { (ac_try="$ac_cpp conftest.$ac_ext"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 }; then
5838 ac_header_preproc=yes
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_header_preproc=no
5844 fi
5845
5846 rm -f conftest.err conftest.$ac_ext
5847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5848 echo "${ECHO_T}$ac_header_preproc" >&6; }
5849
5850 # So? What about this header?
5851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5852 yes:no: )
5853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5857 ac_header_preproc=yes
5858 ;;
5859 no:yes:* )
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5872 ( cat <<\_ASBOX
5873 ## -------------------------------------------------- ##
5874 ## Report this to courier-users@lists.sourceforge.net ##
5875 ## -------------------------------------------------- ##
5876 _ASBOX
5877 ) | sed "s/^/$as_me: WARNING: /" >&2
5878 ;;
5879 esac
5880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885 eval "$as_ac_Header=\$ac_header_preproc"
5886 fi
5887 ac_res=`eval echo '${'$as_ac_Header'}'`
5888 { echo "$as_me:$LINENO: result: $ac_res" >&5
5889 echo "${ECHO_T}$ac_res" >&6; }
5890
5891 fi
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893 cat >>confdefs.h <<_ACEOF
5894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895 _ACEOF
5896
5897 fi
5898
5899 done
5900
5901
5902
5903 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5904 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5905 (test "X$CXX" != "Xg++"))) ; then
5906 ac_ext=cpp
5907 ac_cpp='$CXXCPP $CPPFLAGS'
5908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5912 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5913 if test -z "$CXXCPP"; then
5914 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917 # Double quotes because CXXCPP needs to be expanded
5918 for CXXCPP in "$CXX -E" "/lib/cpp"
5919 do
5920 ac_preproc_ok=false
5921 for ac_cxx_preproc_warn_flag in '' yes
5922 do
5923 # Use a header file that comes with gcc, so configuring glibc
5924 # with a fresh cross-compiler works.
5925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5926 # <limits.h> exists even on freestanding compilers.
5927 # On the NeXT, cc -E runs the code through the compiler's parser,
5928 # not just through cpp. "Syntax error" is here to catch this case.
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #ifdef __STDC__
5936 # include <limits.h>
5937 #else
5938 # include <assert.h>
5939 #endif
5940 Syntax error
5941 _ACEOF
5942 if { (ac_try="$ac_cpp conftest.$ac_ext"
5943 case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } >/dev/null && {
5955 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5956 test ! -s conftest.err
5957 }; then
5958 :
5959 else
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 # Broken: fails on valid input.
5964 continue
5965 fi
5966
5967 rm -f conftest.err conftest.$ac_ext
5968
5969 # OK, works on sane cases. Now check whether nonexistent headers
5970 # can be detected and how.
5971 cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <ac_nonexistent.h>
5978 _ACEOF
5979 if { (ac_try="$ac_cpp conftest.$ac_ext"
5980 case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983 esac
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null && {
5992 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5993 test ! -s conftest.err
5994 }; then
5995 # Broken: success on invalid input.
5996 continue
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 # Passes both tests.
6002 ac_preproc_ok=:
6003 break
6004 fi
6005
6006 rm -f conftest.err conftest.$ac_ext
6007
6008 done
6009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6010 rm -f conftest.err conftest.$ac_ext
6011 if $ac_preproc_ok; then
6012 break
6013 fi
6014
6015 done
6016 ac_cv_prog_CXXCPP=$CXXCPP
6017
6018 fi
6019 CXXCPP=$ac_cv_prog_CXXCPP
6020 else
6021 ac_cv_prog_CXXCPP=$CXXCPP
6022 fi
6023 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6024 echo "${ECHO_T}$CXXCPP" >&6; }
6025 ac_preproc_ok=false
6026 for ac_cxx_preproc_warn_flag in '' yes
6027 do
6028 # Use a header file that comes with gcc, so configuring glibc
6029 # with a fresh cross-compiler works.
6030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031 # <limits.h> exists even on freestanding compilers.
6032 # On the NeXT, cc -E runs the code through the compiler's parser,
6033 # not just through cpp. "Syntax error" is here to catch this case.
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #ifdef __STDC__
6041 # include <limits.h>
6042 #else
6043 # include <assert.h>
6044 #endif
6045 Syntax error
6046 _ACEOF
6047 if { (ac_try="$ac_cpp conftest.$ac_ext"
6048 case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051 esac
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } >/dev/null && {
6060 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6061 test ! -s conftest.err
6062 }; then
6063 :
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 # Broken: fails on valid input.
6069 continue
6070 fi
6071
6072 rm -f conftest.err conftest.$ac_ext
6073
6074 # OK, works on sane cases. Now check whether nonexistent headers
6075 # can be detected and how.
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <ac_nonexistent.h>
6083 _ACEOF
6084 if { (ac_try="$ac_cpp conftest.$ac_ext"
6085 case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null && {
6097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6098 test ! -s conftest.err
6099 }; then
6100 # Broken: success on invalid input.
6101 continue
6102 else
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 # Passes both tests.
6107 ac_preproc_ok=:
6108 break
6109 fi
6110
6111 rm -f conftest.err conftest.$ac_ext
6112
6113 done
6114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6115 rm -f conftest.err conftest.$ac_ext
6116 if $ac_preproc_ok; then
6117 :
6118 else
6119 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6120 See \`config.log' for more details." >&5
6121 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6122 See \`config.log' for more details." >&2;}
6123 { (exit 1); exit 1; }; }
6124 fi
6125
6126 ac_ext=cpp
6127 ac_cpp='$CXXCPP $CPPFLAGS'
6128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6131
6132 fi
6133
6134
6135 ac_ext=f
6136 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6137 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6139 if test -n "$ac_tool_prefix"; then
6140 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
6141 do
6142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_F77+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 if test -n "$F77"; then
6150 ac_cv_prog_F77="$F77" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 F77=$ac_cv_prog_F77
6170 if test -n "$F77"; then
6171 { echo "$as_me:$LINENO: result: $F77" >&5
6172 echo "${ECHO_T}$F77" >&6; }
6173 else
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6176 fi
6177
6178
6179 test -n "$F77" && break
6180 done
6181 fi
6182 if test -z "$F77"; then
6183 ac_ct_F77=$F77
6184 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
6185 do
6186 # Extract the first word of "$ac_prog", so it can be a program name with args.
6187 set dummy $ac_prog; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 if test -n "$ac_ct_F77"; then
6194 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_prog_ac_ct_F77="$ac_prog"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6206 fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6214 if test -n "$ac_ct_F77"; then
6215 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6216 echo "${ECHO_T}$ac_ct_F77" >&6; }
6217 else
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6220 fi
6221
6222
6223 test -n "$ac_ct_F77" && break
6224 done
6225
6226 if test "x$ac_ct_F77" = x; then
6227 F77=""
6228 else
6229 case $cross_compiling:$ac_tool_warned in
6230 yes:)
6231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&5
6234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6235 whose name does not start with the host triplet. If you think this
6236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6237 ac_tool_warned=yes ;;
6238 esac
6239 F77=$ac_ct_F77
6240 fi
6241 fi
6242
6243
6244 # Provide some information about the compiler.
6245 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6246 ac_compiler=`set X $ac_compile; echo $2`
6247 { (ac_try="$ac_compiler --version >&5"
6248 case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compiler --version >&5") 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }
6257 { (ac_try="$ac_compiler -v >&5"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compiler -v >&5") 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }
6267 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }
6277 rm -f a.out
6278
6279 # If we don't use `.F' as extension, the preprocessor is not run on the
6280 # input file. (Note that this only needs to work for GNU compilers.)
6281 ac_save_ext=$ac_ext
6282 ac_ext=F
6283 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6284 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6285 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 program main
6290 #ifndef __GNUC__
6291 choke me
6292 #endif
6293
6294 end
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6298 case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_compile") 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && {
6310 test -z "$ac_f77_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest.$ac_objext; then
6313 ac_compiler_gnu=yes
6314 else
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318 ac_compiler_gnu=no
6319 fi
6320
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6323
6324 fi
6325 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6326 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6327 ac_ext=$ac_save_ext
6328 ac_test_FFLAGS=${FFLAGS+set}
6329 ac_save_FFLAGS=$FFLAGS
6330 FFLAGS=
6331 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6332 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6333 if test "${ac_cv_prog_f77_g+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 FFLAGS=-g
6337 cat >conftest.$ac_ext <<_ACEOF
6338 program main
6339
6340 end
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_f77_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
6359 ac_cv_prog_f77_g=yes
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_cv_prog_f77_g=no
6365 fi
6366
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368
6369 fi
6370 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6371 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6372 if test "$ac_test_FFLAGS" = set; then
6373 FFLAGS=$ac_save_FFLAGS
6374 elif test $ac_cv_prog_f77_g = yes; then
6375 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6376 FFLAGS="-g -O2"
6377 else
6378 FFLAGS="-g"
6379 fi
6380 else
6381 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6382 FFLAGS="-O2"
6383 else
6384 FFLAGS=
6385 fi
6386 fi
6387
6388 G77=`test $ac_compiler_gnu = yes && echo yes`
6389 ac_ext=c
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395
6396
6397 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6398
6399 # find the maximum length of command line arguments
6400 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6401 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6402 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405 i=0
6406 teststring="ABCD"
6407
6408 case $build_os in
6409 msdosdjgpp*)
6410 # On DJGPP, this test can blow up pretty badly due to problems in libc
6411 # (any single argument exceeding 2000 bytes causes a buffer overrun
6412 # during glob expansion). Even if it were fixed, the result of this
6413 # check would be larger than it should be.
6414 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6415 ;;
6416
6417 gnu*)
6418 # Under GNU Hurd, this test is not required because there is
6419 # no limit to the length of command line arguments.
6420 # Libtool will interpret -1 as no limit whatsoever
6421 lt_cv_sys_max_cmd_len=-1;
6422 ;;
6423
6424 cygwin* | mingw*)
6425 # On Win9x/ME, this test blows up -- it succeeds, but takes
6426 # about 5 minutes as the teststring grows exponentially.
6427 # Worse, since 9x/ME are not pre-emptively multitasking,
6428 # you end up with a "frozen" computer, even though with patience
6429 # the test eventually succeeds (with a max line length of 256k).
6430 # Instead, let's just punt: use the minimum linelength reported by
6431 # all of the supported platforms: 8192 (on NT/2K/XP).
6432 lt_cv_sys_max_cmd_len=8192;
6433 ;;
6434
6435 amigaos*)
6436 # On AmigaOS with pdksh, this test takes hours, literally.
6437 # So we just punt and use a minimum line length of 8192.
6438 lt_cv_sys_max_cmd_len=8192;
6439 ;;
6440
6441 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6442 # This has been around since 386BSD, at least. Likely further.
6443 if test -x /sbin/sysctl; then
6444 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6445 elif test -x /usr/sbin/sysctl; then
6446 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6447 else
6448 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6449 fi
6450 # And add a safety zone
6451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6453 ;;
6454
6455 interix*)
6456 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6457 lt_cv_sys_max_cmd_len=196608
6458 ;;
6459
6460 osf*)
6461 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6462 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6463 # nice to cause kernel panics so lets avoid the loop below.
6464 # First set a reasonable default.
6465 lt_cv_sys_max_cmd_len=16384
6466 #
6467 if test -x /sbin/sysconfig; then
6468 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6469 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6470 esac
6471 fi
6472 ;;
6473 sco3.2v5*)
6474 lt_cv_sys_max_cmd_len=102400
6475 ;;
6476 sysv5* | sco5v6* | sysv4.2uw2*)
6477 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6478 if test -n "$kargmax"; then
6479 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6480 else
6481 lt_cv_sys_max_cmd_len=32768
6482 fi
6483 ;;
6484 *)
6485 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6486 if test -n "$lt_cv_sys_max_cmd_len"; then
6487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6489 else
6490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6491 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6492 = "XX$teststring") >/dev/null 2>&1 &&
6493 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6494 lt_cv_sys_max_cmd_len=$new_result &&
6495 test $i != 17 # 1/2 MB should be enough
6496 do
6497 i=`expr $i + 1`
6498 teststring=$teststring$teststring
6499 done
6500 teststring=
6501 # Add a significant safety factor because C++ compilers can tack on massive
6502 # amounts of additional arguments before passing them to the linker.
6503 # It appears as though 1/2 is a usable value.
6504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6505 fi
6506 ;;
6507 esac
6508
6509 fi
6510
6511 if test -n $lt_cv_sys_max_cmd_len ; then
6512 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6513 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6514 else
6515 { echo "$as_me:$LINENO: result: none" >&5
6516 echo "${ECHO_T}none" >&6; }
6517 fi
6518
6519
6520
6521
6522
6523 # Check for command to grab the raw symbol name followed by C symbol from nm.
6524 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6525 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6526 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529
6530 # These are sane defaults that work on at least a few old systems.
6531 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6532
6533 # Character class describing NM global symbol codes.
6534 symcode='[BCDEGRST]'
6535
6536 # Regexp to match symbols that can be accessed directly from C.
6537 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6538
6539 # Transform an extracted symbol line into a proper C declaration
6540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6541
6542 # Transform an extracted symbol line into symbol name and symbol address
6543 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'"
6544
6545 # Define system-specific variables.
6546 case $host_os in
6547 aix*)
6548 symcode='[BCDT]'
6549 ;;
6550 cygwin* | mingw* | pw32*)
6551 symcode='[ABCDGISTW]'
6552 ;;
6553 hpux*) # Its linker distinguishes data from code symbols
6554 if test "$host_cpu" = ia64; then
6555 symcode='[ABCDEGRST]'
6556 fi
6557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6558 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'"
6559 ;;
6560 linux* | k*bsd*-gnu)
6561 if test "$host_cpu" = ia64; then
6562 symcode='[ABCDGIRSTW]'
6563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6564 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'"
6565 fi
6566 ;;
6567 irix* | nonstopux*)
6568 symcode='[BCDEGRST]'
6569 ;;
6570 osf*)
6571 symcode='[BCDEGQRST]'
6572 ;;
6573 solaris*)
6574 symcode='[BDRT]'
6575 ;;
6576 sco3.2v5*)
6577 symcode='[DT]'
6578 ;;
6579 sysv4.2uw2*)
6580 symcode='[DT]'
6581 ;;
6582 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6583 symcode='[ABDT]'
6584 ;;
6585 sysv4)
6586 symcode='[DFNSTU]'
6587 ;;
6588 esac
6589
6590 # Handle CRLF in mingw tool chain
6591 opt_cr=
6592 case $build_os in
6593 mingw*)
6594 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6595 ;;
6596 esac
6597
6598 # If we're using GNU nm, then use its standard symbol codes.
6599 case `$NM -V 2>&1` in
6600 *GNU* | *'with BFD'*)
6601 symcode='[ABCDGIRSTW]' ;;
6602 esac
6603
6604 # Try without a prefix undercore, then with it.
6605 for ac_symprfx in "" "_"; do
6606
6607 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6608 symxfrm="\\1 $ac_symprfx\\2 \\2"
6609
6610 # Write the raw and C identifiers.
6611 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6612
6613 # Check to see that the pipe works correctly.
6614 pipe_works=no
6615
6616 rm -f conftest*
6617 cat > conftest.$ac_ext <<EOF
6618 #ifdef __cplusplus
6619 extern "C" {
6620 #endif
6621 char nm_test_var;
6622 void nm_test_func(){}
6623 #ifdef __cplusplus
6624 }
6625 #endif
6626 int main(){nm_test_var='a';nm_test_func();return(0);}
6627 EOF
6628
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; then
6634 # Now try to grab the symbols.
6635 nlist=conftest.nm
6636 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6637 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && test -s "$nlist"; then
6641 # Try sorting and uniquifying the output.
6642 if sort "$nlist" | uniq > "$nlist"T; then
6643 mv -f "$nlist"T "$nlist"
6644 else
6645 rm -f "$nlist"T
6646 fi
6647
6648 # Make sure that we snagged all the symbols we need.
6649 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6650 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6651 cat <<EOF > conftest.$ac_ext
6652 #ifdef __cplusplus
6653 extern "C" {
6654 #endif
6655
6656 EOF
6657 # Now generate the symbol file.
6658 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6659
6660 cat <<EOF >> conftest.$ac_ext
6661 #if defined (__STDC__) && __STDC__
6662 # define lt_ptr_t void *
6663 #else
6664 # define lt_ptr_t char *
6665 # define const
6666 #endif
6667
6668 /* The mapping between symbol names and symbols. */
6669 const struct {
6670 const char *name;
6671 lt_ptr_t address;
6672 }
6673 lt_preloaded_symbols[] =
6674 {
6675 EOF
6676 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6677 cat <<\EOF >> conftest.$ac_ext
6678 {0, (lt_ptr_t) 0}
6679 };
6680
6681 #ifdef __cplusplus
6682 }
6683 #endif
6684 EOF
6685 # Now try linking the two files.
6686 mv conftest.$ac_objext conftstm.$ac_objext
6687 lt_save_LIBS="$LIBS"
6688 lt_save_CFLAGS="$CFLAGS"
6689 LIBS="conftstm.$ac_objext"
6690 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6692 (eval $ac_link) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6696 pipe_works=yes
6697 fi
6698 LIBS="$lt_save_LIBS"
6699 CFLAGS="$lt_save_CFLAGS"
6700 else
6701 echo "cannot find nm_test_func in $nlist" >&5
6702 fi
6703 else
6704 echo "cannot find nm_test_var in $nlist" >&5
6705 fi
6706 else
6707 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6708 fi
6709 else
6710 echo "$progname: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6712 fi
6713 rm -f conftest* conftst*
6714
6715 # Do not use the global_symbol_pipe unless it works.
6716 if test "$pipe_works" = yes; then
6717 break
6718 else
6719 lt_cv_sys_global_symbol_pipe=
6720 fi
6721 done
6722
6723 fi
6724
6725 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6726 lt_cv_sys_global_symbol_to_cdecl=
6727 fi
6728 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6729 { echo "$as_me:$LINENO: result: failed" >&5
6730 echo "${ECHO_T}failed" >&6; }
6731 else
6732 { echo "$as_me:$LINENO: result: ok" >&5
6733 echo "${ECHO_T}ok" >&6; }
6734 fi
6735
6736 { echo "$as_me:$LINENO: checking for objdir" >&5
6737 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6738 if test "${lt_cv_objdir+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741 rm -f .libs 2>/dev/null
6742 mkdir .libs 2>/dev/null
6743 if test -d .libs; then
6744 lt_cv_objdir=.libs
6745 else
6746 # MS-DOS does not allow filenames that begin with a dot.
6747 lt_cv_objdir=_libs
6748 fi
6749 rmdir .libs 2>/dev/null
6750 fi
6751 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6752 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6753 objdir=$lt_cv_objdir
6754
6755
6756
6757
6758
6759 case $host_os in
6760 aix3*)
6761 # AIX sometimes has problems with the GCC collect2 program. For some
6762 # reason, if we set the COLLECT_NAMES environment variable, the problems
6763 # vanish in a puff of smoke.
6764 if test "X${COLLECT_NAMES+set}" != Xset; then
6765 COLLECT_NAMES=
6766 export COLLECT_NAMES
6767 fi
6768 ;;
6769 esac
6770
6771 # Sed substitution that helps us do robust quoting. It backslashifies
6772 # metacharacters that are still active within double-quoted strings.
6773 Xsed='sed -e 1s/^X//'
6774 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6775
6776 # Same as above, but do not quote variable references.
6777 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6778
6779 # Sed substitution to delay expansion of an escaped shell variable in a
6780 # double_quote_subst'ed string.
6781 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6782
6783 # Sed substitution to avoid accidental globbing in evaled expressions
6784 no_glob_subst='s/\*/\\\*/g'
6785
6786 # Constants:
6787 rm="rm -f"
6788
6789 # Global variables:
6790 default_ofile=libtool
6791 can_build_shared=yes
6792
6793 # All known linkers require a `.a' archive for static linking (except MSVC,
6794 # which needs '.lib').
6795 libext=a
6796 ltmain="$ac_aux_dir/ltmain.sh"
6797 ofile="$default_ofile"
6798 with_gnu_ld="$lt_cv_prog_gnu_ld"
6799
6800 if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}ar; ac_word=$2
6803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6805 if test "${ac_cv_prog_AR+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 if test -n "$AR"; then
6809 ac_cv_prog_AR="$AR" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_prog_AR="${ac_tool_prefix}ar"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 AR=$ac_cv_prog_AR
6829 if test -n "$AR"; then
6830 { echo "$as_me:$LINENO: result: $AR" >&5
6831 echo "${ECHO_T}$AR" >&6; }
6832 else
6833 { echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6; }
6835 fi
6836
6837
6838 fi
6839 if test -z "$ac_cv_prog_AR"; then
6840 ac_ct_AR=$AR
6841 # Extract the first word of "ar", so it can be a program name with args.
6842 set dummy ar; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 if test -n "$ac_ct_AR"; then
6849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_prog_ac_ct_AR="ar"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6869 if test -n "$ac_ct_AR"; then
6870 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6871 echo "${ECHO_T}$ac_ct_AR" >&6; }
6872 else
6873 { echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6; }
6875 fi
6876
6877 if test "x$ac_ct_AR" = x; then
6878 AR="false"
6879 else
6880 case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6883 whose name does not start with the host triplet. If you think this
6884 configuration is useful to you, please write to autoconf@gnu.org." >&5
6885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6886 whose name does not start with the host triplet. If you think this
6887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890 AR=$ac_ct_AR
6891 fi
6892 else
6893 AR="$ac_cv_prog_AR"
6894 fi
6895
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_prog_RANLIB+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904 if test -n "$RANLIB"; then
6905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 RANLIB=$ac_cv_prog_RANLIB
6925 if test -n "$RANLIB"; then
6926 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6927 echo "${ECHO_T}$RANLIB" >&6; }
6928 else
6929 { echo "$as_me:$LINENO: result: no" >&5
6930 echo "${ECHO_T}no" >&6; }
6931 fi
6932
6933
6934 fi
6935 if test -z "$ac_cv_prog_RANLIB"; then
6936 ac_ct_RANLIB=$RANLIB
6937 # Extract the first word of "ranlib", so it can be a program name with args.
6938 set dummy ranlib; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 if test -n "$ac_ct_RANLIB"; then
6945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_ac_ct_RANLIB="ranlib"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6965 if test -n "$ac_ct_RANLIB"; then
6966 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6967 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6968 else
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_RANLIB" = x; then
6974 RANLIB=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6979 whose name does not start with the host triplet. If you think this
6980 configuration is useful to you, please write to autoconf@gnu.org." >&5
6981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6982 whose name does not start with the host triplet. If you think this
6983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6984 ac_tool_warned=yes ;;
6985 esac
6986 RANLIB=$ac_ct_RANLIB
6987 fi
6988 else
6989 RANLIB="$ac_cv_prog_RANLIB"
6990 fi
6991
6992 if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6994 set dummy ${ac_tool_prefix}strip; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_prog_STRIP+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 if test -n "$STRIP"; then
7001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 STRIP=$ac_cv_prog_STRIP
7021 if test -n "$STRIP"; then
7022 { echo "$as_me:$LINENO: result: $STRIP" >&5
7023 echo "${ECHO_T}$STRIP" >&6; }
7024 else
7025 { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7027 fi
7028
7029
7030 fi
7031 if test -z "$ac_cv_prog_STRIP"; then
7032 ac_ct_STRIP=$STRIP
7033 # Extract the first word of "strip", so it can be a program name with args.
7034 set dummy strip; ac_word=$2
7035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7037 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 if test -n "$ac_ct_STRIP"; then
7041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_prog_ac_ct_STRIP="strip"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7061 if test -n "$ac_ct_STRIP"; then
7062 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7063 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7064 else
7065 { echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6; }
7067 fi
7068
7069 if test "x$ac_ct_STRIP" = x; then
7070 STRIP=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7075 whose name does not start with the host triplet. If you think this
7076 configuration is useful to you, please write to autoconf@gnu.org." >&5
7077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7078 whose name does not start with the host triplet. If you think this
7079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7080 ac_tool_warned=yes ;;
7081 esac
7082 STRIP=$ac_ct_STRIP
7083 fi
7084 else
7085 STRIP="$ac_cv_prog_STRIP"
7086 fi
7087
7088
7089 old_CC="$CC"
7090 old_CFLAGS="$CFLAGS"
7091
7092 # Set sane defaults for various variables
7093 test -z "$AR" && AR=ar
7094 test -z "$AR_FLAGS" && AR_FLAGS=cru
7095 test -z "$AS" && AS=as
7096 test -z "$CC" && CC=cc
7097 test -z "$LTCC" && LTCC=$CC
7098 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7099 test -z "$DLLTOOL" && DLLTOOL=dlltool
7100 test -z "$LD" && LD=ld
7101 test -z "$LN_S" && LN_S="ln -s"
7102 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7103 test -z "$NM" && NM=nm
7104 test -z "$SED" && SED=sed
7105 test -z "$OBJDUMP" && OBJDUMP=objdump
7106 test -z "$RANLIB" && RANLIB=:
7107 test -z "$STRIP" && STRIP=:
7108 test -z "$ac_objext" && ac_objext=o
7109
7110 # Determine commands to create old-style static archives.
7111 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7112 old_postinstall_cmds='chmod 644 $oldlib'
7113 old_postuninstall_cmds=
7114
7115 if test -n "$RANLIB"; then
7116 case $host_os in
7117 openbsd*)
7118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7119 ;;
7120 *)
7121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7122 ;;
7123 esac
7124 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7125 fi
7126
7127 for cc_temp in $compiler""; do
7128 case $cc_temp in
7129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7131 \-*) ;;
7132 *) break;;
7133 esac
7134 done
7135 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7136
7137
7138 # Only perform the check for file, if the check method requires it
7139 case $deplibs_check_method in
7140 file_magic*)
7141 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7142 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7143 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7144 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 case $MAGIC_CMD in
7148 [\\/*] | ?:[\\/]*)
7149 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7150 ;;
7151 *)
7152 lt_save_MAGIC_CMD="$MAGIC_CMD"
7153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7155 for ac_dir in $ac_dummy; do
7156 IFS="$lt_save_ifs"
7157 test -z "$ac_dir" && ac_dir=.
7158 if test -f $ac_dir/${ac_tool_prefix}file; then
7159 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7160 if test -n "$file_magic_test_file"; then
7161 case $deplibs_check_method in
7162 "file_magic "*)
7163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7166 $EGREP "$file_magic_regex" > /dev/null; then
7167 :
7168 else
7169 cat <<EOF 1>&2
7170
7171 *** Warning: the command libtool uses to detect shared libraries,
7172 *** $file_magic_cmd, produces output that libtool cannot recognize.
7173 *** The result is that libtool may fail to recognize shared libraries
7174 *** as such. This will affect the creation of libtool libraries that
7175 *** depend on shared libraries, but programs linked with such libtool
7176 *** libraries will work regardless of this problem. Nevertheless, you
7177 *** may want to report the problem to your system manager and/or to
7178 *** bug-libtool@gnu.org
7179
7180 EOF
7181 fi ;;
7182 esac
7183 fi
7184 break
7185 fi
7186 done
7187 IFS="$lt_save_ifs"
7188 MAGIC_CMD="$lt_save_MAGIC_CMD"
7189 ;;
7190 esac
7191 fi
7192
7193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7194 if test -n "$MAGIC_CMD"; then
7195 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7196 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7197 else
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202 if test -z "$lt_cv_path_MAGIC_CMD"; then
7203 if test -n "$ac_tool_prefix"; then
7204 { echo "$as_me:$LINENO: checking for file" >&5
7205 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7206 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 case $MAGIC_CMD in
7210 [\\/*] | ?:[\\/]*)
7211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 lt_save_MAGIC_CMD="$MAGIC_CMD"
7215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7217 for ac_dir in $ac_dummy; do
7218 IFS="$lt_save_ifs"
7219 test -z "$ac_dir" && ac_dir=.
7220 if test -f $ac_dir/file; then
7221 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7222 if test -n "$file_magic_test_file"; then
7223 case $deplibs_check_method in
7224 "file_magic "*)
7225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7228 $EGREP "$file_magic_regex" > /dev/null; then
7229 :
7230 else
7231 cat <<EOF 1>&2
7232
7233 *** Warning: the command libtool uses to detect shared libraries,
7234 *** $file_magic_cmd, produces output that libtool cannot recognize.
7235 *** The result is that libtool may fail to recognize shared libraries
7236 *** as such. This will affect the creation of libtool libraries that
7237 *** depend on shared libraries, but programs linked with such libtool
7238 *** libraries will work regardless of this problem. Nevertheless, you
7239 *** may want to report the problem to your system manager and/or to
7240 *** bug-libtool@gnu.org
7241
7242 EOF
7243 fi ;;
7244 esac
7245 fi
7246 break
7247 fi
7248 done
7249 IFS="$lt_save_ifs"
7250 MAGIC_CMD="$lt_save_MAGIC_CMD"
7251 ;;
7252 esac
7253 fi
7254
7255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7256 if test -n "$MAGIC_CMD"; then
7257 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7258 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7259 else
7260 { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7262 fi
7263
7264 else
7265 MAGIC_CMD=:
7266 fi
7267 fi
7268
7269 fi
7270 ;;
7271 esac
7272
7273 enable_dlopen=no
7274 enable_win32_dll=no
7275
7276 # Check whether --enable-libtool-lock was given.
7277 if test "${enable_libtool_lock+set}" = set; then
7278 enableval=$enable_libtool_lock;
7279 fi
7280
7281 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7282
7283
7284 # Check whether --with-pic was given.
7285 if test "${with_pic+set}" = set; then
7286 withval=$with_pic; pic_mode="$withval"
7287 else
7288 pic_mode=default
7289 fi
7290
7291 test -z "$pic_mode" && pic_mode=default
7292
7293 # Use C for the default configuration in the libtool script
7294 tagname=
7295 lt_save_CC="$CC"
7296 ac_ext=c
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301
7302
7303 # Source file extension for C test sources.
7304 ac_ext=c
7305
7306 # Object file extension for compiled C test sources.
7307 objext=o
7308 objext=$objext
7309
7310 # Code to be used in simple compile tests
7311 lt_simple_compile_test_code="int some_variable = 0;"
7312
7313 # Code to be used in simple link tests
7314 lt_simple_link_test_code='int main(){return(0);}'
7315
7316
7317 # If no C compiler was specified, use CC.
7318 LTCC=${LTCC-"$CC"}
7319
7320 # If no C compiler flags were specified, use CFLAGS.
7321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7322
7323 # Allow CC to be a program name with arguments.
7324 compiler=$CC
7325
7326
7327 # save warnings/boilerplate of simple test code
7328 ac_outfile=conftest.$ac_objext
7329 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7330 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7331 _lt_compiler_boilerplate=`cat conftest.err`
7332 $rm conftest*
7333
7334 ac_outfile=conftest.$ac_objext
7335 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7336 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7337 _lt_linker_boilerplate=`cat conftest.err`
7338 $rm conftest*
7339
7340
7341
7342 lt_prog_compiler_no_builtin_flag=
7343
7344 if test "$GCC" = yes; then
7345 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7346
7347
7348 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7349 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7350 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 lt_cv_prog_compiler_rtti_exceptions=no
7354 ac_outfile=conftest.$ac_objext
7355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7356 lt_compiler_flag="-fno-rtti -fno-exceptions"
7357 # Insert the option either (1) after the last *FLAGS variable, or
7358 # (2) before a word containing "conftest.", or (3) at the end.
7359 # Note that $ac_compile itself does not contain backslashes and begins
7360 # with a dollar sign (not a hyphen), so the echo should work correctly.
7361 # The option is referenced via a variable to avoid confusing sed.
7362 lt_compile=`echo "$ac_compile" | $SED \
7363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7365 -e 's:$: $lt_compiler_flag:'`
7366 (eval echo "\"\$as_me:7366: $lt_compile\"" >&5)
7367 (eval "$lt_compile" 2>conftest.err)
7368 ac_status=$?
7369 cat conftest.err >&5
7370 echo "$as_me:7370: \$? = $ac_status" >&5
7371 if (exit $ac_status) && test -s "$ac_outfile"; then
7372 # The compiler can only warn and ignore the option if not recognized
7373 # So say no if there are warnings other than the usual output.
7374 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7377 lt_cv_prog_compiler_rtti_exceptions=yes
7378 fi
7379 fi
7380 $rm conftest*
7381
7382 fi
7383 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7384 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7385
7386 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7387 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7388 else
7389 :
7390 fi
7391
7392 fi
7393
7394 lt_prog_compiler_wl=
7395 lt_prog_compiler_pic=
7396 lt_prog_compiler_static=
7397
7398 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7399 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7400
7401 if test "$GCC" = yes; then
7402 lt_prog_compiler_wl='-Wl,'
7403 lt_prog_compiler_static='-static'
7404
7405 case $host_os in
7406 aix*)
7407 # All AIX code is PIC.
7408 if test "$host_cpu" = ia64; then
7409 # AIX 5 now supports IA64 processor
7410 lt_prog_compiler_static='-Bstatic'
7411 fi
7412 ;;
7413
7414 amigaos*)
7415 # FIXME: we need at least 68020 code to build shared libraries, but
7416 # adding the `-m68020' flag to GCC prevents building anything better,
7417 # like `-m68040'.
7418 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7419 ;;
7420
7421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7422 # PIC is the default for these OSes.
7423 ;;
7424
7425 mingw* | cygwin* | pw32* | os2*)
7426 # This hack is so that the source file can tell whether it is being
7427 # built for inclusion in a dll (and should export symbols for example).
7428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7429 # (--disable-auto-import) libraries
7430 lt_prog_compiler_pic='-DDLL_EXPORT'
7431 ;;
7432
7433 darwin* | rhapsody*)
7434 # PIC is the default on this platform
7435 # Common symbols not allowed in MH_DYLIB files
7436 lt_prog_compiler_pic='-fno-common'
7437 ;;
7438
7439 interix[3-9]*)
7440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7441 # Instead, we relocate shared libraries at runtime.
7442 ;;
7443
7444 msdosdjgpp*)
7445 # Just because we use GCC doesn't mean we suddenly get shared libraries
7446 # on systems that don't support them.
7447 lt_prog_compiler_can_build_shared=no
7448 enable_shared=no
7449 ;;
7450
7451 sysv4*MP*)
7452 if test -d /usr/nec; then
7453 lt_prog_compiler_pic=-Kconform_pic
7454 fi
7455 ;;
7456
7457 hpux*)
7458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7459 # not for PA HP-UX.
7460 case $host_cpu in
7461 hppa*64*|ia64*)
7462 # +Z the default
7463 ;;
7464 *)
7465 lt_prog_compiler_pic='-fPIC'
7466 ;;
7467 esac
7468 ;;
7469
7470 *)
7471 lt_prog_compiler_pic='-fPIC'
7472 ;;
7473 esac
7474 else
7475 # PORTME Check for flag to pass linker flags through the system compiler.
7476 case $host_os in
7477 aix*)
7478 lt_prog_compiler_wl='-Wl,'
7479 if test "$host_cpu" = ia64; then
7480 # AIX 5 now supports IA64 processor
7481 lt_prog_compiler_static='-Bstatic'
7482 else
7483 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7484 fi
7485 ;;
7486 darwin*)
7487 # PIC is the default on this platform
7488 # Common symbols not allowed in MH_DYLIB files
7489 case $cc_basename in
7490 xlc*)
7491 lt_prog_compiler_pic='-qnocommon'
7492 lt_prog_compiler_wl='-Wl,'
7493 ;;
7494 esac
7495 ;;
7496
7497 mingw* | cygwin* | pw32* | os2*)
7498 # This hack is so that the source file can tell whether it is being
7499 # built for inclusion in a dll (and should export symbols for example).
7500 lt_prog_compiler_pic='-DDLL_EXPORT'
7501 ;;
7502
7503 hpux9* | hpux10* | hpux11*)
7504 lt_prog_compiler_wl='-Wl,'
7505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7506 # not for PA HP-UX.
7507 case $host_cpu in
7508 hppa*64*|ia64*)
7509 # +Z the default
7510 ;;
7511 *)
7512 lt_prog_compiler_pic='+Z'
7513 ;;
7514 esac
7515 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7516 lt_prog_compiler_static='${wl}-a ${wl}archive'
7517 ;;
7518
7519 irix5* | irix6* | nonstopux*)
7520 lt_prog_compiler_wl='-Wl,'
7521 # PIC (with -KPIC) is the default.
7522 lt_prog_compiler_static='-non_shared'
7523 ;;
7524
7525 newsos6)
7526 lt_prog_compiler_pic='-KPIC'
7527 lt_prog_compiler_static='-Bstatic'
7528 ;;
7529
7530 linux* | k*bsd*-gnu)
7531 case $cc_basename in
7532 icc* | ecc*)
7533 lt_prog_compiler_wl='-Wl,'
7534 lt_prog_compiler_pic='-KPIC'
7535 lt_prog_compiler_static='-static'
7536 ;;
7537 pgcc* | pgf77* | pgf90* | pgf95*)
7538 # Portland Group compilers (*not* the Pentium gcc compiler,
7539 # which looks to be a dead project)
7540 lt_prog_compiler_wl='-Wl,'
7541 lt_prog_compiler_pic='-fpic'
7542 lt_prog_compiler_static='-Bstatic'
7543 ;;
7544 ccc*)
7545 lt_prog_compiler_wl='-Wl,'
7546 # All Alpha code is PIC.
7547 lt_prog_compiler_static='-non_shared'
7548 ;;
7549 *)
7550 case `$CC -V 2>&1 | sed 5q` in
7551 *Sun\ C*)
7552 # Sun C 5.9
7553 lt_prog_compiler_pic='-KPIC'
7554 lt_prog_compiler_static='-Bstatic'
7555 lt_prog_compiler_wl='-Wl,'
7556 ;;
7557 *Sun\ F*)
7558 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7559 lt_prog_compiler_pic='-KPIC'
7560 lt_prog_compiler_static='-Bstatic'
7561 lt_prog_compiler_wl=''
7562 ;;
7563 esac
7564 ;;
7565 esac
7566 ;;
7567
7568 osf3* | osf4* | osf5*)
7569 lt_prog_compiler_wl='-Wl,'
7570 # All OSF/1 code is PIC.
7571 lt_prog_compiler_static='-non_shared'
7572 ;;
7573
7574 rdos*)
7575 lt_prog_compiler_static='-non_shared'
7576 ;;
7577
7578 solaris*)
7579 lt_prog_compiler_pic='-KPIC'
7580 lt_prog_compiler_static='-Bstatic'
7581 case $cc_basename in
7582 f77* | f90* | f95*)
7583 lt_prog_compiler_wl='-Qoption ld ';;
7584 *)
7585 lt_prog_compiler_wl='-Wl,';;
7586 esac
7587 ;;
7588
7589 sunos4*)
7590 lt_prog_compiler_wl='-Qoption ld '
7591 lt_prog_compiler_pic='-PIC'
7592 lt_prog_compiler_static='-Bstatic'
7593 ;;
7594
7595 sysv4 | sysv4.2uw2* | sysv4.3*)
7596 lt_prog_compiler_wl='-Wl,'
7597 lt_prog_compiler_pic='-KPIC'
7598 lt_prog_compiler_static='-Bstatic'
7599 ;;
7600
7601 sysv4*MP*)
7602 if test -d /usr/nec ;then
7603 lt_prog_compiler_pic='-Kconform_pic'
7604 lt_prog_compiler_static='-Bstatic'
7605 fi
7606 ;;
7607
7608 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7609 lt_prog_compiler_wl='-Wl,'
7610 lt_prog_compiler_pic='-KPIC'
7611 lt_prog_compiler_static='-Bstatic'
7612 ;;
7613
7614 unicos*)
7615 lt_prog_compiler_wl='-Wl,'
7616 lt_prog_compiler_can_build_shared=no
7617 ;;
7618
7619 uts4*)
7620 lt_prog_compiler_pic='-pic'
7621 lt_prog_compiler_static='-Bstatic'
7622 ;;
7623
7624 *)
7625 lt_prog_compiler_can_build_shared=no
7626 ;;
7627 esac
7628 fi
7629
7630 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7631 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7632
7633 #
7634 # Check to make sure the PIC flag actually works.
7635 #
7636 if test -n "$lt_prog_compiler_pic"; then
7637
7638 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7640 if test "${lt_prog_compiler_pic_works+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643 lt_prog_compiler_pic_works=no
7644 ac_outfile=conftest.$ac_objext
7645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7646 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7647 # Insert the option either (1) after the last *FLAGS variable, or
7648 # (2) before a word containing "conftest.", or (3) at the end.
7649 # Note that $ac_compile itself does not contain backslashes and begins
7650 # with a dollar sign (not a hyphen), so the echo should work correctly.
7651 # The option is referenced via a variable to avoid confusing sed.
7652 lt_compile=`echo "$ac_compile" | $SED \
7653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7655 -e 's:$: $lt_compiler_flag:'`
7656 (eval echo "\"\$as_me:7656: $lt_compile\"" >&5)
7657 (eval "$lt_compile" 2>conftest.err)
7658 ac_status=$?
7659 cat conftest.err >&5
7660 echo "$as_me:7660: \$? = $ac_status" >&5
7661 if (exit $ac_status) && test -s "$ac_outfile"; then
7662 # The compiler can only warn and ignore the option if not recognized
7663 # So say no if there are warnings other than the usual output.
7664 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7667 lt_prog_compiler_pic_works=yes
7668 fi
7669 fi
7670 $rm conftest*
7671
7672 fi
7673 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7674 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7675
7676 if test x"$lt_prog_compiler_pic_works" = xyes; then
7677 case $lt_prog_compiler_pic in
7678 "" | " "*) ;;
7679 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7680 esac
7681 else
7682 lt_prog_compiler_pic=
7683 lt_prog_compiler_can_build_shared=no
7684 fi
7685
7686 fi
7687 case $host_os in
7688 # For platforms which do not support PIC, -DPIC is meaningless:
7689 *djgpp*)
7690 lt_prog_compiler_pic=
7691 ;;
7692 *)
7693 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7694 ;;
7695 esac
7696
7697 #
7698 # Check to make sure the static flag actually works.
7699 #
7700 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7701 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7702 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7703 if test "${lt_prog_compiler_static_works+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 lt_prog_compiler_static_works=no
7707 save_LDFLAGS="$LDFLAGS"
7708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7711 # The linker can only warn and ignore the option if not recognized
7712 # So say no if there are warnings
7713 if test -s conftest.err; then
7714 # Append any errors to the config.log.
7715 cat conftest.err 1>&5
7716 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7718 if diff conftest.exp conftest.er2 >/dev/null; then
7719 lt_prog_compiler_static_works=yes
7720 fi
7721 else
7722 lt_prog_compiler_static_works=yes
7723 fi
7724 fi
7725 $rm conftest*
7726 LDFLAGS="$save_LDFLAGS"
7727
7728 fi
7729 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7730 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7731
7732 if test x"$lt_prog_compiler_static_works" = xyes; then
7733 :
7734 else
7735 lt_prog_compiler_static=
7736 fi
7737
7738
7739 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7741 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 lt_cv_prog_compiler_c_o=no
7745 $rm -r conftest 2>/dev/null
7746 mkdir conftest
7747 cd conftest
7748 mkdir out
7749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7750
7751 lt_compiler_flag="-o out/conftest2.$ac_objext"
7752 # Insert the option either (1) after the last *FLAGS variable, or
7753 # (2) before a word containing "conftest.", or (3) at the end.
7754 # Note that $ac_compile itself does not contain backslashes and begins
7755 # with a dollar sign (not a hyphen), so the echo should work correctly.
7756 lt_compile=`echo "$ac_compile" | $SED \
7757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7759 -e 's:$: $lt_compiler_flag:'`
7760 (eval echo "\"\$as_me:7760: $lt_compile\"" >&5)
7761 (eval "$lt_compile" 2>out/conftest.err)
7762 ac_status=$?
7763 cat out/conftest.err >&5
7764 echo "$as_me:7764: \$? = $ac_status" >&5
7765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7766 then
7767 # The compiler can only warn and ignore the option if not recognized
7768 # So say no if there are warnings
7769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7772 lt_cv_prog_compiler_c_o=yes
7773 fi
7774 fi
7775 chmod u+w . 2>&5
7776 $rm conftest*
7777 # SGI C++ compiler will create directory out/ii_files/ for
7778 # template instantiation
7779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7780 $rm out/* && rmdir out
7781 cd ..
7782 rmdir conftest
7783 $rm conftest*
7784
7785 fi
7786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7787 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7788
7789
7790 hard_links="nottested"
7791 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7792 # do not overwrite the value of need_locks provided by the user
7793 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7794 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7795 hard_links=yes
7796 $rm conftest*
7797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7798 touch conftest.a
7799 ln conftest.a conftest.b 2>&5 || hard_links=no
7800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7801 { echo "$as_me:$LINENO: result: $hard_links" >&5
7802 echo "${ECHO_T}$hard_links" >&6; }
7803 if test "$hard_links" = no; then
7804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7805 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7806 need_locks=warn
7807 fi
7808 else
7809 need_locks=no
7810 fi
7811
7812 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7814
7815 runpath_var=
7816 allow_undefined_flag=
7817 enable_shared_with_static_runtimes=no
7818 archive_cmds=
7819 archive_expsym_cmds=
7820 old_archive_From_new_cmds=
7821 old_archive_from_expsyms_cmds=
7822 export_dynamic_flag_spec=
7823 whole_archive_flag_spec=
7824 thread_safe_flag_spec=
7825 hardcode_libdir_flag_spec=
7826 hardcode_libdir_flag_spec_ld=
7827 hardcode_libdir_separator=
7828 hardcode_direct=no
7829 hardcode_minus_L=no
7830 hardcode_shlibpath_var=unsupported
7831 link_all_deplibs=unknown
7832 hardcode_automatic=no
7833 module_cmds=
7834 module_expsym_cmds=
7835 always_export_symbols=no
7836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7837 # include_expsyms should be a list of space-separated symbols to be *always*
7838 # included in the symbol list
7839 include_expsyms=
7840 # exclude_expsyms can be an extended regexp of symbols to exclude
7841 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7842 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7843 # as well as any symbol that contains `d'.
7844 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7845 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7846 # platforms (ab)use it in PIC code, but their linkers get confused if
7847 # the symbol is explicitly referenced. Since portable code cannot
7848 # rely on this symbol name, it's probably fine to never include it in
7849 # preloaded symbol tables.
7850 extract_expsyms_cmds=
7851 # Just being paranoid about ensuring that cc_basename is set.
7852 for cc_temp in $compiler""; do
7853 case $cc_temp in
7854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7856 \-*) ;;
7857 *) break;;
7858 esac
7859 done
7860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7861
7862 case $host_os in
7863 cygwin* | mingw* | pw32*)
7864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7865 # When not using gcc, we currently assume that we are using
7866 # Microsoft Visual C++.
7867 if test "$GCC" != yes; then
7868 with_gnu_ld=no
7869 fi
7870 ;;
7871 interix*)
7872 # we just hope/assume this is gcc and not c89 (= MSVC++)
7873 with_gnu_ld=yes
7874 ;;
7875 openbsd*)
7876 with_gnu_ld=no
7877 ;;
7878 esac
7879
7880 ld_shlibs=yes
7881 if test "$with_gnu_ld" = yes; then
7882 # If archive_cmds runs LD, not CC, wlarc should be empty
7883 wlarc='${wl}'
7884
7885 # Set some defaults for GNU ld with shared library support. These
7886 # are reset later if shared libraries are not supported. Putting them
7887 # here allows them to be overridden if necessary.
7888 runpath_var=LD_RUN_PATH
7889 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7890 export_dynamic_flag_spec='${wl}--export-dynamic'
7891 # ancient GNU ld didn't support --whole-archive et. al.
7892 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7893 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7894 else
7895 whole_archive_flag_spec=
7896 fi
7897 supports_anon_versioning=no
7898 case `$LD -v 2>/dev/null` in
7899 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7900 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7901 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7902 *\ 2.11.*) ;; # other 2.11 versions
7903 *) supports_anon_versioning=yes ;;
7904 esac
7905
7906 # See if GNU ld supports shared libraries.
7907 case $host_os in
7908 aix3* | aix4* | aix5*)
7909 # On AIX/PPC, the GNU linker is very broken
7910 if test "$host_cpu" != ia64; then
7911 ld_shlibs=no
7912 cat <<EOF 1>&2
7913
7914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7915 *** to be unable to reliably create shared libraries on AIX.
7916 *** Therefore, libtool is disabling shared libraries support. If you
7917 *** really care for shared libraries, you may want to modify your PATH
7918 *** so that a non-GNU linker is found, and then restart.
7919
7920 EOF
7921 fi
7922 ;;
7923
7924 amigaos*)
7925 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)'
7926 hardcode_libdir_flag_spec='-L$libdir'
7927 hardcode_minus_L=yes
7928
7929 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7930 # that the semantics of dynamic libraries on AmigaOS, at least up
7931 # to version 4, is to share data among multiple programs linked
7932 # with the same dynamic library. Since this doesn't match the
7933 # behavior of shared libraries on other platforms, we can't use
7934 # them.
7935 ld_shlibs=no
7936 ;;
7937
7938 beos*)
7939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7940 allow_undefined_flag=unsupported
7941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7942 # support --undefined. This deserves some investigation. FIXME
7943 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944 else
7945 ld_shlibs=no
7946 fi
7947 ;;
7948
7949 cygwin* | mingw* | pw32*)
7950 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7951 # as there is no search path for DLLs.
7952 hardcode_libdir_flag_spec='-L$libdir'
7953 allow_undefined_flag=unsupported
7954 always_export_symbols=no
7955 enable_shared_with_static_runtimes=yes
7956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7957
7958 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7960 # If the export-symbols file already is a .def file (1st line
7961 # is EXPORTS), use it as is; otherwise, prepend...
7962 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7963 cp $export_symbols $output_objdir/$soname.def;
7964 else
7965 echo EXPORTS > $output_objdir/$soname.def;
7966 cat $export_symbols >> $output_objdir/$soname.def;
7967 fi~
7968 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7969 else
7970 ld_shlibs=no
7971 fi
7972 ;;
7973
7974 interix[3-9]*)
7975 hardcode_direct=no
7976 hardcode_shlibpath_var=no
7977 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7978 export_dynamic_flag_spec='${wl}-E'
7979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7980 # Instead, shared libraries are loaded at an image base (0x10000000 by
7981 # default) and relocated if they conflict, which is a slow very memory
7982 # consuming and fragmenting process. To avoid this, we pick a random,
7983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7984 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7986 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'
7987 ;;
7988
7989 gnu* | linux* | k*bsd*-gnu)
7990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7991 tmp_addflag=
7992 case $cc_basename,$host_cpu in
7993 pgcc*) # Portland Group C compiler
7994 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'
7995 tmp_addflag=' $pic_flag'
7996 ;;
7997 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7998 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'
7999 tmp_addflag=' $pic_flag -Mnomain' ;;
8000 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8001 tmp_addflag=' -i_dynamic' ;;
8002 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8003 tmp_addflag=' -i_dynamic -nofor_main' ;;
8004 ifc* | ifort*) # Intel Fortran compiler
8005 tmp_addflag=' -nofor_main' ;;
8006 esac
8007 case `$CC -V 2>&1 | sed 5q` in
8008 *Sun\ C*) # Sun C 5.9
8009 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'
8010 tmp_sharedflag='-G' ;;
8011 *Sun\ F*) # Sun Fortran 8.3
8012 tmp_sharedflag='-G' ;;
8013 *)
8014 tmp_sharedflag='-shared' ;;
8015 esac
8016 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8017
8018 if test $supports_anon_versioning = yes; then
8019 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8021 $echo "local: *; };" >> $output_objdir/$libname.ver~
8022 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8023 fi
8024 else
8025 ld_shlibs=no
8026 fi
8027 ;;
8028
8029 netbsd*)
8030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8031 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8032 wlarc=
8033 else
8034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8036 fi
8037 ;;
8038
8039 solaris*)
8040 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8041 ld_shlibs=no
8042 cat <<EOF 1>&2
8043
8044 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8045 *** create shared libraries on Solaris systems. Therefore, libtool
8046 *** is disabling shared libraries support. We urge you to upgrade GNU
8047 *** binutils to release 2.9.1 or newer. Another option is to modify
8048 *** your PATH or compiler configuration so that the native linker is
8049 *** used, and then restart.
8050
8051 EOF
8052 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8055 else
8056 ld_shlibs=no
8057 fi
8058 ;;
8059
8060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8061 case `$LD -v 2>&1` in
8062 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8063 ld_shlibs=no
8064 cat <<_LT_EOF 1>&2
8065
8066 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8067 *** reliably create shared libraries on SCO systems. Therefore, libtool
8068 *** is disabling shared libraries support. We urge you to upgrade GNU
8069 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8070 *** your PATH or compiler configuration so that the native linker is
8071 *** used, and then restart.
8072
8073 _LT_EOF
8074 ;;
8075 *)
8076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8077 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8080 else
8081 ld_shlibs=no
8082 fi
8083 ;;
8084 esac
8085 ;;
8086
8087 sunos4*)
8088 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8089 wlarc=
8090 hardcode_direct=yes
8091 hardcode_shlibpath_var=no
8092 ;;
8093
8094 *)
8095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8098 else
8099 ld_shlibs=no
8100 fi
8101 ;;
8102 esac
8103
8104 if test "$ld_shlibs" = no; then
8105 runpath_var=
8106 hardcode_libdir_flag_spec=
8107 export_dynamic_flag_spec=
8108 whole_archive_flag_spec=
8109 fi
8110 else
8111 # PORTME fill in a description of your system's linker (not GNU ld)
8112 case $host_os in
8113 aix3*)
8114 allow_undefined_flag=unsupported
8115 always_export_symbols=yes
8116 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'
8117 # Note: this linker hardcodes the directories in LIBPATH if there
8118 # are no directories specified by -L.
8119 hardcode_minus_L=yes
8120 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8121 # Neither direct hardcoding nor static linking is supported with a
8122 # broken collect2.
8123 hardcode_direct=unsupported
8124 fi
8125 ;;
8126
8127 aix4* | aix5*)
8128 if test "$host_cpu" = ia64; then
8129 # On IA64, the linker does run time linking by default, so we don't
8130 # have to do anything special.
8131 aix_use_runtimelinking=no
8132 exp_sym_flag='-Bexport'
8133 no_entry_flag=""
8134 else
8135 # If we're using GNU nm, then we don't want the "-C" option.
8136 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8137 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8138 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'
8139 else
8140 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'
8141 fi
8142 aix_use_runtimelinking=no
8143
8144 # Test if we are trying to use run time linking or normal
8145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8146 # need to do runtime linking.
8147 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8148 for ld_flag in $LDFLAGS; do
8149 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8150 aix_use_runtimelinking=yes
8151 break
8152 fi
8153 done
8154 ;;
8155 esac
8156
8157 exp_sym_flag='-bexport'
8158 no_entry_flag='-bnoentry'
8159 fi
8160
8161 # When large executables or shared objects are built, AIX ld can
8162 # have problems creating the table of contents. If linking a library
8163 # or program results in "error TOC overflow" add -mminimal-toc to
8164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8166
8167 archive_cmds=''
8168 hardcode_direct=yes
8169 hardcode_libdir_separator=':'
8170 link_all_deplibs=yes
8171
8172 if test "$GCC" = yes; then
8173 case $host_os in aix4.[012]|aix4.[012].*)
8174 # We only want to do this on AIX 4.2 and lower, the check
8175 # below for broken collect2 doesn't work under 4.3+
8176 collect2name=`${CC} -print-prog-name=collect2`
8177 if test -f "$collect2name" && \
8178 strings "$collect2name" | grep resolve_lib_name >/dev/null
8179 then
8180 # We have reworked collect2
8181 :
8182 else
8183 # We have old collect2
8184 hardcode_direct=unsupported
8185 # It fails to find uninstalled libraries when the uninstalled
8186 # path is not listed in the libpath. Setting hardcode_minus_L
8187 # to unsupported forces relinking
8188 hardcode_minus_L=yes
8189 hardcode_libdir_flag_spec='-L$libdir'
8190 hardcode_libdir_separator=
8191 fi
8192 ;;
8193 esac
8194 shared_flag='-shared'
8195 if test "$aix_use_runtimelinking" = yes; then
8196 shared_flag="$shared_flag "'${wl}-G'
8197 fi
8198 else
8199 # not using gcc
8200 if test "$host_cpu" = ia64; then
8201 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8202 # chokes on -Wl,-G. The following line is correct:
8203 shared_flag='-G'
8204 else
8205 if test "$aix_use_runtimelinking" = yes; then
8206 shared_flag='${wl}-G'
8207 else
8208 shared_flag='${wl}-bM:SRE'
8209 fi
8210 fi
8211 fi
8212
8213 # It seems that -bexpall does not export symbols beginning with
8214 # underscore (_), so it is better to generate a list of symbols to export.
8215 always_export_symbols=yes
8216 if test "$aix_use_runtimelinking" = yes; then
8217 # Warning - without using the other runtime loading flags (-brtl),
8218 # -berok will link without error, but may produce a broken library.
8219 allow_undefined_flag='-berok'
8220 # Determine the default libpath from the value encoded in an empty executable.
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227
8228 int
8229 main ()
8230 {
8231
8232 ;
8233 return 0;
8234 }
8235 _ACEOF
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (ac_try="$ac_link"
8238 case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8241 esac
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_link") 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } && {
8250 test -z "$ac_c_werror_flag" ||
8251 test ! -s conftest.err
8252 } && test -s conftest$ac_exeext &&
8253 $as_test_x conftest$ac_exeext; then
8254
8255 lt_aix_libpath_sed='
8256 /Import File Strings/,/^$/ {
8257 /^0/ {
8258 s/^0 *\(.*\)$/\1/
8259 p
8260 }
8261 }'
8262 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8263 # Check for a 64-bit object if we didn't find anything.
8264 if test -z "$aix_libpath"; then
8265 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8266 fi
8267 else
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271
8272 fi
8273
8274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8275 conftest$ac_exeext conftest.$ac_ext
8276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8277
8278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8279 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"
8280 else
8281 if test "$host_cpu" = ia64; then
8282 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8283 allow_undefined_flag="-z nodefs"
8284 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"
8285 else
8286 # Determine the default libpath from the value encoded in an empty executable.
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293
8294 int
8295 main ()
8296 {
8297
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8304 case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_link") 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest$ac_exeext &&
8319 $as_test_x conftest$ac_exeext; then
8320
8321 lt_aix_libpath_sed='
8322 /Import File Strings/,/^$/ {
8323 /^0/ {
8324 s/^0 *\(.*\)$/\1/
8325 p
8326 }
8327 }'
8328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8329 # Check for a 64-bit object if we didn't find anything.
8330 if test -z "$aix_libpath"; then
8331 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8332 fi
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337
8338 fi
8339
8340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8341 conftest$ac_exeext conftest.$ac_ext
8342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8343
8344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8345 # Warning - without using the other run time loading flags,
8346 # -berok will link without error, but may produce a broken library.
8347 no_undefined_flag=' ${wl}-bernotok'
8348 allow_undefined_flag=' ${wl}-berok'
8349 # Exported symbols can be pulled into shared objects from archives
8350 whole_archive_flag_spec='$convenience'
8351 archive_cmds_need_lc=yes
8352 # This is similar to how AIX traditionally builds its shared libraries.
8353 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'
8354 fi
8355 fi
8356 ;;
8357
8358 amigaos*)
8359 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)'
8360 hardcode_libdir_flag_spec='-L$libdir'
8361 hardcode_minus_L=yes
8362 # see comment about different semantics on the GNU ld section
8363 ld_shlibs=no
8364 ;;
8365
8366 bsdi[45]*)
8367 export_dynamic_flag_spec=-rdynamic
8368 ;;
8369
8370 cygwin* | mingw* | pw32*)
8371 # When not using gcc, we currently assume that we are using
8372 # Microsoft Visual C++.
8373 # hardcode_libdir_flag_spec is actually meaningless, as there is
8374 # no search path for DLLs.
8375 hardcode_libdir_flag_spec=' '
8376 allow_undefined_flag=unsupported
8377 # Tell ltmain to make .lib files, not .a files.
8378 libext=lib
8379 # Tell ltmain to make .dll files, not .so files.
8380 shrext_cmds=".dll"
8381 # FIXME: Setting linknames here is a bad hack.
8382 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8383 # The linker will automatically build a .lib file if we build a DLL.
8384 old_archive_From_new_cmds='true'
8385 # FIXME: Should let the user specify the lib program.
8386 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8387 fix_srcfile_path='`cygpath -w "$srcfile"`'
8388 enable_shared_with_static_runtimes=yes
8389 ;;
8390
8391 darwin* | rhapsody*)
8392 case $host_os in
8393 rhapsody* | darwin1.[012])
8394 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8395 ;;
8396 *) # Darwin 1.3 on
8397 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8398 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8399 else
8400 case ${MACOSX_DEPLOYMENT_TARGET} in
8401 10.[012])
8402 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8403 ;;
8404 10.*)
8405 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8406 ;;
8407 esac
8408 fi
8409 ;;
8410 esac
8411 archive_cmds_need_lc=no
8412 hardcode_direct=no
8413 hardcode_automatic=yes
8414 hardcode_shlibpath_var=unsupported
8415 whole_archive_flag_spec=''
8416 link_all_deplibs=yes
8417 if test "$GCC" = yes ; then
8418 output_verbose_link_cmd='echo'
8419 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8420 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8421 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8422 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}'
8423 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}'
8424 else
8425 case $cc_basename in
8426 xlc*)
8427 output_verbose_link_cmd='echo'
8428 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8429 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8431 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}'
8432 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}'
8433 ;;
8434 *)
8435 ld_shlibs=no
8436 ;;
8437 esac
8438 fi
8439 ;;
8440
8441 dgux*)
8442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8443 hardcode_libdir_flag_spec='-L$libdir'
8444 hardcode_shlibpath_var=no
8445 ;;
8446
8447 freebsd1*)
8448 ld_shlibs=no
8449 ;;
8450
8451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8452 # support. Future versions do this automatically, but an explicit c++rt0.o
8453 # does not break anything, and helps significantly (at the cost of a little
8454 # extra space).
8455 freebsd2.2*)
8456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8457 hardcode_libdir_flag_spec='-R$libdir'
8458 hardcode_direct=yes
8459 hardcode_shlibpath_var=no
8460 ;;
8461
8462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8463 freebsd2*)
8464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8465 hardcode_direct=yes
8466 hardcode_minus_L=yes
8467 hardcode_shlibpath_var=no
8468 ;;
8469
8470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8471 freebsd* | dragonfly*)
8472 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8473 hardcode_libdir_flag_spec='-R$libdir'
8474 hardcode_direct=yes
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 hpux9*)
8479 if test "$GCC" = yes; then
8480 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'
8481 else
8482 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'
8483 fi
8484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8485 hardcode_libdir_separator=:
8486 hardcode_direct=yes
8487
8488 # hardcode_minus_L: Not really in the search PATH,
8489 # but as the default location of the library.
8490 hardcode_minus_L=yes
8491 export_dynamic_flag_spec='${wl}-E'
8492 ;;
8493
8494 hpux10*)
8495 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8496 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8497 else
8498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8499 fi
8500 if test "$with_gnu_ld" = no; then
8501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8502 hardcode_libdir_separator=:
8503
8504 hardcode_direct=yes
8505 export_dynamic_flag_spec='${wl}-E'
8506
8507 # hardcode_minus_L: Not really in the search PATH,
8508 # but as the default location of the library.
8509 hardcode_minus_L=yes
8510 fi
8511 ;;
8512
8513 hpux11*)
8514 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8515 case $host_cpu in
8516 hppa*64*)
8517 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8518 ;;
8519 ia64*)
8520 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8521 ;;
8522 *)
8523 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8524 ;;
8525 esac
8526 else
8527 case $host_cpu in
8528 hppa*64*)
8529 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 ;;
8531 ia64*)
8532 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8533 ;;
8534 *)
8535 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8536 ;;
8537 esac
8538 fi
8539 if test "$with_gnu_ld" = no; then
8540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8541 hardcode_libdir_separator=:
8542
8543 case $host_cpu in
8544 hppa*64*|ia64*)
8545 hardcode_libdir_flag_spec_ld='+b $libdir'
8546 hardcode_direct=no
8547 hardcode_shlibpath_var=no
8548 ;;
8549 *)
8550 hardcode_direct=yes
8551 export_dynamic_flag_spec='${wl}-E'
8552
8553 # hardcode_minus_L: Not really in the search PATH,
8554 # but as the default location of the library.
8555 hardcode_minus_L=yes
8556 ;;
8557 esac
8558 fi
8559 ;;
8560
8561 irix5* | irix6* | nonstopux*)
8562 if test "$GCC" = yes; then
8563 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'
8564 else
8565 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'
8566 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8567 fi
8568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8569 hardcode_libdir_separator=:
8570 link_all_deplibs=yes
8571 ;;
8572
8573 netbsd*)
8574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8576 else
8577 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8578 fi
8579 hardcode_libdir_flag_spec='-R$libdir'
8580 hardcode_direct=yes
8581 hardcode_shlibpath_var=no
8582 ;;
8583
8584 newsos6)
8585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8586 hardcode_direct=yes
8587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8588 hardcode_libdir_separator=:
8589 hardcode_shlibpath_var=no
8590 ;;
8591
8592 openbsd*)
8593 if test -f /usr/libexec/ld.so; then
8594 hardcode_direct=yes
8595 hardcode_shlibpath_var=no
8596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8599 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8600 export_dynamic_flag_spec='${wl}-E'
8601 else
8602 case $host_os in
8603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8605 hardcode_libdir_flag_spec='-R$libdir'
8606 ;;
8607 *)
8608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8610 ;;
8611 esac
8612 fi
8613 else
8614 ld_shlibs=no
8615 fi
8616 ;;
8617
8618 os2*)
8619 hardcode_libdir_flag_spec='-L$libdir'
8620 hardcode_minus_L=yes
8621 allow_undefined_flag=unsupported
8622 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'
8623 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8624 ;;
8625
8626 osf3*)
8627 if test "$GCC" = yes; then
8628 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8629 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'
8630 else
8631 allow_undefined_flag=' -expect_unresolved \*'
8632 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'
8633 fi
8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635 hardcode_libdir_separator=:
8636 ;;
8637
8638 osf4* | osf5*) # as osf3* with the addition of -msym flag
8639 if test "$GCC" = yes; then
8640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8641 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'
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 else
8644 allow_undefined_flag=' -expect_unresolved \*'
8645 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'
8646 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8647 $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'
8648
8649 # Both c and cxx compiler support -rpath directly
8650 hardcode_libdir_flag_spec='-rpath $libdir'
8651 fi
8652 hardcode_libdir_separator=:
8653 ;;
8654
8655 solaris*)
8656 no_undefined_flag=' -z text'
8657 if test "$GCC" = yes; then
8658 wlarc='${wl}'
8659 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8661 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8662 else
8663 wlarc=''
8664 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8667 fi
8668 hardcode_libdir_flag_spec='-R$libdir'
8669 hardcode_shlibpath_var=no
8670 case $host_os in
8671 solaris2.[0-5] | solaris2.[0-5].*) ;;
8672 *)
8673 # The compiler driver will combine and reorder linker options,
8674 # but understands `-z linker_flag'. GCC discards it without `$wl',
8675 # but is careful enough not to reorder.
8676 # Supported since Solaris 2.6 (maybe 2.5.1?)
8677 if test "$GCC" = yes; then
8678 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8679 else
8680 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8681 fi
8682 ;;
8683 esac
8684 link_all_deplibs=yes
8685 ;;
8686
8687 sunos4*)
8688 if test "x$host_vendor" = xsequent; then
8689 # Use $CC to link under sequent, because it throws in some extra .o
8690 # files that make .init and .fini sections work.
8691 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8692 else
8693 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8694 fi
8695 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_direct=yes
8697 hardcode_minus_L=yes
8698 hardcode_shlibpath_var=no
8699 ;;
8700
8701 sysv4)
8702 case $host_vendor in
8703 sni)
8704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705 hardcode_direct=yes # is this really true???
8706 ;;
8707 siemens)
8708 ## LD is ld it makes a PLAMLIB
8709 ## CC just makes a GrossModule.
8710 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8711 reload_cmds='$CC -r -o $output$reload_objs'
8712 hardcode_direct=no
8713 ;;
8714 motorola)
8715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8717 ;;
8718 esac
8719 runpath_var='LD_RUN_PATH'
8720 hardcode_shlibpath_var=no
8721 ;;
8722
8723 sysv4.3*)
8724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725 hardcode_shlibpath_var=no
8726 export_dynamic_flag_spec='-Bexport'
8727 ;;
8728
8729 sysv4*MP*)
8730 if test -d /usr/nec; then
8731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732 hardcode_shlibpath_var=no
8733 runpath_var=LD_RUN_PATH
8734 hardcode_runpath_var=yes
8735 ld_shlibs=yes
8736 fi
8737 ;;
8738
8739 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8740 no_undefined_flag='${wl}-z,text'
8741 archive_cmds_need_lc=no
8742 hardcode_shlibpath_var=no
8743 runpath_var='LD_RUN_PATH'
8744
8745 if test "$GCC" = yes; then
8746 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748 else
8749 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751 fi
8752 ;;
8753
8754 sysv5* | sco3.2v5* | sco5v6*)
8755 # Note: We can NOT use -z defs as we might desire, because we do not
8756 # link with -lc, and that would cause any symbols used from libc to
8757 # always be unresolved, which means just about no library would
8758 # ever link correctly. If we're not using GNU ld we use -z text
8759 # though, which does catch some bad symbols but isn't as heavy-handed
8760 # as -z defs.
8761 no_undefined_flag='${wl}-z,text'
8762 allow_undefined_flag='${wl}-z,nodefs'
8763 archive_cmds_need_lc=no
8764 hardcode_shlibpath_var=no
8765 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8766 hardcode_libdir_separator=':'
8767 link_all_deplibs=yes
8768 export_dynamic_flag_spec='${wl}-Bexport'
8769 runpath_var='LD_RUN_PATH'
8770
8771 if test "$GCC" = yes; then
8772 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774 else
8775 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 fi
8778 ;;
8779
8780 uts4*)
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_libdir_flag_spec='-L$libdir'
8783 hardcode_shlibpath_var=no
8784 ;;
8785
8786 *)
8787 ld_shlibs=no
8788 ;;
8789 esac
8790 fi
8791
8792 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8793 echo "${ECHO_T}$ld_shlibs" >&6; }
8794 test "$ld_shlibs" = no && can_build_shared=no
8795
8796 #
8797 # Do we need to explicitly link libc?
8798 #
8799 case "x$archive_cmds_need_lc" in
8800 x|xyes)
8801 # Assume -lc should be added
8802 archive_cmds_need_lc=yes
8803
8804 if test "$enable_shared" = yes && test "$GCC" = yes; then
8805 case $archive_cmds in
8806 *'~'*)
8807 # FIXME: we may have to deal with multi-command sequences.
8808 ;;
8809 '$CC '*)
8810 # Test whether the compiler implicitly links with -lc since on some
8811 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8812 # to ld, don't add -lc before -lgcc.
8813 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8814 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8815 $rm conftest*
8816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8817
8818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } 2>conftest.err; then
8823 soname=conftest
8824 lib=conftest
8825 libobjs=conftest.$ac_objext
8826 deplibs=
8827 wl=$lt_prog_compiler_wl
8828 pic_flag=$lt_prog_compiler_pic
8829 compiler_flags=-v
8830 linker_flags=-v
8831 verstring=
8832 output_objdir=.
8833 libname=conftest
8834 lt_save_allow_undefined_flag=$allow_undefined_flag
8835 allow_undefined_flag=
8836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8837 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }
8841 then
8842 archive_cmds_need_lc=no
8843 else
8844 archive_cmds_need_lc=yes
8845 fi
8846 allow_undefined_flag=$lt_save_allow_undefined_flag
8847 else
8848 cat conftest.err 1>&5
8849 fi
8850 $rm conftest*
8851 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8852 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8853 ;;
8854 esac
8855 fi
8856 ;;
8857 esac
8858
8859 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8861 library_names_spec=
8862 libname_spec='lib$name'
8863 soname_spec=
8864 shrext_cmds=".so"
8865 postinstall_cmds=
8866 postuninstall_cmds=
8867 finish_cmds=
8868 finish_eval=
8869 shlibpath_var=
8870 shlibpath_overrides_runpath=unknown
8871 version_type=none
8872 dynamic_linker="$host_os ld.so"
8873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8874
8875 if test "$GCC" = yes; then
8876 case $host_os in
8877 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8878 *) lt_awk_arg="/^libraries:/" ;;
8879 esac
8880 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8882 # if the path contains ";" then we assume it to be the separator
8883 # otherwise default to the standard path separator (i.e. ":") - it is
8884 # assumed that no part of a normal pathname contains ";" but that should
8885 # okay in the real world where ";" in dirpaths is itself problematic.
8886 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8887 else
8888 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8889 fi
8890 # Ok, now we have the path, separated by spaces, we can step through it
8891 # and add multilib dir if necessary.
8892 lt_tmp_lt_search_path_spec=
8893 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8894 for lt_sys_path in $lt_search_path_spec; do
8895 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8897 else
8898 test -d "$lt_sys_path" && \
8899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8900 fi
8901 done
8902 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8903 BEGIN {RS=" "; FS="/|\n";} {
8904 lt_foo="";
8905 lt_count=0;
8906 for (lt_i = NF; lt_i > 0; lt_i--) {
8907 if ($lt_i != "" && $lt_i != ".") {
8908 if ($lt_i == "..") {
8909 lt_count++;
8910 } else {
8911 if (lt_count == 0) {
8912 lt_foo="/" $lt_i lt_foo;
8913 } else {
8914 lt_count--;
8915 }
8916 }
8917 }
8918 }
8919 if (lt_foo != "") { lt_freq[lt_foo]++; }
8920 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8921 }'`
8922 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8923 else
8924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8925 fi
8926 need_lib_prefix=unknown
8927 hardcode_into_libs=no
8928
8929 # when you set need_version to no, make sure it does not cause -set_version
8930 # flags to be left without arguments
8931 need_version=unknown
8932
8933 case $host_os in
8934 aix3*)
8935 version_type=linux
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8937 shlibpath_var=LIBPATH
8938
8939 # AIX 3 has no versioning support, so we append a major version to the name.
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 ;;
8942
8943 aix4* | aix5*)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 hardcode_into_libs=yes
8948 if test "$host_cpu" = ia64; then
8949 # AIX 5 supports IA64
8950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 else
8953 # With GCC up to 2.95.x, collect2 would create an import file
8954 # for dependence libraries. The import file would start with
8955 # the line `#! .'. This would cause the generated library to
8956 # depend on `.', always an invalid library. This was fixed in
8957 # development snapshots of GCC prior to 3.0.
8958 case $host_os in
8959 aix4 | aix4.[01] | aix4.[01].*)
8960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8961 echo ' yes '
8962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8963 :
8964 else
8965 can_build_shared=no
8966 fi
8967 ;;
8968 esac
8969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8970 # soname into executable. Probably we can add versioning support to
8971 # collect2, so additional links can be useful in future.
8972 if test "$aix_use_runtimelinking" = yes; then
8973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8974 # instead of lib<name>.a to let people know that these are not
8975 # typical AIX shared libraries.
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 else
8978 # We preserve .a as extension for shared libraries through AIX4.2
8979 # and later when we are not doing run time linking.
8980 library_names_spec='${libname}${release}.a $libname.a'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 fi
8983 shlibpath_var=LIBPATH
8984 fi
8985 ;;
8986
8987 amigaos*)
8988 library_names_spec='$libname.ixlibrary $libname.a'
8989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8990 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'
8991 ;;
8992
8993 beos*)
8994 library_names_spec='${libname}${shared_ext}'
8995 dynamic_linker="$host_os ld.so"
8996 shlibpath_var=LIBRARY_PATH
8997 ;;
8998
8999 bsdi[45]*)
9000 version_type=linux
9001 need_version=no
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9008 # the default ld.so.conf also contains /usr/contrib/lib and
9009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9010 # libtool to hard-code these into programs
9011 ;;
9012
9013 cygwin* | mingw* | pw32*)
9014 version_type=windows
9015 shrext_cmds=".dll"
9016 need_version=no
9017 need_lib_prefix=no
9018
9019 case $GCC,$host_os in
9020 yes,cygwin* | yes,mingw* | yes,pw32*)
9021 library_names_spec='$libname.dll.a'
9022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9023 postinstall_cmds='base_file=`basename \${file}`~
9024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9025 dldir=$destdir/`dirname \$dlpath`~
9026 test -d \$dldir || mkdir -p \$dldir~
9027 $install_prog $dir/$dlname \$dldir/$dlname~
9028 chmod a+x \$dldir/$dlname'
9029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9030 dlpath=$dir/\$dldll~
9031 $rm \$dlpath'
9032 shlibpath_overrides_runpath=yes
9033
9034 case $host_os in
9035 cygwin*)
9036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9039 ;;
9040 mingw*)
9041 # MinGW DLLs use traditional 'lib' prefix
9042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9045 # It is most probably a Windows format PATH printed by
9046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9047 # path with ; separators, and with drive letters. We can handle the
9048 # drive letters (cygwin fileutils understands them), so leave them,
9049 # especially as we might pass files found there to a mingw objdump,
9050 # which wouldn't understand a cygwinified path. Ahh.
9051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9052 else
9053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9054 fi
9055 ;;
9056 pw32*)
9057 # pw32 DLLs use 'pw' prefix rather than 'lib'
9058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9059 ;;
9060 esac
9061 ;;
9062
9063 *)
9064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9065 ;;
9066 esac
9067 dynamic_linker='Win32 ld.exe'
9068 # FIXME: first we should search . and the directory the executable is in
9069 shlibpath_var=PATH
9070 ;;
9071
9072 darwin* | rhapsody*)
9073 dynamic_linker="$host_os dyld"
9074 version_type=darwin
9075 need_lib_prefix=no
9076 need_version=no
9077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9078 soname_spec='${libname}${release}${major}$shared_ext'
9079 shlibpath_overrides_runpath=yes
9080 shlibpath_var=DYLD_LIBRARY_PATH
9081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9082
9083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9085 ;;
9086
9087 dgux*)
9088 version_type=linux
9089 need_lib_prefix=no
9090 need_version=no
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 ;;
9095
9096 freebsd1*)
9097 dynamic_linker=no
9098 ;;
9099
9100 freebsd* | dragonfly*)
9101 # DragonFly does not have aout. When/if they implement a new
9102 # versioning mechanism, adjust this.
9103 if test -x /usr/bin/objformat; then
9104 objformat=`/usr/bin/objformat`
9105 else
9106 case $host_os in
9107 freebsd[123]*) objformat=aout ;;
9108 *) objformat=elf ;;
9109 esac
9110 fi
9111 version_type=freebsd-$objformat
9112 case $version_type in
9113 freebsd-elf*)
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9115 need_version=no
9116 need_lib_prefix=no
9117 ;;
9118 freebsd-*)
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9120 need_version=yes
9121 ;;
9122 esac
9123 shlibpath_var=LD_LIBRARY_PATH
9124 case $host_os in
9125 freebsd2*)
9126 shlibpath_overrides_runpath=yes
9127 ;;
9128 freebsd3.[01]* | freebsdelf3.[01]*)
9129 shlibpath_overrides_runpath=yes
9130 hardcode_into_libs=yes
9131 ;;
9132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9134 shlibpath_overrides_runpath=no
9135 hardcode_into_libs=yes
9136 ;;
9137 *) # from 4.6 on, and DragonFly
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9140 ;;
9141 esac
9142 ;;
9143
9144 gnu*)
9145 version_type=linux
9146 need_lib_prefix=no
9147 need_version=no
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 hardcode_into_libs=yes
9152 ;;
9153
9154 hpux9* | hpux10* | hpux11*)
9155 # Give a soname corresponding to the major version so that dld.sl refuses to
9156 # link against other versions.
9157 version_type=sunos
9158 need_lib_prefix=no
9159 need_version=no
9160 case $host_cpu in
9161 ia64*)
9162 shrext_cmds='.so'
9163 hardcode_into_libs=yes
9164 dynamic_linker="$host_os dld.so"
9165 shlibpath_var=LD_LIBRARY_PATH
9166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 if test "X$HPUX_IA64_MODE" = X32; then
9170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9171 else
9172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9173 fi
9174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9175 ;;
9176 hppa*64*)
9177 shrext_cmds='.sl'
9178 hardcode_into_libs=yes
9179 dynamic_linker="$host_os dld.sl"
9180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9186 ;;
9187 *)
9188 shrext_cmds='.sl'
9189 dynamic_linker="$host_os dld.sl"
9190 shlibpath_var=SHLIB_PATH
9191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 ;;
9195 esac
9196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9197 postinstall_cmds='chmod 555 $lib'
9198 ;;
9199
9200 interix[3-9]*)
9201 version_type=linux
9202 need_lib_prefix=no
9203 need_version=no
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=no
9209 hardcode_into_libs=yes
9210 ;;
9211
9212 irix5* | irix6* | nonstopux*)
9213 case $host_os in
9214 nonstopux*) version_type=nonstopux ;;
9215 *)
9216 if test "$lt_cv_prog_gnu_ld" = yes; then
9217 version_type=linux
9218 else
9219 version_type=irix
9220 fi ;;
9221 esac
9222 need_lib_prefix=no
9223 need_version=no
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9226 case $host_os in
9227 irix5* | nonstopux*)
9228 libsuff= shlibsuff=
9229 ;;
9230 *)
9231 case $LD in # libtool.m4 will add one of these switches to LD
9232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9233 libsuff= shlibsuff= libmagic=32-bit;;
9234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9235 libsuff=32 shlibsuff=N32 libmagic=N32;;
9236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9238 *) libsuff= shlibsuff= libmagic=never-match;;
9239 esac
9240 ;;
9241 esac
9242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9243 shlibpath_overrides_runpath=no
9244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9246 hardcode_into_libs=yes
9247 ;;
9248
9249 # No shared lib support for Linux oldld, aout, or coff.
9250 linux*oldld* | linux*aout* | linux*coff*)
9251 dynamic_linker=no
9252 ;;
9253
9254 # This must be Linux ELF.
9255 linux* | k*bsd*-gnu)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 shlibpath_overrides_runpath=no
9264 # This implies no fast_install, which is unacceptable.
9265 # Some rework will be needed to allow for fast_install
9266 # before this can be enabled.
9267 hardcode_into_libs=yes
9268 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9269 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9270
9271 # Append ld.so.conf contents to the search path
9272 if test -f /etc/ld.so.conf; then
9273 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' ' '`
9274 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9275 fi
9276
9277 # We used to test for /lib/ld.so.1 and disable shared libraries on
9278 # powerpc, because MkLinux only supported shared libraries with the
9279 # GNU dynamic linker. Since this was broken with cross compilers,
9280 # most powerpc-linux boxes support dynamic linking these days and
9281 # people can always --disable-shared, the test was removed, and we
9282 # assume the GNU/Linux dynamic linker is in use.
9283 dynamic_linker='GNU/Linux ld.so'
9284 ;;
9285
9286 netbsd*)
9287 version_type=sunos
9288 need_lib_prefix=no
9289 need_version=no
9290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9293 dynamic_linker='NetBSD (a.out) ld.so'
9294 else
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 dynamic_linker='NetBSD ld.elf_so'
9298 fi
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9301 hardcode_into_libs=yes
9302 ;;
9303
9304 newsos6)
9305 version_type=linux
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9309 ;;
9310
9311 nto-qnx*)
9312 version_type=linux
9313 need_lib_prefix=no
9314 need_version=no
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9319 ;;
9320
9321 openbsd*)
9322 version_type=sunos
9323 sys_lib_dlsearch_path_spec="/usr/lib"
9324 need_lib_prefix=no
9325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9326 case $host_os in
9327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9328 *) need_version=no ;;
9329 esac
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9334 case $host_os in
9335 openbsd2.[89] | openbsd2.[89].*)
9336 shlibpath_overrides_runpath=no
9337 ;;
9338 *)
9339 shlibpath_overrides_runpath=yes
9340 ;;
9341 esac
9342 else
9343 shlibpath_overrides_runpath=yes
9344 fi
9345 ;;
9346
9347 os2*)
9348 libname_spec='$name'
9349 shrext_cmds=".dll"
9350 need_lib_prefix=no
9351 library_names_spec='$libname${shared_ext} $libname.a'
9352 dynamic_linker='OS/2 ld.exe'
9353 shlibpath_var=LIBPATH
9354 ;;
9355
9356 osf3* | osf4* | osf5*)
9357 version_type=osf
9358 need_lib_prefix=no
9359 need_version=no
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9365 ;;
9366
9367 rdos*)
9368 dynamic_linker=no
9369 ;;
9370
9371 solaris*)
9372 version_type=linux
9373 need_lib_prefix=no
9374 need_version=no
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 hardcode_into_libs=yes
9380 # ldd complains unless libraries are executable
9381 postinstall_cmds='chmod +x $lib'
9382 ;;
9383
9384 sunos4*)
9385 version_type=sunos
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 if test "$with_gnu_ld" = yes; then
9391 need_lib_prefix=no
9392 fi
9393 need_version=yes
9394 ;;
9395
9396 sysv4 | sysv4.3*)
9397 version_type=linux
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 case $host_vendor in
9402 sni)
9403 shlibpath_overrides_runpath=no
9404 need_lib_prefix=no
9405 export_dynamic_flag_spec='${wl}-Blargedynsym'
9406 runpath_var=LD_RUN_PATH
9407 ;;
9408 siemens)
9409 need_lib_prefix=no
9410 ;;
9411 motorola)
9412 need_lib_prefix=no
9413 need_version=no
9414 shlibpath_overrides_runpath=no
9415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9416 ;;
9417 esac
9418 ;;
9419
9420 sysv4*MP*)
9421 if test -d /usr/nec ;then
9422 version_type=linux
9423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9424 soname_spec='$libname${shared_ext}.$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 fi
9427 ;;
9428
9429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9430 version_type=freebsd-elf
9431 need_lib_prefix=no
9432 need_version=no
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 hardcode_into_libs=yes
9437 if test "$with_gnu_ld" = yes; then
9438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9439 shlibpath_overrides_runpath=no
9440 else
9441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9442 shlibpath_overrides_runpath=yes
9443 case $host_os in
9444 sco3.2v5*)
9445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9446 ;;
9447 esac
9448 fi
9449 sys_lib_dlsearch_path_spec='/usr/lib'
9450 ;;
9451
9452 uts4*)
9453 version_type=linux
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 ;;
9458
9459 *)
9460 dynamic_linker=no
9461 ;;
9462 esac
9463 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9464 echo "${ECHO_T}$dynamic_linker" >&6; }
9465 test "$dynamic_linker" = no && can_build_shared=no
9466
9467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9468 if test "$GCC" = yes; then
9469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9470 fi
9471
9472 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9473 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9474 hardcode_action=
9475 if test -n "$hardcode_libdir_flag_spec" || \
9476 test -n "$runpath_var" || \
9477 test "X$hardcode_automatic" = "Xyes" ; then
9478
9479 # We can hardcode non-existant directories.
9480 if test "$hardcode_direct" != no &&
9481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9482 # have to relink, otherwise we might link with an installed library
9483 # when we should be linking with a yet-to-be-installed one
9484 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9485 test "$hardcode_minus_L" != no; then
9486 # Linking always hardcodes the temporary library directory.
9487 hardcode_action=relink
9488 else
9489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9490 hardcode_action=immediate
9491 fi
9492 else
9493 # We cannot hardcode anything, or else we can only hardcode existing
9494 # directories.
9495 hardcode_action=unsupported
9496 fi
9497 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9498 echo "${ECHO_T}$hardcode_action" >&6; }
9499
9500 if test "$hardcode_action" = relink; then
9501 # Fast installation is not supported
9502 enable_fast_install=no
9503 elif test "$shlibpath_overrides_runpath" = yes ||
9504 test "$enable_shared" = no; then
9505 # Fast installation is not necessary
9506 enable_fast_install=needless
9507 fi
9508
9509 striplib=
9510 old_striplib=
9511 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9512 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9513 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9514 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9515 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9516 { echo "$as_me:$LINENO: result: yes" >&5
9517 echo "${ECHO_T}yes" >&6; }
9518 else
9519 # FIXME - insert some real tests, host_os isn't really good enough
9520 case $host_os in
9521 darwin*)
9522 if test -n "$STRIP" ; then
9523 striplib="$STRIP -x"
9524 old_striplib="$STRIP -S"
9525 { echo "$as_me:$LINENO: result: yes" >&5
9526 echo "${ECHO_T}yes" >&6; }
9527 else
9528 { echo "$as_me:$LINENO: result: no" >&5
9529 echo "${ECHO_T}no" >&6; }
9530 fi
9531 ;;
9532 *)
9533 { echo "$as_me:$LINENO: result: no" >&5
9534 echo "${ECHO_T}no" >&6; }
9535 ;;
9536 esac
9537 fi
9538
9539 if test "x$enable_dlopen" != xyes; then
9540 enable_dlopen=unknown
9541 enable_dlopen_self=unknown
9542 enable_dlopen_self_static=unknown
9543 else
9544 lt_cv_dlopen=no
9545 lt_cv_dlopen_libs=
9546
9547 case $host_os in
9548 beos*)
9549 lt_cv_dlopen="load_add_on"
9550 lt_cv_dlopen_libs=
9551 lt_cv_dlopen_self=yes
9552 ;;
9553
9554 mingw* | pw32*)
9555 lt_cv_dlopen="LoadLibrary"
9556 lt_cv_dlopen_libs=
9557 ;;
9558
9559 cygwin*)
9560 lt_cv_dlopen="dlopen"
9561 lt_cv_dlopen_libs=
9562 ;;
9563
9564 darwin*)
9565 # if libdl is installed we need to link against it
9566 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571 ac_check_lib_save_LIBS=$LIBS
9572 LIBS="-ldl $LIBS"
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h. */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579
9580 /* Override any GCC internal prototype to avoid an error.
9581 Use char because int might match the return type of a GCC
9582 builtin and then its argument prototype would still apply. */
9583 #ifdef __cplusplus
9584 extern "C"
9585 #endif
9586 char dlopen ();
9587 int
9588 main ()
9589 {
9590 return dlopen ();
9591 ;
9592 return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9597 case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest$ac_exeext &&
9612 $as_test_x conftest$ac_exeext; then
9613 ac_cv_lib_dl_dlopen=yes
9614 else
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 ac_cv_lib_dl_dlopen=no
9619 fi
9620
9621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9624 fi
9625 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9627 if test $ac_cv_lib_dl_dlopen = yes; then
9628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9629 else
9630
9631 lt_cv_dlopen="dyld"
9632 lt_cv_dlopen_libs=
9633 lt_cv_dlopen_self=yes
9634
9635 fi
9636
9637 ;;
9638
9639 *)
9640 { echo "$as_me:$LINENO: checking for shl_load" >&5
9641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9642 if test "${ac_cv_func_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653 #define shl_load innocuous_shl_load
9654
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char shl_load (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9659
9660 #ifdef __STDC__
9661 # include <limits.h>
9662 #else
9663 # include <assert.h>
9664 #endif
9665
9666 #undef shl_load
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char shl_load ();
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined __stub_shl_load || defined __stub___shl_load
9679 choke me
9680 #endif
9681
9682 int
9683 main ()
9684 {
9685 return shl_load ();
9686 ;
9687 return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9692 case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest$ac_exeext &&
9707 $as_test_x conftest$ac_exeext; then
9708 ac_cv_func_shl_load=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ac_cv_func_shl_load=no
9714 fi
9715
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717 conftest$ac_exeext conftest.$ac_ext
9718 fi
9719 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9720 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9721 if test $ac_cv_func_shl_load = yes; then
9722 lt_cv_dlopen="shl_load"
9723 else
9724 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9725 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9726 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 ac_check_lib_save_LIBS=$LIBS
9730 LIBS="-ldld $LIBS"
9731 cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h. */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char shl_load ();
9745 int
9746 main ()
9747 {
9748 return shl_load ();
9749 ;
9750 return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (ac_try="$ac_link"
9755 case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext &&
9770 $as_test_x conftest$ac_exeext; then
9771 ac_cv_lib_dld_shl_load=yes
9772 else
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776 ac_cv_lib_dld_shl_load=no
9777 fi
9778
9779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9782 fi
9783 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9784 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9785 if test $ac_cv_lib_dld_shl_load = yes; then
9786 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9787 else
9788 { echo "$as_me:$LINENO: checking for dlopen" >&5
9789 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9790 if test "${ac_cv_func_dlopen+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9801 #define dlopen innocuous_dlopen
9802
9803 /* System header to define __stub macros and hopefully few prototypes,
9804 which can conflict with char dlopen (); below.
9805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9806 <limits.h> exists even on freestanding compilers. */
9807
9808 #ifdef __STDC__
9809 # include <limits.h>
9810 #else
9811 # include <assert.h>
9812 #endif
9813
9814 #undef dlopen
9815
9816 /* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
9819 #ifdef __cplusplus
9820 extern "C"
9821 #endif
9822 char dlopen ();
9823 /* The GNU C library defines this for functions which it implements
9824 to always fail with ENOSYS. Some functions are actually named
9825 something starting with __ and the normal name is an alias. */
9826 #if defined __stub_dlopen || defined __stub___dlopen
9827 choke me
9828 #endif
9829
9830 int
9831 main ()
9832 {
9833 return dlopen ();
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (ac_try="$ac_link"
9840 case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843 esac
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_link") 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } && {
9852 test -z "$ac_c_werror_flag" ||
9853 test ! -s conftest.err
9854 } && test -s conftest$ac_exeext &&
9855 $as_test_x conftest$ac_exeext; then
9856 ac_cv_func_dlopen=yes
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ac_cv_func_dlopen=no
9862 fi
9863
9864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9865 conftest$ac_exeext conftest.$ac_ext
9866 fi
9867 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9868 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9869 if test $ac_cv_func_dlopen = yes; then
9870 lt_cv_dlopen="dlopen"
9871 else
9872 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877 ac_check_lib_save_LIBS=$LIBS
9878 LIBS="-ldl $LIBS"
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 char dlopen ();
9893 int
9894 main ()
9895 {
9896 return dlopen ();
9897 ;
9898 return 0;
9899 }
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (ac_try="$ac_link"
9903 case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_link") 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest$ac_exeext &&
9918 $as_test_x conftest$ac_exeext; then
9919 ac_cv_lib_dl_dlopen=yes
9920 else
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9923
9924 ac_cv_lib_dl_dlopen=no
9925 fi
9926
9927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9928 conftest$ac_exeext conftest.$ac_ext
9929 LIBS=$ac_check_lib_save_LIBS
9930 fi
9931 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9932 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9933 if test $ac_cv_lib_dl_dlopen = yes; then
9934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9935 else
9936 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9937 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9938 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 ac_check_lib_save_LIBS=$LIBS
9942 LIBS="-lsvld $LIBS"
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949
9950 /* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9953 #ifdef __cplusplus
9954 extern "C"
9955 #endif
9956 char dlopen ();
9957 int
9958 main ()
9959 {
9960 return dlopen ();
9961 ;
9962 return 0;
9963 }
9964 _ACEOF
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9967 case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest$ac_exeext &&
9982 $as_test_x conftest$ac_exeext; then
9983 ac_cv_lib_svld_dlopen=yes
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_cv_lib_svld_dlopen=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9996 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9997 if test $ac_cv_lib_svld_dlopen = yes; then
9998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9999 else
10000 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10001 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10002 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 ac_check_lib_save_LIBS=$LIBS
10006 LIBS="-ldld $LIBS"
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 char dld_link ();
10021 int
10022 main ()
10023 {
10024 return dld_link ();
10025 ;
10026 return 0;
10027 }
10028 _ACEOF
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && {
10043 test -z "$ac_c_werror_flag" ||
10044 test ! -s conftest.err
10045 } && test -s conftest$ac_exeext &&
10046 $as_test_x conftest$ac_exeext; then
10047 ac_cv_lib_dld_dld_link=yes
10048 else
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 ac_cv_lib_dld_dld_link=no
10053 fi
10054
10055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10056 conftest$ac_exeext conftest.$ac_ext
10057 LIBS=$ac_check_lib_save_LIBS
10058 fi
10059 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10060 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10061 if test $ac_cv_lib_dld_dld_link = yes; then
10062 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10063 fi
10064
10065
10066 fi
10067
10068
10069 fi
10070
10071
10072 fi
10073
10074
10075 fi
10076
10077
10078 fi
10079
10080 ;;
10081 esac
10082
10083 if test "x$lt_cv_dlopen" != xno; then
10084 enable_dlopen=yes
10085 else
10086 enable_dlopen=no
10087 fi
10088
10089 case $lt_cv_dlopen in
10090 dlopen)
10091 save_CPPFLAGS="$CPPFLAGS"
10092 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10093
10094 save_LDFLAGS="$LDFLAGS"
10095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10096
10097 save_LIBS="$LIBS"
10098 LIBS="$lt_cv_dlopen_libs $LIBS"
10099
10100 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10101 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10102 if test "${lt_cv_dlopen_self+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105 if test "$cross_compiling" = yes; then :
10106 lt_cv_dlopen_self=cross
10107 else
10108 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10109 lt_status=$lt_dlunknown
10110 cat > conftest.$ac_ext <<EOF
10111 #line 10111 "configure"
10112 #include "confdefs.h"
10113
10114 #if HAVE_DLFCN_H
10115 #include <dlfcn.h>
10116 #endif
10117
10118 #include <stdio.h>
10119
10120 #ifdef RTLD_GLOBAL
10121 # define LT_DLGLOBAL RTLD_GLOBAL
10122 #else
10123 # ifdef DL_GLOBAL
10124 # define LT_DLGLOBAL DL_GLOBAL
10125 # else
10126 # define LT_DLGLOBAL 0
10127 # endif
10128 #endif
10129
10130 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10131 find out it does not work in some platform. */
10132 #ifndef LT_DLLAZY_OR_NOW
10133 # ifdef RTLD_LAZY
10134 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10135 # else
10136 # ifdef DL_LAZY
10137 # define LT_DLLAZY_OR_NOW DL_LAZY
10138 # else
10139 # ifdef RTLD_NOW
10140 # define LT_DLLAZY_OR_NOW RTLD_NOW
10141 # else
10142 # ifdef DL_NOW
10143 # define LT_DLLAZY_OR_NOW DL_NOW
10144 # else
10145 # define LT_DLLAZY_OR_NOW 0
10146 # endif
10147 # endif
10148 # endif
10149 # endif
10150 #endif
10151
10152 #ifdef __cplusplus
10153 extern "C" void exit (int);
10154 #endif
10155
10156 void fnord() { int i=42;}
10157 int main ()
10158 {
10159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10160 int status = $lt_dlunknown;
10161
10162 if (self)
10163 {
10164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10165 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10166 /* dlclose (self); */
10167 }
10168 else
10169 puts (dlerror ());
10170
10171 exit (status);
10172 }
10173 EOF
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10179 (./conftest; exit; ) >&5 2>/dev/null
10180 lt_status=$?
10181 case x$lt_status in
10182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10184 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10185 esac
10186 else :
10187 # compilation failed
10188 lt_cv_dlopen_self=no
10189 fi
10190 fi
10191 rm -fr conftest*
10192
10193
10194 fi
10195 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10196 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10197
10198 if test "x$lt_cv_dlopen_self" = xyes; then
10199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10200 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10201 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10202 if test "${lt_cv_dlopen_self_static+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205 if test "$cross_compiling" = yes; then :
10206 lt_cv_dlopen_self_static=cross
10207 else
10208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10209 lt_status=$lt_dlunknown
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10211 "configure"
10212 #include "confdefs.h"
10213
10214 #if HAVE_DLFCN_H
10215 #include <dlfcn.h>
10216 #endif
10217
10218 #include <stdio.h>
10219
10220 #ifdef RTLD_GLOBAL
10221 # define LT_DLGLOBAL RTLD_GLOBAL
10222 #else
10223 # ifdef DL_GLOBAL
10224 # define LT_DLGLOBAL DL_GLOBAL
10225 # else
10226 # define LT_DLGLOBAL 0
10227 # endif
10228 #endif
10229
10230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10231 find out it does not work in some platform. */
10232 #ifndef LT_DLLAZY_OR_NOW
10233 # ifdef RTLD_LAZY
10234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10235 # else
10236 # ifdef DL_LAZY
10237 # define LT_DLLAZY_OR_NOW DL_LAZY
10238 # else
10239 # ifdef RTLD_NOW
10240 # define LT_DLLAZY_OR_NOW RTLD_NOW
10241 # else
10242 # ifdef DL_NOW
10243 # define LT_DLLAZY_OR_NOW DL_NOW
10244 # else
10245 # define LT_DLLAZY_OR_NOW 0
10246 # endif
10247 # endif
10248 # endif
10249 # endif
10250 #endif
10251
10252 #ifdef __cplusplus
10253 extern "C" void exit (int);
10254 #endif
10255
10256 void fnord() { int i=42;}
10257 int main ()
10258 {
10259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10260 int status = $lt_dlunknown;
10261
10262 if (self)
10263 {
10264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10266 /* dlclose (self); */
10267 }
10268 else
10269 puts (dlerror ());
10270
10271 exit (status);
10272 }
10273 EOF
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10279 (./conftest; exit; ) >&5 2>/dev/null
10280 lt_status=$?
10281 case x$lt_status in
10282 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10283 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10284 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10285 esac
10286 else :
10287 # compilation failed
10288 lt_cv_dlopen_self_static=no
10289 fi
10290 fi
10291 rm -fr conftest*
10292
10293
10294 fi
10295 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10296 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10297 fi
10298
10299 CPPFLAGS="$save_CPPFLAGS"
10300 LDFLAGS="$save_LDFLAGS"
10301 LIBS="$save_LIBS"
10302 ;;
10303 esac
10304
10305 case $lt_cv_dlopen_self in
10306 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10307 *) enable_dlopen_self=unknown ;;
10308 esac
10309
10310 case $lt_cv_dlopen_self_static in
10311 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10312 *) enable_dlopen_self_static=unknown ;;
10313 esac
10314 fi
10315
10316
10317 # Report which library types will actually be built
10318 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10319 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10320 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10321 echo "${ECHO_T}$can_build_shared" >&6; }
10322
10323 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10324 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10325 test "$can_build_shared" = "no" && enable_shared=no
10326
10327 # On AIX, shared libraries and static libraries use the same namespace, and
10328 # are all built from PIC.
10329 case $host_os in
10330 aix3*)
10331 test "$enable_shared" = yes && enable_static=no
10332 if test -n "$RANLIB"; then
10333 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10334 postinstall_cmds='$RANLIB $lib'
10335 fi
10336 ;;
10337
10338 aix4* | aix5*)
10339 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10340 test "$enable_shared" = yes && enable_static=no
10341 fi
10342 ;;
10343 esac
10344 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10345 echo "${ECHO_T}$enable_shared" >&6; }
10346
10347 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10348 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10349 # Make sure either enable_shared or enable_static is yes.
10350 test "$enable_shared" = yes || enable_static=yes
10351 { echo "$as_me:$LINENO: result: $enable_static" >&5
10352 echo "${ECHO_T}$enable_static" >&6; }
10353
10354 # The else clause should only fire when bootstrapping the
10355 # libtool distribution, otherwise you forgot to ship ltmain.sh
10356 # with your package, and you will get complaints that there are
10357 # no rules to generate ltmain.sh.
10358 if test -f "$ltmain"; then
10359 # See if we are running on zsh, and set the options which allow our commands through
10360 # without removal of \ escapes.
10361 if test -n "${ZSH_VERSION+set}" ; then
10362 setopt NO_GLOB_SUBST
10363 fi
10364 # Now quote all the things that may contain metacharacters while being
10365 # careful not to overquote the AC_SUBSTed values. We take copies of the
10366 # variables and quote the copies for generation of the libtool script.
10367 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10368 SED SHELL STRIP \
10369 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10370 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10371 deplibs_check_method reload_flag reload_cmds need_locks \
10372 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10373 lt_cv_sys_global_symbol_to_c_name_address \
10374 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10375 old_postinstall_cmds old_postuninstall_cmds \
10376 compiler \
10377 CC \
10378 LD \
10379 lt_prog_compiler_wl \
10380 lt_prog_compiler_pic \
10381 lt_prog_compiler_static \
10382 lt_prog_compiler_no_builtin_flag \
10383 export_dynamic_flag_spec \
10384 thread_safe_flag_spec \
10385 whole_archive_flag_spec \
10386 enable_shared_with_static_runtimes \
10387 old_archive_cmds \
10388 old_archive_from_new_cmds \
10389 predep_objects \
10390 postdep_objects \
10391 predeps \
10392 postdeps \
10393 compiler_lib_search_path \
10394 archive_cmds \
10395 archive_expsym_cmds \
10396 postinstall_cmds \
10397 postuninstall_cmds \
10398 old_archive_from_expsyms_cmds \
10399 allow_undefined_flag \
10400 no_undefined_flag \
10401 export_symbols_cmds \
10402 hardcode_libdir_flag_spec \
10403 hardcode_libdir_flag_spec_ld \
10404 hardcode_libdir_separator \
10405 hardcode_automatic \
10406 module_cmds \
10407 module_expsym_cmds \
10408 lt_cv_prog_compiler_c_o \
10409 fix_srcfile_path \
10410 exclude_expsyms \
10411 include_expsyms; do
10412
10413 case $var in
10414 old_archive_cmds | \
10415 old_archive_from_new_cmds | \
10416 archive_cmds | \
10417 archive_expsym_cmds | \
10418 module_cmds | \
10419 module_expsym_cmds | \
10420 old_archive_from_expsyms_cmds | \
10421 export_symbols_cmds | \
10422 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10423 postinstall_cmds | postuninstall_cmds | \
10424 old_postinstall_cmds | old_postuninstall_cmds | \
10425 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10426 # Double-quote double-evaled strings.
10427 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10428 ;;
10429 *)
10430 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10431 ;;
10432 esac
10433 done
10434
10435 case $lt_echo in
10436 *'\$0 --fallback-echo"')
10437 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10438 ;;
10439 esac
10440
10441 cfgfile="${ofile}T"
10442 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10443 $rm -f "$cfgfile"
10444 { echo "$as_me:$LINENO: creating $ofile" >&5
10445 echo "$as_me: creating $ofile" >&6;}
10446
10447 cat <<__EOF__ >> "$cfgfile"
10448 #! $SHELL
10449
10450 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10451 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10452 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10453 #
10454 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10455 # Free Software Foundation, Inc.
10456 #
10457 # This file is part of GNU Libtool:
10458 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10459 #
10460 # This program is free software; you can redistribute it and/or modify
10461 # it under the terms of the GNU General Public License as published by
10462 # the Free Software Foundation; either version 2 of the License, or
10463 # (at your option) any later version.
10464 #
10465 # This program is distributed in the hope that it will be useful, but
10466 # WITHOUT ANY WARRANTY; without even the implied warranty of
10467 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10468 # General Public License for more details.
10469 #
10470 # You should have received a copy of the GNU General Public License
10471 # along with this program; if not, write to the Free Software
10472 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10473 #
10474 # As a special exception to the GNU General Public License, if you
10475 # distribute this file as part of a program that contains a
10476 # configuration script generated by Autoconf, you may include it under
10477 # the same distribution terms that you use for the rest of that program.
10478
10479 # A sed program that does not truncate output.
10480 SED=$lt_SED
10481
10482 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10483 Xsed="$SED -e 1s/^X//"
10484
10485 # The HP-UX ksh and POSIX shell print the target directory to stdout
10486 # if CDPATH is set.
10487 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10488
10489 # The names of the tagged configurations supported by this script.
10490 available_tags=
10491
10492 # ### BEGIN LIBTOOL CONFIG
10493
10494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10495
10496 # Shell to use when invoking shell scripts.
10497 SHELL=$lt_SHELL
10498
10499 # Whether or not to build shared libraries.
10500 build_libtool_libs=$enable_shared
10501
10502 # Whether or not to build static libraries.
10503 build_old_libs=$enable_static
10504
10505 # Whether or not to add -lc for building shared libraries.
10506 build_libtool_need_lc=$archive_cmds_need_lc
10507
10508 # Whether or not to disallow shared libs when runtime libs are static
10509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10510
10511 # Whether or not to optimize for fast installation.
10512 fast_install=$enable_fast_install
10513
10514 # The host system.
10515 host_alias=$host_alias
10516 host=$host
10517 host_os=$host_os
10518
10519 # The build system.
10520 build_alias=$build_alias
10521 build=$build
10522 build_os=$build_os
10523
10524 # An echo program that does not interpret backslashes.
10525 echo=$lt_echo
10526
10527 # The archiver.
10528 AR=$lt_AR
10529 AR_FLAGS=$lt_AR_FLAGS
10530
10531 # A C compiler.
10532 LTCC=$lt_LTCC
10533
10534 # LTCC compiler flags.
10535 LTCFLAGS=$lt_LTCFLAGS
10536
10537 # A language-specific compiler.
10538 CC=$lt_compiler
10539
10540 # Is the compiler the GNU C compiler?
10541 with_gcc=$GCC
10542
10543 # An ERE matcher.
10544 EGREP=$lt_EGREP
10545
10546 # The linker used to build libraries.
10547 LD=$lt_LD
10548
10549 # Whether we need hard or soft links.
10550 LN_S=$lt_LN_S
10551
10552 # A BSD-compatible nm program.
10553 NM=$lt_NM
10554
10555 # A symbol stripping program
10556 STRIP=$lt_STRIP
10557
10558 # Used to examine libraries when file_magic_cmd begins "file"
10559 MAGIC_CMD=$MAGIC_CMD
10560
10561 # Used on cygwin: DLL creation program.
10562 DLLTOOL="$DLLTOOL"
10563
10564 # Used on cygwin: object dumper.
10565 OBJDUMP="$OBJDUMP"
10566
10567 # Used on cygwin: assembler.
10568 AS="$AS"
10569
10570 # The name of the directory that contains temporary libtool files.
10571 objdir=$objdir
10572
10573 # How to create reloadable object files.
10574 reload_flag=$lt_reload_flag
10575 reload_cmds=$lt_reload_cmds
10576
10577 # How to pass a linker flag through the compiler.
10578 wl=$lt_lt_prog_compiler_wl
10579
10580 # Object file suffix (normally "o").
10581 objext="$ac_objext"
10582
10583 # Old archive suffix (normally "a").
10584 libext="$libext"
10585
10586 # Shared library suffix (normally ".so").
10587 shrext_cmds='$shrext_cmds'
10588
10589 # Executable file suffix (normally "").
10590 exeext="$exeext"
10591
10592 # Additional compiler flags for building library objects.
10593 pic_flag=$lt_lt_prog_compiler_pic
10594 pic_mode=$pic_mode
10595
10596 # What is the maximum length of a command?
10597 max_cmd_len=$lt_cv_sys_max_cmd_len
10598
10599 # Does compiler simultaneously support -c and -o options?
10600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10601
10602 # Must we lock files when doing compilation?
10603 need_locks=$lt_need_locks
10604
10605 # Do we need the lib prefix for modules?
10606 need_lib_prefix=$need_lib_prefix
10607
10608 # Do we need a version for libraries?
10609 need_version=$need_version
10610
10611 # Whether dlopen is supported.
10612 dlopen_support=$enable_dlopen
10613
10614 # Whether dlopen of programs is supported.
10615 dlopen_self=$enable_dlopen_self
10616
10617 # Whether dlopen of statically linked programs is supported.
10618 dlopen_self_static=$enable_dlopen_self_static
10619
10620 # Compiler flag to prevent dynamic linking.
10621 link_static_flag=$lt_lt_prog_compiler_static
10622
10623 # Compiler flag to turn off builtin functions.
10624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10625
10626 # Compiler flag to allow reflexive dlopens.
10627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10628
10629 # Compiler flag to generate shared objects directly from archives.
10630 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10631
10632 # Compiler flag to generate thread-safe objects.
10633 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10634
10635 # Library versioning type.
10636 version_type=$version_type
10637
10638 # Format of library name prefix.
10639 libname_spec=$lt_libname_spec
10640
10641 # List of archive names. First name is the real one, the rest are links.
10642 # The last name is the one that the linker finds with -lNAME.
10643 library_names_spec=$lt_library_names_spec
10644
10645 # The coded name of the library, if different from the real name.
10646 soname_spec=$lt_soname_spec
10647
10648 # Commands used to build and install an old-style archive.
10649 RANLIB=$lt_RANLIB
10650 old_archive_cmds=$lt_old_archive_cmds
10651 old_postinstall_cmds=$lt_old_postinstall_cmds
10652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10653
10654 # Create an old-style archive from a shared archive.
10655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10656
10657 # Create a temporary old-style archive to link instead of a shared archive.
10658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10659
10660 # Commands used to build and install a shared archive.
10661 archive_cmds=$lt_archive_cmds
10662 archive_expsym_cmds=$lt_archive_expsym_cmds
10663 postinstall_cmds=$lt_postinstall_cmds
10664 postuninstall_cmds=$lt_postuninstall_cmds
10665
10666 # Commands used to build a loadable module (assumed same as above if empty)
10667 module_cmds=$lt_module_cmds
10668 module_expsym_cmds=$lt_module_expsym_cmds
10669
10670 # Commands to strip libraries.
10671 old_striplib=$lt_old_striplib
10672 striplib=$lt_striplib
10673
10674 # Dependencies to place before the objects being linked to create a
10675 # shared library.
10676 predep_objects=$lt_predep_objects
10677
10678 # Dependencies to place after the objects being linked to create a
10679 # shared library.
10680 postdep_objects=$lt_postdep_objects
10681
10682 # Dependencies to place before the objects being linked to create a
10683 # shared library.
10684 predeps=$lt_predeps
10685
10686 # Dependencies to place after the objects being linked to create a
10687 # shared library.
10688 postdeps=$lt_postdeps
10689
10690 # The library search path used internally by the compiler when linking
10691 # a shared library.
10692 compiler_lib_search_path=$lt_compiler_lib_search_path
10693
10694 # Method to check whether dependent libraries are shared objects.
10695 deplibs_check_method=$lt_deplibs_check_method
10696
10697 # Command to use when deplibs_check_method == file_magic.
10698 file_magic_cmd=$lt_file_magic_cmd
10699
10700 # Flag that allows shared libraries with undefined symbols to be built.
10701 allow_undefined_flag=$lt_allow_undefined_flag
10702
10703 # Flag that forces no undefined symbols.
10704 no_undefined_flag=$lt_no_undefined_flag
10705
10706 # Commands used to finish a libtool library installation in a directory.
10707 finish_cmds=$lt_finish_cmds
10708
10709 # Same as above, but a single script fragment to be evaled but not shown.
10710 finish_eval=$lt_finish_eval
10711
10712 # Take the output of nm and produce a listing of raw symbols and C names.
10713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10714
10715 # Transform the output of nm in a proper C declaration
10716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10717
10718 # Transform the output of nm in a C name address pair
10719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10720
10721 # This is the shared library runtime path variable.
10722 runpath_var=$runpath_var
10723
10724 # This is the shared library path variable.
10725 shlibpath_var=$shlibpath_var
10726
10727 # Is shlibpath searched before the hard-coded library search path?
10728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10729
10730 # How to hardcode a shared library path into an executable.
10731 hardcode_action=$hardcode_action
10732
10733 # Whether we should hardcode library paths into libraries.
10734 hardcode_into_libs=$hardcode_into_libs
10735
10736 # Flag to hardcode \$libdir into a binary during linking.
10737 # This must work even if \$libdir does not exist.
10738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10739
10740 # If ld is used when linking, flag to hardcode \$libdir into
10741 # a binary during linking. This must work even if \$libdir does
10742 # not exist.
10743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10744
10745 # Whether we need a single -rpath flag with a separated argument.
10746 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10747
10748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10749 # resulting binary.
10750 hardcode_direct=$hardcode_direct
10751
10752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10753 # resulting binary.
10754 hardcode_minus_L=$hardcode_minus_L
10755
10756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10757 # the resulting binary.
10758 hardcode_shlibpath_var=$hardcode_shlibpath_var
10759
10760 # Set to yes if building a shared library automatically hardcodes DIR into the library
10761 # and all subsequent libraries and executables linked against it.
10762 hardcode_automatic=$hardcode_automatic
10763
10764 # Variables whose values should be saved in libtool wrapper scripts and
10765 # restored at relink time.
10766 variables_saved_for_relink="$variables_saved_for_relink"
10767
10768 # Whether libtool must link a program against all its dependency libraries.
10769 link_all_deplibs=$link_all_deplibs
10770
10771 # Compile-time system search path for libraries
10772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10773
10774 # Run-time system search path for libraries
10775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10776
10777 # Fix the shell variable \$srcfile for the compiler.
10778 fix_srcfile_path=$lt_fix_srcfile_path
10779
10780 # Set to yes if exported symbols are required.
10781 always_export_symbols=$always_export_symbols
10782
10783 # The commands to list exported symbols.
10784 export_symbols_cmds=$lt_export_symbols_cmds
10785
10786 # The commands to extract the exported symbol list from a shared archive.
10787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10788
10789 # Symbols that should not be listed in the preloaded symbols.
10790 exclude_expsyms=$lt_exclude_expsyms
10791
10792 # Symbols that must always be exported.
10793 include_expsyms=$lt_include_expsyms
10794
10795 # ### END LIBTOOL CONFIG
10796
10797 __EOF__
10798
10799
10800 case $host_os in
10801 aix3*)
10802 cat <<\EOF >> "$cfgfile"
10803
10804 # AIX sometimes has problems with the GCC collect2 program. For some
10805 # reason, if we set the COLLECT_NAMES environment variable, the problems
10806 # vanish in a puff of smoke.
10807 if test "X${COLLECT_NAMES+set}" != Xset; then
10808 COLLECT_NAMES=
10809 export COLLECT_NAMES
10810 fi
10811 EOF
10812 ;;
10813 esac
10814
10815 # We use sed instead of cat because bash on DJGPP gets confused if
10816 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10817 # text mode, it properly converts lines to CR/LF. This bash problem
10818 # is reportedly fixed, but why not run on old versions too?
10819 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10820
10821 mv -f "$cfgfile" "$ofile" || \
10822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10823 chmod +x "$ofile"
10824
10825 else
10826 # If there is no Makefile yet, we rely on a make rule to execute
10827 # `config.status --recheck' to rerun these tests and create the
10828 # libtool script then.
10829 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10830 if test -f "$ltmain_in"; then
10831 test -f Makefile && make "$ltmain"
10832 fi
10833 fi
10834
10835
10836 ac_ext=c
10837 ac_cpp='$CPP $CPPFLAGS'
10838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10841
10842 CC="$lt_save_CC"
10843
10844
10845 # Check whether --with-tags was given.
10846 if test "${with_tags+set}" = set; then
10847 withval=$with_tags; tagnames="$withval"
10848 fi
10849
10850
10851 if test -f "$ltmain" && test -n "$tagnames"; then
10852 if test ! -f "${ofile}"; then
10853 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10854 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10855 fi
10856
10857 if test -z "$LTCC"; then
10858 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10859 if test -z "$LTCC"; then
10860 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10861 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10862 else
10863 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10864 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10865 fi
10866 fi
10867 if test -z "$LTCFLAGS"; then
10868 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10869 fi
10870
10871 # Extract list of available tagged configurations in $ofile.
10872 # Note that this assumes the entire list is on one line.
10873 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10874
10875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10876 for tagname in $tagnames; do
10877 IFS="$lt_save_ifs"
10878 # Check whether tagname contains only valid characters
10879 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10880 "") ;;
10881 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10882 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10883 { (exit 1); exit 1; }; }
10884 ;;
10885 esac
10886
10887 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10888 then
10889 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10890 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10891 { (exit 1); exit 1; }; }
10892 fi
10893
10894 # Update the list of available tags.
10895 if test -n "$tagname"; then
10896 echo appending configuration tag \"$tagname\" to $ofile
10897
10898 case $tagname in
10899 CXX)
10900 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10901 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10902 (test "X$CXX" != "Xg++"))) ; then
10903 ac_ext=cpp
10904 ac_cpp='$CXXCPP $CPPFLAGS'
10905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10908
10909
10910
10911
10912 archive_cmds_need_lc_CXX=no
10913 allow_undefined_flag_CXX=
10914 always_export_symbols_CXX=no
10915 archive_expsym_cmds_CXX=
10916 export_dynamic_flag_spec_CXX=
10917 hardcode_direct_CXX=no
10918 hardcode_libdir_flag_spec_CXX=
10919 hardcode_libdir_flag_spec_ld_CXX=
10920 hardcode_libdir_separator_CXX=
10921 hardcode_minus_L_CXX=no
10922 hardcode_shlibpath_var_CXX=unsupported
10923 hardcode_automatic_CXX=no
10924 module_cmds_CXX=
10925 module_expsym_cmds_CXX=
10926 link_all_deplibs_CXX=unknown
10927 old_archive_cmds_CXX=$old_archive_cmds
10928 no_undefined_flag_CXX=
10929 whole_archive_flag_spec_CXX=
10930 enable_shared_with_static_runtimes_CXX=no
10931
10932 # Dependencies to place before and after the object being linked:
10933 predep_objects_CXX=
10934 postdep_objects_CXX=
10935 predeps_CXX=
10936 postdeps_CXX=
10937 compiler_lib_search_path_CXX=
10938
10939 # Source file extension for C++ test sources.
10940 ac_ext=cpp
10941
10942 # Object file extension for compiled C++ test sources.
10943 objext=o
10944 objext_CXX=$objext
10945
10946 # Code to be used in simple compile tests
10947 lt_simple_compile_test_code="int some_variable = 0;"
10948
10949 # Code to be used in simple link tests
10950 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10951
10952 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10953
10954 # If no C compiler was specified, use CC.
10955 LTCC=${LTCC-"$CC"}
10956
10957 # If no C compiler flags were specified, use CFLAGS.
10958 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10959
10960 # Allow CC to be a program name with arguments.
10961 compiler=$CC
10962
10963
10964 # save warnings/boilerplate of simple test code
10965 ac_outfile=conftest.$ac_objext
10966 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10967 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10968 _lt_compiler_boilerplate=`cat conftest.err`
10969 $rm conftest*
10970
10971 ac_outfile=conftest.$ac_objext
10972 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10973 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10974 _lt_linker_boilerplate=`cat conftest.err`
10975 $rm conftest*
10976
10977
10978 # Allow CC to be a program name with arguments.
10979 lt_save_CC=$CC
10980 lt_save_LD=$LD
10981 lt_save_GCC=$GCC
10982 GCC=$GXX
10983 lt_save_with_gnu_ld=$with_gnu_ld
10984 lt_save_path_LD=$lt_cv_path_LD
10985 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10986 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10987 else
10988 $as_unset lt_cv_prog_gnu_ld
10989 fi
10990 if test -n "${lt_cv_path_LDCXX+set}"; then
10991 lt_cv_path_LD=$lt_cv_path_LDCXX
10992 else
10993 $as_unset lt_cv_path_LD
10994 fi
10995 test -z "${LDCXX+set}" || LD=$LDCXX
10996 CC=${CXX-"c++"}
10997 compiler=$CC
10998 compiler_CXX=$CC
10999 for cc_temp in $compiler""; do
11000 case $cc_temp in
11001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11003 \-*) ;;
11004 *) break;;
11005 esac
11006 done
11007 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11008
11009
11010 # We don't want -fno-exception wen compiling C++ code, so set the
11011 # no_builtin_flag separately
11012 if test "$GXX" = yes; then
11013 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11014 else
11015 lt_prog_compiler_no_builtin_flag_CXX=
11016 fi
11017
11018 if test "$GXX" = yes; then
11019 # Set up default GNU C++ configuration
11020
11021
11022 # Check whether --with-gnu-ld was given.
11023 if test "${with_gnu_ld+set}" = set; then
11024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11025 else
11026 with_gnu_ld=no
11027 fi
11028
11029 ac_prog=ld
11030 if test "$GCC" = yes; then
11031 # Check if gcc -print-prog-name=ld gives a path.
11032 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11033 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11034 case $host in
11035 *-*-mingw*)
11036 # gcc leaves a trailing carriage return which upsets mingw
11037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11038 *)
11039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11040 esac
11041 case $ac_prog in
11042 # Accept absolute paths.
11043 [\\/]* | ?:[\\/]*)
11044 re_direlt='/[^/][^/]*/\.\./'
11045 # Canonicalize the pathname of ld
11046 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11047 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11048 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11049 done
11050 test -z "$LD" && LD="$ac_prog"
11051 ;;
11052 "")
11053 # If it fails, then pretend we aren't using GCC.
11054 ac_prog=ld
11055 ;;
11056 *)
11057 # If it is relative, then search for the first ld in PATH.
11058 with_gnu_ld=unknown
11059 ;;
11060 esac
11061 elif test "$with_gnu_ld" = yes; then
11062 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11063 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11064 else
11065 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11066 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11067 fi
11068 if test "${lt_cv_path_LD+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071 if test -z "$LD"; then
11072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11073 for ac_dir in $PATH; do
11074 IFS="$lt_save_ifs"
11075 test -z "$ac_dir" && ac_dir=.
11076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11077 lt_cv_path_LD="$ac_dir/$ac_prog"
11078 # Check to see if the program is GNU ld. I'd rather use --version,
11079 # but apparently some variants of GNU ld only accept -v.
11080 # Break only if it was the GNU/non-GNU ld that we prefer.
11081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11082 *GNU* | *'with BFD'*)
11083 test "$with_gnu_ld" != no && break
11084 ;;
11085 *)
11086 test "$with_gnu_ld" != yes && break
11087 ;;
11088 esac
11089 fi
11090 done
11091 IFS="$lt_save_ifs"
11092 else
11093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11094 fi
11095 fi
11096
11097 LD="$lt_cv_path_LD"
11098 if test -n "$LD"; then
11099 { echo "$as_me:$LINENO: result: $LD" >&5
11100 echo "${ECHO_T}$LD" >&6; }
11101 else
11102 { echo "$as_me:$LINENO: result: no" >&5
11103 echo "${ECHO_T}no" >&6; }
11104 fi
11105 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11106 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11107 { (exit 1); exit 1; }; }
11108 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11109 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11110 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11114 case `$LD -v 2>&1 </dev/null` in
11115 *GNU* | *'with BFD'*)
11116 lt_cv_prog_gnu_ld=yes
11117 ;;
11118 *)
11119 lt_cv_prog_gnu_ld=no
11120 ;;
11121 esac
11122 fi
11123 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11124 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11125 with_gnu_ld=$lt_cv_prog_gnu_ld
11126
11127
11128
11129 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11130 # archiving commands below assume that GNU ld is being used.
11131 if test "$with_gnu_ld" = yes; then
11132 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133 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'
11134
11135 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11137
11138 # If archive_cmds runs LD, not CC, wlarc should be empty
11139 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11140 # investigate it a little bit more. (MM)
11141 wlarc='${wl}'
11142
11143 # ancient GNU ld didn't support --whole-archive et. al.
11144 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11145 grep 'no-whole-archive' > /dev/null; then
11146 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11147 else
11148 whole_archive_flag_spec_CXX=
11149 fi
11150 else
11151 with_gnu_ld=no
11152 wlarc=
11153
11154 # A generic and very simple default shared library creation
11155 # command for GNU C++ for the case where it uses the native
11156 # linker, instead of GNU ld. If possible, this setting should
11157 # overridden to take advantage of the native linker features on
11158 # the platform it is being used on.
11159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11160 fi
11161
11162 # Commands to make compiler produce verbose output that lists
11163 # what "hidden" libraries, object files and flags are used when
11164 # linking a shared library.
11165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11166
11167 else
11168 GXX=no
11169 with_gnu_ld=no
11170 wlarc=
11171 fi
11172
11173 # PORTME: fill in a description of your system's C++ link characteristics
11174 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11176 ld_shlibs_CXX=yes
11177 case $host_os in
11178 aix3*)
11179 # FIXME: insert proper C++ library support
11180 ld_shlibs_CXX=no
11181 ;;
11182 aix4* | aix5*)
11183 if test "$host_cpu" = ia64; then
11184 # On IA64, the linker does run time linking by default, so we don't
11185 # have to do anything special.
11186 aix_use_runtimelinking=no
11187 exp_sym_flag='-Bexport'
11188 no_entry_flag=""
11189 else
11190 aix_use_runtimelinking=no
11191
11192 # Test if we are trying to use run time linking or normal
11193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11194 # need to do runtime linking.
11195 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11196 for ld_flag in $LDFLAGS; do
11197 case $ld_flag in
11198 *-brtl*)
11199 aix_use_runtimelinking=yes
11200 break
11201 ;;
11202 esac
11203 done
11204 ;;
11205 esac
11206
11207 exp_sym_flag='-bexport'
11208 no_entry_flag='-bnoentry'
11209 fi
11210
11211 # When large executables or shared objects are built, AIX ld can
11212 # have problems creating the table of contents. If linking a library
11213 # or program results in "error TOC overflow" add -mminimal-toc to
11214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11216
11217 archive_cmds_CXX=''
11218 hardcode_direct_CXX=yes
11219 hardcode_libdir_separator_CXX=':'
11220 link_all_deplibs_CXX=yes
11221
11222 if test "$GXX" = yes; then
11223 case $host_os in aix4.[012]|aix4.[012].*)
11224 # We only want to do this on AIX 4.2 and lower, the check
11225 # below for broken collect2 doesn't work under 4.3+
11226 collect2name=`${CC} -print-prog-name=collect2`
11227 if test -f "$collect2name" && \
11228 strings "$collect2name" | grep resolve_lib_name >/dev/null
11229 then
11230 # We have reworked collect2
11231 :
11232 else
11233 # We have old collect2
11234 hardcode_direct_CXX=unsupported
11235 # It fails to find uninstalled libraries when the uninstalled
11236 # path is not listed in the libpath. Setting hardcode_minus_L
11237 # to unsupported forces relinking
11238 hardcode_minus_L_CXX=yes
11239 hardcode_libdir_flag_spec_CXX='-L$libdir'
11240 hardcode_libdir_separator_CXX=
11241 fi
11242 ;;
11243 esac
11244 shared_flag='-shared'
11245 if test "$aix_use_runtimelinking" = yes; then
11246 shared_flag="$shared_flag "'${wl}-G'
11247 fi
11248 else
11249 # not using gcc
11250 if test "$host_cpu" = ia64; then
11251 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11252 # chokes on -Wl,-G. The following line is correct:
11253 shared_flag='-G'
11254 else
11255 if test "$aix_use_runtimelinking" = yes; then
11256 shared_flag='${wl}-G'
11257 else
11258 shared_flag='${wl}-bM:SRE'
11259 fi
11260 fi
11261 fi
11262
11263 # It seems that -bexpall does not export symbols beginning with
11264 # underscore (_), so it is better to generate a list of symbols to export.
11265 always_export_symbols_CXX=yes
11266 if test "$aix_use_runtimelinking" = yes; then
11267 # Warning - without using the other runtime loading flags (-brtl),
11268 # -berok will link without error, but may produce a broken library.
11269 allow_undefined_flag_CXX='-berok'
11270 # Determine the default libpath from the value encoded in an empty executable.
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h. */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277
11278 int
11279 main ()
11280 {
11281
11282 ;
11283 return 0;
11284 }
11285 _ACEOF
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (ac_try="$ac_link"
11288 case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_link") 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && {
11300 test -z "$ac_cxx_werror_flag" ||
11301 test ! -s conftest.err
11302 } && test -s conftest$ac_exeext &&
11303 $as_test_x conftest$ac_exeext; then
11304
11305 lt_aix_libpath_sed='
11306 /Import File Strings/,/^$/ {
11307 /^0/ {
11308 s/^0 *\(.*\)$/\1/
11309 p
11310 }
11311 }'
11312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11313 # Check for a 64-bit object if we didn't find anything.
11314 if test -z "$aix_libpath"; then
11315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11316 fi
11317 else
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321
11322 fi
11323
11324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11325 conftest$ac_exeext conftest.$ac_ext
11326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11327
11328 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11329
11330 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"
11331 else
11332 if test "$host_cpu" = ia64; then
11333 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11334 allow_undefined_flag_CXX="-z nodefs"
11335 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"
11336 else
11337 # Determine the default libpath from the value encoded in an empty executable.
11338 cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h. */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344
11345 int
11346 main ()
11347 {
11348
11349 ;
11350 return 0;
11351 }
11352 _ACEOF
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (ac_try="$ac_link"
11355 case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_link") 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_cxx_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest$ac_exeext &&
11370 $as_test_x conftest$ac_exeext; then
11371
11372 lt_aix_libpath_sed='
11373 /Import File Strings/,/^$/ {
11374 /^0/ {
11375 s/^0 *\(.*\)$/\1/
11376 p
11377 }
11378 }'
11379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11380 # Check for a 64-bit object if we didn't find anything.
11381 if test -z "$aix_libpath"; then
11382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11383 fi
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388
11389 fi
11390
11391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11392 conftest$ac_exeext conftest.$ac_ext
11393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11394
11395 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11396 # Warning - without using the other run time loading flags,
11397 # -berok will link without error, but may produce a broken library.
11398 no_undefined_flag_CXX=' ${wl}-bernotok'
11399 allow_undefined_flag_CXX=' ${wl}-berok'
11400 # Exported symbols can be pulled into shared objects from archives
11401 whole_archive_flag_spec_CXX='$convenience'
11402 archive_cmds_need_lc_CXX=yes
11403 # This is similar to how AIX traditionally builds its shared libraries.
11404 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'
11405 fi
11406 fi
11407 ;;
11408
11409 beos*)
11410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11411 allow_undefined_flag_CXX=unsupported
11412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11413 # support --undefined. This deserves some investigation. FIXME
11414 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11415 else
11416 ld_shlibs_CXX=no
11417 fi
11418 ;;
11419
11420 chorus*)
11421 case $cc_basename in
11422 *)
11423 # FIXME: insert proper C++ library support
11424 ld_shlibs_CXX=no
11425 ;;
11426 esac
11427 ;;
11428
11429 cygwin* | mingw* | pw32*)
11430 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11431 # as there is no search path for DLLs.
11432 hardcode_libdir_flag_spec_CXX='-L$libdir'
11433 allow_undefined_flag_CXX=unsupported
11434 always_export_symbols_CXX=no
11435 enable_shared_with_static_runtimes_CXX=yes
11436
11437 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11438 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'
11439 # If the export-symbols file already is a .def file (1st line
11440 # is EXPORTS), use it as is; otherwise, prepend...
11441 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11442 cp $export_symbols $output_objdir/$soname.def;
11443 else
11444 echo EXPORTS > $output_objdir/$soname.def;
11445 cat $export_symbols >> $output_objdir/$soname.def;
11446 fi~
11447 $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'
11448 else
11449 ld_shlibs_CXX=no
11450 fi
11451 ;;
11452 darwin* | rhapsody*)
11453 case $host_os in
11454 rhapsody* | darwin1.[012])
11455 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11456 ;;
11457 *) # Darwin 1.3 on
11458 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11459 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11460 else
11461 case ${MACOSX_DEPLOYMENT_TARGET} in
11462 10.[012])
11463 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11464 ;;
11465 10.*)
11466 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11467 ;;
11468 esac
11469 fi
11470 ;;
11471 esac
11472 archive_cmds_need_lc_CXX=no
11473 hardcode_direct_CXX=no
11474 hardcode_automatic_CXX=yes
11475 hardcode_shlibpath_var_CXX=unsupported
11476 whole_archive_flag_spec_CXX=''
11477 link_all_deplibs_CXX=yes
11478
11479 if test "$GXX" = yes ; then
11480 lt_int_apple_cc_single_mod=no
11481 output_verbose_link_cmd='echo'
11482 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11483 lt_int_apple_cc_single_mod=yes
11484 fi
11485 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11486 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11487 else
11488 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'
11489 fi
11490 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11492 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11493 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}'
11494 else
11495 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}'
11496 fi
11497 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}'
11498 else
11499 case $cc_basename in
11500 xlc*)
11501 output_verbose_link_cmd='echo'
11502 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'
11503 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11505 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}'
11506 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}'
11507 ;;
11508 *)
11509 ld_shlibs_CXX=no
11510 ;;
11511 esac
11512 fi
11513 ;;
11514
11515 dgux*)
11516 case $cc_basename in
11517 ec++*)
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11520 ;;
11521 ghcx*)
11522 # Green Hills C++ Compiler
11523 # FIXME: insert proper C++ library support
11524 ld_shlibs_CXX=no
11525 ;;
11526 *)
11527 # FIXME: insert proper C++ library support
11528 ld_shlibs_CXX=no
11529 ;;
11530 esac
11531 ;;
11532 freebsd[12]*)
11533 # C++ shared libraries reported to be fairly broken before switch to ELF
11534 ld_shlibs_CXX=no
11535 ;;
11536 freebsd-elf*)
11537 archive_cmds_need_lc_CXX=no
11538 ;;
11539 freebsd* | dragonfly*)
11540 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11541 # conventions
11542 ld_shlibs_CXX=yes
11543 ;;
11544 gnu*)
11545 ;;
11546 hpux9*)
11547 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11548 hardcode_libdir_separator_CXX=:
11549 export_dynamic_flag_spec_CXX='${wl}-E'
11550 hardcode_direct_CXX=yes
11551 hardcode_minus_L_CXX=yes # Not in the search PATH,
11552 # but as the default
11553 # location of the library.
11554
11555 case $cc_basename in
11556 CC*)
11557 # FIXME: insert proper C++ library support
11558 ld_shlibs_CXX=no
11559 ;;
11560 aCC*)
11561 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'
11562 # Commands to make compiler produce verbose output that lists
11563 # what "hidden" libraries, object files and flags are used when
11564 # linking a shared library.
11565 #
11566 # There doesn't appear to be a way to prevent this compiler from
11567 # explicitly linking system object files so we need to strip them
11568 # from the output so that they don't get included in the library
11569 # dependencies.
11570 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'
11571 ;;
11572 *)
11573 if test "$GXX" = yes; then
11574 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'
11575 else
11576 # FIXME: insert proper C++ library support
11577 ld_shlibs_CXX=no
11578 fi
11579 ;;
11580 esac
11581 ;;
11582 hpux10*|hpux11*)
11583 if test $with_gnu_ld = no; then
11584 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11585 hardcode_libdir_separator_CXX=:
11586
11587 case $host_cpu in
11588 hppa*64*|ia64*) ;;
11589 *)
11590 export_dynamic_flag_spec_CXX='${wl}-E'
11591 ;;
11592 esac
11593 fi
11594 case $host_cpu in
11595 hppa*64*|ia64*)
11596 hardcode_direct_CXX=no
11597 hardcode_shlibpath_var_CXX=no
11598 ;;
11599 *)
11600 hardcode_direct_CXX=yes
11601 hardcode_minus_L_CXX=yes # Not in the search PATH,
11602 # but as the default
11603 # location of the library.
11604 ;;
11605 esac
11606
11607 case $cc_basename in
11608 CC*)
11609 # FIXME: insert proper C++ library support
11610 ld_shlibs_CXX=no
11611 ;;
11612 aCC*)
11613 case $host_cpu in
11614 hppa*64*)
11615 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11616 ;;
11617 ia64*)
11618 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11619 ;;
11620 *)
11621 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11622 ;;
11623 esac
11624 # Commands to make compiler produce verbose output that lists
11625 # what "hidden" libraries, object files and flags are used when
11626 # linking a shared library.
11627 #
11628 # There doesn't appear to be a way to prevent this compiler from
11629 # explicitly linking system object files so we need to strip them
11630 # from the output so that they don't get included in the library
11631 # dependencies.
11632 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'
11633 ;;
11634 *)
11635 if test "$GXX" = yes; then
11636 if test $with_gnu_ld = no; then
11637 case $host_cpu in
11638 hppa*64*)
11639 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11640 ;;
11641 ia64*)
11642 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11643 ;;
11644 *)
11645 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'
11646 ;;
11647 esac
11648 fi
11649 else
11650 # FIXME: insert proper C++ library support
11651 ld_shlibs_CXX=no
11652 fi
11653 ;;
11654 esac
11655 ;;
11656 interix[3-9]*)
11657 hardcode_direct_CXX=no
11658 hardcode_shlibpath_var_CXX=no
11659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11660 export_dynamic_flag_spec_CXX='${wl}-E'
11661 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11662 # Instead, shared libraries are loaded at an image base (0x10000000 by
11663 # default) and relocated if they conflict, which is a slow very memory
11664 # consuming and fragmenting process. To avoid this, we pick a random,
11665 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11666 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11667 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'
11668 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'
11669 ;;
11670 irix5* | irix6*)
11671 case $cc_basename in
11672 CC*)
11673 # SGI C++
11674 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'
11675
11676 # Archives containing C++ object files must be created using
11677 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11678 # necessary to make sure instantiated templates are included
11679 # in the archive.
11680 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11681 ;;
11682 *)
11683 if test "$GXX" = yes; then
11684 if test "$with_gnu_ld" = no; then
11685 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'
11686 else
11687 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'
11688 fi
11689 fi
11690 link_all_deplibs_CXX=yes
11691 ;;
11692 esac
11693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11694 hardcode_libdir_separator_CXX=:
11695 ;;
11696 linux* | k*bsd*-gnu)
11697 case $cc_basename in
11698 KCC*)
11699 # Kuck and Associates, Inc. (KAI) C++ Compiler
11700
11701 # KCC will only create a shared library if the output file
11702 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11703 # to its proper name (with version) after linking.
11704 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'
11705 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'
11706 # Commands to make compiler produce verbose output that lists
11707 # what "hidden" libraries, object files and flags are used when
11708 # linking a shared library.
11709 #
11710 # There doesn't appear to be a way to prevent this compiler from
11711 # explicitly linking system object files so we need to strip them
11712 # from the output so that they don't get included in the library
11713 # dependencies.
11714 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'
11715
11716 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11718
11719 # Archives containing C++ object files must be created using
11720 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11721 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11722 ;;
11723 icpc*)
11724 # Intel C++
11725 with_gnu_ld=yes
11726 # version 8.0 and above of icpc choke on multiply defined symbols
11727 # if we add $predep_objects and $postdep_objects, however 7.1 and
11728 # earlier do not add the objects themselves.
11729 case `$CC -V 2>&1` in
11730 *"Version 7."*)
11731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11732 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'
11733 ;;
11734 *) # Version 8.0 or newer
11735 tmp_idyn=
11736 case $host_cpu in
11737 ia64*) tmp_idyn=' -i_dynamic';;
11738 esac
11739 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11740 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'
11741 ;;
11742 esac
11743 archive_cmds_need_lc_CXX=no
11744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11746 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11747 ;;
11748 pgCC*)
11749 # Portland Group C++ compiler
11750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11751 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'
11752
11753 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11755 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'
11756 ;;
11757 cxx*)
11758 # Compaq C++
11759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11760 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'
11761
11762 runpath_var=LD_RUN_PATH
11763 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11764 hardcode_libdir_separator_CXX=:
11765
11766 # Commands to make compiler produce verbose output that lists
11767 # what "hidden" libraries, object files and flags are used when
11768 # linking a shared library.
11769 #
11770 # There doesn't appear to be a way to prevent this compiler from
11771 # explicitly linking system object files so we need to strip them
11772 # from the output so that they don't get included in the library
11773 # dependencies.
11774 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'
11775 ;;
11776 *)
11777 case `$CC -V 2>&1 | sed 5q` in
11778 *Sun\ C*)
11779 # Sun C++ 5.9
11780 no_undefined_flag_CXX=' -zdefs'
11781 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782 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'
11783 hardcode_libdir_flag_spec_CXX='-R$libdir'
11784 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'
11785
11786 # Not sure whether something based on
11787 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11788 # would be better.
11789 output_verbose_link_cmd='echo'
11790
11791 # Archives containing C++ object files must be created using
11792 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11793 # necessary to make sure instantiated templates are included
11794 # in the archive.
11795 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11796 ;;
11797 esac
11798 ;;
11799 esac
11800 ;;
11801 lynxos*)
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 m88k*)
11806 # FIXME: insert proper C++ library support
11807 ld_shlibs_CXX=no
11808 ;;
11809 mvs*)
11810 case $cc_basename in
11811 cxx*)
11812 # FIXME: insert proper C++ library support
11813 ld_shlibs_CXX=no
11814 ;;
11815 *)
11816 # FIXME: insert proper C++ library support
11817 ld_shlibs_CXX=no
11818 ;;
11819 esac
11820 ;;
11821 netbsd*)
11822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11823 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11824 wlarc=
11825 hardcode_libdir_flag_spec_CXX='-R$libdir'
11826 hardcode_direct_CXX=yes
11827 hardcode_shlibpath_var_CXX=no
11828 fi
11829 # Workaround some broken pre-1.5 toolchains
11830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11831 ;;
11832 openbsd2*)
11833 # C++ shared libraries are fairly broken
11834 ld_shlibs_CXX=no
11835 ;;
11836 openbsd*)
11837 if test -f /usr/libexec/ld.so; then
11838 hardcode_direct_CXX=yes
11839 hardcode_shlibpath_var_CXX=no
11840 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11843 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11844 export_dynamic_flag_spec_CXX='${wl}-E'
11845 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11846 fi
11847 output_verbose_link_cmd='echo'
11848 else
11849 ld_shlibs_CXX=no
11850 fi
11851 ;;
11852 osf3*)
11853 case $cc_basename in
11854 KCC*)
11855 # Kuck and Associates, Inc. (KAI) C++ Compiler
11856
11857 # KCC will only create a shared library if the output file
11858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11859 # to its proper name (with version) after linking.
11860 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'
11861
11862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11863 hardcode_libdir_separator_CXX=:
11864
11865 # Archives containing C++ object files must be created using
11866 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11867 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11868
11869 ;;
11870 RCC*)
11871 # Rational C++ 2.4.1
11872 # FIXME: insert proper C++ library support
11873 ld_shlibs_CXX=no
11874 ;;
11875 cxx*)
11876 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11877 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'
11878
11879 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11880 hardcode_libdir_separator_CXX=:
11881
11882 # Commands to make compiler produce verbose output that lists
11883 # what "hidden" libraries, object files and flags are used when
11884 # linking a shared library.
11885 #
11886 # There doesn't appear to be a way to prevent this compiler from
11887 # explicitly linking system object files so we need to strip them
11888 # from the output so that they don't get included in the library
11889 # dependencies.
11890 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'
11891 ;;
11892 *)
11893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11895 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'
11896
11897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11898 hardcode_libdir_separator_CXX=:
11899
11900 # Commands to make compiler produce verbose output that lists
11901 # what "hidden" libraries, object files and flags are used when
11902 # linking a shared library.
11903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11904
11905 else
11906 # FIXME: insert proper C++ library support
11907 ld_shlibs_CXX=no
11908 fi
11909 ;;
11910 esac
11911 ;;
11912 osf4* | osf5*)
11913 case $cc_basename in
11914 KCC*)
11915 # Kuck and Associates, Inc. (KAI) C++ Compiler
11916
11917 # KCC will only create a shared library if the output file
11918 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11919 # to its proper name (with version) after linking.
11920 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'
11921
11922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11923 hardcode_libdir_separator_CXX=:
11924
11925 # Archives containing C++ object files must be created using
11926 # the KAI C++ compiler.
11927 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11928 ;;
11929 RCC*)
11930 # Rational C++ 2.4.1
11931 # FIXME: insert proper C++ library support
11932 ld_shlibs_CXX=no
11933 ;;
11934 cxx*)
11935 allow_undefined_flag_CXX=' -expect_unresolved \*'
11936 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'
11937 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11938 echo "-hidden">> $lib.exp~
11939 $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~
11940 $rm $lib.exp'
11941
11942 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11943 hardcode_libdir_separator_CXX=:
11944
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 #
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11952 # dependencies.
11953 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'
11954 ;;
11955 *)
11956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11958 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'
11959
11960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11961 hardcode_libdir_separator_CXX=:
11962
11963 # Commands to make compiler produce verbose output that lists
11964 # what "hidden" libraries, object files and flags are used when
11965 # linking a shared library.
11966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11967
11968 else
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11971 fi
11972 ;;
11973 esac
11974 ;;
11975 psos*)
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11978 ;;
11979 sunos4*)
11980 case $cc_basename in
11981 CC*)
11982 # Sun C++ 4.x
11983 # FIXME: insert proper C++ library support
11984 ld_shlibs_CXX=no
11985 ;;
11986 lcc*)
11987 # Lucid
11988 # FIXME: insert proper C++ library support
11989 ld_shlibs_CXX=no
11990 ;;
11991 *)
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11994 ;;
11995 esac
11996 ;;
11997 solaris*)
11998 case $cc_basename in
11999 CC*)
12000 # Sun C++ 4.2, 5.x and Centerline C++
12001 archive_cmds_need_lc_CXX=yes
12002 no_undefined_flag_CXX=' -zdefs'
12003 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12004 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12005 $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'
12006
12007 hardcode_libdir_flag_spec_CXX='-R$libdir'
12008 hardcode_shlibpath_var_CXX=no
12009 case $host_os in
12010 solaris2.[0-5] | solaris2.[0-5].*) ;;
12011 *)
12012 # The compiler driver will combine and reorder linker options,
12013 # but understands `-z linker_flag'.
12014 # Supported since Solaris 2.6 (maybe 2.5.1?)
12015 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12016 ;;
12017 esac
12018 link_all_deplibs_CXX=yes
12019
12020 output_verbose_link_cmd='echo'
12021
12022 # Archives containing C++ object files must be created using
12023 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12024 # necessary to make sure instantiated templates are included
12025 # in the archive.
12026 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12027 ;;
12028 gcx*)
12029 # Green Hills C++ Compiler
12030 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12031
12032 # The C++ compiler must be used to create the archive.
12033 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12034 ;;
12035 *)
12036 # GNU C++ compiler with Solaris linker
12037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12038 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12039 if $CC --version | grep -v '^2\.7' > /dev/null; then
12040 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12041 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12042 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12043
12044 # Commands to make compiler produce verbose output that lists
12045 # what "hidden" libraries, object files and flags are used when
12046 # linking a shared library.
12047 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12048 else
12049 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12050 # platform.
12051 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12052 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12053 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12054
12055 # Commands to make compiler produce verbose output that lists
12056 # what "hidden" libraries, object files and flags are used when
12057 # linking a shared library.
12058 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12059 fi
12060
12061 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12062 case $host_os in
12063 solaris2.[0-5] | solaris2.[0-5].*) ;;
12064 *)
12065 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12066 ;;
12067 esac
12068 fi
12069 ;;
12070 esac
12071 ;;
12072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12073 no_undefined_flag_CXX='${wl}-z,text'
12074 archive_cmds_need_lc_CXX=no
12075 hardcode_shlibpath_var_CXX=no
12076 runpath_var='LD_RUN_PATH'
12077
12078 case $cc_basename in
12079 CC*)
12080 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12081 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12082 ;;
12083 *)
12084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12086 ;;
12087 esac
12088 ;;
12089 sysv5* | sco3.2v5* | sco5v6*)
12090 # Note: We can NOT use -z defs as we might desire, because we do not
12091 # link with -lc, and that would cause any symbols used from libc to
12092 # always be unresolved, which means just about no library would
12093 # ever link correctly. If we're not using GNU ld we use -z text
12094 # though, which does catch some bad symbols but isn't as heavy-handed
12095 # as -z defs.
12096 # For security reasons, it is highly recommended that you always
12097 # use absolute paths for naming shared libraries, and exclude the
12098 # DT_RUNPATH tag from executables and libraries. But doing so
12099 # requires that you compile everything twice, which is a pain.
12100 # So that behaviour is only enabled if SCOABSPATH is set to a
12101 # non-empty value in the environment. Most likely only useful for
12102 # creating official distributions of packages.
12103 # This is a hack until libtool officially supports absolute path
12104 # names for shared libraries.
12105 no_undefined_flag_CXX='${wl}-z,text'
12106 allow_undefined_flag_CXX='${wl}-z,nodefs'
12107 archive_cmds_need_lc_CXX=no
12108 hardcode_shlibpath_var_CXX=no
12109 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12110 hardcode_libdir_separator_CXX=':'
12111 link_all_deplibs_CXX=yes
12112 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12113 runpath_var='LD_RUN_PATH'
12114
12115 case $cc_basename in
12116 CC*)
12117 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12118 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12119 ;;
12120 *)
12121 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12122 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12123 ;;
12124 esac
12125 ;;
12126 tandem*)
12127 case $cc_basename in
12128 NCC*)
12129 # NonStop-UX NCC 3.20
12130 # FIXME: insert proper C++ library support
12131 ld_shlibs_CXX=no
12132 ;;
12133 *)
12134 # FIXME: insert proper C++ library support
12135 ld_shlibs_CXX=no
12136 ;;
12137 esac
12138 ;;
12139 vxworks*)
12140 # FIXME: insert proper C++ library support
12141 ld_shlibs_CXX=no
12142 ;;
12143 *)
12144 # FIXME: insert proper C++ library support
12145 ld_shlibs_CXX=no
12146 ;;
12147 esac
12148 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12149 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12150 test "$ld_shlibs_CXX" = no && can_build_shared=no
12151
12152 GCC_CXX="$GXX"
12153 LD_CXX="$LD"
12154
12155
12156 cat > conftest.$ac_ext <<EOF
12157 class Foo
12158 {
12159 public:
12160 Foo (void) { a = 0; }
12161 private:
12162 int a;
12163 };
12164 EOF
12165
12166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12167 (eval $ac_compile) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; then
12171 # Parse the compiler output and extract the necessary
12172 # objects, libraries and library flags.
12173
12174 # Sentinel used to keep track of whether or not we are before
12175 # the conftest object file.
12176 pre_test_object_deps_done=no
12177
12178 # The `*' in the case matches for architectures that use `case' in
12179 # $output_verbose_cmd can trigger glob expansion during the loop
12180 # eval without this substitution.
12181 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12182
12183 for p in `eval $output_verbose_link_cmd`; do
12184 case $p in
12185
12186 -L* | -R* | -l*)
12187 # Some compilers place space between "-{L,R}" and the path.
12188 # Remove the space.
12189 if test $p = "-L" \
12190 || test $p = "-R"; then
12191 prev=$p
12192 continue
12193 else
12194 prev=
12195 fi
12196
12197 if test "$pre_test_object_deps_done" = no; then
12198 case $p in
12199 -L* | -R*)
12200 # Internal compiler library paths should come after those
12201 # provided the user. The postdeps already come after the
12202 # user supplied libs so there is no need to process them.
12203 if test -z "$compiler_lib_search_path_CXX"; then
12204 compiler_lib_search_path_CXX="${prev}${p}"
12205 else
12206 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12207 fi
12208 ;;
12209 # The "-l" case would never come before the object being
12210 # linked, so don't bother handling this case.
12211 esac
12212 else
12213 if test -z "$postdeps_CXX"; then
12214 postdeps_CXX="${prev}${p}"
12215 else
12216 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12217 fi
12218 fi
12219 ;;
12220
12221 *.$objext)
12222 # This assumes that the test object file only shows up
12223 # once in the compiler output.
12224 if test "$p" = "conftest.$objext"; then
12225 pre_test_object_deps_done=yes
12226 continue
12227 fi
12228
12229 if test "$pre_test_object_deps_done" = no; then
12230 if test -z "$predep_objects_CXX"; then
12231 predep_objects_CXX="$p"
12232 else
12233 predep_objects_CXX="$predep_objects_CXX $p"
12234 fi
12235 else
12236 if test -z "$postdep_objects_CXX"; then
12237 postdep_objects_CXX="$p"
12238 else
12239 postdep_objects_CXX="$postdep_objects_CXX $p"
12240 fi
12241 fi
12242 ;;
12243
12244 *) ;; # Ignore the rest.
12245
12246 esac
12247 done
12248
12249 # Clean up.
12250 rm -f a.out a.exe
12251 else
12252 echo "libtool.m4: error: problem compiling CXX test program"
12253 fi
12254
12255 $rm -f confest.$objext
12256
12257 # PORTME: override above test on systems where it is broken
12258 case $host_os in
12259 interix[3-9]*)
12260 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12261 # hack all around it, let's just trust "g++" to DTRT.
12262 predep_objects_CXX=
12263 postdep_objects_CXX=
12264 postdeps_CXX=
12265 ;;
12266
12267 linux*)
12268 case `$CC -V 2>&1 | sed 5q` in
12269 *Sun\ C*)
12270 # Sun C++ 5.9
12271 #
12272 # The more standards-conforming stlport4 library is
12273 # incompatible with the Cstd library. Avoid specifying
12274 # it if it's in CXXFLAGS. Ignore libCrun as
12275 # -library=stlport4 depends on it.
12276 case " $CXX $CXXFLAGS " in
12277 *" -library=stlport4 "*)
12278 solaris_use_stlport4=yes
12279 ;;
12280 esac
12281 if test "$solaris_use_stlport4" != yes; then
12282 postdeps_CXX='-library=Cstd -library=Crun'
12283 fi
12284 ;;
12285 esac
12286 ;;
12287
12288 solaris*)
12289 case $cc_basename in
12290 CC*)
12291 # The more standards-conforming stlport4 library is
12292 # incompatible with the Cstd library. Avoid specifying
12293 # it if it's in CXXFLAGS. Ignore libCrun as
12294 # -library=stlport4 depends on it.
12295 case " $CXX $CXXFLAGS " in
12296 *" -library=stlport4 "*)
12297 solaris_use_stlport4=yes
12298 ;;
12299 esac
12300
12301 # Adding this requires a known-good setup of shared libraries for
12302 # Sun compiler versions before 5.6, else PIC objects from an old
12303 # archive will be linked into the output, leading to subtle bugs.
12304 if test "$solaris_use_stlport4" != yes; then
12305 postdeps_CXX='-library=Cstd -library=Crun'
12306 fi
12307 ;;
12308 esac
12309 ;;
12310 esac
12311
12312
12313 case " $postdeps_CXX " in
12314 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12315 esac
12316
12317 lt_prog_compiler_wl_CXX=
12318 lt_prog_compiler_pic_CXX=
12319 lt_prog_compiler_static_CXX=
12320
12321 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12322 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12323
12324 # C++ specific cases for pic, static, wl, etc.
12325 if test "$GXX" = yes; then
12326 lt_prog_compiler_wl_CXX='-Wl,'
12327 lt_prog_compiler_static_CXX='-static'
12328
12329 case $host_os in
12330 aix*)
12331 # All AIX code is PIC.
12332 if test "$host_cpu" = ia64; then
12333 # AIX 5 now supports IA64 processor
12334 lt_prog_compiler_static_CXX='-Bstatic'
12335 fi
12336 ;;
12337 amigaos*)
12338 # FIXME: we need at least 68020 code to build shared libraries, but
12339 # adding the `-m68020' flag to GCC prevents building anything better,
12340 # like `-m68040'.
12341 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12342 ;;
12343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12344 # PIC is the default for these OSes.
12345 ;;
12346 mingw* | cygwin* | os2* | pw32*)
12347 # This hack is so that the source file can tell whether it is being
12348 # built for inclusion in a dll (and should export symbols for example).
12349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12350 # (--disable-auto-import) libraries
12351 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12352 ;;
12353 darwin* | rhapsody*)
12354 # PIC is the default on this platform
12355 # Common symbols not allowed in MH_DYLIB files
12356 lt_prog_compiler_pic_CXX='-fno-common'
12357 ;;
12358 *djgpp*)
12359 # DJGPP does not support shared libraries at all
12360 lt_prog_compiler_pic_CXX=
12361 ;;
12362 interix[3-9]*)
12363 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12364 # Instead, we relocate shared libraries at runtime.
12365 ;;
12366 sysv4*MP*)
12367 if test -d /usr/nec; then
12368 lt_prog_compiler_pic_CXX=-Kconform_pic
12369 fi
12370 ;;
12371 hpux*)
12372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12373 # not for PA HP-UX.
12374 case $host_cpu in
12375 hppa*64*|ia64*)
12376 ;;
12377 *)
12378 lt_prog_compiler_pic_CXX='-fPIC'
12379 ;;
12380 esac
12381 ;;
12382 *)
12383 lt_prog_compiler_pic_CXX='-fPIC'
12384 ;;
12385 esac
12386 else
12387 case $host_os in
12388 aix4* | aix5*)
12389 # All AIX code is PIC.
12390 if test "$host_cpu" = ia64; then
12391 # AIX 5 now supports IA64 processor
12392 lt_prog_compiler_static_CXX='-Bstatic'
12393 else
12394 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12395 fi
12396 ;;
12397 chorus*)
12398 case $cc_basename in
12399 cxch68*)
12400 # Green Hills C++ Compiler
12401 # _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"
12402 ;;
12403 esac
12404 ;;
12405 darwin*)
12406 # PIC is the default on this platform
12407 # Common symbols not allowed in MH_DYLIB files
12408 case $cc_basename in
12409 xlc*)
12410 lt_prog_compiler_pic_CXX='-qnocommon'
12411 lt_prog_compiler_wl_CXX='-Wl,'
12412 ;;
12413 esac
12414 ;;
12415 dgux*)
12416 case $cc_basename in
12417 ec++*)
12418 lt_prog_compiler_pic_CXX='-KPIC'
12419 ;;
12420 ghcx*)
12421 # Green Hills C++ Compiler
12422 lt_prog_compiler_pic_CXX='-pic'
12423 ;;
12424 *)
12425 ;;
12426 esac
12427 ;;
12428 freebsd* | dragonfly*)
12429 # FreeBSD uses GNU C++
12430 ;;
12431 hpux9* | hpux10* | hpux11*)
12432 case $cc_basename in
12433 CC*)
12434 lt_prog_compiler_wl_CXX='-Wl,'
12435 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12436 if test "$host_cpu" != ia64; then
12437 lt_prog_compiler_pic_CXX='+Z'
12438 fi
12439 ;;
12440 aCC*)
12441 lt_prog_compiler_wl_CXX='-Wl,'
12442 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12443 case $host_cpu in
12444 hppa*64*|ia64*)
12445 # +Z the default
12446 ;;
12447 *)
12448 lt_prog_compiler_pic_CXX='+Z'
12449 ;;
12450 esac
12451 ;;
12452 *)
12453 ;;
12454 esac
12455 ;;
12456 interix*)
12457 # This is c89, which is MS Visual C++ (no shared libs)
12458 # Anyone wants to do a port?
12459 ;;
12460 irix5* | irix6* | nonstopux*)
12461 case $cc_basename in
12462 CC*)
12463 lt_prog_compiler_wl_CXX='-Wl,'
12464 lt_prog_compiler_static_CXX='-non_shared'
12465 # CC pic flag -KPIC is the default.
12466 ;;
12467 *)
12468 ;;
12469 esac
12470 ;;
12471 linux* | k*bsd*-gnu)
12472 case $cc_basename in
12473 KCC*)
12474 # KAI C++ Compiler
12475 lt_prog_compiler_wl_CXX='--backend -Wl,'
12476 lt_prog_compiler_pic_CXX='-fPIC'
12477 ;;
12478 icpc* | ecpc*)
12479 # Intel C++
12480 lt_prog_compiler_wl_CXX='-Wl,'
12481 lt_prog_compiler_pic_CXX='-KPIC'
12482 lt_prog_compiler_static_CXX='-static'
12483 ;;
12484 pgCC*)
12485 # Portland Group C++ compiler.
12486 lt_prog_compiler_wl_CXX='-Wl,'
12487 lt_prog_compiler_pic_CXX='-fpic'
12488 lt_prog_compiler_static_CXX='-Bstatic'
12489 ;;
12490 cxx*)
12491 # Compaq C++
12492 # Make sure the PIC flag is empty. It appears that all Alpha
12493 # Linux and Compaq Tru64 Unix objects are PIC.
12494 lt_prog_compiler_pic_CXX=
12495 lt_prog_compiler_static_CXX='-non_shared'
12496 ;;
12497 *)
12498 case `$CC -V 2>&1 | sed 5q` in
12499 *Sun\ C*)
12500 # Sun C++ 5.9
12501 lt_prog_compiler_pic_CXX='-KPIC'
12502 lt_prog_compiler_static_CXX='-Bstatic'
12503 lt_prog_compiler_wl_CXX='-Qoption ld '
12504 ;;
12505 esac
12506 ;;
12507 esac
12508 ;;
12509 lynxos*)
12510 ;;
12511 m88k*)
12512 ;;
12513 mvs*)
12514 case $cc_basename in
12515 cxx*)
12516 lt_prog_compiler_pic_CXX='-W c,exportall'
12517 ;;
12518 *)
12519 ;;
12520 esac
12521 ;;
12522 netbsd*)
12523 ;;
12524 osf3* | osf4* | osf5*)
12525 case $cc_basename in
12526 KCC*)
12527 lt_prog_compiler_wl_CXX='--backend -Wl,'
12528 ;;
12529 RCC*)
12530 # Rational C++ 2.4.1
12531 lt_prog_compiler_pic_CXX='-pic'
12532 ;;
12533 cxx*)
12534 # Digital/Compaq C++
12535 lt_prog_compiler_wl_CXX='-Wl,'
12536 # Make sure the PIC flag is empty. It appears that all Alpha
12537 # Linux and Compaq Tru64 Unix objects are PIC.
12538 lt_prog_compiler_pic_CXX=
12539 lt_prog_compiler_static_CXX='-non_shared'
12540 ;;
12541 *)
12542 ;;
12543 esac
12544 ;;
12545 psos*)
12546 ;;
12547 solaris*)
12548 case $cc_basename in
12549 CC*)
12550 # Sun C++ 4.2, 5.x and Centerline C++
12551 lt_prog_compiler_pic_CXX='-KPIC'
12552 lt_prog_compiler_static_CXX='-Bstatic'
12553 lt_prog_compiler_wl_CXX='-Qoption ld '
12554 ;;
12555 gcx*)
12556 # Green Hills C++ Compiler
12557 lt_prog_compiler_pic_CXX='-PIC'
12558 ;;
12559 *)
12560 ;;
12561 esac
12562 ;;
12563 sunos4*)
12564 case $cc_basename in
12565 CC*)
12566 # Sun C++ 4.x
12567 lt_prog_compiler_pic_CXX='-pic'
12568 lt_prog_compiler_static_CXX='-Bstatic'
12569 ;;
12570 lcc*)
12571 # Lucid
12572 lt_prog_compiler_pic_CXX='-pic'
12573 ;;
12574 *)
12575 ;;
12576 esac
12577 ;;
12578 tandem*)
12579 case $cc_basename in
12580 NCC*)
12581 # NonStop-UX NCC 3.20
12582 lt_prog_compiler_pic_CXX='-KPIC'
12583 ;;
12584 *)
12585 ;;
12586 esac
12587 ;;
12588 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12589 case $cc_basename in
12590 CC*)
12591 lt_prog_compiler_wl_CXX='-Wl,'
12592 lt_prog_compiler_pic_CXX='-KPIC'
12593 lt_prog_compiler_static_CXX='-Bstatic'
12594 ;;
12595 esac
12596 ;;
12597 vxworks*)
12598 ;;
12599 *)
12600 lt_prog_compiler_can_build_shared_CXX=no
12601 ;;
12602 esac
12603 fi
12604
12605 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12606 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12607
12608 #
12609 # Check to make sure the PIC flag actually works.
12610 #
12611 if test -n "$lt_prog_compiler_pic_CXX"; then
12612
12613 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12614 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12615 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618 lt_prog_compiler_pic_works_CXX=no
12619 ac_outfile=conftest.$ac_objext
12620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12621 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12622 # Insert the option either (1) after the last *FLAGS variable, or
12623 # (2) before a word containing "conftest.", or (3) at the end.
12624 # Note that $ac_compile itself does not contain backslashes and begins
12625 # with a dollar sign (not a hyphen), so the echo should work correctly.
12626 # The option is referenced via a variable to avoid confusing sed.
12627 lt_compile=`echo "$ac_compile" | $SED \
12628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12630 -e 's:$: $lt_compiler_flag:'`
12631 (eval echo "\"\$as_me:12631: $lt_compile\"" >&5)
12632 (eval "$lt_compile" 2>conftest.err)
12633 ac_status=$?
12634 cat conftest.err >&5
12635 echo "$as_me:12635: \$? = $ac_status" >&5
12636 if (exit $ac_status) && test -s "$ac_outfile"; then
12637 # The compiler can only warn and ignore the option if not recognized
12638 # So say no if there are warnings other than the usual output.
12639 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12642 lt_prog_compiler_pic_works_CXX=yes
12643 fi
12644 fi
12645 $rm conftest*
12646
12647 fi
12648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12649 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12650
12651 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12652 case $lt_prog_compiler_pic_CXX in
12653 "" | " "*) ;;
12654 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12655 esac
12656 else
12657 lt_prog_compiler_pic_CXX=
12658 lt_prog_compiler_can_build_shared_CXX=no
12659 fi
12660
12661 fi
12662 case $host_os in
12663 # For platforms which do not support PIC, -DPIC is meaningless:
12664 *djgpp*)
12665 lt_prog_compiler_pic_CXX=
12666 ;;
12667 *)
12668 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12669 ;;
12670 esac
12671
12672 #
12673 # Check to make sure the static flag actually works.
12674 #
12675 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12676 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12677 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12678 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681 lt_prog_compiler_static_works_CXX=no
12682 save_LDFLAGS="$LDFLAGS"
12683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12684 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12686 # The linker can only warn and ignore the option if not recognized
12687 # So say no if there are warnings
12688 if test -s conftest.err; then
12689 # Append any errors to the config.log.
12690 cat conftest.err 1>&5
12691 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12693 if diff conftest.exp conftest.er2 >/dev/null; then
12694 lt_prog_compiler_static_works_CXX=yes
12695 fi
12696 else
12697 lt_prog_compiler_static_works_CXX=yes
12698 fi
12699 fi
12700 $rm conftest*
12701 LDFLAGS="$save_LDFLAGS"
12702
12703 fi
12704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12705 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12706
12707 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12708 :
12709 else
12710 lt_prog_compiler_static_CXX=
12711 fi
12712
12713
12714 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12715 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12716 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719 lt_cv_prog_compiler_c_o_CXX=no
12720 $rm -r conftest 2>/dev/null
12721 mkdir conftest
12722 cd conftest
12723 mkdir out
12724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12725
12726 lt_compiler_flag="-o out/conftest2.$ac_objext"
12727 # Insert the option either (1) after the last *FLAGS variable, or
12728 # (2) before a word containing "conftest.", or (3) at the end.
12729 # Note that $ac_compile itself does not contain backslashes and begins
12730 # with a dollar sign (not a hyphen), so the echo should work correctly.
12731 lt_compile=`echo "$ac_compile" | $SED \
12732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12734 -e 's:$: $lt_compiler_flag:'`
12735 (eval echo "\"\$as_me:12735: $lt_compile\"" >&5)
12736 (eval "$lt_compile" 2>out/conftest.err)
12737 ac_status=$?
12738 cat out/conftest.err >&5
12739 echo "$as_me:12739: \$? = $ac_status" >&5
12740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12741 then
12742 # The compiler can only warn and ignore the option if not recognized
12743 # So say no if there are warnings
12744 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12747 lt_cv_prog_compiler_c_o_CXX=yes
12748 fi
12749 fi
12750 chmod u+w . 2>&5
12751 $rm conftest*
12752 # SGI C++ compiler will create directory out/ii_files/ for
12753 # template instantiation
12754 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12755 $rm out/* && rmdir out
12756 cd ..
12757 rmdir conftest
12758 $rm conftest*
12759
12760 fi
12761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12762 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12763
12764
12765 hard_links="nottested"
12766 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12767 # do not overwrite the value of need_locks provided by the user
12768 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12769 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12770 hard_links=yes
12771 $rm conftest*
12772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12773 touch conftest.a
12774 ln conftest.a conftest.b 2>&5 || hard_links=no
12775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12776 { echo "$as_me:$LINENO: result: $hard_links" >&5
12777 echo "${ECHO_T}$hard_links" >&6; }
12778 if test "$hard_links" = no; then
12779 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12780 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12781 need_locks=warn
12782 fi
12783 else
12784 need_locks=no
12785 fi
12786
12787 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12788 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12789
12790 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12791 case $host_os in
12792 aix4* | aix5*)
12793 # If we're using GNU nm, then we don't want the "-C" option.
12794 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12795 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12796 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'
12797 else
12798 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'
12799 fi
12800 ;;
12801 pw32*)
12802 export_symbols_cmds_CXX="$ltdll_cmds"
12803 ;;
12804 cygwin* | mingw*)
12805 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'
12806 ;;
12807 *)
12808 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12809 ;;
12810 esac
12811
12812 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12813 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12814 test "$ld_shlibs_CXX" = no && can_build_shared=no
12815
12816 #
12817 # Do we need to explicitly link libc?
12818 #
12819 case "x$archive_cmds_need_lc_CXX" in
12820 x|xyes)
12821 # Assume -lc should be added
12822 archive_cmds_need_lc_CXX=yes
12823
12824 if test "$enable_shared" = yes && test "$GCC" = yes; then
12825 case $archive_cmds_CXX in
12826 *'~'*)
12827 # FIXME: we may have to deal with multi-command sequences.
12828 ;;
12829 '$CC '*)
12830 # Test whether the compiler implicitly links with -lc since on some
12831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12832 # to ld, don't add -lc before -lgcc.
12833 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12834 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12835 $rm conftest*
12836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12837
12838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12839 (eval $ac_compile) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } 2>conftest.err; then
12843 soname=conftest
12844 lib=conftest
12845 libobjs=conftest.$ac_objext
12846 deplibs=
12847 wl=$lt_prog_compiler_wl_CXX
12848 pic_flag=$lt_prog_compiler_pic_CXX
12849 compiler_flags=-v
12850 linker_flags=-v
12851 verstring=
12852 output_objdir=.
12853 libname=conftest
12854 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12855 allow_undefined_flag_CXX=
12856 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12857 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }
12861 then
12862 archive_cmds_need_lc_CXX=no
12863 else
12864 archive_cmds_need_lc_CXX=yes
12865 fi
12866 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12867 else
12868 cat conftest.err 1>&5
12869 fi
12870 $rm conftest*
12871 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12872 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12873 ;;
12874 esac
12875 fi
12876 ;;
12877 esac
12878
12879 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12880 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12881 library_names_spec=
12882 libname_spec='lib$name'
12883 soname_spec=
12884 shrext_cmds=".so"
12885 postinstall_cmds=
12886 postuninstall_cmds=
12887 finish_cmds=
12888 finish_eval=
12889 shlibpath_var=
12890 shlibpath_overrides_runpath=unknown
12891 version_type=none
12892 dynamic_linker="$host_os ld.so"
12893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12894
12895 need_lib_prefix=unknown
12896 hardcode_into_libs=no
12897
12898 # when you set need_version to no, make sure it does not cause -set_version
12899 # flags to be left without arguments
12900 need_version=unknown
12901
12902 case $host_os in
12903 aix3*)
12904 version_type=linux
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12906 shlibpath_var=LIBPATH
12907
12908 # AIX 3 has no versioning support, so we append a major version to the name.
12909 soname_spec='${libname}${release}${shared_ext}$major'
12910 ;;
12911
12912 aix4* | aix5*)
12913 version_type=linux
12914 need_lib_prefix=no
12915 need_version=no
12916 hardcode_into_libs=yes
12917 if test "$host_cpu" = ia64; then
12918 # AIX 5 supports IA64
12919 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 else
12922 # With GCC up to 2.95.x, collect2 would create an import file
12923 # for dependence libraries. The import file would start with
12924 # the line `#! .'. This would cause the generated library to
12925 # depend on `.', always an invalid library. This was fixed in
12926 # development snapshots of GCC prior to 3.0.
12927 case $host_os in
12928 aix4 | aix4.[01] | aix4.[01].*)
12929 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12930 echo ' yes '
12931 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12932 :
12933 else
12934 can_build_shared=no
12935 fi
12936 ;;
12937 esac
12938 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12939 # soname into executable. Probably we can add versioning support to
12940 # collect2, so additional links can be useful in future.
12941 if test "$aix_use_runtimelinking" = yes; then
12942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12943 # instead of lib<name>.a to let people know that these are not
12944 # typical AIX shared libraries.
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 else
12947 # We preserve .a as extension for shared libraries through AIX4.2
12948 # and later when we are not doing run time linking.
12949 library_names_spec='${libname}${release}.a $libname.a'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 fi
12952 shlibpath_var=LIBPATH
12953 fi
12954 ;;
12955
12956 amigaos*)
12957 library_names_spec='$libname.ixlibrary $libname.a'
12958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12959 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'
12960 ;;
12961
12962 beos*)
12963 library_names_spec='${libname}${shared_ext}'
12964 dynamic_linker="$host_os ld.so"
12965 shlibpath_var=LIBRARY_PATH
12966 ;;
12967
12968 bsdi[45]*)
12969 version_type=linux
12970 need_version=no
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972 soname_spec='${libname}${release}${shared_ext}$major'
12973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12974 shlibpath_var=LD_LIBRARY_PATH
12975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12977 # the default ld.so.conf also contains /usr/contrib/lib and
12978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12979 # libtool to hard-code these into programs
12980 ;;
12981
12982 cygwin* | mingw* | pw32*)
12983 version_type=windows
12984 shrext_cmds=".dll"
12985 need_version=no
12986 need_lib_prefix=no
12987
12988 case $GCC,$host_os in
12989 yes,cygwin* | yes,mingw* | yes,pw32*)
12990 library_names_spec='$libname.dll.a'
12991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12992 postinstall_cmds='base_file=`basename \${file}`~
12993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12994 dldir=$destdir/`dirname \$dlpath`~
12995 test -d \$dldir || mkdir -p \$dldir~
12996 $install_prog $dir/$dlname \$dldir/$dlname~
12997 chmod a+x \$dldir/$dlname'
12998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12999 dlpath=$dir/\$dldll~
13000 $rm \$dlpath'
13001 shlibpath_overrides_runpath=yes
13002
13003 case $host_os in
13004 cygwin*)
13005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13008 ;;
13009 mingw*)
13010 # MinGW DLLs use traditional 'lib' prefix
13011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13014 # It is most probably a Windows format PATH printed by
13015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13016 # path with ; separators, and with drive letters. We can handle the
13017 # drive letters (cygwin fileutils understands them), so leave them,
13018 # especially as we might pass files found there to a mingw objdump,
13019 # which wouldn't understand a cygwinified path. Ahh.
13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13021 else
13022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13023 fi
13024 ;;
13025 pw32*)
13026 # pw32 DLLs use 'pw' prefix rather than 'lib'
13027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13028 ;;
13029 esac
13030 ;;
13031
13032 *)
13033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13034 ;;
13035 esac
13036 dynamic_linker='Win32 ld.exe'
13037 # FIXME: first we should search . and the directory the executable is in
13038 shlibpath_var=PATH
13039 ;;
13040
13041 darwin* | rhapsody*)
13042 dynamic_linker="$host_os dyld"
13043 version_type=darwin
13044 need_lib_prefix=no
13045 need_version=no
13046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13047 soname_spec='${libname}${release}${major}$shared_ext'
13048 shlibpath_overrides_runpath=yes
13049 shlibpath_var=DYLD_LIBRARY_PATH
13050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13051
13052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13053 ;;
13054
13055 dgux*)
13056 version_type=linux
13057 need_lib_prefix=no
13058 need_version=no
13059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13060 soname_spec='${libname}${release}${shared_ext}$major'
13061 shlibpath_var=LD_LIBRARY_PATH
13062 ;;
13063
13064 freebsd1*)
13065 dynamic_linker=no
13066 ;;
13067
13068 freebsd* | dragonfly*)
13069 # DragonFly does not have aout. When/if they implement a new
13070 # versioning mechanism, adjust this.
13071 if test -x /usr/bin/objformat; then
13072 objformat=`/usr/bin/objformat`
13073 else
13074 case $host_os in
13075 freebsd[123]*) objformat=aout ;;
13076 *) objformat=elf ;;
13077 esac
13078 fi
13079 version_type=freebsd-$objformat
13080 case $version_type in
13081 freebsd-elf*)
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13083 need_version=no
13084 need_lib_prefix=no
13085 ;;
13086 freebsd-*)
13087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13088 need_version=yes
13089 ;;
13090 esac
13091 shlibpath_var=LD_LIBRARY_PATH
13092 case $host_os in
13093 freebsd2*)
13094 shlibpath_overrides_runpath=yes
13095 ;;
13096 freebsd3.[01]* | freebsdelf3.[01]*)
13097 shlibpath_overrides_runpath=yes
13098 hardcode_into_libs=yes
13099 ;;
13100 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13101 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13102 shlibpath_overrides_runpath=no
13103 hardcode_into_libs=yes
13104 ;;
13105 *) # from 4.6 on, and DragonFly
13106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 ;;
13109 esac
13110 ;;
13111
13112 gnu*)
13113 version_type=linux
13114 need_lib_prefix=no
13115 need_version=no
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 shlibpath_var=LD_LIBRARY_PATH
13119 hardcode_into_libs=yes
13120 ;;
13121
13122 hpux9* | hpux10* | hpux11*)
13123 # Give a soname corresponding to the major version so that dld.sl refuses to
13124 # link against other versions.
13125 version_type=sunos
13126 need_lib_prefix=no
13127 need_version=no
13128 case $host_cpu in
13129 ia64*)
13130 shrext_cmds='.so'
13131 hardcode_into_libs=yes
13132 dynamic_linker="$host_os dld.so"
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 if test "X$HPUX_IA64_MODE" = X32; then
13138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13139 else
13140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13141 fi
13142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13143 ;;
13144 hppa*64*)
13145 shrext_cmds='.sl'
13146 hardcode_into_libs=yes
13147 dynamic_linker="$host_os dld.sl"
13148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13151 soname_spec='${libname}${release}${shared_ext}$major'
13152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13154 ;;
13155 *)
13156 shrext_cmds='.sl'
13157 dynamic_linker="$host_os dld.sl"
13158 shlibpath_var=SHLIB_PATH
13159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 ;;
13163 esac
13164 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13165 postinstall_cmds='chmod 555 $lib'
13166 ;;
13167
13168 interix[3-9]*)
13169 version_type=linux
13170 need_lib_prefix=no
13171 need_version=no
13172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13173 soname_spec='${libname}${release}${shared_ext}$major'
13174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13175 shlibpath_var=LD_LIBRARY_PATH
13176 shlibpath_overrides_runpath=no
13177 hardcode_into_libs=yes
13178 ;;
13179
13180 irix5* | irix6* | nonstopux*)
13181 case $host_os in
13182 nonstopux*) version_type=nonstopux ;;
13183 *)
13184 if test "$lt_cv_prog_gnu_ld" = yes; then
13185 version_type=linux
13186 else
13187 version_type=irix
13188 fi ;;
13189 esac
13190 need_lib_prefix=no
13191 need_version=no
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13194 case $host_os in
13195 irix5* | nonstopux*)
13196 libsuff= shlibsuff=
13197 ;;
13198 *)
13199 case $LD in # libtool.m4 will add one of these switches to LD
13200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13201 libsuff= shlibsuff= libmagic=32-bit;;
13202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13203 libsuff=32 shlibsuff=N32 libmagic=N32;;
13204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13205 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13206 *) libsuff= shlibsuff= libmagic=never-match;;
13207 esac
13208 ;;
13209 esac
13210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13211 shlibpath_overrides_runpath=no
13212 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13213 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13214 hardcode_into_libs=yes
13215 ;;
13216
13217 # No shared lib support for Linux oldld, aout, or coff.
13218 linux*oldld* | linux*aout* | linux*coff*)
13219 dynamic_linker=no
13220 ;;
13221
13222 # This must be Linux ELF.
13223 linux* | k*bsd*-gnu)
13224 version_type=linux
13225 need_lib_prefix=no
13226 need_version=no
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228 soname_spec='${libname}${release}${shared_ext}$major'
13229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13230 shlibpath_var=LD_LIBRARY_PATH
13231 shlibpath_overrides_runpath=no
13232 # This implies no fast_install, which is unacceptable.
13233 # Some rework will be needed to allow for fast_install
13234 # before this can be enabled.
13235 hardcode_into_libs=yes
13236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13238
13239 # Append ld.so.conf contents to the search path
13240 if test -f /etc/ld.so.conf; then
13241 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' ' '`
13242 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13243 fi
13244
13245 # We used to test for /lib/ld.so.1 and disable shared libraries on
13246 # powerpc, because MkLinux only supported shared libraries with the
13247 # GNU dynamic linker. Since this was broken with cross compilers,
13248 # most powerpc-linux boxes support dynamic linking these days and
13249 # people can always --disable-shared, the test was removed, and we
13250 # assume the GNU/Linux dynamic linker is in use.
13251 dynamic_linker='GNU/Linux ld.so'
13252 ;;
13253
13254 netbsd*)
13255 version_type=sunos
13256 need_lib_prefix=no
13257 need_version=no
13258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13261 dynamic_linker='NetBSD (a.out) ld.so'
13262 else
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13264 soname_spec='${libname}${release}${shared_ext}$major'
13265 dynamic_linker='NetBSD ld.elf_so'
13266 fi
13267 shlibpath_var=LD_LIBRARY_PATH
13268 shlibpath_overrides_runpath=yes
13269 hardcode_into_libs=yes
13270 ;;
13271
13272 newsos6)
13273 version_type=linux
13274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13275 shlibpath_var=LD_LIBRARY_PATH
13276 shlibpath_overrides_runpath=yes
13277 ;;
13278
13279 nto-qnx*)
13280 version_type=linux
13281 need_lib_prefix=no
13282 need_version=no
13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284 soname_spec='${libname}${release}${shared_ext}$major'
13285 shlibpath_var=LD_LIBRARY_PATH
13286 shlibpath_overrides_runpath=yes
13287 ;;
13288
13289 openbsd*)
13290 version_type=sunos
13291 sys_lib_dlsearch_path_spec="/usr/lib"
13292 need_lib_prefix=no
13293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13294 case $host_os in
13295 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13296 *) need_version=no ;;
13297 esac
13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13300 shlibpath_var=LD_LIBRARY_PATH
13301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13302 case $host_os in
13303 openbsd2.[89] | openbsd2.[89].*)
13304 shlibpath_overrides_runpath=no
13305 ;;
13306 *)
13307 shlibpath_overrides_runpath=yes
13308 ;;
13309 esac
13310 else
13311 shlibpath_overrides_runpath=yes
13312 fi
13313 ;;
13314
13315 os2*)
13316 libname_spec='$name'
13317 shrext_cmds=".dll"
13318 need_lib_prefix=no
13319 library_names_spec='$libname${shared_ext} $libname.a'
13320 dynamic_linker='OS/2 ld.exe'
13321 shlibpath_var=LIBPATH
13322 ;;
13323
13324 osf3* | osf4* | osf5*)
13325 version_type=osf
13326 need_lib_prefix=no
13327 need_version=no
13328 soname_spec='${libname}${release}${shared_ext}$major'
13329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13333 ;;
13334
13335 rdos*)
13336 dynamic_linker=no
13337 ;;
13338
13339 solaris*)
13340 version_type=linux
13341 need_lib_prefix=no
13342 need_version=no
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=yes
13347 hardcode_into_libs=yes
13348 # ldd complains unless libraries are executable
13349 postinstall_cmds='chmod +x $lib'
13350 ;;
13351
13352 sunos4*)
13353 version_type=sunos
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 shlibpath_overrides_runpath=yes
13358 if test "$with_gnu_ld" = yes; then
13359 need_lib_prefix=no
13360 fi
13361 need_version=yes
13362 ;;
13363
13364 sysv4 | sysv4.3*)
13365 version_type=linux
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 case $host_vendor in
13370 sni)
13371 shlibpath_overrides_runpath=no
13372 need_lib_prefix=no
13373 export_dynamic_flag_spec='${wl}-Blargedynsym'
13374 runpath_var=LD_RUN_PATH
13375 ;;
13376 siemens)
13377 need_lib_prefix=no
13378 ;;
13379 motorola)
13380 need_lib_prefix=no
13381 need_version=no
13382 shlibpath_overrides_runpath=no
13383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13384 ;;
13385 esac
13386 ;;
13387
13388 sysv4*MP*)
13389 if test -d /usr/nec ;then
13390 version_type=linux
13391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13392 soname_spec='$libname${shared_ext}.$major'
13393 shlibpath_var=LD_LIBRARY_PATH
13394 fi
13395 ;;
13396
13397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13398 version_type=freebsd-elf
13399 need_lib_prefix=no
13400 need_version=no
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 hardcode_into_libs=yes
13405 if test "$with_gnu_ld" = yes; then
13406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13407 shlibpath_overrides_runpath=no
13408 else
13409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13410 shlibpath_overrides_runpath=yes
13411 case $host_os in
13412 sco3.2v5*)
13413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13414 ;;
13415 esac
13416 fi
13417 sys_lib_dlsearch_path_spec='/usr/lib'
13418 ;;
13419
13420 uts4*)
13421 version_type=linux
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 ;;
13426
13427 *)
13428 dynamic_linker=no
13429 ;;
13430 esac
13431 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13432 echo "${ECHO_T}$dynamic_linker" >&6; }
13433 test "$dynamic_linker" = no && can_build_shared=no
13434
13435 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13436 if test "$GCC" = yes; then
13437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13438 fi
13439
13440 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13441 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13442 hardcode_action_CXX=
13443 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13444 test -n "$runpath_var_CXX" || \
13445 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13446
13447 # We can hardcode non-existant directories.
13448 if test "$hardcode_direct_CXX" != no &&
13449 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13450 # have to relink, otherwise we might link with an installed library
13451 # when we should be linking with a yet-to-be-installed one
13452 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13453 test "$hardcode_minus_L_CXX" != no; then
13454 # Linking always hardcodes the temporary library directory.
13455 hardcode_action_CXX=relink
13456 else
13457 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13458 hardcode_action_CXX=immediate
13459 fi
13460 else
13461 # We cannot hardcode anything, or else we can only hardcode existing
13462 # directories.
13463 hardcode_action_CXX=unsupported
13464 fi
13465 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13466 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13467
13468 if test "$hardcode_action_CXX" = relink; then
13469 # Fast installation is not supported
13470 enable_fast_install=no
13471 elif test "$shlibpath_overrides_runpath" = yes ||
13472 test "$enable_shared" = no; then
13473 # Fast installation is not necessary
13474 enable_fast_install=needless
13475 fi
13476
13477
13478 # The else clause should only fire when bootstrapping the
13479 # libtool distribution, otherwise you forgot to ship ltmain.sh
13480 # with your package, and you will get complaints that there are
13481 # no rules to generate ltmain.sh.
13482 if test -f "$ltmain"; then
13483 # See if we are running on zsh, and set the options which allow our commands through
13484 # without removal of \ escapes.
13485 if test -n "${ZSH_VERSION+set}" ; then
13486 setopt NO_GLOB_SUBST
13487 fi
13488 # Now quote all the things that may contain metacharacters while being
13489 # careful not to overquote the AC_SUBSTed values. We take copies of the
13490 # variables and quote the copies for generation of the libtool script.
13491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13492 SED SHELL STRIP \
13493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13495 deplibs_check_method reload_flag reload_cmds need_locks \
13496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13497 lt_cv_sys_global_symbol_to_c_name_address \
13498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13499 old_postinstall_cmds old_postuninstall_cmds \
13500 compiler_CXX \
13501 CC_CXX \
13502 LD_CXX \
13503 lt_prog_compiler_wl_CXX \
13504 lt_prog_compiler_pic_CXX \
13505 lt_prog_compiler_static_CXX \
13506 lt_prog_compiler_no_builtin_flag_CXX \
13507 export_dynamic_flag_spec_CXX \
13508 thread_safe_flag_spec_CXX \
13509 whole_archive_flag_spec_CXX \
13510 enable_shared_with_static_runtimes_CXX \
13511 old_archive_cmds_CXX \
13512 old_archive_from_new_cmds_CXX \
13513 predep_objects_CXX \
13514 postdep_objects_CXX \
13515 predeps_CXX \
13516 postdeps_CXX \
13517 compiler_lib_search_path_CXX \
13518 archive_cmds_CXX \
13519 archive_expsym_cmds_CXX \
13520 postinstall_cmds_CXX \
13521 postuninstall_cmds_CXX \
13522 old_archive_from_expsyms_cmds_CXX \
13523 allow_undefined_flag_CXX \
13524 no_undefined_flag_CXX \
13525 export_symbols_cmds_CXX \
13526 hardcode_libdir_flag_spec_CXX \
13527 hardcode_libdir_flag_spec_ld_CXX \
13528 hardcode_libdir_separator_CXX \
13529 hardcode_automatic_CXX \
13530 module_cmds_CXX \
13531 module_expsym_cmds_CXX \
13532 lt_cv_prog_compiler_c_o_CXX \
13533 fix_srcfile_path_CXX \
13534 exclude_expsyms_CXX \
13535 include_expsyms_CXX; do
13536
13537 case $var in
13538 old_archive_cmds_CXX | \
13539 old_archive_from_new_cmds_CXX | \
13540 archive_cmds_CXX | \
13541 archive_expsym_cmds_CXX | \
13542 module_cmds_CXX | \
13543 module_expsym_cmds_CXX | \
13544 old_archive_from_expsyms_cmds_CXX | \
13545 export_symbols_cmds_CXX | \
13546 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13547 postinstall_cmds | postuninstall_cmds | \
13548 old_postinstall_cmds | old_postuninstall_cmds | \
13549 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13550 # Double-quote double-evaled strings.
13551 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13552 ;;
13553 *)
13554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13555 ;;
13556 esac
13557 done
13558
13559 case $lt_echo in
13560 *'\$0 --fallback-echo"')
13561 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13562 ;;
13563 esac
13564
13565 cfgfile="$ofile"
13566
13567 cat <<__EOF__ >> "$cfgfile"
13568 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13569
13570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13571
13572 # Shell to use when invoking shell scripts.
13573 SHELL=$lt_SHELL
13574
13575 # Whether or not to build shared libraries.
13576 build_libtool_libs=$enable_shared
13577
13578 # Whether or not to build static libraries.
13579 build_old_libs=$enable_static
13580
13581 # Whether or not to add -lc for building shared libraries.
13582 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13583
13584 # Whether or not to disallow shared libs when runtime libs are static
13585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13586
13587 # Whether or not to optimize for fast installation.
13588 fast_install=$enable_fast_install
13589
13590 # The host system.
13591 host_alias=$host_alias
13592 host=$host
13593 host_os=$host_os
13594
13595 # The build system.
13596 build_alias=$build_alias
13597 build=$build
13598 build_os=$build_os
13599
13600 # An echo program that does not interpret backslashes.
13601 echo=$lt_echo
13602
13603 # The archiver.
13604 AR=$lt_AR
13605 AR_FLAGS=$lt_AR_FLAGS
13606
13607 # A C compiler.
13608 LTCC=$lt_LTCC
13609
13610 # LTCC compiler flags.
13611 LTCFLAGS=$lt_LTCFLAGS
13612
13613 # A language-specific compiler.
13614 CC=$lt_compiler_CXX
13615
13616 # Is the compiler the GNU C compiler?
13617 with_gcc=$GCC_CXX
13618
13619 # An ERE matcher.
13620 EGREP=$lt_EGREP
13621
13622 # The linker used to build libraries.
13623 LD=$lt_LD_CXX
13624
13625 # Whether we need hard or soft links.
13626 LN_S=$lt_LN_S
13627
13628 # A BSD-compatible nm program.
13629 NM=$lt_NM
13630
13631 # A symbol stripping program
13632 STRIP=$lt_STRIP
13633
13634 # Used to examine libraries when file_magic_cmd begins "file"
13635 MAGIC_CMD=$MAGIC_CMD
13636
13637 # Used on cygwin: DLL creation program.
13638 DLLTOOL="$DLLTOOL"
13639
13640 # Used on cygwin: object dumper.
13641 OBJDUMP="$OBJDUMP"
13642
13643 # Used on cygwin: assembler.
13644 AS="$AS"
13645
13646 # The name of the directory that contains temporary libtool files.
13647 objdir=$objdir
13648
13649 # How to create reloadable object files.
13650 reload_flag=$lt_reload_flag
13651 reload_cmds=$lt_reload_cmds
13652
13653 # How to pass a linker flag through the compiler.
13654 wl=$lt_lt_prog_compiler_wl_CXX
13655
13656 # Object file suffix (normally "o").
13657 objext="$ac_objext"
13658
13659 # Old archive suffix (normally "a").
13660 libext="$libext"
13661
13662 # Shared library suffix (normally ".so").
13663 shrext_cmds='$shrext_cmds'
13664
13665 # Executable file suffix (normally "").
13666 exeext="$exeext"
13667
13668 # Additional compiler flags for building library objects.
13669 pic_flag=$lt_lt_prog_compiler_pic_CXX
13670 pic_mode=$pic_mode
13671
13672 # What is the maximum length of a command?
13673 max_cmd_len=$lt_cv_sys_max_cmd_len
13674
13675 # Does compiler simultaneously support -c and -o options?
13676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13677
13678 # Must we lock files when doing compilation?
13679 need_locks=$lt_need_locks
13680
13681 # Do we need the lib prefix for modules?
13682 need_lib_prefix=$need_lib_prefix
13683
13684 # Do we need a version for libraries?
13685 need_version=$need_version
13686
13687 # Whether dlopen is supported.
13688 dlopen_support=$enable_dlopen
13689
13690 # Whether dlopen of programs is supported.
13691 dlopen_self=$enable_dlopen_self
13692
13693 # Whether dlopen of statically linked programs is supported.
13694 dlopen_self_static=$enable_dlopen_self_static
13695
13696 # Compiler flag to prevent dynamic linking.
13697 link_static_flag=$lt_lt_prog_compiler_static_CXX
13698
13699 # Compiler flag to turn off builtin functions.
13700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13701
13702 # Compiler flag to allow reflexive dlopens.
13703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13704
13705 # Compiler flag to generate shared objects directly from archives.
13706 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13707
13708 # Compiler flag to generate thread-safe objects.
13709 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13710
13711 # Library versioning type.
13712 version_type=$version_type
13713
13714 # Format of library name prefix.
13715 libname_spec=$lt_libname_spec
13716
13717 # List of archive names. First name is the real one, the rest are links.
13718 # The last name is the one that the linker finds with -lNAME.
13719 library_names_spec=$lt_library_names_spec
13720
13721 # The coded name of the library, if different from the real name.
13722 soname_spec=$lt_soname_spec
13723
13724 # Commands used to build and install an old-style archive.
13725 RANLIB=$lt_RANLIB
13726 old_archive_cmds=$lt_old_archive_cmds_CXX
13727 old_postinstall_cmds=$lt_old_postinstall_cmds
13728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13729
13730 # Create an old-style archive from a shared archive.
13731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13732
13733 # Create a temporary old-style archive to link instead of a shared archive.
13734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13735
13736 # Commands used to build and install a shared archive.
13737 archive_cmds=$lt_archive_cmds_CXX
13738 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13739 postinstall_cmds=$lt_postinstall_cmds
13740 postuninstall_cmds=$lt_postuninstall_cmds
13741
13742 # Commands used to build a loadable module (assumed same as above if empty)
13743 module_cmds=$lt_module_cmds_CXX
13744 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13745
13746 # Commands to strip libraries.
13747 old_striplib=$lt_old_striplib
13748 striplib=$lt_striplib
13749
13750 # Dependencies to place before the objects being linked to create a
13751 # shared library.
13752 predep_objects=$lt_predep_objects_CXX
13753
13754 # Dependencies to place after the objects being linked to create a
13755 # shared library.
13756 postdep_objects=$lt_postdep_objects_CXX
13757
13758 # Dependencies to place before the objects being linked to create a
13759 # shared library.
13760 predeps=$lt_predeps_CXX
13761
13762 # Dependencies to place after the objects being linked to create a
13763 # shared library.
13764 postdeps=$lt_postdeps_CXX
13765
13766 # The library search path used internally by the compiler when linking
13767 # a shared library.
13768 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13769
13770 # Method to check whether dependent libraries are shared objects.
13771 deplibs_check_method=$lt_deplibs_check_method
13772
13773 # Command to use when deplibs_check_method == file_magic.
13774 file_magic_cmd=$lt_file_magic_cmd
13775
13776 # Flag that allows shared libraries with undefined symbols to be built.
13777 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13778
13779 # Flag that forces no undefined symbols.
13780 no_undefined_flag=$lt_no_undefined_flag_CXX
13781
13782 # Commands used to finish a libtool library installation in a directory.
13783 finish_cmds=$lt_finish_cmds
13784
13785 # Same as above, but a single script fragment to be evaled but not shown.
13786 finish_eval=$lt_finish_eval
13787
13788 # Take the output of nm and produce a listing of raw symbols and C names.
13789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13790
13791 # Transform the output of nm in a proper C declaration
13792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13793
13794 # Transform the output of nm in a C name address pair
13795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13796
13797 # This is the shared library runtime path variable.
13798 runpath_var=$runpath_var
13799
13800 # This is the shared library path variable.
13801 shlibpath_var=$shlibpath_var
13802
13803 # Is shlibpath searched before the hard-coded library search path?
13804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13805
13806 # How to hardcode a shared library path into an executable.
13807 hardcode_action=$hardcode_action_CXX
13808
13809 # Whether we should hardcode library paths into libraries.
13810 hardcode_into_libs=$hardcode_into_libs
13811
13812 # Flag to hardcode \$libdir into a binary during linking.
13813 # This must work even if \$libdir does not exist.
13814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13815
13816 # If ld is used when linking, flag to hardcode \$libdir into
13817 # a binary during linking. This must work even if \$libdir does
13818 # not exist.
13819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13820
13821 # Whether we need a single -rpath flag with a separated argument.
13822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13823
13824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13825 # resulting binary.
13826 hardcode_direct=$hardcode_direct_CXX
13827
13828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13829 # resulting binary.
13830 hardcode_minus_L=$hardcode_minus_L_CXX
13831
13832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13833 # the resulting binary.
13834 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13835
13836 # Set to yes if building a shared library automatically hardcodes DIR into the library
13837 # and all subsequent libraries and executables linked against it.
13838 hardcode_automatic=$hardcode_automatic_CXX
13839
13840 # Variables whose values should be saved in libtool wrapper scripts and
13841 # restored at relink time.
13842 variables_saved_for_relink="$variables_saved_for_relink"
13843
13844 # Whether libtool must link a program against all its dependency libraries.
13845 link_all_deplibs=$link_all_deplibs_CXX
13846
13847 # Compile-time system search path for libraries
13848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13849
13850 # Run-time system search path for libraries
13851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13852
13853 # Fix the shell variable \$srcfile for the compiler.
13854 fix_srcfile_path=$lt_fix_srcfile_path
13855
13856 # Set to yes if exported symbols are required.
13857 always_export_symbols=$always_export_symbols_CXX
13858
13859 # The commands to list exported symbols.
13860 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13861
13862 # The commands to extract the exported symbol list from a shared archive.
13863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13864
13865 # Symbols that should not be listed in the preloaded symbols.
13866 exclude_expsyms=$lt_exclude_expsyms_CXX
13867
13868 # Symbols that must always be exported.
13869 include_expsyms=$lt_include_expsyms_CXX
13870
13871 # ### END LIBTOOL TAG CONFIG: $tagname
13872
13873 __EOF__
13874
13875
13876 else
13877 # If there is no Makefile yet, we rely on a make rule to execute
13878 # `config.status --recheck' to rerun these tests and create the
13879 # libtool script then.
13880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13881 if test -f "$ltmain_in"; then
13882 test -f Makefile && make "$ltmain"
13883 fi
13884 fi
13885
13886
13887 ac_ext=c
13888 ac_cpp='$CPP $CPPFLAGS'
13889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13892
13893 CC=$lt_save_CC
13894 LDCXX=$LD
13895 LD=$lt_save_LD
13896 GCC=$lt_save_GCC
13897 with_gnu_ldcxx=$with_gnu_ld
13898 with_gnu_ld=$lt_save_with_gnu_ld
13899 lt_cv_path_LDCXX=$lt_cv_path_LD
13900 lt_cv_path_LD=$lt_save_path_LD
13901 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13902 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13903
13904 else
13905 tagname=""
13906 fi
13907 ;;
13908
13909 F77)
13910 if test -n "$F77" && test "X$F77" != "Xno"; then
13911
13912 ac_ext=f
13913 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13914 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13916
13917
13918 archive_cmds_need_lc_F77=no
13919 allow_undefined_flag_F77=
13920 always_export_symbols_F77=no
13921 archive_expsym_cmds_F77=
13922 export_dynamic_flag_spec_F77=
13923 hardcode_direct_F77=no
13924 hardcode_libdir_flag_spec_F77=
13925 hardcode_libdir_flag_spec_ld_F77=
13926 hardcode_libdir_separator_F77=
13927 hardcode_minus_L_F77=no
13928 hardcode_automatic_F77=no
13929 module_cmds_F77=
13930 module_expsym_cmds_F77=
13931 link_all_deplibs_F77=unknown
13932 old_archive_cmds_F77=$old_archive_cmds
13933 no_undefined_flag_F77=
13934 whole_archive_flag_spec_F77=
13935 enable_shared_with_static_runtimes_F77=no
13936
13937 # Source file extension for f77 test sources.
13938 ac_ext=f
13939
13940 # Object file extension for compiled f77 test sources.
13941 objext=o
13942 objext_F77=$objext
13943
13944 # Code to be used in simple compile tests
13945 lt_simple_compile_test_code="\
13946 subroutine t
13947 return
13948 end
13949 "
13950
13951 # Code to be used in simple link tests
13952 lt_simple_link_test_code="\
13953 program t
13954 end
13955 "
13956
13957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13958
13959 # If no C compiler was specified, use CC.
13960 LTCC=${LTCC-"$CC"}
13961
13962 # If no C compiler flags were specified, use CFLAGS.
13963 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13964
13965 # Allow CC to be a program name with arguments.
13966 compiler=$CC
13967
13968
13969 # save warnings/boilerplate of simple test code
13970 ac_outfile=conftest.$ac_objext
13971 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13972 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13973 _lt_compiler_boilerplate=`cat conftest.err`
13974 $rm conftest*
13975
13976 ac_outfile=conftest.$ac_objext
13977 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13978 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13979 _lt_linker_boilerplate=`cat conftest.err`
13980 $rm conftest*
13981
13982
13983 # Allow CC to be a program name with arguments.
13984 lt_save_CC="$CC"
13985 CC=${F77-"f77"}
13986 compiler=$CC
13987 compiler_F77=$CC
13988 for cc_temp in $compiler""; do
13989 case $cc_temp in
13990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13992 \-*) ;;
13993 *) break;;
13994 esac
13995 done
13996 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13997
13998
13999 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14000 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14001 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14002 echo "${ECHO_T}$can_build_shared" >&6; }
14003
14004 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14005 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14006 test "$can_build_shared" = "no" && enable_shared=no
14007
14008 # On AIX, shared libraries and static libraries use the same namespace, and
14009 # are all built from PIC.
14010 case $host_os in
14011 aix3*)
14012 test "$enable_shared" = yes && enable_static=no
14013 if test -n "$RANLIB"; then
14014 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14015 postinstall_cmds='$RANLIB $lib'
14016 fi
14017 ;;
14018 aix4* | aix5*)
14019 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14020 test "$enable_shared" = yes && enable_static=no
14021 fi
14022 ;;
14023 esac
14024 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14025 echo "${ECHO_T}$enable_shared" >&6; }
14026
14027 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14028 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14029 # Make sure either enable_shared or enable_static is yes.
14030 test "$enable_shared" = yes || enable_static=yes
14031 { echo "$as_me:$LINENO: result: $enable_static" >&5
14032 echo "${ECHO_T}$enable_static" >&6; }
14033
14034 GCC_F77="$G77"
14035 LD_F77="$LD"
14036
14037 lt_prog_compiler_wl_F77=
14038 lt_prog_compiler_pic_F77=
14039 lt_prog_compiler_static_F77=
14040
14041 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14042 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14043
14044 if test "$GCC" = yes; then
14045 lt_prog_compiler_wl_F77='-Wl,'
14046 lt_prog_compiler_static_F77='-static'
14047
14048 case $host_os in
14049 aix*)
14050 # All AIX code is PIC.
14051 if test "$host_cpu" = ia64; then
14052 # AIX 5 now supports IA64 processor
14053 lt_prog_compiler_static_F77='-Bstatic'
14054 fi
14055 ;;
14056
14057 amigaos*)
14058 # FIXME: we need at least 68020 code to build shared libraries, but
14059 # adding the `-m68020' flag to GCC prevents building anything better,
14060 # like `-m68040'.
14061 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14062 ;;
14063
14064 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14065 # PIC is the default for these OSes.
14066 ;;
14067
14068 mingw* | cygwin* | pw32* | os2*)
14069 # This hack is so that the source file can tell whether it is being
14070 # built for inclusion in a dll (and should export symbols for example).
14071 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14072 # (--disable-auto-import) libraries
14073 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14074 ;;
14075
14076 darwin* | rhapsody*)
14077 # PIC is the default on this platform
14078 # Common symbols not allowed in MH_DYLIB files
14079 lt_prog_compiler_pic_F77='-fno-common'
14080 ;;
14081
14082 interix[3-9]*)
14083 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14084 # Instead, we relocate shared libraries at runtime.
14085 ;;
14086
14087 msdosdjgpp*)
14088 # Just because we use GCC doesn't mean we suddenly get shared libraries
14089 # on systems that don't support them.
14090 lt_prog_compiler_can_build_shared_F77=no
14091 enable_shared=no
14092 ;;
14093
14094 sysv4*MP*)
14095 if test -d /usr/nec; then
14096 lt_prog_compiler_pic_F77=-Kconform_pic
14097 fi
14098 ;;
14099
14100 hpux*)
14101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14102 # not for PA HP-UX.
14103 case $host_cpu in
14104 hppa*64*|ia64*)
14105 # +Z the default
14106 ;;
14107 *)
14108 lt_prog_compiler_pic_F77='-fPIC'
14109 ;;
14110 esac
14111 ;;
14112
14113 *)
14114 lt_prog_compiler_pic_F77='-fPIC'
14115 ;;
14116 esac
14117 else
14118 # PORTME Check for flag to pass linker flags through the system compiler.
14119 case $host_os in
14120 aix*)
14121 lt_prog_compiler_wl_F77='-Wl,'
14122 if test "$host_cpu" = ia64; then
14123 # AIX 5 now supports IA64 processor
14124 lt_prog_compiler_static_F77='-Bstatic'
14125 else
14126 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14127 fi
14128 ;;
14129 darwin*)
14130 # PIC is the default on this platform
14131 # Common symbols not allowed in MH_DYLIB files
14132 case $cc_basename in
14133 xlc*)
14134 lt_prog_compiler_pic_F77='-qnocommon'
14135 lt_prog_compiler_wl_F77='-Wl,'
14136 ;;
14137 esac
14138 ;;
14139
14140 mingw* | cygwin* | pw32* | os2*)
14141 # This hack is so that the source file can tell whether it is being
14142 # built for inclusion in a dll (and should export symbols for example).
14143 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14144 ;;
14145
14146 hpux9* | hpux10* | hpux11*)
14147 lt_prog_compiler_wl_F77='-Wl,'
14148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14149 # not for PA HP-UX.
14150 case $host_cpu in
14151 hppa*64*|ia64*)
14152 # +Z the default
14153 ;;
14154 *)
14155 lt_prog_compiler_pic_F77='+Z'
14156 ;;
14157 esac
14158 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14159 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14160 ;;
14161
14162 irix5* | irix6* | nonstopux*)
14163 lt_prog_compiler_wl_F77='-Wl,'
14164 # PIC (with -KPIC) is the default.
14165 lt_prog_compiler_static_F77='-non_shared'
14166 ;;
14167
14168 newsos6)
14169 lt_prog_compiler_pic_F77='-KPIC'
14170 lt_prog_compiler_static_F77='-Bstatic'
14171 ;;
14172
14173 linux* | k*bsd*-gnu)
14174 case $cc_basename in
14175 icc* | ecc*)
14176 lt_prog_compiler_wl_F77='-Wl,'
14177 lt_prog_compiler_pic_F77='-KPIC'
14178 lt_prog_compiler_static_F77='-static'
14179 ;;
14180 pgcc* | pgf77* | pgf90* | pgf95*)
14181 # Portland Group compilers (*not* the Pentium gcc compiler,
14182 # which looks to be a dead project)
14183 lt_prog_compiler_wl_F77='-Wl,'
14184 lt_prog_compiler_pic_F77='-fpic'
14185 lt_prog_compiler_static_F77='-Bstatic'
14186 ;;
14187 ccc*)
14188 lt_prog_compiler_wl_F77='-Wl,'
14189 # All Alpha code is PIC.
14190 lt_prog_compiler_static_F77='-non_shared'
14191 ;;
14192 *)
14193 case `$CC -V 2>&1 | sed 5q` in
14194 *Sun\ C*)
14195 # Sun C 5.9
14196 lt_prog_compiler_pic_F77='-KPIC'
14197 lt_prog_compiler_static_F77='-Bstatic'
14198 lt_prog_compiler_wl_F77='-Wl,'
14199 ;;
14200 *Sun\ F*)
14201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14202 lt_prog_compiler_pic_F77='-KPIC'
14203 lt_prog_compiler_static_F77='-Bstatic'
14204 lt_prog_compiler_wl_F77=''
14205 ;;
14206 esac
14207 ;;
14208 esac
14209 ;;
14210
14211 osf3* | osf4* | osf5*)
14212 lt_prog_compiler_wl_F77='-Wl,'
14213 # All OSF/1 code is PIC.
14214 lt_prog_compiler_static_F77='-non_shared'
14215 ;;
14216
14217 rdos*)
14218 lt_prog_compiler_static_F77='-non_shared'
14219 ;;
14220
14221 solaris*)
14222 lt_prog_compiler_pic_F77='-KPIC'
14223 lt_prog_compiler_static_F77='-Bstatic'
14224 case $cc_basename in
14225 f77* | f90* | f95*)
14226 lt_prog_compiler_wl_F77='-Qoption ld ';;
14227 *)
14228 lt_prog_compiler_wl_F77='-Wl,';;
14229 esac
14230 ;;
14231
14232 sunos4*)
14233 lt_prog_compiler_wl_F77='-Qoption ld '
14234 lt_prog_compiler_pic_F77='-PIC'
14235 lt_prog_compiler_static_F77='-Bstatic'
14236 ;;
14237
14238 sysv4 | sysv4.2uw2* | sysv4.3*)
14239 lt_prog_compiler_wl_F77='-Wl,'
14240 lt_prog_compiler_pic_F77='-KPIC'
14241 lt_prog_compiler_static_F77='-Bstatic'
14242 ;;
14243
14244 sysv4*MP*)
14245 if test -d /usr/nec ;then
14246 lt_prog_compiler_pic_F77='-Kconform_pic'
14247 lt_prog_compiler_static_F77='-Bstatic'
14248 fi
14249 ;;
14250
14251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14252 lt_prog_compiler_wl_F77='-Wl,'
14253 lt_prog_compiler_pic_F77='-KPIC'
14254 lt_prog_compiler_static_F77='-Bstatic'
14255 ;;
14256
14257 unicos*)
14258 lt_prog_compiler_wl_F77='-Wl,'
14259 lt_prog_compiler_can_build_shared_F77=no
14260 ;;
14261
14262 uts4*)
14263 lt_prog_compiler_pic_F77='-pic'
14264 lt_prog_compiler_static_F77='-Bstatic'
14265 ;;
14266
14267 *)
14268 lt_prog_compiler_can_build_shared_F77=no
14269 ;;
14270 esac
14271 fi
14272
14273 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14274 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14275
14276 #
14277 # Check to make sure the PIC flag actually works.
14278 #
14279 if test -n "$lt_prog_compiler_pic_F77"; then
14280
14281 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14282 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14283 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286 lt_prog_compiler_pic_works_F77=no
14287 ac_outfile=conftest.$ac_objext
14288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14289 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14290 # Insert the option either (1) after the last *FLAGS variable, or
14291 # (2) before a word containing "conftest.", or (3) at the end.
14292 # Note that $ac_compile itself does not contain backslashes and begins
14293 # with a dollar sign (not a hyphen), so the echo should work correctly.
14294 # The option is referenced via a variable to avoid confusing sed.
14295 lt_compile=`echo "$ac_compile" | $SED \
14296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14298 -e 's:$: $lt_compiler_flag:'`
14299 (eval echo "\"\$as_me:14299: $lt_compile\"" >&5)
14300 (eval "$lt_compile" 2>conftest.err)
14301 ac_status=$?
14302 cat conftest.err >&5
14303 echo "$as_me:14303: \$? = $ac_status" >&5
14304 if (exit $ac_status) && test -s "$ac_outfile"; then
14305 # The compiler can only warn and ignore the option if not recognized
14306 # So say no if there are warnings other than the usual output.
14307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14310 lt_prog_compiler_pic_works_F77=yes
14311 fi
14312 fi
14313 $rm conftest*
14314
14315 fi
14316 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14317 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14318
14319 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14320 case $lt_prog_compiler_pic_F77 in
14321 "" | " "*) ;;
14322 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14323 esac
14324 else
14325 lt_prog_compiler_pic_F77=
14326 lt_prog_compiler_can_build_shared_F77=no
14327 fi
14328
14329 fi
14330 case $host_os in
14331 # For platforms which do not support PIC, -DPIC is meaningless:
14332 *djgpp*)
14333 lt_prog_compiler_pic_F77=
14334 ;;
14335 *)
14336 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14337 ;;
14338 esac
14339
14340 #
14341 # Check to make sure the static flag actually works.
14342 #
14343 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14344 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14345 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14346 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349 lt_prog_compiler_static_works_F77=no
14350 save_LDFLAGS="$LDFLAGS"
14351 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14352 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14353 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14354 # The linker can only warn and ignore the option if not recognized
14355 # So say no if there are warnings
14356 if test -s conftest.err; then
14357 # Append any errors to the config.log.
14358 cat conftest.err 1>&5
14359 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14361 if diff conftest.exp conftest.er2 >/dev/null; then
14362 lt_prog_compiler_static_works_F77=yes
14363 fi
14364 else
14365 lt_prog_compiler_static_works_F77=yes
14366 fi
14367 fi
14368 $rm conftest*
14369 LDFLAGS="$save_LDFLAGS"
14370
14371 fi
14372 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14373 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14374
14375 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14376 :
14377 else
14378 lt_prog_compiler_static_F77=
14379 fi
14380
14381
14382 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14383 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14384 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387 lt_cv_prog_compiler_c_o_F77=no
14388 $rm -r conftest 2>/dev/null
14389 mkdir conftest
14390 cd conftest
14391 mkdir out
14392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14393
14394 lt_compiler_flag="-o out/conftest2.$ac_objext"
14395 # Insert the option either (1) after the last *FLAGS variable, or
14396 # (2) before a word containing "conftest.", or (3) at the end.
14397 # Note that $ac_compile itself does not contain backslashes and begins
14398 # with a dollar sign (not a hyphen), so the echo should work correctly.
14399 lt_compile=`echo "$ac_compile" | $SED \
14400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14402 -e 's:$: $lt_compiler_flag:'`
14403 (eval echo "\"\$as_me:14403: $lt_compile\"" >&5)
14404 (eval "$lt_compile" 2>out/conftest.err)
14405 ac_status=$?
14406 cat out/conftest.err >&5
14407 echo "$as_me:14407: \$? = $ac_status" >&5
14408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14409 then
14410 # The compiler can only warn and ignore the option if not recognized
14411 # So say no if there are warnings
14412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14415 lt_cv_prog_compiler_c_o_F77=yes
14416 fi
14417 fi
14418 chmod u+w . 2>&5
14419 $rm conftest*
14420 # SGI C++ compiler will create directory out/ii_files/ for
14421 # template instantiation
14422 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14423 $rm out/* && rmdir out
14424 cd ..
14425 rmdir conftest
14426 $rm conftest*
14427
14428 fi
14429 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14430 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14431
14432
14433 hard_links="nottested"
14434 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14435 # do not overwrite the value of need_locks provided by the user
14436 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14437 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14438 hard_links=yes
14439 $rm conftest*
14440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14441 touch conftest.a
14442 ln conftest.a conftest.b 2>&5 || hard_links=no
14443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14444 { echo "$as_me:$LINENO: result: $hard_links" >&5
14445 echo "${ECHO_T}$hard_links" >&6; }
14446 if test "$hard_links" = no; then
14447 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14448 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14449 need_locks=warn
14450 fi
14451 else
14452 need_locks=no
14453 fi
14454
14455 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14456 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14457
14458 runpath_var=
14459 allow_undefined_flag_F77=
14460 enable_shared_with_static_runtimes_F77=no
14461 archive_cmds_F77=
14462 archive_expsym_cmds_F77=
14463 old_archive_From_new_cmds_F77=
14464 old_archive_from_expsyms_cmds_F77=
14465 export_dynamic_flag_spec_F77=
14466 whole_archive_flag_spec_F77=
14467 thread_safe_flag_spec_F77=
14468 hardcode_libdir_flag_spec_F77=
14469 hardcode_libdir_flag_spec_ld_F77=
14470 hardcode_libdir_separator_F77=
14471 hardcode_direct_F77=no
14472 hardcode_minus_L_F77=no
14473 hardcode_shlibpath_var_F77=unsupported
14474 link_all_deplibs_F77=unknown
14475 hardcode_automatic_F77=no
14476 module_cmds_F77=
14477 module_expsym_cmds_F77=
14478 always_export_symbols_F77=no
14479 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14480 # include_expsyms should be a list of space-separated symbols to be *always*
14481 # included in the symbol list
14482 include_expsyms_F77=
14483 # exclude_expsyms can be an extended regexp of symbols to exclude
14484 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14485 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14486 # as well as any symbol that contains `d'.
14487 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14488 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14489 # platforms (ab)use it in PIC code, but their linkers get confused if
14490 # the symbol is explicitly referenced. Since portable code cannot
14491 # rely on this symbol name, it's probably fine to never include it in
14492 # preloaded symbol tables.
14493 extract_expsyms_cmds=
14494 # Just being paranoid about ensuring that cc_basename is set.
14495 for cc_temp in $compiler""; do
14496 case $cc_temp in
14497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14499 \-*) ;;
14500 *) break;;
14501 esac
14502 done
14503 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14504
14505 case $host_os in
14506 cygwin* | mingw* | pw32*)
14507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14508 # When not using gcc, we currently assume that we are using
14509 # Microsoft Visual C++.
14510 if test "$GCC" != yes; then
14511 with_gnu_ld=no
14512 fi
14513 ;;
14514 interix*)
14515 # we just hope/assume this is gcc and not c89 (= MSVC++)
14516 with_gnu_ld=yes
14517 ;;
14518 openbsd*)
14519 with_gnu_ld=no
14520 ;;
14521 esac
14522
14523 ld_shlibs_F77=yes
14524 if test "$with_gnu_ld" = yes; then
14525 # If archive_cmds runs LD, not CC, wlarc should be empty
14526 wlarc='${wl}'
14527
14528 # Set some defaults for GNU ld with shared library support. These
14529 # are reset later if shared libraries are not supported. Putting them
14530 # here allows them to be overridden if necessary.
14531 runpath_var=LD_RUN_PATH
14532 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14533 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14534 # ancient GNU ld didn't support --whole-archive et. al.
14535 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14536 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14537 else
14538 whole_archive_flag_spec_F77=
14539 fi
14540 supports_anon_versioning=no
14541 case `$LD -v 2>/dev/null` in
14542 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14543 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14544 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14545 *\ 2.11.*) ;; # other 2.11 versions
14546 *) supports_anon_versioning=yes ;;
14547 esac
14548
14549 # See if GNU ld supports shared libraries.
14550 case $host_os in
14551 aix3* | aix4* | aix5*)
14552 # On AIX/PPC, the GNU linker is very broken
14553 if test "$host_cpu" != ia64; then
14554 ld_shlibs_F77=no
14555 cat <<EOF 1>&2
14556
14557 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14558 *** to be unable to reliably create shared libraries on AIX.
14559 *** Therefore, libtool is disabling shared libraries support. If you
14560 *** really care for shared libraries, you may want to modify your PATH
14561 *** so that a non-GNU linker is found, and then restart.
14562
14563 EOF
14564 fi
14565 ;;
14566
14567 amigaos*)
14568 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)'
14569 hardcode_libdir_flag_spec_F77='-L$libdir'
14570 hardcode_minus_L_F77=yes
14571
14572 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14573 # that the semantics of dynamic libraries on AmigaOS, at least up
14574 # to version 4, is to share data among multiple programs linked
14575 # with the same dynamic library. Since this doesn't match the
14576 # behavior of shared libraries on other platforms, we can't use
14577 # them.
14578 ld_shlibs_F77=no
14579 ;;
14580
14581 beos*)
14582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14583 allow_undefined_flag_F77=unsupported
14584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14585 # support --undefined. This deserves some investigation. FIXME
14586 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587 else
14588 ld_shlibs_F77=no
14589 fi
14590 ;;
14591
14592 cygwin* | mingw* | pw32*)
14593 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14594 # as there is no search path for DLLs.
14595 hardcode_libdir_flag_spec_F77='-L$libdir'
14596 allow_undefined_flag_F77=unsupported
14597 always_export_symbols_F77=no
14598 enable_shared_with_static_runtimes_F77=yes
14599 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14600
14601 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14602 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14603 # If the export-symbols file already is a .def file (1st line
14604 # is EXPORTS), use it as is; otherwise, prepend...
14605 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14606 cp $export_symbols $output_objdir/$soname.def;
14607 else
14608 echo EXPORTS > $output_objdir/$soname.def;
14609 cat $export_symbols >> $output_objdir/$soname.def;
14610 fi~
14611 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14612 else
14613 ld_shlibs_F77=no
14614 fi
14615 ;;
14616
14617 interix[3-9]*)
14618 hardcode_direct_F77=no
14619 hardcode_shlibpath_var_F77=no
14620 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14621 export_dynamic_flag_spec_F77='${wl}-E'
14622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14623 # Instead, shared libraries are loaded at an image base (0x10000000 by
14624 # default) and relocated if they conflict, which is a slow very memory
14625 # consuming and fragmenting process. To avoid this, we pick a random,
14626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14628 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'
14629 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'
14630 ;;
14631
14632 gnu* | linux* | k*bsd*-gnu)
14633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14634 tmp_addflag=
14635 case $cc_basename,$host_cpu in
14636 pgcc*) # Portland Group C compiler
14637 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'
14638 tmp_addflag=' $pic_flag'
14639 ;;
14640 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14641 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'
14642 tmp_addflag=' $pic_flag -Mnomain' ;;
14643 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14644 tmp_addflag=' -i_dynamic' ;;
14645 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14646 tmp_addflag=' -i_dynamic -nofor_main' ;;
14647 ifc* | ifort*) # Intel Fortran compiler
14648 tmp_addflag=' -nofor_main' ;;
14649 esac
14650 case `$CC -V 2>&1 | sed 5q` in
14651 *Sun\ C*) # Sun C 5.9
14652 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'
14653 tmp_sharedflag='-G' ;;
14654 *Sun\ F*) # Sun Fortran 8.3
14655 tmp_sharedflag='-G' ;;
14656 *)
14657 tmp_sharedflag='-shared' ;;
14658 esac
14659 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14660
14661 if test $supports_anon_versioning = yes; then
14662 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14664 $echo "local: *; };" >> $output_objdir/$libname.ver~
14665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14666 fi
14667 else
14668 ld_shlibs_F77=no
14669 fi
14670 ;;
14671
14672 netbsd*)
14673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14674 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14675 wlarc=
14676 else
14677 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14678 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14679 fi
14680 ;;
14681
14682 solaris*)
14683 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14684 ld_shlibs_F77=no
14685 cat <<EOF 1>&2
14686
14687 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14688 *** create shared libraries on Solaris systems. Therefore, libtool
14689 *** is disabling shared libraries support. We urge you to upgrade GNU
14690 *** binutils to release 2.9.1 or newer. Another option is to modify
14691 *** your PATH or compiler configuration so that the native linker is
14692 *** used, and then restart.
14693
14694 EOF
14695 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14696 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14697 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14698 else
14699 ld_shlibs_F77=no
14700 fi
14701 ;;
14702
14703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14704 case `$LD -v 2>&1` in
14705 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14706 ld_shlibs_F77=no
14707 cat <<_LT_EOF 1>&2
14708
14709 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14710 *** reliably create shared libraries on SCO systems. Therefore, libtool
14711 *** is disabling shared libraries support. We urge you to upgrade GNU
14712 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14713 *** your PATH or compiler configuration so that the native linker is
14714 *** used, and then restart.
14715
14716 _LT_EOF
14717 ;;
14718 *)
14719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14720 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14721 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14722 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14723 else
14724 ld_shlibs_F77=no
14725 fi
14726 ;;
14727 esac
14728 ;;
14729
14730 sunos4*)
14731 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14732 wlarc=
14733 hardcode_direct_F77=yes
14734 hardcode_shlibpath_var_F77=no
14735 ;;
14736
14737 *)
14738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14739 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14740 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14741 else
14742 ld_shlibs_F77=no
14743 fi
14744 ;;
14745 esac
14746
14747 if test "$ld_shlibs_F77" = no; then
14748 runpath_var=
14749 hardcode_libdir_flag_spec_F77=
14750 export_dynamic_flag_spec_F77=
14751 whole_archive_flag_spec_F77=
14752 fi
14753 else
14754 # PORTME fill in a description of your system's linker (not GNU ld)
14755 case $host_os in
14756 aix3*)
14757 allow_undefined_flag_F77=unsupported
14758 always_export_symbols_F77=yes
14759 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'
14760 # Note: this linker hardcodes the directories in LIBPATH if there
14761 # are no directories specified by -L.
14762 hardcode_minus_L_F77=yes
14763 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14764 # Neither direct hardcoding nor static linking is supported with a
14765 # broken collect2.
14766 hardcode_direct_F77=unsupported
14767 fi
14768 ;;
14769
14770 aix4* | aix5*)
14771 if test "$host_cpu" = ia64; then
14772 # On IA64, the linker does run time linking by default, so we don't
14773 # have to do anything special.
14774 aix_use_runtimelinking=no
14775 exp_sym_flag='-Bexport'
14776 no_entry_flag=""
14777 else
14778 # If we're using GNU nm, then we don't want the "-C" option.
14779 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14780 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14781 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'
14782 else
14783 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'
14784 fi
14785 aix_use_runtimelinking=no
14786
14787 # Test if we are trying to use run time linking or normal
14788 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14789 # need to do runtime linking.
14790 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14791 for ld_flag in $LDFLAGS; do
14792 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14793 aix_use_runtimelinking=yes
14794 break
14795 fi
14796 done
14797 ;;
14798 esac
14799
14800 exp_sym_flag='-bexport'
14801 no_entry_flag='-bnoentry'
14802 fi
14803
14804 # When large executables or shared objects are built, AIX ld can
14805 # have problems creating the table of contents. If linking a library
14806 # or program results in "error TOC overflow" add -mminimal-toc to
14807 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14808 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14809
14810 archive_cmds_F77=''
14811 hardcode_direct_F77=yes
14812 hardcode_libdir_separator_F77=':'
14813 link_all_deplibs_F77=yes
14814
14815 if test "$GCC" = yes; then
14816 case $host_os in aix4.[012]|aix4.[012].*)
14817 # We only want to do this on AIX 4.2 and lower, the check
14818 # below for broken collect2 doesn't work under 4.3+
14819 collect2name=`${CC} -print-prog-name=collect2`
14820 if test -f "$collect2name" && \
14821 strings "$collect2name" | grep resolve_lib_name >/dev/null
14822 then
14823 # We have reworked collect2
14824 :
14825 else
14826 # We have old collect2
14827 hardcode_direct_F77=unsupported
14828 # It fails to find uninstalled libraries when the uninstalled
14829 # path is not listed in the libpath. Setting hardcode_minus_L
14830 # to unsupported forces relinking
14831 hardcode_minus_L_F77=yes
14832 hardcode_libdir_flag_spec_F77='-L$libdir'
14833 hardcode_libdir_separator_F77=
14834 fi
14835 ;;
14836 esac
14837 shared_flag='-shared'
14838 if test "$aix_use_runtimelinking" = yes; then
14839 shared_flag="$shared_flag "'${wl}-G'
14840 fi
14841 else
14842 # not using gcc
14843 if test "$host_cpu" = ia64; then
14844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14845 # chokes on -Wl,-G. The following line is correct:
14846 shared_flag='-G'
14847 else
14848 if test "$aix_use_runtimelinking" = yes; then
14849 shared_flag='${wl}-G'
14850 else
14851 shared_flag='${wl}-bM:SRE'
14852 fi
14853 fi
14854 fi
14855
14856 # It seems that -bexpall does not export symbols beginning with
14857 # underscore (_), so it is better to generate a list of symbols to export.
14858 always_export_symbols_F77=yes
14859 if test "$aix_use_runtimelinking" = yes; then
14860 # Warning - without using the other runtime loading flags (-brtl),
14861 # -berok will link without error, but may produce a broken library.
14862 allow_undefined_flag_F77='-berok'
14863 # Determine the default libpath from the value encoded in an empty executable.
14864 cat >conftest.$ac_ext <<_ACEOF
14865 program main
14866
14867 end
14868 _ACEOF
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>conftest.er1
14877 ac_status=$?
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_f77_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext &&
14886 $as_test_x conftest$ac_exeext; then
14887
14888 lt_aix_libpath_sed='
14889 /Import File Strings/,/^$/ {
14890 /^0/ {
14891 s/^0 *\(.*\)$/\1/
14892 p
14893 }
14894 }'
14895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14896 # Check for a 64-bit object if we didn't find anything.
14897 if test -z "$aix_libpath"; then
14898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14899 fi
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904
14905 fi
14906
14907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14908 conftest$ac_exeext conftest.$ac_ext
14909 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14910
14911 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14912 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"
14913 else
14914 if test "$host_cpu" = ia64; then
14915 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14916 allow_undefined_flag_F77="-z nodefs"
14917 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"
14918 else
14919 # Determine the default libpath from the value encoded in an empty executable.
14920 cat >conftest.$ac_ext <<_ACEOF
14921 program main
14922
14923 end
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (ac_try="$ac_link"
14927 case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14930 esac
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932 (eval "$ac_link") 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && {
14939 test -z "$ac_f77_werror_flag" ||
14940 test ! -s conftest.err
14941 } && test -s conftest$ac_exeext &&
14942 $as_test_x conftest$ac_exeext; then
14943
14944 lt_aix_libpath_sed='
14945 /Import File Strings/,/^$/ {
14946 /^0/ {
14947 s/^0 *\(.*\)$/\1/
14948 p
14949 }
14950 }'
14951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14952 # Check for a 64-bit object if we didn't find anything.
14953 if test -z "$aix_libpath"; then
14954 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14955 fi
14956 else
14957 echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14959
14960
14961 fi
14962
14963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14964 conftest$ac_exeext conftest.$ac_ext
14965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14966
14967 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14968 # Warning - without using the other run time loading flags,
14969 # -berok will link without error, but may produce a broken library.
14970 no_undefined_flag_F77=' ${wl}-bernotok'
14971 allow_undefined_flag_F77=' ${wl}-berok'
14972 # Exported symbols can be pulled into shared objects from archives
14973 whole_archive_flag_spec_F77='$convenience'
14974 archive_cmds_need_lc_F77=yes
14975 # This is similar to how AIX traditionally builds its shared libraries.
14976 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'
14977 fi
14978 fi
14979 ;;
14980
14981 amigaos*)
14982 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)'
14983 hardcode_libdir_flag_spec_F77='-L$libdir'
14984 hardcode_minus_L_F77=yes
14985 # see comment about different semantics on the GNU ld section
14986 ld_shlibs_F77=no
14987 ;;
14988
14989 bsdi[45]*)
14990 export_dynamic_flag_spec_F77=-rdynamic
14991 ;;
14992
14993 cygwin* | mingw* | pw32*)
14994 # When not using gcc, we currently assume that we are using
14995 # Microsoft Visual C++.
14996 # hardcode_libdir_flag_spec is actually meaningless, as there is
14997 # no search path for DLLs.
14998 hardcode_libdir_flag_spec_F77=' '
14999 allow_undefined_flag_F77=unsupported
15000 # Tell ltmain to make .lib files, not .a files.
15001 libext=lib
15002 # Tell ltmain to make .dll files, not .so files.
15003 shrext_cmds=".dll"
15004 # FIXME: Setting linknames here is a bad hack.
15005 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15006 # The linker will automatically build a .lib file if we build a DLL.
15007 old_archive_From_new_cmds_F77='true'
15008 # FIXME: Should let the user specify the lib program.
15009 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15010 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15011 enable_shared_with_static_runtimes_F77=yes
15012 ;;
15013
15014 darwin* | rhapsody*)
15015 case $host_os in
15016 rhapsody* | darwin1.[012])
15017 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15018 ;;
15019 *) # Darwin 1.3 on
15020 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15021 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15022 else
15023 case ${MACOSX_DEPLOYMENT_TARGET} in
15024 10.[012])
15025 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15026 ;;
15027 10.*)
15028 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15029 ;;
15030 esac
15031 fi
15032 ;;
15033 esac
15034 archive_cmds_need_lc_F77=no
15035 hardcode_direct_F77=no
15036 hardcode_automatic_F77=yes
15037 hardcode_shlibpath_var_F77=unsupported
15038 whole_archive_flag_spec_F77=''
15039 link_all_deplibs_F77=yes
15040 if test "$GCC" = yes ; then
15041 output_verbose_link_cmd='echo'
15042 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15043 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15045 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}'
15046 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}'
15047 else
15048 case $cc_basename in
15049 xlc*)
15050 output_verbose_link_cmd='echo'
15051 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15052 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15054 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}'
15055 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}'
15056 ;;
15057 *)
15058 ld_shlibs_F77=no
15059 ;;
15060 esac
15061 fi
15062 ;;
15063
15064 dgux*)
15065 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066 hardcode_libdir_flag_spec_F77='-L$libdir'
15067 hardcode_shlibpath_var_F77=no
15068 ;;
15069
15070 freebsd1*)
15071 ld_shlibs_F77=no
15072 ;;
15073
15074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15075 # support. Future versions do this automatically, but an explicit c++rt0.o
15076 # does not break anything, and helps significantly (at the cost of a little
15077 # extra space).
15078 freebsd2.2*)
15079 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15080 hardcode_libdir_flag_spec_F77='-R$libdir'
15081 hardcode_direct_F77=yes
15082 hardcode_shlibpath_var_F77=no
15083 ;;
15084
15085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15086 freebsd2*)
15087 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15088 hardcode_direct_F77=yes
15089 hardcode_minus_L_F77=yes
15090 hardcode_shlibpath_var_F77=no
15091 ;;
15092
15093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15094 freebsd* | dragonfly*)
15095 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15096 hardcode_libdir_flag_spec_F77='-R$libdir'
15097 hardcode_direct_F77=yes
15098 hardcode_shlibpath_var_F77=no
15099 ;;
15100
15101 hpux9*)
15102 if test "$GCC" = yes; then
15103 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'
15104 else
15105 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'
15106 fi
15107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15108 hardcode_libdir_separator_F77=:
15109 hardcode_direct_F77=yes
15110
15111 # hardcode_minus_L: Not really in the search PATH,
15112 # but as the default location of the library.
15113 hardcode_minus_L_F77=yes
15114 export_dynamic_flag_spec_F77='${wl}-E'
15115 ;;
15116
15117 hpux10*)
15118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15119 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15120 else
15121 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15122 fi
15123 if test "$with_gnu_ld" = no; then
15124 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15125 hardcode_libdir_separator_F77=:
15126
15127 hardcode_direct_F77=yes
15128 export_dynamic_flag_spec_F77='${wl}-E'
15129
15130 # hardcode_minus_L: Not really in the search PATH,
15131 # but as the default location of the library.
15132 hardcode_minus_L_F77=yes
15133 fi
15134 ;;
15135
15136 hpux11*)
15137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15138 case $host_cpu in
15139 hppa*64*)
15140 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15141 ;;
15142 ia64*)
15143 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15144 ;;
15145 *)
15146 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15147 ;;
15148 esac
15149 else
15150 case $host_cpu in
15151 hppa*64*)
15152 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153 ;;
15154 ia64*)
15155 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15156 ;;
15157 *)
15158 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15159 ;;
15160 esac
15161 fi
15162 if test "$with_gnu_ld" = no; then
15163 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15164 hardcode_libdir_separator_F77=:
15165
15166 case $host_cpu in
15167 hppa*64*|ia64*)
15168 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15169 hardcode_direct_F77=no
15170 hardcode_shlibpath_var_F77=no
15171 ;;
15172 *)
15173 hardcode_direct_F77=yes
15174 export_dynamic_flag_spec_F77='${wl}-E'
15175
15176 # hardcode_minus_L: Not really in the search PATH,
15177 # but as the default location of the library.
15178 hardcode_minus_L_F77=yes
15179 ;;
15180 esac
15181 fi
15182 ;;
15183
15184 irix5* | irix6* | nonstopux*)
15185 if test "$GCC" = yes; then
15186 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'
15187 else
15188 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'
15189 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15190 fi
15191 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15192 hardcode_libdir_separator_F77=:
15193 link_all_deplibs_F77=yes
15194 ;;
15195
15196 netbsd*)
15197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15199 else
15200 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15201 fi
15202 hardcode_libdir_flag_spec_F77='-R$libdir'
15203 hardcode_direct_F77=yes
15204 hardcode_shlibpath_var_F77=no
15205 ;;
15206
15207 newsos6)
15208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209 hardcode_direct_F77=yes
15210 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15211 hardcode_libdir_separator_F77=:
15212 hardcode_shlibpath_var_F77=no
15213 ;;
15214
15215 openbsd*)
15216 if test -f /usr/libexec/ld.so; then
15217 hardcode_direct_F77=yes
15218 hardcode_shlibpath_var_F77=no
15219 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15220 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15222 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15223 export_dynamic_flag_spec_F77='${wl}-E'
15224 else
15225 case $host_os in
15226 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15227 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15228 hardcode_libdir_flag_spec_F77='-R$libdir'
15229 ;;
15230 *)
15231 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15232 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15233 ;;
15234 esac
15235 fi
15236 else
15237 ld_shlibs_F77=no
15238 fi
15239 ;;
15240
15241 os2*)
15242 hardcode_libdir_flag_spec_F77='-L$libdir'
15243 hardcode_minus_L_F77=yes
15244 allow_undefined_flag_F77=unsupported
15245 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'
15246 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15247 ;;
15248
15249 osf3*)
15250 if test "$GCC" = yes; then
15251 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15252 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'
15253 else
15254 allow_undefined_flag_F77=' -expect_unresolved \*'
15255 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'
15256 fi
15257 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15258 hardcode_libdir_separator_F77=:
15259 ;;
15260
15261 osf4* | osf5*) # as osf3* with the addition of -msym flag
15262 if test "$GCC" = yes; then
15263 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15264 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'
15265 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15266 else
15267 allow_undefined_flag_F77=' -expect_unresolved \*'
15268 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'
15269 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~
15270 $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'
15271
15272 # Both c and cxx compiler support -rpath directly
15273 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15274 fi
15275 hardcode_libdir_separator_F77=:
15276 ;;
15277
15278 solaris*)
15279 no_undefined_flag_F77=' -z text'
15280 if test "$GCC" = yes; then
15281 wlarc='${wl}'
15282 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15283 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15284 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15285 else
15286 wlarc=''
15287 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15288 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15290 fi
15291 hardcode_libdir_flag_spec_F77='-R$libdir'
15292 hardcode_shlibpath_var_F77=no
15293 case $host_os in
15294 solaris2.[0-5] | solaris2.[0-5].*) ;;
15295 *)
15296 # The compiler driver will combine and reorder linker options,
15297 # but understands `-z linker_flag'. GCC discards it without `$wl',
15298 # but is careful enough not to reorder.
15299 # Supported since Solaris 2.6 (maybe 2.5.1?)
15300 if test "$GCC" = yes; then
15301 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15302 else
15303 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15304 fi
15305 ;;
15306 esac
15307 link_all_deplibs_F77=yes
15308 ;;
15309
15310 sunos4*)
15311 if test "x$host_vendor" = xsequent; then
15312 # Use $CC to link under sequent, because it throws in some extra .o
15313 # files that make .init and .fini sections work.
15314 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15315 else
15316 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15317 fi
15318 hardcode_libdir_flag_spec_F77='-L$libdir'
15319 hardcode_direct_F77=yes
15320 hardcode_minus_L_F77=yes
15321 hardcode_shlibpath_var_F77=no
15322 ;;
15323
15324 sysv4)
15325 case $host_vendor in
15326 sni)
15327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15328 hardcode_direct_F77=yes # is this really true???
15329 ;;
15330 siemens)
15331 ## LD is ld it makes a PLAMLIB
15332 ## CC just makes a GrossModule.
15333 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15334 reload_cmds_F77='$CC -r -o $output$reload_objs'
15335 hardcode_direct_F77=no
15336 ;;
15337 motorola)
15338 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15339 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15340 ;;
15341 esac
15342 runpath_var='LD_RUN_PATH'
15343 hardcode_shlibpath_var_F77=no
15344 ;;
15345
15346 sysv4.3*)
15347 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15348 hardcode_shlibpath_var_F77=no
15349 export_dynamic_flag_spec_F77='-Bexport'
15350 ;;
15351
15352 sysv4*MP*)
15353 if test -d /usr/nec; then
15354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15355 hardcode_shlibpath_var_F77=no
15356 runpath_var=LD_RUN_PATH
15357 hardcode_runpath_var=yes
15358 ld_shlibs_F77=yes
15359 fi
15360 ;;
15361
15362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15363 no_undefined_flag_F77='${wl}-z,text'
15364 archive_cmds_need_lc_F77=no
15365 hardcode_shlibpath_var_F77=no
15366 runpath_var='LD_RUN_PATH'
15367
15368 if test "$GCC" = yes; then
15369 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15370 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15371 else
15372 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15373 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15374 fi
15375 ;;
15376
15377 sysv5* | sco3.2v5* | sco5v6*)
15378 # Note: We can NOT use -z defs as we might desire, because we do not
15379 # link with -lc, and that would cause any symbols used from libc to
15380 # always be unresolved, which means just about no library would
15381 # ever link correctly. If we're not using GNU ld we use -z text
15382 # though, which does catch some bad symbols but isn't as heavy-handed
15383 # as -z defs.
15384 no_undefined_flag_F77='${wl}-z,text'
15385 allow_undefined_flag_F77='${wl}-z,nodefs'
15386 archive_cmds_need_lc_F77=no
15387 hardcode_shlibpath_var_F77=no
15388 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15389 hardcode_libdir_separator_F77=':'
15390 link_all_deplibs_F77=yes
15391 export_dynamic_flag_spec_F77='${wl}-Bexport'
15392 runpath_var='LD_RUN_PATH'
15393
15394 if test "$GCC" = yes; then
15395 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15396 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15397 else
15398 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15400 fi
15401 ;;
15402
15403 uts4*)
15404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15405 hardcode_libdir_flag_spec_F77='-L$libdir'
15406 hardcode_shlibpath_var_F77=no
15407 ;;
15408
15409 *)
15410 ld_shlibs_F77=no
15411 ;;
15412 esac
15413 fi
15414
15415 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15416 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15417 test "$ld_shlibs_F77" = no && can_build_shared=no
15418
15419 #
15420 # Do we need to explicitly link libc?
15421 #
15422 case "x$archive_cmds_need_lc_F77" in
15423 x|xyes)
15424 # Assume -lc should be added
15425 archive_cmds_need_lc_F77=yes
15426
15427 if test "$enable_shared" = yes && test "$GCC" = yes; then
15428 case $archive_cmds_F77 in
15429 *'~'*)
15430 # FIXME: we may have to deal with multi-command sequences.
15431 ;;
15432 '$CC '*)
15433 # Test whether the compiler implicitly links with -lc since on some
15434 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15435 # to ld, don't add -lc before -lgcc.
15436 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15437 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15438 $rm conftest*
15439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15440
15441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15442 (eval $ac_compile) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } 2>conftest.err; then
15446 soname=conftest
15447 lib=conftest
15448 libobjs=conftest.$ac_objext
15449 deplibs=
15450 wl=$lt_prog_compiler_wl_F77
15451 pic_flag=$lt_prog_compiler_pic_F77
15452 compiler_flags=-v
15453 linker_flags=-v
15454 verstring=
15455 output_objdir=.
15456 libname=conftest
15457 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15458 allow_undefined_flag_F77=
15459 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15460 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }
15464 then
15465 archive_cmds_need_lc_F77=no
15466 else
15467 archive_cmds_need_lc_F77=yes
15468 fi
15469 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15470 else
15471 cat conftest.err 1>&5
15472 fi
15473 $rm conftest*
15474 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15475 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15476 ;;
15477 esac
15478 fi
15479 ;;
15480 esac
15481
15482 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15483 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15484 library_names_spec=
15485 libname_spec='lib$name'
15486 soname_spec=
15487 shrext_cmds=".so"
15488 postinstall_cmds=
15489 postuninstall_cmds=
15490 finish_cmds=
15491 finish_eval=
15492 shlibpath_var=
15493 shlibpath_overrides_runpath=unknown
15494 version_type=none
15495 dynamic_linker="$host_os ld.so"
15496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15497
15498 need_lib_prefix=unknown
15499 hardcode_into_libs=no
15500
15501 # when you set need_version to no, make sure it does not cause -set_version
15502 # flags to be left without arguments
15503 need_version=unknown
15504
15505 case $host_os in
15506 aix3*)
15507 version_type=linux
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15509 shlibpath_var=LIBPATH
15510
15511 # AIX 3 has no versioning support, so we append a major version to the name.
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 ;;
15514
15515 aix4* | aix5*)
15516 version_type=linux
15517 need_lib_prefix=no
15518 need_version=no
15519 hardcode_into_libs=yes
15520 if test "$host_cpu" = ia64; then
15521 # AIX 5 supports IA64
15522 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 else
15525 # With GCC up to 2.95.x, collect2 would create an import file
15526 # for dependence libraries. The import file would start with
15527 # the line `#! .'. This would cause the generated library to
15528 # depend on `.', always an invalid library. This was fixed in
15529 # development snapshots of GCC prior to 3.0.
15530 case $host_os in
15531 aix4 | aix4.[01] | aix4.[01].*)
15532 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15533 echo ' yes '
15534 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15535 :
15536 else
15537 can_build_shared=no
15538 fi
15539 ;;
15540 esac
15541 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15542 # soname into executable. Probably we can add versioning support to
15543 # collect2, so additional links can be useful in future.
15544 if test "$aix_use_runtimelinking" = yes; then
15545 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15546 # instead of lib<name>.a to let people know that these are not
15547 # typical AIX shared libraries.
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 else
15550 # We preserve .a as extension for shared libraries through AIX4.2
15551 # and later when we are not doing run time linking.
15552 library_names_spec='${libname}${release}.a $libname.a'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 fi
15555 shlibpath_var=LIBPATH
15556 fi
15557 ;;
15558
15559 amigaos*)
15560 library_names_spec='$libname.ixlibrary $libname.a'
15561 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15562 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'
15563 ;;
15564
15565 beos*)
15566 library_names_spec='${libname}${shared_ext}'
15567 dynamic_linker="$host_os ld.so"
15568 shlibpath_var=LIBRARY_PATH
15569 ;;
15570
15571 bsdi[45]*)
15572 version_type=linux
15573 need_version=no
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15579 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15580 # the default ld.so.conf also contains /usr/contrib/lib and
15581 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15582 # libtool to hard-code these into programs
15583 ;;
15584
15585 cygwin* | mingw* | pw32*)
15586 version_type=windows
15587 shrext_cmds=".dll"
15588 need_version=no
15589 need_lib_prefix=no
15590
15591 case $GCC,$host_os in
15592 yes,cygwin* | yes,mingw* | yes,pw32*)
15593 library_names_spec='$libname.dll.a'
15594 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15595 postinstall_cmds='base_file=`basename \${file}`~
15596 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15597 dldir=$destdir/`dirname \$dlpath`~
15598 test -d \$dldir || mkdir -p \$dldir~
15599 $install_prog $dir/$dlname \$dldir/$dlname~
15600 chmod a+x \$dldir/$dlname'
15601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15602 dlpath=$dir/\$dldll~
15603 $rm \$dlpath'
15604 shlibpath_overrides_runpath=yes
15605
15606 case $host_os in
15607 cygwin*)
15608 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15609 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15610 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15611 ;;
15612 mingw*)
15613 # MinGW DLLs use traditional 'lib' prefix
15614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15615 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15616 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15617 # It is most probably a Windows format PATH printed by
15618 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15619 # path with ; separators, and with drive letters. We can handle the
15620 # drive letters (cygwin fileutils understands them), so leave them,
15621 # especially as we might pass files found there to a mingw objdump,
15622 # which wouldn't understand a cygwinified path. Ahh.
15623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15624 else
15625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15626 fi
15627 ;;
15628 pw32*)
15629 # pw32 DLLs use 'pw' prefix rather than 'lib'
15630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15631 ;;
15632 esac
15633 ;;
15634
15635 *)
15636 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15637 ;;
15638 esac
15639 dynamic_linker='Win32 ld.exe'
15640 # FIXME: first we should search . and the directory the executable is in
15641 shlibpath_var=PATH
15642 ;;
15643
15644 darwin* | rhapsody*)
15645 dynamic_linker="$host_os dyld"
15646 version_type=darwin
15647 need_lib_prefix=no
15648 need_version=no
15649 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15650 soname_spec='${libname}${release}${major}$shared_ext'
15651 shlibpath_overrides_runpath=yes
15652 shlibpath_var=DYLD_LIBRARY_PATH
15653 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15654
15655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15656 ;;
15657
15658 dgux*)
15659 version_type=linux
15660 need_lib_prefix=no
15661 need_version=no
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 ;;
15666
15667 freebsd1*)
15668 dynamic_linker=no
15669 ;;
15670
15671 freebsd* | dragonfly*)
15672 # DragonFly does not have aout. When/if they implement a new
15673 # versioning mechanism, adjust this.
15674 if test -x /usr/bin/objformat; then
15675 objformat=`/usr/bin/objformat`
15676 else
15677 case $host_os in
15678 freebsd[123]*) objformat=aout ;;
15679 *) objformat=elf ;;
15680 esac
15681 fi
15682 version_type=freebsd-$objformat
15683 case $version_type in
15684 freebsd-elf*)
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15686 need_version=no
15687 need_lib_prefix=no
15688 ;;
15689 freebsd-*)
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15691 need_version=yes
15692 ;;
15693 esac
15694 shlibpath_var=LD_LIBRARY_PATH
15695 case $host_os in
15696 freebsd2*)
15697 shlibpath_overrides_runpath=yes
15698 ;;
15699 freebsd3.[01]* | freebsdelf3.[01]*)
15700 shlibpath_overrides_runpath=yes
15701 hardcode_into_libs=yes
15702 ;;
15703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15705 shlibpath_overrides_runpath=no
15706 hardcode_into_libs=yes
15707 ;;
15708 *) # from 4.6 on, and DragonFly
15709 shlibpath_overrides_runpath=yes
15710 hardcode_into_libs=yes
15711 ;;
15712 esac
15713 ;;
15714
15715 gnu*)
15716 version_type=linux
15717 need_lib_prefix=no
15718 need_version=no
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 hardcode_into_libs=yes
15723 ;;
15724
15725 hpux9* | hpux10* | hpux11*)
15726 # Give a soname corresponding to the major version so that dld.sl refuses to
15727 # link against other versions.
15728 version_type=sunos
15729 need_lib_prefix=no
15730 need_version=no
15731 case $host_cpu in
15732 ia64*)
15733 shrext_cmds='.so'
15734 hardcode_into_libs=yes
15735 dynamic_linker="$host_os dld.so"
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 if test "X$HPUX_IA64_MODE" = X32; then
15741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15742 else
15743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15744 fi
15745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15746 ;;
15747 hppa*64*)
15748 shrext_cmds='.sl'
15749 hardcode_into_libs=yes
15750 dynamic_linker="$host_os dld.sl"
15751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15757 ;;
15758 *)
15759 shrext_cmds='.sl'
15760 dynamic_linker="$host_os dld.sl"
15761 shlibpath_var=SHLIB_PATH
15762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 ;;
15766 esac
15767 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15768 postinstall_cmds='chmod 555 $lib'
15769 ;;
15770
15771 interix[3-9]*)
15772 version_type=linux
15773 need_lib_prefix=no
15774 need_version=no
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 shlibpath_overrides_runpath=no
15780 hardcode_into_libs=yes
15781 ;;
15782
15783 irix5* | irix6* | nonstopux*)
15784 case $host_os in
15785 nonstopux*) version_type=nonstopux ;;
15786 *)
15787 if test "$lt_cv_prog_gnu_ld" = yes; then
15788 version_type=linux
15789 else
15790 version_type=irix
15791 fi ;;
15792 esac
15793 need_lib_prefix=no
15794 need_version=no
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15797 case $host_os in
15798 irix5* | nonstopux*)
15799 libsuff= shlibsuff=
15800 ;;
15801 *)
15802 case $LD in # libtool.m4 will add one of these switches to LD
15803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15804 libsuff= shlibsuff= libmagic=32-bit;;
15805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15806 libsuff=32 shlibsuff=N32 libmagic=N32;;
15807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15808 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15809 *) libsuff= shlibsuff= libmagic=never-match;;
15810 esac
15811 ;;
15812 esac
15813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15814 shlibpath_overrides_runpath=no
15815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15817 hardcode_into_libs=yes
15818 ;;
15819
15820 # No shared lib support for Linux oldld, aout, or coff.
15821 linux*oldld* | linux*aout* | linux*coff*)
15822 dynamic_linker=no
15823 ;;
15824
15825 # This must be Linux ELF.
15826 linux* | k*bsd*-gnu)
15827 version_type=linux
15828 need_lib_prefix=no
15829 need_version=no
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831 soname_spec='${libname}${release}${shared_ext}$major'
15832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15833 shlibpath_var=LD_LIBRARY_PATH
15834 shlibpath_overrides_runpath=no
15835 # This implies no fast_install, which is unacceptable.
15836 # Some rework will be needed to allow for fast_install
15837 # before this can be enabled.
15838 hardcode_into_libs=yes
15839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15841
15842 # Append ld.so.conf contents to the search path
15843 if test -f /etc/ld.so.conf; then
15844 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' ' '`
15845 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15846 fi
15847
15848 # We used to test for /lib/ld.so.1 and disable shared libraries on
15849 # powerpc, because MkLinux only supported shared libraries with the
15850 # GNU dynamic linker. Since this was broken with cross compilers,
15851 # most powerpc-linux boxes support dynamic linking these days and
15852 # people can always --disable-shared, the test was removed, and we
15853 # assume the GNU/Linux dynamic linker is in use.
15854 dynamic_linker='GNU/Linux ld.so'
15855 ;;
15856
15857 netbsd*)
15858 version_type=sunos
15859 need_lib_prefix=no
15860 need_version=no
15861 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15864 dynamic_linker='NetBSD (a.out) ld.so'
15865 else
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 dynamic_linker='NetBSD ld.elf_so'
15869 fi
15870 shlibpath_var=LD_LIBRARY_PATH
15871 shlibpath_overrides_runpath=yes
15872 hardcode_into_libs=yes
15873 ;;
15874
15875 newsos6)
15876 version_type=linux
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 shlibpath_overrides_runpath=yes
15880 ;;
15881
15882 nto-qnx*)
15883 version_type=linux
15884 need_lib_prefix=no
15885 need_version=no
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15887 soname_spec='${libname}${release}${shared_ext}$major'
15888 shlibpath_var=LD_LIBRARY_PATH
15889 shlibpath_overrides_runpath=yes
15890 ;;
15891
15892 openbsd*)
15893 version_type=sunos
15894 sys_lib_dlsearch_path_spec="/usr/lib"
15895 need_lib_prefix=no
15896 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15897 case $host_os in
15898 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15899 *) need_version=no ;;
15900 esac
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15905 case $host_os in
15906 openbsd2.[89] | openbsd2.[89].*)
15907 shlibpath_overrides_runpath=no
15908 ;;
15909 *)
15910 shlibpath_overrides_runpath=yes
15911 ;;
15912 esac
15913 else
15914 shlibpath_overrides_runpath=yes
15915 fi
15916 ;;
15917
15918 os2*)
15919 libname_spec='$name'
15920 shrext_cmds=".dll"
15921 need_lib_prefix=no
15922 library_names_spec='$libname${shared_ext} $libname.a'
15923 dynamic_linker='OS/2 ld.exe'
15924 shlibpath_var=LIBPATH
15925 ;;
15926
15927 osf3* | osf4* | osf5*)
15928 version_type=osf
15929 need_lib_prefix=no
15930 need_version=no
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15936 ;;
15937
15938 rdos*)
15939 dynamic_linker=no
15940 ;;
15941
15942 solaris*)
15943 version_type=linux
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=yes
15950 hardcode_into_libs=yes
15951 # ldd complains unless libraries are executable
15952 postinstall_cmds='chmod +x $lib'
15953 ;;
15954
15955 sunos4*)
15956 version_type=sunos
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15958 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=yes
15961 if test "$with_gnu_ld" = yes; then
15962 need_lib_prefix=no
15963 fi
15964 need_version=yes
15965 ;;
15966
15967 sysv4 | sysv4.3*)
15968 version_type=linux
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 case $host_vendor in
15973 sni)
15974 shlibpath_overrides_runpath=no
15975 need_lib_prefix=no
15976 export_dynamic_flag_spec='${wl}-Blargedynsym'
15977 runpath_var=LD_RUN_PATH
15978 ;;
15979 siemens)
15980 need_lib_prefix=no
15981 ;;
15982 motorola)
15983 need_lib_prefix=no
15984 need_version=no
15985 shlibpath_overrides_runpath=no
15986 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15987 ;;
15988 esac
15989 ;;
15990
15991 sysv4*MP*)
15992 if test -d /usr/nec ;then
15993 version_type=linux
15994 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15995 soname_spec='$libname${shared_ext}.$major'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 fi
15998 ;;
15999
16000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16001 version_type=freebsd-elf
16002 need_lib_prefix=no
16003 need_version=no
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 hardcode_into_libs=yes
16008 if test "$with_gnu_ld" = yes; then
16009 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16010 shlibpath_overrides_runpath=no
16011 else
16012 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16013 shlibpath_overrides_runpath=yes
16014 case $host_os in
16015 sco3.2v5*)
16016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16017 ;;
16018 esac
16019 fi
16020 sys_lib_dlsearch_path_spec='/usr/lib'
16021 ;;
16022
16023 uts4*)
16024 version_type=linux
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 soname_spec='${libname}${release}${shared_ext}$major'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 ;;
16029
16030 *)
16031 dynamic_linker=no
16032 ;;
16033 esac
16034 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16035 echo "${ECHO_T}$dynamic_linker" >&6; }
16036 test "$dynamic_linker" = no && can_build_shared=no
16037
16038 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16039 if test "$GCC" = yes; then
16040 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16041 fi
16042
16043 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16044 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16045 hardcode_action_F77=
16046 if test -n "$hardcode_libdir_flag_spec_F77" || \
16047 test -n "$runpath_var_F77" || \
16048 test "X$hardcode_automatic_F77" = "Xyes" ; then
16049
16050 # We can hardcode non-existant directories.
16051 if test "$hardcode_direct_F77" != no &&
16052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16053 # have to relink, otherwise we might link with an installed library
16054 # when we should be linking with a yet-to-be-installed one
16055 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16056 test "$hardcode_minus_L_F77" != no; then
16057 # Linking always hardcodes the temporary library directory.
16058 hardcode_action_F77=relink
16059 else
16060 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16061 hardcode_action_F77=immediate
16062 fi
16063 else
16064 # We cannot hardcode anything, or else we can only hardcode existing
16065 # directories.
16066 hardcode_action_F77=unsupported
16067 fi
16068 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16069 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16070
16071 if test "$hardcode_action_F77" = relink; then
16072 # Fast installation is not supported
16073 enable_fast_install=no
16074 elif test "$shlibpath_overrides_runpath" = yes ||
16075 test "$enable_shared" = no; then
16076 # Fast installation is not necessary
16077 enable_fast_install=needless
16078 fi
16079
16080
16081 # The else clause should only fire when bootstrapping the
16082 # libtool distribution, otherwise you forgot to ship ltmain.sh
16083 # with your package, and you will get complaints that there are
16084 # no rules to generate ltmain.sh.
16085 if test -f "$ltmain"; then
16086 # See if we are running on zsh, and set the options which allow our commands through
16087 # without removal of \ escapes.
16088 if test -n "${ZSH_VERSION+set}" ; then
16089 setopt NO_GLOB_SUBST
16090 fi
16091 # Now quote all the things that may contain metacharacters while being
16092 # careful not to overquote the AC_SUBSTed values. We take copies of the
16093 # variables and quote the copies for generation of the libtool script.
16094 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16095 SED SHELL STRIP \
16096 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16097 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16098 deplibs_check_method reload_flag reload_cmds need_locks \
16099 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16100 lt_cv_sys_global_symbol_to_c_name_address \
16101 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16102 old_postinstall_cmds old_postuninstall_cmds \
16103 compiler_F77 \
16104 CC_F77 \
16105 LD_F77 \
16106 lt_prog_compiler_wl_F77 \
16107 lt_prog_compiler_pic_F77 \
16108 lt_prog_compiler_static_F77 \
16109 lt_prog_compiler_no_builtin_flag_F77 \
16110 export_dynamic_flag_spec_F77 \
16111 thread_safe_flag_spec_F77 \
16112 whole_archive_flag_spec_F77 \
16113 enable_shared_with_static_runtimes_F77 \
16114 old_archive_cmds_F77 \
16115 old_archive_from_new_cmds_F77 \
16116 predep_objects_F77 \
16117 postdep_objects_F77 \
16118 predeps_F77 \
16119 postdeps_F77 \
16120 compiler_lib_search_path_F77 \
16121 archive_cmds_F77 \
16122 archive_expsym_cmds_F77 \
16123 postinstall_cmds_F77 \
16124 postuninstall_cmds_F77 \
16125 old_archive_from_expsyms_cmds_F77 \
16126 allow_undefined_flag_F77 \
16127 no_undefined_flag_F77 \
16128 export_symbols_cmds_F77 \
16129 hardcode_libdir_flag_spec_F77 \
16130 hardcode_libdir_flag_spec_ld_F77 \
16131 hardcode_libdir_separator_F77 \
16132 hardcode_automatic_F77 \
16133 module_cmds_F77 \
16134 module_expsym_cmds_F77 \
16135 lt_cv_prog_compiler_c_o_F77 \
16136 fix_srcfile_path_F77 \
16137 exclude_expsyms_F77 \
16138 include_expsyms_F77; do
16139
16140 case $var in
16141 old_archive_cmds_F77 | \
16142 old_archive_from_new_cmds_F77 | \
16143 archive_cmds_F77 | \
16144 archive_expsym_cmds_F77 | \
16145 module_cmds_F77 | \
16146 module_expsym_cmds_F77 | \
16147 old_archive_from_expsyms_cmds_F77 | \
16148 export_symbols_cmds_F77 | \
16149 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16150 postinstall_cmds | postuninstall_cmds | \
16151 old_postinstall_cmds | old_postuninstall_cmds | \
16152 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16153 # Double-quote double-evaled strings.
16154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16155 ;;
16156 *)
16157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16158 ;;
16159 esac
16160 done
16161
16162 case $lt_echo in
16163 *'\$0 --fallback-echo"')
16164 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16165 ;;
16166 esac
16167
16168 cfgfile="$ofile"
16169
16170 cat <<__EOF__ >> "$cfgfile"
16171 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16172
16173 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16174
16175 # Shell to use when invoking shell scripts.
16176 SHELL=$lt_SHELL
16177
16178 # Whether or not to build shared libraries.
16179 build_libtool_libs=$enable_shared
16180
16181 # Whether or not to build static libraries.
16182 build_old_libs=$enable_static
16183
16184 # Whether or not to add -lc for building shared libraries.
16185 build_libtool_need_lc=$archive_cmds_need_lc_F77
16186
16187 # Whether or not to disallow shared libs when runtime libs are static
16188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16189
16190 # Whether or not to optimize for fast installation.
16191 fast_install=$enable_fast_install
16192
16193 # The host system.
16194 host_alias=$host_alias
16195 host=$host
16196 host_os=$host_os
16197
16198 # The build system.
16199 build_alias=$build_alias
16200 build=$build
16201 build_os=$build_os
16202
16203 # An echo program that does not interpret backslashes.
16204 echo=$lt_echo
16205
16206 # The archiver.
16207 AR=$lt_AR
16208 AR_FLAGS=$lt_AR_FLAGS
16209
16210 # A C compiler.
16211 LTCC=$lt_LTCC
16212
16213 # LTCC compiler flags.
16214 LTCFLAGS=$lt_LTCFLAGS
16215
16216 # A language-specific compiler.
16217 CC=$lt_compiler_F77
16218
16219 # Is the compiler the GNU C compiler?
16220 with_gcc=$GCC_F77
16221
16222 # An ERE matcher.
16223 EGREP=$lt_EGREP
16224
16225 # The linker used to build libraries.
16226 LD=$lt_LD_F77
16227
16228 # Whether we need hard or soft links.
16229 LN_S=$lt_LN_S
16230
16231 # A BSD-compatible nm program.
16232 NM=$lt_NM
16233
16234 # A symbol stripping program
16235 STRIP=$lt_STRIP
16236
16237 # Used to examine libraries when file_magic_cmd begins "file"
16238 MAGIC_CMD=$MAGIC_CMD
16239
16240 # Used on cygwin: DLL creation program.
16241 DLLTOOL="$DLLTOOL"
16242
16243 # Used on cygwin: object dumper.
16244 OBJDUMP="$OBJDUMP"
16245
16246 # Used on cygwin: assembler.
16247 AS="$AS"
16248
16249 # The name of the directory that contains temporary libtool files.
16250 objdir=$objdir
16251
16252 # How to create reloadable object files.
16253 reload_flag=$lt_reload_flag
16254 reload_cmds=$lt_reload_cmds
16255
16256 # How to pass a linker flag through the compiler.
16257 wl=$lt_lt_prog_compiler_wl_F77
16258
16259 # Object file suffix (normally "o").
16260 objext="$ac_objext"
16261
16262 # Old archive suffix (normally "a").
16263 libext="$libext"
16264
16265 # Shared library suffix (normally ".so").
16266 shrext_cmds='$shrext_cmds'
16267
16268 # Executable file suffix (normally "").
16269 exeext="$exeext"
16270
16271 # Additional compiler flags for building library objects.
16272 pic_flag=$lt_lt_prog_compiler_pic_F77
16273 pic_mode=$pic_mode
16274
16275 # What is the maximum length of a command?
16276 max_cmd_len=$lt_cv_sys_max_cmd_len
16277
16278 # Does compiler simultaneously support -c and -o options?
16279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16280
16281 # Must we lock files when doing compilation?
16282 need_locks=$lt_need_locks
16283
16284 # Do we need the lib prefix for modules?
16285 need_lib_prefix=$need_lib_prefix
16286
16287 # Do we need a version for libraries?
16288 need_version=$need_version
16289
16290 # Whether dlopen is supported.
16291 dlopen_support=$enable_dlopen
16292
16293 # Whether dlopen of programs is supported.
16294 dlopen_self=$enable_dlopen_self
16295
16296 # Whether dlopen of statically linked programs is supported.
16297 dlopen_self_static=$enable_dlopen_self_static
16298
16299 # Compiler flag to prevent dynamic linking.
16300 link_static_flag=$lt_lt_prog_compiler_static_F77
16301
16302 # Compiler flag to turn off builtin functions.
16303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16304
16305 # Compiler flag to allow reflexive dlopens.
16306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16307
16308 # Compiler flag to generate shared objects directly from archives.
16309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16310
16311 # Compiler flag to generate thread-safe objects.
16312 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16313
16314 # Library versioning type.
16315 version_type=$version_type
16316
16317 # Format of library name prefix.
16318 libname_spec=$lt_libname_spec
16319
16320 # List of archive names. First name is the real one, the rest are links.
16321 # The last name is the one that the linker finds with -lNAME.
16322 library_names_spec=$lt_library_names_spec
16323
16324 # The coded name of the library, if different from the real name.
16325 soname_spec=$lt_soname_spec
16326
16327 # Commands used to build and install an old-style archive.
16328 RANLIB=$lt_RANLIB
16329 old_archive_cmds=$lt_old_archive_cmds_F77
16330 old_postinstall_cmds=$lt_old_postinstall_cmds
16331 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16332
16333 # Create an old-style archive from a shared archive.
16334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16335
16336 # Create a temporary old-style archive to link instead of a shared archive.
16337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16338
16339 # Commands used to build and install a shared archive.
16340 archive_cmds=$lt_archive_cmds_F77
16341 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16342 postinstall_cmds=$lt_postinstall_cmds
16343 postuninstall_cmds=$lt_postuninstall_cmds
16344
16345 # Commands used to build a loadable module (assumed same as above if empty)
16346 module_cmds=$lt_module_cmds_F77
16347 module_expsym_cmds=$lt_module_expsym_cmds_F77
16348
16349 # Commands to strip libraries.
16350 old_striplib=$lt_old_striplib
16351 striplib=$lt_striplib
16352
16353 # Dependencies to place before the objects being linked to create a
16354 # shared library.
16355 predep_objects=$lt_predep_objects_F77
16356
16357 # Dependencies to place after the objects being linked to create a
16358 # shared library.
16359 postdep_objects=$lt_postdep_objects_F77
16360
16361 # Dependencies to place before the objects being linked to create a
16362 # shared library.
16363 predeps=$lt_predeps_F77
16364
16365 # Dependencies to place after the objects being linked to create a
16366 # shared library.
16367 postdeps=$lt_postdeps_F77
16368
16369 # The library search path used internally by the compiler when linking
16370 # a shared library.
16371 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16372
16373 # Method to check whether dependent libraries are shared objects.
16374 deplibs_check_method=$lt_deplibs_check_method
16375
16376 # Command to use when deplibs_check_method == file_magic.
16377 file_magic_cmd=$lt_file_magic_cmd
16378
16379 # Flag that allows shared libraries with undefined symbols to be built.
16380 allow_undefined_flag=$lt_allow_undefined_flag_F77
16381
16382 # Flag that forces no undefined symbols.
16383 no_undefined_flag=$lt_no_undefined_flag_F77
16384
16385 # Commands used to finish a libtool library installation in a directory.
16386 finish_cmds=$lt_finish_cmds
16387
16388 # Same as above, but a single script fragment to be evaled but not shown.
16389 finish_eval=$lt_finish_eval
16390
16391 # Take the output of nm and produce a listing of raw symbols and C names.
16392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16393
16394 # Transform the output of nm in a proper C declaration
16395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16396
16397 # Transform the output of nm in a C name address pair
16398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16399
16400 # This is the shared library runtime path variable.
16401 runpath_var=$runpath_var
16402
16403 # This is the shared library path variable.
16404 shlibpath_var=$shlibpath_var
16405
16406 # Is shlibpath searched before the hard-coded library search path?
16407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16408
16409 # How to hardcode a shared library path into an executable.
16410 hardcode_action=$hardcode_action_F77
16411
16412 # Whether we should hardcode library paths into libraries.
16413 hardcode_into_libs=$hardcode_into_libs
16414
16415 # Flag to hardcode \$libdir into a binary during linking.
16416 # This must work even if \$libdir does not exist.
16417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16418
16419 # If ld is used when linking, flag to hardcode \$libdir into
16420 # a binary during linking. This must work even if \$libdir does
16421 # not exist.
16422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16423
16424 # Whether we need a single -rpath flag with a separated argument.
16425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16426
16427 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16428 # resulting binary.
16429 hardcode_direct=$hardcode_direct_F77
16430
16431 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16432 # resulting binary.
16433 hardcode_minus_L=$hardcode_minus_L_F77
16434
16435 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16436 # the resulting binary.
16437 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16438
16439 # Set to yes if building a shared library automatically hardcodes DIR into the library
16440 # and all subsequent libraries and executables linked against it.
16441 hardcode_automatic=$hardcode_automatic_F77
16442
16443 # Variables whose values should be saved in libtool wrapper scripts and
16444 # restored at relink time.
16445 variables_saved_for_relink="$variables_saved_for_relink"
16446
16447 # Whether libtool must link a program against all its dependency libraries.
16448 link_all_deplibs=$link_all_deplibs_F77
16449
16450 # Compile-time system search path for libraries
16451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16452
16453 # Run-time system search path for libraries
16454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16455
16456 # Fix the shell variable \$srcfile for the compiler.
16457 fix_srcfile_path=$lt_fix_srcfile_path
16458
16459 # Set to yes if exported symbols are required.
16460 always_export_symbols=$always_export_symbols_F77
16461
16462 # The commands to list exported symbols.
16463 export_symbols_cmds=$lt_export_symbols_cmds_F77
16464
16465 # The commands to extract the exported symbol list from a shared archive.
16466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16467
16468 # Symbols that should not be listed in the preloaded symbols.
16469 exclude_expsyms=$lt_exclude_expsyms_F77
16470
16471 # Symbols that must always be exported.
16472 include_expsyms=$lt_include_expsyms_F77
16473
16474 # ### END LIBTOOL TAG CONFIG: $tagname
16475
16476 __EOF__
16477
16478
16479 else
16480 # If there is no Makefile yet, we rely on a make rule to execute
16481 # `config.status --recheck' to rerun these tests and create the
16482 # libtool script then.
16483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16484 if test -f "$ltmain_in"; then
16485 test -f Makefile && make "$ltmain"
16486 fi
16487 fi
16488
16489
16490 ac_ext=c
16491 ac_cpp='$CPP $CPPFLAGS'
16492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495
16496 CC="$lt_save_CC"
16497
16498 else
16499 tagname=""
16500 fi
16501 ;;
16502
16503 GCJ)
16504 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16505
16506
16507 # Source file extension for Java test sources.
16508 ac_ext=java
16509
16510 # Object file extension for compiled Java test sources.
16511 objext=o
16512 objext_GCJ=$objext
16513
16514 # Code to be used in simple compile tests
16515 lt_simple_compile_test_code="class foo {}"
16516
16517 # Code to be used in simple link tests
16518 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16519
16520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16521
16522 # If no C compiler was specified, use CC.
16523 LTCC=${LTCC-"$CC"}
16524
16525 # If no C compiler flags were specified, use CFLAGS.
16526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16527
16528 # Allow CC to be a program name with arguments.
16529 compiler=$CC
16530
16531
16532 # save warnings/boilerplate of simple test code
16533 ac_outfile=conftest.$ac_objext
16534 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16535 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16536 _lt_compiler_boilerplate=`cat conftest.err`
16537 $rm conftest*
16538
16539 ac_outfile=conftest.$ac_objext
16540 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16541 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16542 _lt_linker_boilerplate=`cat conftest.err`
16543 $rm conftest*
16544
16545
16546 # Allow CC to be a program name with arguments.
16547 lt_save_CC="$CC"
16548 CC=${GCJ-"gcj"}
16549 compiler=$CC
16550 compiler_GCJ=$CC
16551 for cc_temp in $compiler""; do
16552 case $cc_temp in
16553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16555 \-*) ;;
16556 *) break;;
16557 esac
16558 done
16559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16560
16561
16562 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16563 archive_cmds_need_lc_GCJ=no
16564
16565 old_archive_cmds_GCJ=$old_archive_cmds
16566
16567
16568 lt_prog_compiler_no_builtin_flag_GCJ=
16569
16570 if test "$GCC" = yes; then
16571 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16572
16573
16574 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16575 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16576 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579 lt_cv_prog_compiler_rtti_exceptions=no
16580 ac_outfile=conftest.$ac_objext
16581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16582 lt_compiler_flag="-fno-rtti -fno-exceptions"
16583 # Insert the option either (1) after the last *FLAGS variable, or
16584 # (2) before a word containing "conftest.", or (3) at the end.
16585 # Note that $ac_compile itself does not contain backslashes and begins
16586 # with a dollar sign (not a hyphen), so the echo should work correctly.
16587 # The option is referenced via a variable to avoid confusing sed.
16588 lt_compile=`echo "$ac_compile" | $SED \
16589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591 -e 's:$: $lt_compiler_flag:'`
16592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
16593 (eval "$lt_compile" 2>conftest.err)
16594 ac_status=$?
16595 cat conftest.err >&5
16596 echo "$as_me:16596: \$? = $ac_status" >&5
16597 if (exit $ac_status) && test -s "$ac_outfile"; then
16598 # The compiler can only warn and ignore the option if not recognized
16599 # So say no if there are warnings other than the usual output.
16600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16603 lt_cv_prog_compiler_rtti_exceptions=yes
16604 fi
16605 fi
16606 $rm conftest*
16607
16608 fi
16609 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16610 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16611
16612 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16613 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16614 else
16615 :
16616 fi
16617
16618 fi
16619
16620 lt_prog_compiler_wl_GCJ=
16621 lt_prog_compiler_pic_GCJ=
16622 lt_prog_compiler_static_GCJ=
16623
16624 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16626
16627 if test "$GCC" = yes; then
16628 lt_prog_compiler_wl_GCJ='-Wl,'
16629 lt_prog_compiler_static_GCJ='-static'
16630
16631 case $host_os in
16632 aix*)
16633 # All AIX code is PIC.
16634 if test "$host_cpu" = ia64; then
16635 # AIX 5 now supports IA64 processor
16636 lt_prog_compiler_static_GCJ='-Bstatic'
16637 fi
16638 ;;
16639
16640 amigaos*)
16641 # FIXME: we need at least 68020 code to build shared libraries, but
16642 # adding the `-m68020' flag to GCC prevents building anything better,
16643 # like `-m68040'.
16644 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16645 ;;
16646
16647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16648 # PIC is the default for these OSes.
16649 ;;
16650
16651 mingw* | cygwin* | pw32* | os2*)
16652 # This hack is so that the source file can tell whether it is being
16653 # built for inclusion in a dll (and should export symbols for example).
16654 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16655 # (--disable-auto-import) libraries
16656 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16657 ;;
16658
16659 darwin* | rhapsody*)
16660 # PIC is the default on this platform
16661 # Common symbols not allowed in MH_DYLIB files
16662 lt_prog_compiler_pic_GCJ='-fno-common'
16663 ;;
16664
16665 interix[3-9]*)
16666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16667 # Instead, we relocate shared libraries at runtime.
16668 ;;
16669
16670 msdosdjgpp*)
16671 # Just because we use GCC doesn't mean we suddenly get shared libraries
16672 # on systems that don't support them.
16673 lt_prog_compiler_can_build_shared_GCJ=no
16674 enable_shared=no
16675 ;;
16676
16677 sysv4*MP*)
16678 if test -d /usr/nec; then
16679 lt_prog_compiler_pic_GCJ=-Kconform_pic
16680 fi
16681 ;;
16682
16683 hpux*)
16684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16685 # not for PA HP-UX.
16686 case $host_cpu in
16687 hppa*64*|ia64*)
16688 # +Z the default
16689 ;;
16690 *)
16691 lt_prog_compiler_pic_GCJ='-fPIC'
16692 ;;
16693 esac
16694 ;;
16695
16696 *)
16697 lt_prog_compiler_pic_GCJ='-fPIC'
16698 ;;
16699 esac
16700 else
16701 # PORTME Check for flag to pass linker flags through the system compiler.
16702 case $host_os in
16703 aix*)
16704 lt_prog_compiler_wl_GCJ='-Wl,'
16705 if test "$host_cpu" = ia64; then
16706 # AIX 5 now supports IA64 processor
16707 lt_prog_compiler_static_GCJ='-Bstatic'
16708 else
16709 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16710 fi
16711 ;;
16712 darwin*)
16713 # PIC is the default on this platform
16714 # Common symbols not allowed in MH_DYLIB files
16715 case $cc_basename in
16716 xlc*)
16717 lt_prog_compiler_pic_GCJ='-qnocommon'
16718 lt_prog_compiler_wl_GCJ='-Wl,'
16719 ;;
16720 esac
16721 ;;
16722
16723 mingw* | cygwin* | pw32* | os2*)
16724 # This hack is so that the source file can tell whether it is being
16725 # built for inclusion in a dll (and should export symbols for example).
16726 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16727 ;;
16728
16729 hpux9* | hpux10* | hpux11*)
16730 lt_prog_compiler_wl_GCJ='-Wl,'
16731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16732 # not for PA HP-UX.
16733 case $host_cpu in
16734 hppa*64*|ia64*)
16735 # +Z the default
16736 ;;
16737 *)
16738 lt_prog_compiler_pic_GCJ='+Z'
16739 ;;
16740 esac
16741 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16742 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16743 ;;
16744
16745 irix5* | irix6* | nonstopux*)
16746 lt_prog_compiler_wl_GCJ='-Wl,'
16747 # PIC (with -KPIC) is the default.
16748 lt_prog_compiler_static_GCJ='-non_shared'
16749 ;;
16750
16751 newsos6)
16752 lt_prog_compiler_pic_GCJ='-KPIC'
16753 lt_prog_compiler_static_GCJ='-Bstatic'
16754 ;;
16755
16756 linux* | k*bsd*-gnu)
16757 case $cc_basename in
16758 icc* | ecc*)
16759 lt_prog_compiler_wl_GCJ='-Wl,'
16760 lt_prog_compiler_pic_GCJ='-KPIC'
16761 lt_prog_compiler_static_GCJ='-static'
16762 ;;
16763 pgcc* | pgf77* | pgf90* | pgf95*)
16764 # Portland Group compilers (*not* the Pentium gcc compiler,
16765 # which looks to be a dead project)
16766 lt_prog_compiler_wl_GCJ='-Wl,'
16767 lt_prog_compiler_pic_GCJ='-fpic'
16768 lt_prog_compiler_static_GCJ='-Bstatic'
16769 ;;
16770 ccc*)
16771 lt_prog_compiler_wl_GCJ='-Wl,'
16772 # All Alpha code is PIC.
16773 lt_prog_compiler_static_GCJ='-non_shared'
16774 ;;
16775 *)
16776 case `$CC -V 2>&1 | sed 5q` in
16777 *Sun\ C*)
16778 # Sun C 5.9
16779 lt_prog_compiler_pic_GCJ='-KPIC'
16780 lt_prog_compiler_static_GCJ='-Bstatic'
16781 lt_prog_compiler_wl_GCJ='-Wl,'
16782 ;;
16783 *Sun\ F*)
16784 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16785 lt_prog_compiler_pic_GCJ='-KPIC'
16786 lt_prog_compiler_static_GCJ='-Bstatic'
16787 lt_prog_compiler_wl_GCJ=''
16788 ;;
16789 esac
16790 ;;
16791 esac
16792 ;;
16793
16794 osf3* | osf4* | osf5*)
16795 lt_prog_compiler_wl_GCJ='-Wl,'
16796 # All OSF/1 code is PIC.
16797 lt_prog_compiler_static_GCJ='-non_shared'
16798 ;;
16799
16800 rdos*)
16801 lt_prog_compiler_static_GCJ='-non_shared'
16802 ;;
16803
16804 solaris*)
16805 lt_prog_compiler_pic_GCJ='-KPIC'
16806 lt_prog_compiler_static_GCJ='-Bstatic'
16807 case $cc_basename in
16808 f77* | f90* | f95*)
16809 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16810 *)
16811 lt_prog_compiler_wl_GCJ='-Wl,';;
16812 esac
16813 ;;
16814
16815 sunos4*)
16816 lt_prog_compiler_wl_GCJ='-Qoption ld '
16817 lt_prog_compiler_pic_GCJ='-PIC'
16818 lt_prog_compiler_static_GCJ='-Bstatic'
16819 ;;
16820
16821 sysv4 | sysv4.2uw2* | sysv4.3*)
16822 lt_prog_compiler_wl_GCJ='-Wl,'
16823 lt_prog_compiler_pic_GCJ='-KPIC'
16824 lt_prog_compiler_static_GCJ='-Bstatic'
16825 ;;
16826
16827 sysv4*MP*)
16828 if test -d /usr/nec ;then
16829 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16830 lt_prog_compiler_static_GCJ='-Bstatic'
16831 fi
16832 ;;
16833
16834 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16835 lt_prog_compiler_wl_GCJ='-Wl,'
16836 lt_prog_compiler_pic_GCJ='-KPIC'
16837 lt_prog_compiler_static_GCJ='-Bstatic'
16838 ;;
16839
16840 unicos*)
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16842 lt_prog_compiler_can_build_shared_GCJ=no
16843 ;;
16844
16845 uts4*)
16846 lt_prog_compiler_pic_GCJ='-pic'
16847 lt_prog_compiler_static_GCJ='-Bstatic'
16848 ;;
16849
16850 *)
16851 lt_prog_compiler_can_build_shared_GCJ=no
16852 ;;
16853 esac
16854 fi
16855
16856 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16857 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16858
16859 #
16860 # Check to make sure the PIC flag actually works.
16861 #
16862 if test -n "$lt_prog_compiler_pic_GCJ"; then
16863
16864 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16865 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16866 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869 lt_prog_compiler_pic_works_GCJ=no
16870 ac_outfile=conftest.$ac_objext
16871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16872 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16873 # Insert the option either (1) after the last *FLAGS variable, or
16874 # (2) before a word containing "conftest.", or (3) at the end.
16875 # Note that $ac_compile itself does not contain backslashes and begins
16876 # with a dollar sign (not a hyphen), so the echo should work correctly.
16877 # The option is referenced via a variable to avoid confusing sed.
16878 lt_compile=`echo "$ac_compile" | $SED \
16879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16881 -e 's:$: $lt_compiler_flag:'`
16882 (eval echo "\"\$as_me:16882: $lt_compile\"" >&5)
16883 (eval "$lt_compile" 2>conftest.err)
16884 ac_status=$?
16885 cat conftest.err >&5
16886 echo "$as_me:16886: \$? = $ac_status" >&5
16887 if (exit $ac_status) && test -s "$ac_outfile"; then
16888 # The compiler can only warn and ignore the option if not recognized
16889 # So say no if there are warnings other than the usual output.
16890 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16893 lt_prog_compiler_pic_works_GCJ=yes
16894 fi
16895 fi
16896 $rm conftest*
16897
16898 fi
16899 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16900 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16901
16902 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16903 case $lt_prog_compiler_pic_GCJ in
16904 "" | " "*) ;;
16905 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16906 esac
16907 else
16908 lt_prog_compiler_pic_GCJ=
16909 lt_prog_compiler_can_build_shared_GCJ=no
16910 fi
16911
16912 fi
16913 case $host_os in
16914 # For platforms which do not support PIC, -DPIC is meaningless:
16915 *djgpp*)
16916 lt_prog_compiler_pic_GCJ=
16917 ;;
16918 *)
16919 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16920 ;;
16921 esac
16922
16923 #
16924 # Check to make sure the static flag actually works.
16925 #
16926 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16927 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16928 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16929 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 else
16932 lt_prog_compiler_static_works_GCJ=no
16933 save_LDFLAGS="$LDFLAGS"
16934 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16935 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16937 # The linker can only warn and ignore the option if not recognized
16938 # So say no if there are warnings
16939 if test -s conftest.err; then
16940 # Append any errors to the config.log.
16941 cat conftest.err 1>&5
16942 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16944 if diff conftest.exp conftest.er2 >/dev/null; then
16945 lt_prog_compiler_static_works_GCJ=yes
16946 fi
16947 else
16948 lt_prog_compiler_static_works_GCJ=yes
16949 fi
16950 fi
16951 $rm conftest*
16952 LDFLAGS="$save_LDFLAGS"
16953
16954 fi
16955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16956 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16957
16958 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16959 :
16960 else
16961 lt_prog_compiler_static_GCJ=
16962 fi
16963
16964
16965 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16966 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16967 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970 lt_cv_prog_compiler_c_o_GCJ=no
16971 $rm -r conftest 2>/dev/null
16972 mkdir conftest
16973 cd conftest
16974 mkdir out
16975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16976
16977 lt_compiler_flag="-o out/conftest2.$ac_objext"
16978 # Insert the option either (1) after the last *FLAGS variable, or
16979 # (2) before a word containing "conftest.", or (3) at the end.
16980 # Note that $ac_compile itself does not contain backslashes and begins
16981 # with a dollar sign (not a hyphen), so the echo should work correctly.
16982 lt_compile=`echo "$ac_compile" | $SED \
16983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16985 -e 's:$: $lt_compiler_flag:'`
16986 (eval echo "\"\$as_me:16986: $lt_compile\"" >&5)
16987 (eval "$lt_compile" 2>out/conftest.err)
16988 ac_status=$?
16989 cat out/conftest.err >&5
16990 echo "$as_me:16990: \$? = $ac_status" >&5
16991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16992 then
16993 # The compiler can only warn and ignore the option if not recognized
16994 # So say no if there are warnings
16995 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16998 lt_cv_prog_compiler_c_o_GCJ=yes
16999 fi
17000 fi
17001 chmod u+w . 2>&5
17002 $rm conftest*
17003 # SGI C++ compiler will create directory out/ii_files/ for
17004 # template instantiation
17005 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17006 $rm out/* && rmdir out
17007 cd ..
17008 rmdir conftest
17009 $rm conftest*
17010
17011 fi
17012 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17013 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17014
17015
17016 hard_links="nottested"
17017 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17018 # do not overwrite the value of need_locks provided by the user
17019 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17020 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17021 hard_links=yes
17022 $rm conftest*
17023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17024 touch conftest.a
17025 ln conftest.a conftest.b 2>&5 || hard_links=no
17026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17027 { echo "$as_me:$LINENO: result: $hard_links" >&5
17028 echo "${ECHO_T}$hard_links" >&6; }
17029 if test "$hard_links" = no; then
17030 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17031 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17032 need_locks=warn
17033 fi
17034 else
17035 need_locks=no
17036 fi
17037
17038 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17039 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17040
17041 runpath_var=
17042 allow_undefined_flag_GCJ=
17043 enable_shared_with_static_runtimes_GCJ=no
17044 archive_cmds_GCJ=
17045 archive_expsym_cmds_GCJ=
17046 old_archive_From_new_cmds_GCJ=
17047 old_archive_from_expsyms_cmds_GCJ=
17048 export_dynamic_flag_spec_GCJ=
17049 whole_archive_flag_spec_GCJ=
17050 thread_safe_flag_spec_GCJ=
17051 hardcode_libdir_flag_spec_GCJ=
17052 hardcode_libdir_flag_spec_ld_GCJ=
17053 hardcode_libdir_separator_GCJ=
17054 hardcode_direct_GCJ=no
17055 hardcode_minus_L_GCJ=no
17056 hardcode_shlibpath_var_GCJ=unsupported
17057 link_all_deplibs_GCJ=unknown
17058 hardcode_automatic_GCJ=no
17059 module_cmds_GCJ=
17060 module_expsym_cmds_GCJ=
17061 always_export_symbols_GCJ=no
17062 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17063 # include_expsyms should be a list of space-separated symbols to be *always*
17064 # included in the symbol list
17065 include_expsyms_GCJ=
17066 # exclude_expsyms can be an extended regexp of symbols to exclude
17067 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17068 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17069 # as well as any symbol that contains `d'.
17070 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17072 # platforms (ab)use it in PIC code, but their linkers get confused if
17073 # the symbol is explicitly referenced. Since portable code cannot
17074 # rely on this symbol name, it's probably fine to never include it in
17075 # preloaded symbol tables.
17076 extract_expsyms_cmds=
17077 # Just being paranoid about ensuring that cc_basename is set.
17078 for cc_temp in $compiler""; do
17079 case $cc_temp in
17080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17082 \-*) ;;
17083 *) break;;
17084 esac
17085 done
17086 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17087
17088 case $host_os in
17089 cygwin* | mingw* | pw32*)
17090 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17091 # When not using gcc, we currently assume that we are using
17092 # Microsoft Visual C++.
17093 if test "$GCC" != yes; then
17094 with_gnu_ld=no
17095 fi
17096 ;;
17097 interix*)
17098 # we just hope/assume this is gcc and not c89 (= MSVC++)
17099 with_gnu_ld=yes
17100 ;;
17101 openbsd*)
17102 with_gnu_ld=no
17103 ;;
17104 esac
17105
17106 ld_shlibs_GCJ=yes
17107 if test "$with_gnu_ld" = yes; then
17108 # If archive_cmds runs LD, not CC, wlarc should be empty
17109 wlarc='${wl}'
17110
17111 # Set some defaults for GNU ld with shared library support. These
17112 # are reset later if shared libraries are not supported. Putting them
17113 # here allows them to be overridden if necessary.
17114 runpath_var=LD_RUN_PATH
17115 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17116 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17117 # ancient GNU ld didn't support --whole-archive et. al.
17118 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17119 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17120 else
17121 whole_archive_flag_spec_GCJ=
17122 fi
17123 supports_anon_versioning=no
17124 case `$LD -v 2>/dev/null` in
17125 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17128 *\ 2.11.*) ;; # other 2.11 versions
17129 *) supports_anon_versioning=yes ;;
17130 esac
17131
17132 # See if GNU ld supports shared libraries.
17133 case $host_os in
17134 aix3* | aix4* | aix5*)
17135 # On AIX/PPC, the GNU linker is very broken
17136 if test "$host_cpu" != ia64; then
17137 ld_shlibs_GCJ=no
17138 cat <<EOF 1>&2
17139
17140 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17141 *** to be unable to reliably create shared libraries on AIX.
17142 *** Therefore, libtool is disabling shared libraries support. If you
17143 *** really care for shared libraries, you may want to modify your PATH
17144 *** so that a non-GNU linker is found, and then restart.
17145
17146 EOF
17147 fi
17148 ;;
17149
17150 amigaos*)
17151 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)'
17152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17153 hardcode_minus_L_GCJ=yes
17154
17155 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17156 # that the semantics of dynamic libraries on AmigaOS, at least up
17157 # to version 4, is to share data among multiple programs linked
17158 # with the same dynamic library. Since this doesn't match the
17159 # behavior of shared libraries on other platforms, we can't use
17160 # them.
17161 ld_shlibs_GCJ=no
17162 ;;
17163
17164 beos*)
17165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17166 allow_undefined_flag_GCJ=unsupported
17167 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17168 # support --undefined. This deserves some investigation. FIXME
17169 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17170 else
17171 ld_shlibs_GCJ=no
17172 fi
17173 ;;
17174
17175 cygwin* | mingw* | pw32*)
17176 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17177 # as there is no search path for DLLs.
17178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17179 allow_undefined_flag_GCJ=unsupported
17180 always_export_symbols_GCJ=no
17181 enable_shared_with_static_runtimes_GCJ=yes
17182 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17183
17184 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17185 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17186 # If the export-symbols file already is a .def file (1st line
17187 # is EXPORTS), use it as is; otherwise, prepend...
17188 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17189 cp $export_symbols $output_objdir/$soname.def;
17190 else
17191 echo EXPORTS > $output_objdir/$soname.def;
17192 cat $export_symbols >> $output_objdir/$soname.def;
17193 fi~
17194 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17195 else
17196 ld_shlibs_GCJ=no
17197 fi
17198 ;;
17199
17200 interix[3-9]*)
17201 hardcode_direct_GCJ=no
17202 hardcode_shlibpath_var_GCJ=no
17203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17204 export_dynamic_flag_spec_GCJ='${wl}-E'
17205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17206 # Instead, shared libraries are loaded at an image base (0x10000000 by
17207 # default) and relocated if they conflict, which is a slow very memory
17208 # consuming and fragmenting process. To avoid this, we pick a random,
17209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17210 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17211 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'
17212 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'
17213 ;;
17214
17215 gnu* | linux* | k*bsd*-gnu)
17216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17217 tmp_addflag=
17218 case $cc_basename,$host_cpu in
17219 pgcc*) # Portland Group C compiler
17220 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'
17221 tmp_addflag=' $pic_flag'
17222 ;;
17223 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17224 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'
17225 tmp_addflag=' $pic_flag -Mnomain' ;;
17226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17227 tmp_addflag=' -i_dynamic' ;;
17228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17229 tmp_addflag=' -i_dynamic -nofor_main' ;;
17230 ifc* | ifort*) # Intel Fortran compiler
17231 tmp_addflag=' -nofor_main' ;;
17232 esac
17233 case `$CC -V 2>&1 | sed 5q` in
17234 *Sun\ C*) # Sun C 5.9
17235 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'
17236 tmp_sharedflag='-G' ;;
17237 *Sun\ F*) # Sun Fortran 8.3
17238 tmp_sharedflag='-G' ;;
17239 *)
17240 tmp_sharedflag='-shared' ;;
17241 esac
17242 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17243
17244 if test $supports_anon_versioning = yes; then
17245 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17247 $echo "local: *; };" >> $output_objdir/$libname.ver~
17248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17249 fi
17250 else
17251 ld_shlibs_GCJ=no
17252 fi
17253 ;;
17254
17255 netbsd*)
17256 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17257 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17258 wlarc=
17259 else
17260 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17261 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17262 fi
17263 ;;
17264
17265 solaris*)
17266 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17267 ld_shlibs_GCJ=no
17268 cat <<EOF 1>&2
17269
17270 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17271 *** create shared libraries on Solaris systems. Therefore, libtool
17272 *** is disabling shared libraries support. We urge you to upgrade GNU
17273 *** binutils to release 2.9.1 or newer. Another option is to modify
17274 *** your PATH or compiler configuration so that the native linker is
17275 *** used, and then restart.
17276
17277 EOF
17278 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17279 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17281 else
17282 ld_shlibs_GCJ=no
17283 fi
17284 ;;
17285
17286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17287 case `$LD -v 2>&1` in
17288 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17289 ld_shlibs_GCJ=no
17290 cat <<_LT_EOF 1>&2
17291
17292 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17293 *** reliably create shared libraries on SCO systems. Therefore, libtool
17294 *** is disabling shared libraries support. We urge you to upgrade GNU
17295 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17296 *** your PATH or compiler configuration so that the native linker is
17297 *** used, and then restart.
17298
17299 _LT_EOF
17300 ;;
17301 *)
17302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17303 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17304 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17305 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17306 else
17307 ld_shlibs_GCJ=no
17308 fi
17309 ;;
17310 esac
17311 ;;
17312
17313 sunos4*)
17314 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17315 wlarc=
17316 hardcode_direct_GCJ=yes
17317 hardcode_shlibpath_var_GCJ=no
17318 ;;
17319
17320 *)
17321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17322 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17323 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17324 else
17325 ld_shlibs_GCJ=no
17326 fi
17327 ;;
17328 esac
17329
17330 if test "$ld_shlibs_GCJ" = no; then
17331 runpath_var=
17332 hardcode_libdir_flag_spec_GCJ=
17333 export_dynamic_flag_spec_GCJ=
17334 whole_archive_flag_spec_GCJ=
17335 fi
17336 else
17337 # PORTME fill in a description of your system's linker (not GNU ld)
17338 case $host_os in
17339 aix3*)
17340 allow_undefined_flag_GCJ=unsupported
17341 always_export_symbols_GCJ=yes
17342 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'
17343 # Note: this linker hardcodes the directories in LIBPATH if there
17344 # are no directories specified by -L.
17345 hardcode_minus_L_GCJ=yes
17346 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17347 # Neither direct hardcoding nor static linking is supported with a
17348 # broken collect2.
17349 hardcode_direct_GCJ=unsupported
17350 fi
17351 ;;
17352
17353 aix4* | aix5*)
17354 if test "$host_cpu" = ia64; then
17355 # On IA64, the linker does run time linking by default, so we don't
17356 # have to do anything special.
17357 aix_use_runtimelinking=no
17358 exp_sym_flag='-Bexport'
17359 no_entry_flag=""
17360 else
17361 # If we're using GNU nm, then we don't want the "-C" option.
17362 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17363 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17364 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'
17365 else
17366 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'
17367 fi
17368 aix_use_runtimelinking=no
17369
17370 # Test if we are trying to use run time linking or normal
17371 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17372 # need to do runtime linking.
17373 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17374 for ld_flag in $LDFLAGS; do
17375 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17376 aix_use_runtimelinking=yes
17377 break
17378 fi
17379 done
17380 ;;
17381 esac
17382
17383 exp_sym_flag='-bexport'
17384 no_entry_flag='-bnoentry'
17385 fi
17386
17387 # When large executables or shared objects are built, AIX ld can
17388 # have problems creating the table of contents. If linking a library
17389 # or program results in "error TOC overflow" add -mminimal-toc to
17390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17392
17393 archive_cmds_GCJ=''
17394 hardcode_direct_GCJ=yes
17395 hardcode_libdir_separator_GCJ=':'
17396 link_all_deplibs_GCJ=yes
17397
17398 if test "$GCC" = yes; then
17399 case $host_os in aix4.[012]|aix4.[012].*)
17400 # We only want to do this on AIX 4.2 and lower, the check
17401 # below for broken collect2 doesn't work under 4.3+
17402 collect2name=`${CC} -print-prog-name=collect2`
17403 if test -f "$collect2name" && \
17404 strings "$collect2name" | grep resolve_lib_name >/dev/null
17405 then
17406 # We have reworked collect2
17407 :
17408 else
17409 # We have old collect2
17410 hardcode_direct_GCJ=unsupported
17411 # It fails to find uninstalled libraries when the uninstalled
17412 # path is not listed in the libpath. Setting hardcode_minus_L
17413 # to unsupported forces relinking
17414 hardcode_minus_L_GCJ=yes
17415 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17416 hardcode_libdir_separator_GCJ=
17417 fi
17418 ;;
17419 esac
17420 shared_flag='-shared'
17421 if test "$aix_use_runtimelinking" = yes; then
17422 shared_flag="$shared_flag "'${wl}-G'
17423 fi
17424 else
17425 # not using gcc
17426 if test "$host_cpu" = ia64; then
17427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17428 # chokes on -Wl,-G. The following line is correct:
17429 shared_flag='-G'
17430 else
17431 if test "$aix_use_runtimelinking" = yes; then
17432 shared_flag='${wl}-G'
17433 else
17434 shared_flag='${wl}-bM:SRE'
17435 fi
17436 fi
17437 fi
17438
17439 # It seems that -bexpall does not export symbols beginning with
17440 # underscore (_), so it is better to generate a list of symbols to export.
17441 always_export_symbols_GCJ=yes
17442 if test "$aix_use_runtimelinking" = yes; then
17443 # Warning - without using the other runtime loading flags (-brtl),
17444 # -berok will link without error, but may produce a broken library.
17445 allow_undefined_flag_GCJ='-berok'
17446 # Determine the default libpath from the value encoded in an empty executable.
17447 cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h. */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17453
17454 int
17455 main ()
17456 {
17457
17458 ;
17459 return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (ac_try="$ac_link"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_link") 2>conftest.er1
17470 ac_status=$?
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } && {
17476 test -z "$ac_c_werror_flag" ||
17477 test ! -s conftest.err
17478 } && test -s conftest$ac_exeext &&
17479 $as_test_x conftest$ac_exeext; then
17480
17481 lt_aix_libpath_sed='
17482 /Import File Strings/,/^$/ {
17483 /^0/ {
17484 s/^0 *\(.*\)$/\1/
17485 p
17486 }
17487 }'
17488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17489 # Check for a 64-bit object if we didn't find anything.
17490 if test -z "$aix_libpath"; then
17491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17492 fi
17493 else
17494 echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17496
17497
17498 fi
17499
17500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17501 conftest$ac_exeext conftest.$ac_ext
17502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17503
17504 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17505 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"
17506 else
17507 if test "$host_cpu" = ia64; then
17508 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17509 allow_undefined_flag_GCJ="-z nodefs"
17510 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"
17511 else
17512 # Determine the default libpath from the value encoded in an empty executable.
17513 cat >conftest.$ac_ext <<_ACEOF
17514 /* confdefs.h. */
17515 _ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519
17520 int
17521 main ()
17522 {
17523
17524 ;
17525 return 0;
17526 }
17527 _ACEOF
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (ac_try="$ac_link"
17530 case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533 esac
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_link") 2>conftest.er1
17536 ac_status=$?
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } && {
17542 test -z "$ac_c_werror_flag" ||
17543 test ! -s conftest.err
17544 } && test -s conftest$ac_exeext &&
17545 $as_test_x conftest$ac_exeext; then
17546
17547 lt_aix_libpath_sed='
17548 /Import File Strings/,/^$/ {
17549 /^0/ {
17550 s/^0 *\(.*\)$/\1/
17551 p
17552 }
17553 }'
17554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17555 # Check for a 64-bit object if we didn't find anything.
17556 if test -z "$aix_libpath"; then
17557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17558 fi
17559 else
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17562
17563
17564 fi
17565
17566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17567 conftest$ac_exeext conftest.$ac_ext
17568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17569
17570 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17571 # Warning - without using the other run time loading flags,
17572 # -berok will link without error, but may produce a broken library.
17573 no_undefined_flag_GCJ=' ${wl}-bernotok'
17574 allow_undefined_flag_GCJ=' ${wl}-berok'
17575 # Exported symbols can be pulled into shared objects from archives
17576 whole_archive_flag_spec_GCJ='$convenience'
17577 archive_cmds_need_lc_GCJ=yes
17578 # This is similar to how AIX traditionally builds its shared libraries.
17579 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'
17580 fi
17581 fi
17582 ;;
17583
17584 amigaos*)
17585 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)'
17586 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17587 hardcode_minus_L_GCJ=yes
17588 # see comment about different semantics on the GNU ld section
17589 ld_shlibs_GCJ=no
17590 ;;
17591
17592 bsdi[45]*)
17593 export_dynamic_flag_spec_GCJ=-rdynamic
17594 ;;
17595
17596 cygwin* | mingw* | pw32*)
17597 # When not using gcc, we currently assume that we are using
17598 # Microsoft Visual C++.
17599 # hardcode_libdir_flag_spec is actually meaningless, as there is
17600 # no search path for DLLs.
17601 hardcode_libdir_flag_spec_GCJ=' '
17602 allow_undefined_flag_GCJ=unsupported
17603 # Tell ltmain to make .lib files, not .a files.
17604 libext=lib
17605 # Tell ltmain to make .dll files, not .so files.
17606 shrext_cmds=".dll"
17607 # FIXME: Setting linknames here is a bad hack.
17608 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17609 # The linker will automatically build a .lib file if we build a DLL.
17610 old_archive_From_new_cmds_GCJ='true'
17611 # FIXME: Should let the user specify the lib program.
17612 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17613 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17614 enable_shared_with_static_runtimes_GCJ=yes
17615 ;;
17616
17617 darwin* | rhapsody*)
17618 case $host_os in
17619 rhapsody* | darwin1.[012])
17620 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17621 ;;
17622 *) # Darwin 1.3 on
17623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17624 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17625 else
17626 case ${MACOSX_DEPLOYMENT_TARGET} in
17627 10.[012])
17628 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17629 ;;
17630 10.*)
17631 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17632 ;;
17633 esac
17634 fi
17635 ;;
17636 esac
17637 archive_cmds_need_lc_GCJ=no
17638 hardcode_direct_GCJ=no
17639 hardcode_automatic_GCJ=yes
17640 hardcode_shlibpath_var_GCJ=unsupported
17641 whole_archive_flag_spec_GCJ=''
17642 link_all_deplibs_GCJ=yes
17643 if test "$GCC" = yes ; then
17644 output_verbose_link_cmd='echo'
17645 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17646 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17648 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}'
17649 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}'
17650 else
17651 case $cc_basename in
17652 xlc*)
17653 output_verbose_link_cmd='echo'
17654 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17655 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17657 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}'
17658 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}'
17659 ;;
17660 *)
17661 ld_shlibs_GCJ=no
17662 ;;
17663 esac
17664 fi
17665 ;;
17666
17667 dgux*)
17668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17670 hardcode_shlibpath_var_GCJ=no
17671 ;;
17672
17673 freebsd1*)
17674 ld_shlibs_GCJ=no
17675 ;;
17676
17677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17678 # support. Future versions do this automatically, but an explicit c++rt0.o
17679 # does not break anything, and helps significantly (at the cost of a little
17680 # extra space).
17681 freebsd2.2*)
17682 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17683 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17684 hardcode_direct_GCJ=yes
17685 hardcode_shlibpath_var_GCJ=no
17686 ;;
17687
17688 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17689 freebsd2*)
17690 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17691 hardcode_direct_GCJ=yes
17692 hardcode_minus_L_GCJ=yes
17693 hardcode_shlibpath_var_GCJ=no
17694 ;;
17695
17696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17697 freebsd* | dragonfly*)
17698 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17700 hardcode_direct_GCJ=yes
17701 hardcode_shlibpath_var_GCJ=no
17702 ;;
17703
17704 hpux9*)
17705 if test "$GCC" = yes; then
17706 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'
17707 else
17708 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'
17709 fi
17710 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17711 hardcode_libdir_separator_GCJ=:
17712 hardcode_direct_GCJ=yes
17713
17714 # hardcode_minus_L: Not really in the search PATH,
17715 # but as the default location of the library.
17716 hardcode_minus_L_GCJ=yes
17717 export_dynamic_flag_spec_GCJ='${wl}-E'
17718 ;;
17719
17720 hpux10*)
17721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17722 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17723 else
17724 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17725 fi
17726 if test "$with_gnu_ld" = no; then
17727 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17728 hardcode_libdir_separator_GCJ=:
17729
17730 hardcode_direct_GCJ=yes
17731 export_dynamic_flag_spec_GCJ='${wl}-E'
17732
17733 # hardcode_minus_L: Not really in the search PATH,
17734 # but as the default location of the library.
17735 hardcode_minus_L_GCJ=yes
17736 fi
17737 ;;
17738
17739 hpux11*)
17740 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17741 case $host_cpu in
17742 hppa*64*)
17743 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17744 ;;
17745 ia64*)
17746 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17747 ;;
17748 *)
17749 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17750 ;;
17751 esac
17752 else
17753 case $host_cpu in
17754 hppa*64*)
17755 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 ;;
17757 ia64*)
17758 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17759 ;;
17760 *)
17761 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17762 ;;
17763 esac
17764 fi
17765 if test "$with_gnu_ld" = no; then
17766 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17767 hardcode_libdir_separator_GCJ=:
17768
17769 case $host_cpu in
17770 hppa*64*|ia64*)
17771 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17772 hardcode_direct_GCJ=no
17773 hardcode_shlibpath_var_GCJ=no
17774 ;;
17775 *)
17776 hardcode_direct_GCJ=yes
17777 export_dynamic_flag_spec_GCJ='${wl}-E'
17778
17779 # hardcode_minus_L: Not really in the search PATH,
17780 # but as the default location of the library.
17781 hardcode_minus_L_GCJ=yes
17782 ;;
17783 esac
17784 fi
17785 ;;
17786
17787 irix5* | irix6* | nonstopux*)
17788 if test "$GCC" = yes; then
17789 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'
17790 else
17791 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'
17792 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17793 fi
17794 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17795 hardcode_libdir_separator_GCJ=:
17796 link_all_deplibs_GCJ=yes
17797 ;;
17798
17799 netbsd*)
17800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17801 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17802 else
17803 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17804 fi
17805 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17806 hardcode_direct_GCJ=yes
17807 hardcode_shlibpath_var_GCJ=no
17808 ;;
17809
17810 newsos6)
17811 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17812 hardcode_direct_GCJ=yes
17813 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17814 hardcode_libdir_separator_GCJ=:
17815 hardcode_shlibpath_var_GCJ=no
17816 ;;
17817
17818 openbsd*)
17819 if test -f /usr/libexec/ld.so; then
17820 hardcode_direct_GCJ=yes
17821 hardcode_shlibpath_var_GCJ=no
17822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17823 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17824 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17826 export_dynamic_flag_spec_GCJ='${wl}-E'
17827 else
17828 case $host_os in
17829 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17830 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17831 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17832 ;;
17833 *)
17834 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17835 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17836 ;;
17837 esac
17838 fi
17839 else
17840 ld_shlibs_GCJ=no
17841 fi
17842 ;;
17843
17844 os2*)
17845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17846 hardcode_minus_L_GCJ=yes
17847 allow_undefined_flag_GCJ=unsupported
17848 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'
17849 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17850 ;;
17851
17852 osf3*)
17853 if test "$GCC" = yes; then
17854 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17855 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'
17856 else
17857 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17858 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'
17859 fi
17860 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17861 hardcode_libdir_separator_GCJ=:
17862 ;;
17863
17864 osf4* | osf5*) # as osf3* with the addition of -msym flag
17865 if test "$GCC" = yes; then
17866 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17867 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'
17868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17869 else
17870 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17871 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'
17872 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~
17873 $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'
17874
17875 # Both c and cxx compiler support -rpath directly
17876 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17877 fi
17878 hardcode_libdir_separator_GCJ=:
17879 ;;
17880
17881 solaris*)
17882 no_undefined_flag_GCJ=' -z text'
17883 if test "$GCC" = yes; then
17884 wlarc='${wl}'
17885 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17888 else
17889 wlarc=''
17890 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17891 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17893 fi
17894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17895 hardcode_shlibpath_var_GCJ=no
17896 case $host_os in
17897 solaris2.[0-5] | solaris2.[0-5].*) ;;
17898 *)
17899 # The compiler driver will combine and reorder linker options,
17900 # but understands `-z linker_flag'. GCC discards it without `$wl',
17901 # but is careful enough not to reorder.
17902 # Supported since Solaris 2.6 (maybe 2.5.1?)
17903 if test "$GCC" = yes; then
17904 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17905 else
17906 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17907 fi
17908 ;;
17909 esac
17910 link_all_deplibs_GCJ=yes
17911 ;;
17912
17913 sunos4*)
17914 if test "x$host_vendor" = xsequent; then
17915 # Use $CC to link under sequent, because it throws in some extra .o
17916 # files that make .init and .fini sections work.
17917 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17918 else
17919 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17920 fi
17921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17922 hardcode_direct_GCJ=yes
17923 hardcode_minus_L_GCJ=yes
17924 hardcode_shlibpath_var_GCJ=no
17925 ;;
17926
17927 sysv4)
17928 case $host_vendor in
17929 sni)
17930 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17931 hardcode_direct_GCJ=yes # is this really true???
17932 ;;
17933 siemens)
17934 ## LD is ld it makes a PLAMLIB
17935 ## CC just makes a GrossModule.
17936 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17937 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17938 hardcode_direct_GCJ=no
17939 ;;
17940 motorola)
17941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17942 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17943 ;;
17944 esac
17945 runpath_var='LD_RUN_PATH'
17946 hardcode_shlibpath_var_GCJ=no
17947 ;;
17948
17949 sysv4.3*)
17950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17951 hardcode_shlibpath_var_GCJ=no
17952 export_dynamic_flag_spec_GCJ='-Bexport'
17953 ;;
17954
17955 sysv4*MP*)
17956 if test -d /usr/nec; then
17957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958 hardcode_shlibpath_var_GCJ=no
17959 runpath_var=LD_RUN_PATH
17960 hardcode_runpath_var=yes
17961 ld_shlibs_GCJ=yes
17962 fi
17963 ;;
17964
17965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17966 no_undefined_flag_GCJ='${wl}-z,text'
17967 archive_cmds_need_lc_GCJ=no
17968 hardcode_shlibpath_var_GCJ=no
17969 runpath_var='LD_RUN_PATH'
17970
17971 if test "$GCC" = yes; then
17972 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17973 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17974 else
17975 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17976 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17977 fi
17978 ;;
17979
17980 sysv5* | sco3.2v5* | sco5v6*)
17981 # Note: We can NOT use -z defs as we might desire, because we do not
17982 # link with -lc, and that would cause any symbols used from libc to
17983 # always be unresolved, which means just about no library would
17984 # ever link correctly. If we're not using GNU ld we use -z text
17985 # though, which does catch some bad symbols but isn't as heavy-handed
17986 # as -z defs.
17987 no_undefined_flag_GCJ='${wl}-z,text'
17988 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17989 archive_cmds_need_lc_GCJ=no
17990 hardcode_shlibpath_var_GCJ=no
17991 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17992 hardcode_libdir_separator_GCJ=':'
17993 link_all_deplibs_GCJ=yes
17994 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17995 runpath_var='LD_RUN_PATH'
17996
17997 if test "$GCC" = yes; then
17998 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17999 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18000 else
18001 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18002 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 fi
18004 ;;
18005
18006 uts4*)
18007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18009 hardcode_shlibpath_var_GCJ=no
18010 ;;
18011
18012 *)
18013 ld_shlibs_GCJ=no
18014 ;;
18015 esac
18016 fi
18017
18018 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18019 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18020 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18021
18022 #
18023 # Do we need to explicitly link libc?
18024 #
18025 case "x$archive_cmds_need_lc_GCJ" in
18026 x|xyes)
18027 # Assume -lc should be added
18028 archive_cmds_need_lc_GCJ=yes
18029
18030 if test "$enable_shared" = yes && test "$GCC" = yes; then
18031 case $archive_cmds_GCJ in
18032 *'~'*)
18033 # FIXME: we may have to deal with multi-command sequences.
18034 ;;
18035 '$CC '*)
18036 # Test whether the compiler implicitly links with -lc since on some
18037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18038 # to ld, don't add -lc before -lgcc.
18039 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18040 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18041 $rm conftest*
18042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18043
18044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18045 (eval $ac_compile) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } 2>conftest.err; then
18049 soname=conftest
18050 lib=conftest
18051 libobjs=conftest.$ac_objext
18052 deplibs=
18053 wl=$lt_prog_compiler_wl_GCJ
18054 pic_flag=$lt_prog_compiler_pic_GCJ
18055 compiler_flags=-v
18056 linker_flags=-v
18057 verstring=
18058 output_objdir=.
18059 libname=conftest
18060 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18061 allow_undefined_flag_GCJ=
18062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18063 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }
18067 then
18068 archive_cmds_need_lc_GCJ=no
18069 else
18070 archive_cmds_need_lc_GCJ=yes
18071 fi
18072 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18073 else
18074 cat conftest.err 1>&5
18075 fi
18076 $rm conftest*
18077 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18078 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18079 ;;
18080 esac
18081 fi
18082 ;;
18083 esac
18084
18085 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18086 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18087 library_names_spec=
18088 libname_spec='lib$name'
18089 soname_spec=
18090 shrext_cmds=".so"
18091 postinstall_cmds=
18092 postuninstall_cmds=
18093 finish_cmds=
18094 finish_eval=
18095 shlibpath_var=
18096 shlibpath_overrides_runpath=unknown
18097 version_type=none
18098 dynamic_linker="$host_os ld.so"
18099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18100
18101 need_lib_prefix=unknown
18102 hardcode_into_libs=no
18103
18104 # when you set need_version to no, make sure it does not cause -set_version
18105 # flags to be left without arguments
18106 need_version=unknown
18107
18108 case $host_os in
18109 aix3*)
18110 version_type=linux
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18112 shlibpath_var=LIBPATH
18113
18114 # AIX 3 has no versioning support, so we append a major version to the name.
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 ;;
18117
18118 aix4* | aix5*)
18119 version_type=linux
18120 need_lib_prefix=no
18121 need_version=no
18122 hardcode_into_libs=yes
18123 if test "$host_cpu" = ia64; then
18124 # AIX 5 supports IA64
18125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18126 shlibpath_var=LD_LIBRARY_PATH
18127 else
18128 # With GCC up to 2.95.x, collect2 would create an import file
18129 # for dependence libraries. The import file would start with
18130 # the line `#! .'. This would cause the generated library to
18131 # depend on `.', always an invalid library. This was fixed in
18132 # development snapshots of GCC prior to 3.0.
18133 case $host_os in
18134 aix4 | aix4.[01] | aix4.[01].*)
18135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18136 echo ' yes '
18137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18138 :
18139 else
18140 can_build_shared=no
18141 fi
18142 ;;
18143 esac
18144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18145 # soname into executable. Probably we can add versioning support to
18146 # collect2, so additional links can be useful in future.
18147 if test "$aix_use_runtimelinking" = yes; then
18148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18149 # instead of lib<name>.a to let people know that these are not
18150 # typical AIX shared libraries.
18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152 else
18153 # We preserve .a as extension for shared libraries through AIX4.2
18154 # and later when we are not doing run time linking.
18155 library_names_spec='${libname}${release}.a $libname.a'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 fi
18158 shlibpath_var=LIBPATH
18159 fi
18160 ;;
18161
18162 amigaos*)
18163 library_names_spec='$libname.ixlibrary $libname.a'
18164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18165 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'
18166 ;;
18167
18168 beos*)
18169 library_names_spec='${libname}${shared_ext}'
18170 dynamic_linker="$host_os ld.so"
18171 shlibpath_var=LIBRARY_PATH
18172 ;;
18173
18174 bsdi[45]*)
18175 version_type=linux
18176 need_version=no
18177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18178 soname_spec='${libname}${release}${shared_ext}$major'
18179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18180 shlibpath_var=LD_LIBRARY_PATH
18181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18183 # the default ld.so.conf also contains /usr/contrib/lib and
18184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18185 # libtool to hard-code these into programs
18186 ;;
18187
18188 cygwin* | mingw* | pw32*)
18189 version_type=windows
18190 shrext_cmds=".dll"
18191 need_version=no
18192 need_lib_prefix=no
18193
18194 case $GCC,$host_os in
18195 yes,cygwin* | yes,mingw* | yes,pw32*)
18196 library_names_spec='$libname.dll.a'
18197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18198 postinstall_cmds='base_file=`basename \${file}`~
18199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18200 dldir=$destdir/`dirname \$dlpath`~
18201 test -d \$dldir || mkdir -p \$dldir~
18202 $install_prog $dir/$dlname \$dldir/$dlname~
18203 chmod a+x \$dldir/$dlname'
18204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18205 dlpath=$dir/\$dldll~
18206 $rm \$dlpath'
18207 shlibpath_overrides_runpath=yes
18208
18209 case $host_os in
18210 cygwin*)
18211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18214 ;;
18215 mingw*)
18216 # MinGW DLLs use traditional 'lib' prefix
18217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18220 # It is most probably a Windows format PATH printed by
18221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18222 # path with ; separators, and with drive letters. We can handle the
18223 # drive letters (cygwin fileutils understands them), so leave them,
18224 # especially as we might pass files found there to a mingw objdump,
18225 # which wouldn't understand a cygwinified path. Ahh.
18226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18227 else
18228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18229 fi
18230 ;;
18231 pw32*)
18232 # pw32 DLLs use 'pw' prefix rather than 'lib'
18233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18234 ;;
18235 esac
18236 ;;
18237
18238 *)
18239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18240 ;;
18241 esac
18242 dynamic_linker='Win32 ld.exe'
18243 # FIXME: first we should search . and the directory the executable is in
18244 shlibpath_var=PATH
18245 ;;
18246
18247 darwin* | rhapsody*)
18248 dynamic_linker="$host_os dyld"
18249 version_type=darwin
18250 need_lib_prefix=no
18251 need_version=no
18252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18253 soname_spec='${libname}${release}${major}$shared_ext'
18254 shlibpath_overrides_runpath=yes
18255 shlibpath_var=DYLD_LIBRARY_PATH
18256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18257
18258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18259 ;;
18260
18261 dgux*)
18262 version_type=linux
18263 need_lib_prefix=no
18264 need_version=no
18265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18266 soname_spec='${libname}${release}${shared_ext}$major'
18267 shlibpath_var=LD_LIBRARY_PATH
18268 ;;
18269
18270 freebsd1*)
18271 dynamic_linker=no
18272 ;;
18273
18274 freebsd* | dragonfly*)
18275 # DragonFly does not have aout. When/if they implement a new
18276 # versioning mechanism, adjust this.
18277 if test -x /usr/bin/objformat; then
18278 objformat=`/usr/bin/objformat`
18279 else
18280 case $host_os in
18281 freebsd[123]*) objformat=aout ;;
18282 *) objformat=elf ;;
18283 esac
18284 fi
18285 version_type=freebsd-$objformat
18286 case $version_type in
18287 freebsd-elf*)
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18289 need_version=no
18290 need_lib_prefix=no
18291 ;;
18292 freebsd-*)
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18294 need_version=yes
18295 ;;
18296 esac
18297 shlibpath_var=LD_LIBRARY_PATH
18298 case $host_os in
18299 freebsd2*)
18300 shlibpath_overrides_runpath=yes
18301 ;;
18302 freebsd3.[01]* | freebsdelf3.[01]*)
18303 shlibpath_overrides_runpath=yes
18304 hardcode_into_libs=yes
18305 ;;
18306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18308 shlibpath_overrides_runpath=no
18309 hardcode_into_libs=yes
18310 ;;
18311 *) # from 4.6 on, and DragonFly
18312 shlibpath_overrides_runpath=yes
18313 hardcode_into_libs=yes
18314 ;;
18315 esac
18316 ;;
18317
18318 gnu*)
18319 version_type=linux
18320 need_lib_prefix=no
18321 need_version=no
18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18323 soname_spec='${libname}${release}${shared_ext}$major'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 hardcode_into_libs=yes
18326 ;;
18327
18328 hpux9* | hpux10* | hpux11*)
18329 # Give a soname corresponding to the major version so that dld.sl refuses to
18330 # link against other versions.
18331 version_type=sunos
18332 need_lib_prefix=no
18333 need_version=no
18334 case $host_cpu in
18335 ia64*)
18336 shrext_cmds='.so'
18337 hardcode_into_libs=yes
18338 dynamic_linker="$host_os dld.so"
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 if test "X$HPUX_IA64_MODE" = X32; then
18344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18345 else
18346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18347 fi
18348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18349 ;;
18350 hppa*64*)
18351 shrext_cmds='.sl'
18352 hardcode_into_libs=yes
18353 dynamic_linker="$host_os dld.sl"
18354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18360 ;;
18361 *)
18362 shrext_cmds='.sl'
18363 dynamic_linker="$host_os dld.sl"
18364 shlibpath_var=SHLIB_PATH
18365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 ;;
18369 esac
18370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18371 postinstall_cmds='chmod 555 $lib'
18372 ;;
18373
18374 interix[3-9]*)
18375 version_type=linux
18376 need_lib_prefix=no
18377 need_version=no
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18381 shlibpath_var=LD_LIBRARY_PATH
18382 shlibpath_overrides_runpath=no
18383 hardcode_into_libs=yes
18384 ;;
18385
18386 irix5* | irix6* | nonstopux*)
18387 case $host_os in
18388 nonstopux*) version_type=nonstopux ;;
18389 *)
18390 if test "$lt_cv_prog_gnu_ld" = yes; then
18391 version_type=linux
18392 else
18393 version_type=irix
18394 fi ;;
18395 esac
18396 need_lib_prefix=no
18397 need_version=no
18398 soname_spec='${libname}${release}${shared_ext}$major'
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18400 case $host_os in
18401 irix5* | nonstopux*)
18402 libsuff= shlibsuff=
18403 ;;
18404 *)
18405 case $LD in # libtool.m4 will add one of these switches to LD
18406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18407 libsuff= shlibsuff= libmagic=32-bit;;
18408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18409 libsuff=32 shlibsuff=N32 libmagic=N32;;
18410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18412 *) libsuff= shlibsuff= libmagic=never-match;;
18413 esac
18414 ;;
18415 esac
18416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18417 shlibpath_overrides_runpath=no
18418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18420 hardcode_into_libs=yes
18421 ;;
18422
18423 # No shared lib support for Linux oldld, aout, or coff.
18424 linux*oldld* | linux*aout* | linux*coff*)
18425 dynamic_linker=no
18426 ;;
18427
18428 # This must be Linux ELF.
18429 linux* | k*bsd*-gnu)
18430 version_type=linux
18431 need_lib_prefix=no
18432 need_version=no
18433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18434 soname_spec='${libname}${release}${shared_ext}$major'
18435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18436 shlibpath_var=LD_LIBRARY_PATH
18437 shlibpath_overrides_runpath=no
18438 # This implies no fast_install, which is unacceptable.
18439 # Some rework will be needed to allow for fast_install
18440 # before this can be enabled.
18441 hardcode_into_libs=yes
18442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18444
18445 # Append ld.so.conf contents to the search path
18446 if test -f /etc/ld.so.conf; then
18447 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' ' '`
18448 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18449 fi
18450
18451 # We used to test for /lib/ld.so.1 and disable shared libraries on
18452 # powerpc, because MkLinux only supported shared libraries with the
18453 # GNU dynamic linker. Since this was broken with cross compilers,
18454 # most powerpc-linux boxes support dynamic linking these days and
18455 # people can always --disable-shared, the test was removed, and we
18456 # assume the GNU/Linux dynamic linker is in use.
18457 dynamic_linker='GNU/Linux ld.so'
18458 ;;
18459
18460 netbsd*)
18461 version_type=sunos
18462 need_lib_prefix=no
18463 need_version=no
18464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18467 dynamic_linker='NetBSD (a.out) ld.so'
18468 else
18469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18470 soname_spec='${libname}${release}${shared_ext}$major'
18471 dynamic_linker='NetBSD ld.elf_so'
18472 fi
18473 shlibpath_var=LD_LIBRARY_PATH
18474 shlibpath_overrides_runpath=yes
18475 hardcode_into_libs=yes
18476 ;;
18477
18478 newsos6)
18479 version_type=linux
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 shlibpath_var=LD_LIBRARY_PATH
18482 shlibpath_overrides_runpath=yes
18483 ;;
18484
18485 nto-qnx*)
18486 version_type=linux
18487 need_lib_prefix=no
18488 need_version=no
18489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18490 soname_spec='${libname}${release}${shared_ext}$major'
18491 shlibpath_var=LD_LIBRARY_PATH
18492 shlibpath_overrides_runpath=yes
18493 ;;
18494
18495 openbsd*)
18496 version_type=sunos
18497 sys_lib_dlsearch_path_spec="/usr/lib"
18498 need_lib_prefix=no
18499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18500 case $host_os in
18501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18502 *) need_version=no ;;
18503 esac
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18506 shlibpath_var=LD_LIBRARY_PATH
18507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18508 case $host_os in
18509 openbsd2.[89] | openbsd2.[89].*)
18510 shlibpath_overrides_runpath=no
18511 ;;
18512 *)
18513 shlibpath_overrides_runpath=yes
18514 ;;
18515 esac
18516 else
18517 shlibpath_overrides_runpath=yes
18518 fi
18519 ;;
18520
18521 os2*)
18522 libname_spec='$name'
18523 shrext_cmds=".dll"
18524 need_lib_prefix=no
18525 library_names_spec='$libname${shared_ext} $libname.a'
18526 dynamic_linker='OS/2 ld.exe'
18527 shlibpath_var=LIBPATH
18528 ;;
18529
18530 osf3* | osf4* | osf5*)
18531 version_type=osf
18532 need_lib_prefix=no
18533 need_version=no
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18539 ;;
18540
18541 rdos*)
18542 dynamic_linker=no
18543 ;;
18544
18545 solaris*)
18546 version_type=linux
18547 need_lib_prefix=no
18548 need_version=no
18549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18550 soname_spec='${libname}${release}${shared_ext}$major'
18551 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=yes
18553 hardcode_into_libs=yes
18554 # ldd complains unless libraries are executable
18555 postinstall_cmds='chmod +x $lib'
18556 ;;
18557
18558 sunos4*)
18559 version_type=sunos
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18562 shlibpath_var=LD_LIBRARY_PATH
18563 shlibpath_overrides_runpath=yes
18564 if test "$with_gnu_ld" = yes; then
18565 need_lib_prefix=no
18566 fi
18567 need_version=yes
18568 ;;
18569
18570 sysv4 | sysv4.3*)
18571 version_type=linux
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 shlibpath_var=LD_LIBRARY_PATH
18575 case $host_vendor in
18576 sni)
18577 shlibpath_overrides_runpath=no
18578 need_lib_prefix=no
18579 export_dynamic_flag_spec='${wl}-Blargedynsym'
18580 runpath_var=LD_RUN_PATH
18581 ;;
18582 siemens)
18583 need_lib_prefix=no
18584 ;;
18585 motorola)
18586 need_lib_prefix=no
18587 need_version=no
18588 shlibpath_overrides_runpath=no
18589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18590 ;;
18591 esac
18592 ;;
18593
18594 sysv4*MP*)
18595 if test -d /usr/nec ;then
18596 version_type=linux
18597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18598 soname_spec='$libname${shared_ext}.$major'
18599 shlibpath_var=LD_LIBRARY_PATH
18600 fi
18601 ;;
18602
18603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18604 version_type=freebsd-elf
18605 need_lib_prefix=no
18606 need_version=no
18607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18608 soname_spec='${libname}${release}${shared_ext}$major'
18609 shlibpath_var=LD_LIBRARY_PATH
18610 hardcode_into_libs=yes
18611 if test "$with_gnu_ld" = yes; then
18612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18613 shlibpath_overrides_runpath=no
18614 else
18615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18616 shlibpath_overrides_runpath=yes
18617 case $host_os in
18618 sco3.2v5*)
18619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18620 ;;
18621 esac
18622 fi
18623 sys_lib_dlsearch_path_spec='/usr/lib'
18624 ;;
18625
18626 uts4*)
18627 version_type=linux
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 ;;
18632
18633 *)
18634 dynamic_linker=no
18635 ;;
18636 esac
18637 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18638 echo "${ECHO_T}$dynamic_linker" >&6; }
18639 test "$dynamic_linker" = no && can_build_shared=no
18640
18641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18642 if test "$GCC" = yes; then
18643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18644 fi
18645
18646 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18648 hardcode_action_GCJ=
18649 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18650 test -n "$runpath_var_GCJ" || \
18651 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18652
18653 # We can hardcode non-existant directories.
18654 if test "$hardcode_direct_GCJ" != no &&
18655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18656 # have to relink, otherwise we might link with an installed library
18657 # when we should be linking with a yet-to-be-installed one
18658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18659 test "$hardcode_minus_L_GCJ" != no; then
18660 # Linking always hardcodes the temporary library directory.
18661 hardcode_action_GCJ=relink
18662 else
18663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18664 hardcode_action_GCJ=immediate
18665 fi
18666 else
18667 # We cannot hardcode anything, or else we can only hardcode existing
18668 # directories.
18669 hardcode_action_GCJ=unsupported
18670 fi
18671 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18672 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18673
18674 if test "$hardcode_action_GCJ" = relink; then
18675 # Fast installation is not supported
18676 enable_fast_install=no
18677 elif test "$shlibpath_overrides_runpath" = yes ||
18678 test "$enable_shared" = no; then
18679 # Fast installation is not necessary
18680 enable_fast_install=needless
18681 fi
18682
18683
18684 # The else clause should only fire when bootstrapping the
18685 # libtool distribution, otherwise you forgot to ship ltmain.sh
18686 # with your package, and you will get complaints that there are
18687 # no rules to generate ltmain.sh.
18688 if test -f "$ltmain"; then
18689 # See if we are running on zsh, and set the options which allow our commands through
18690 # without removal of \ escapes.
18691 if test -n "${ZSH_VERSION+set}" ; then
18692 setopt NO_GLOB_SUBST
18693 fi
18694 # Now quote all the things that may contain metacharacters while being
18695 # careful not to overquote the AC_SUBSTed values. We take copies of the
18696 # variables and quote the copies for generation of the libtool script.
18697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18698 SED SHELL STRIP \
18699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18701 deplibs_check_method reload_flag reload_cmds need_locks \
18702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18703 lt_cv_sys_global_symbol_to_c_name_address \
18704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18705 old_postinstall_cmds old_postuninstall_cmds \
18706 compiler_GCJ \
18707 CC_GCJ \
18708 LD_GCJ \
18709 lt_prog_compiler_wl_GCJ \
18710 lt_prog_compiler_pic_GCJ \
18711 lt_prog_compiler_static_GCJ \
18712 lt_prog_compiler_no_builtin_flag_GCJ \
18713 export_dynamic_flag_spec_GCJ \
18714 thread_safe_flag_spec_GCJ \
18715 whole_archive_flag_spec_GCJ \
18716 enable_shared_with_static_runtimes_GCJ \
18717 old_archive_cmds_GCJ \
18718 old_archive_from_new_cmds_GCJ \
18719 predep_objects_GCJ \
18720 postdep_objects_GCJ \
18721 predeps_GCJ \
18722 postdeps_GCJ \
18723 compiler_lib_search_path_GCJ \
18724 archive_cmds_GCJ \
18725 archive_expsym_cmds_GCJ \
18726 postinstall_cmds_GCJ \
18727 postuninstall_cmds_GCJ \
18728 old_archive_from_expsyms_cmds_GCJ \
18729 allow_undefined_flag_GCJ \
18730 no_undefined_flag_GCJ \
18731 export_symbols_cmds_GCJ \
18732 hardcode_libdir_flag_spec_GCJ \
18733 hardcode_libdir_flag_spec_ld_GCJ \
18734 hardcode_libdir_separator_GCJ \
18735 hardcode_automatic_GCJ \
18736 module_cmds_GCJ \
18737 module_expsym_cmds_GCJ \
18738 lt_cv_prog_compiler_c_o_GCJ \
18739 fix_srcfile_path_GCJ \
18740 exclude_expsyms_GCJ \
18741 include_expsyms_GCJ; do
18742
18743 case $var in
18744 old_archive_cmds_GCJ | \
18745 old_archive_from_new_cmds_GCJ | \
18746 archive_cmds_GCJ | \
18747 archive_expsym_cmds_GCJ | \
18748 module_cmds_GCJ | \
18749 module_expsym_cmds_GCJ | \
18750 old_archive_from_expsyms_cmds_GCJ | \
18751 export_symbols_cmds_GCJ | \
18752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18753 postinstall_cmds | postuninstall_cmds | \
18754 old_postinstall_cmds | old_postuninstall_cmds | \
18755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18756 # Double-quote double-evaled strings.
18757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18758 ;;
18759 *)
18760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18761 ;;
18762 esac
18763 done
18764
18765 case $lt_echo in
18766 *'\$0 --fallback-echo"')
18767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18768 ;;
18769 esac
18770
18771 cfgfile="$ofile"
18772
18773 cat <<__EOF__ >> "$cfgfile"
18774 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18775
18776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18777
18778 # Shell to use when invoking shell scripts.
18779 SHELL=$lt_SHELL
18780
18781 # Whether or not to build shared libraries.
18782 build_libtool_libs=$enable_shared
18783
18784 # Whether or not to build static libraries.
18785 build_old_libs=$enable_static
18786
18787 # Whether or not to add -lc for building shared libraries.
18788 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18789
18790 # Whether or not to disallow shared libs when runtime libs are static
18791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18792
18793 # Whether or not to optimize for fast installation.
18794 fast_install=$enable_fast_install
18795
18796 # The host system.
18797 host_alias=$host_alias
18798 host=$host
18799 host_os=$host_os
18800
18801 # The build system.
18802 build_alias=$build_alias
18803 build=$build
18804 build_os=$build_os
18805
18806 # An echo program that does not interpret backslashes.
18807 echo=$lt_echo
18808
18809 # The archiver.
18810 AR=$lt_AR
18811 AR_FLAGS=$lt_AR_FLAGS
18812
18813 # A C compiler.
18814 LTCC=$lt_LTCC
18815
18816 # LTCC compiler flags.
18817 LTCFLAGS=$lt_LTCFLAGS
18818
18819 # A language-specific compiler.
18820 CC=$lt_compiler_GCJ
18821
18822 # Is the compiler the GNU C compiler?
18823 with_gcc=$GCC_GCJ
18824
18825 # An ERE matcher.
18826 EGREP=$lt_EGREP
18827
18828 # The linker used to build libraries.
18829 LD=$lt_LD_GCJ
18830
18831 # Whether we need hard or soft links.
18832 LN_S=$lt_LN_S
18833
18834 # A BSD-compatible nm program.
18835 NM=$lt_NM
18836
18837 # A symbol stripping program
18838 STRIP=$lt_STRIP
18839
18840 # Used to examine libraries when file_magic_cmd begins "file"
18841 MAGIC_CMD=$MAGIC_CMD
18842
18843 # Used on cygwin: DLL creation program.
18844 DLLTOOL="$DLLTOOL"
18845
18846 # Used on cygwin: object dumper.
18847 OBJDUMP="$OBJDUMP"
18848
18849 # Used on cygwin: assembler.
18850 AS="$AS"
18851
18852 # The name of the directory that contains temporary libtool files.
18853 objdir=$objdir
18854
18855 # How to create reloadable object files.
18856 reload_flag=$lt_reload_flag
18857 reload_cmds=$lt_reload_cmds
18858
18859 # How to pass a linker flag through the compiler.
18860 wl=$lt_lt_prog_compiler_wl_GCJ
18861
18862 # Object file suffix (normally "o").
18863 objext="$ac_objext"
18864
18865 # Old archive suffix (normally "a").
18866 libext="$libext"
18867
18868 # Shared library suffix (normally ".so").
18869 shrext_cmds='$shrext_cmds'
18870
18871 # Executable file suffix (normally "").
18872 exeext="$exeext"
18873
18874 # Additional compiler flags for building library objects.
18875 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18876 pic_mode=$pic_mode
18877
18878 # What is the maximum length of a command?
18879 max_cmd_len=$lt_cv_sys_max_cmd_len
18880
18881 # Does compiler simultaneously support -c and -o options?
18882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18883
18884 # Must we lock files when doing compilation?
18885 need_locks=$lt_need_locks
18886
18887 # Do we need the lib prefix for modules?
18888 need_lib_prefix=$need_lib_prefix
18889
18890 # Do we need a version for libraries?
18891 need_version=$need_version
18892
18893 # Whether dlopen is supported.
18894 dlopen_support=$enable_dlopen
18895
18896 # Whether dlopen of programs is supported.
18897 dlopen_self=$enable_dlopen_self
18898
18899 # Whether dlopen of statically linked programs is supported.
18900 dlopen_self_static=$enable_dlopen_self_static
18901
18902 # Compiler flag to prevent dynamic linking.
18903 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18904
18905 # Compiler flag to turn off builtin functions.
18906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18907
18908 # Compiler flag to allow reflexive dlopens.
18909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18910
18911 # Compiler flag to generate shared objects directly from archives.
18912 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18913
18914 # Compiler flag to generate thread-safe objects.
18915 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18916
18917 # Library versioning type.
18918 version_type=$version_type
18919
18920 # Format of library name prefix.
18921 libname_spec=$lt_libname_spec
18922
18923 # List of archive names. First name is the real one, the rest are links.
18924 # The last name is the one that the linker finds with -lNAME.
18925 library_names_spec=$lt_library_names_spec
18926
18927 # The coded name of the library, if different from the real name.
18928 soname_spec=$lt_soname_spec
18929
18930 # Commands used to build and install an old-style archive.
18931 RANLIB=$lt_RANLIB
18932 old_archive_cmds=$lt_old_archive_cmds_GCJ
18933 old_postinstall_cmds=$lt_old_postinstall_cmds
18934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18935
18936 # Create an old-style archive from a shared archive.
18937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18938
18939 # Create a temporary old-style archive to link instead of a shared archive.
18940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18941
18942 # Commands used to build and install a shared archive.
18943 archive_cmds=$lt_archive_cmds_GCJ
18944 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18945 postinstall_cmds=$lt_postinstall_cmds
18946 postuninstall_cmds=$lt_postuninstall_cmds
18947
18948 # Commands used to build a loadable module (assumed same as above if empty)
18949 module_cmds=$lt_module_cmds_GCJ
18950 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18951
18952 # Commands to strip libraries.
18953 old_striplib=$lt_old_striplib
18954 striplib=$lt_striplib
18955
18956 # Dependencies to place before the objects being linked to create a
18957 # shared library.
18958 predep_objects=$lt_predep_objects_GCJ
18959
18960 # Dependencies to place after the objects being linked to create a
18961 # shared library.
18962 postdep_objects=$lt_postdep_objects_GCJ
18963
18964 # Dependencies to place before the objects being linked to create a
18965 # shared library.
18966 predeps=$lt_predeps_GCJ
18967
18968 # Dependencies to place after the objects being linked to create a
18969 # shared library.
18970 postdeps=$lt_postdeps_GCJ
18971
18972 # The library search path used internally by the compiler when linking
18973 # a shared library.
18974 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18975
18976 # Method to check whether dependent libraries are shared objects.
18977 deplibs_check_method=$lt_deplibs_check_method
18978
18979 # Command to use when deplibs_check_method == file_magic.
18980 file_magic_cmd=$lt_file_magic_cmd
18981
18982 # Flag that allows shared libraries with undefined symbols to be built.
18983 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18984
18985 # Flag that forces no undefined symbols.
18986 no_undefined_flag=$lt_no_undefined_flag_GCJ
18987
18988 # Commands used to finish a libtool library installation in a directory.
18989 finish_cmds=$lt_finish_cmds
18990
18991 # Same as above, but a single script fragment to be evaled but not shown.
18992 finish_eval=$lt_finish_eval
18993
18994 # Take the output of nm and produce a listing of raw symbols and C names.
18995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18996
18997 # Transform the output of nm in a proper C declaration
18998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18999
19000 # Transform the output of nm in a C name address pair
19001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19002
19003 # This is the shared library runtime path variable.
19004 runpath_var=$runpath_var
19005
19006 # This is the shared library path variable.
19007 shlibpath_var=$shlibpath_var
19008
19009 # Is shlibpath searched before the hard-coded library search path?
19010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19011
19012 # How to hardcode a shared library path into an executable.
19013 hardcode_action=$hardcode_action_GCJ
19014
19015 # Whether we should hardcode library paths into libraries.
19016 hardcode_into_libs=$hardcode_into_libs
19017
19018 # Flag to hardcode \$libdir into a binary during linking.
19019 # This must work even if \$libdir does not exist.
19020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19021
19022 # If ld is used when linking, flag to hardcode \$libdir into
19023 # a binary during linking. This must work even if \$libdir does
19024 # not exist.
19025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19026
19027 # Whether we need a single -rpath flag with a separated argument.
19028 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19029
19030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19031 # resulting binary.
19032 hardcode_direct=$hardcode_direct_GCJ
19033
19034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19035 # resulting binary.
19036 hardcode_minus_L=$hardcode_minus_L_GCJ
19037
19038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19039 # the resulting binary.
19040 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19041
19042 # Set to yes if building a shared library automatically hardcodes DIR into the library
19043 # and all subsequent libraries and executables linked against it.
19044 hardcode_automatic=$hardcode_automatic_GCJ
19045
19046 # Variables whose values should be saved in libtool wrapper scripts and
19047 # restored at relink time.
19048 variables_saved_for_relink="$variables_saved_for_relink"
19049
19050 # Whether libtool must link a program against all its dependency libraries.
19051 link_all_deplibs=$link_all_deplibs_GCJ
19052
19053 # Compile-time system search path for libraries
19054 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19055
19056 # Run-time system search path for libraries
19057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19058
19059 # Fix the shell variable \$srcfile for the compiler.
19060 fix_srcfile_path=$lt_fix_srcfile_path
19061
19062 # Set to yes if exported symbols are required.
19063 always_export_symbols=$always_export_symbols_GCJ
19064
19065 # The commands to list exported symbols.
19066 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19067
19068 # The commands to extract the exported symbol list from a shared archive.
19069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19070
19071 # Symbols that should not be listed in the preloaded symbols.
19072 exclude_expsyms=$lt_exclude_expsyms_GCJ
19073
19074 # Symbols that must always be exported.
19075 include_expsyms=$lt_include_expsyms_GCJ
19076
19077 # ### END LIBTOOL TAG CONFIG: $tagname
19078
19079 __EOF__
19080
19081
19082 else
19083 # If there is no Makefile yet, we rely on a make rule to execute
19084 # `config.status --recheck' to rerun these tests and create the
19085 # libtool script then.
19086 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19087 if test -f "$ltmain_in"; then
19088 test -f Makefile && make "$ltmain"
19089 fi
19090 fi
19091
19092
19093 ac_ext=c
19094 ac_cpp='$CPP $CPPFLAGS'
19095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19098
19099 CC="$lt_save_CC"
19100
19101 else
19102 tagname=""
19103 fi
19104 ;;
19105
19106 RC)
19107
19108
19109 # Source file extension for RC test sources.
19110 ac_ext=rc
19111
19112 # Object file extension for compiled RC test sources.
19113 objext=o
19114 objext_RC=$objext
19115
19116 # Code to be used in simple compile tests
19117 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19118
19119 # Code to be used in simple link tests
19120 lt_simple_link_test_code="$lt_simple_compile_test_code"
19121
19122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19123
19124 # If no C compiler was specified, use CC.
19125 LTCC=${LTCC-"$CC"}
19126
19127 # If no C compiler flags were specified, use CFLAGS.
19128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19129
19130 # Allow CC to be a program name with arguments.
19131 compiler=$CC
19132
19133
19134 # save warnings/boilerplate of simple test code
19135 ac_outfile=conftest.$ac_objext
19136 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19137 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19138 _lt_compiler_boilerplate=`cat conftest.err`
19139 $rm conftest*
19140
19141 ac_outfile=conftest.$ac_objext
19142 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19143 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19144 _lt_linker_boilerplate=`cat conftest.err`
19145 $rm conftest*
19146
19147
19148 # Allow CC to be a program name with arguments.
19149 lt_save_CC="$CC"
19150 CC=${RC-"windres"}
19151 compiler=$CC
19152 compiler_RC=$CC
19153 for cc_temp in $compiler""; do
19154 case $cc_temp in
19155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19157 \-*) ;;
19158 *) break;;
19159 esac
19160 done
19161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19162
19163 lt_cv_prog_compiler_c_o_RC=yes
19164
19165 # The else clause should only fire when bootstrapping the
19166 # libtool distribution, otherwise you forgot to ship ltmain.sh
19167 # with your package, and you will get complaints that there are
19168 # no rules to generate ltmain.sh.
19169 if test -f "$ltmain"; then
19170 # See if we are running on zsh, and set the options which allow our commands through
19171 # without removal of \ escapes.
19172 if test -n "${ZSH_VERSION+set}" ; then
19173 setopt NO_GLOB_SUBST
19174 fi
19175 # Now quote all the things that may contain metacharacters while being
19176 # careful not to overquote the AC_SUBSTed values. We take copies of the
19177 # variables and quote the copies for generation of the libtool script.
19178 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19179 SED SHELL STRIP \
19180 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19181 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19182 deplibs_check_method reload_flag reload_cmds need_locks \
19183 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19184 lt_cv_sys_global_symbol_to_c_name_address \
19185 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19186 old_postinstall_cmds old_postuninstall_cmds \
19187 compiler_RC \
19188 CC_RC \
19189 LD_RC \
19190 lt_prog_compiler_wl_RC \
19191 lt_prog_compiler_pic_RC \
19192 lt_prog_compiler_static_RC \
19193 lt_prog_compiler_no_builtin_flag_RC \
19194 export_dynamic_flag_spec_RC \
19195 thread_safe_flag_spec_RC \
19196 whole_archive_flag_spec_RC \
19197 enable_shared_with_static_runtimes_RC \
19198 old_archive_cmds_RC \
19199 old_archive_from_new_cmds_RC \
19200 predep_objects_RC \
19201 postdep_objects_RC \
19202 predeps_RC \
19203 postdeps_RC \
19204 compiler_lib_search_path_RC \
19205 archive_cmds_RC \
19206 archive_expsym_cmds_RC \
19207 postinstall_cmds_RC \
19208 postuninstall_cmds_RC \
19209 old_archive_from_expsyms_cmds_RC \
19210 allow_undefined_flag_RC \
19211 no_undefined_flag_RC \
19212 export_symbols_cmds_RC \
19213 hardcode_libdir_flag_spec_RC \
19214 hardcode_libdir_flag_spec_ld_RC \
19215 hardcode_libdir_separator_RC \
19216 hardcode_automatic_RC \
19217 module_cmds_RC \
19218 module_expsym_cmds_RC \
19219 lt_cv_prog_compiler_c_o_RC \
19220 fix_srcfile_path_RC \
19221 exclude_expsyms_RC \
19222 include_expsyms_RC; do
19223
19224 case $var in
19225 old_archive_cmds_RC | \
19226 old_archive_from_new_cmds_RC | \
19227 archive_cmds_RC | \
19228 archive_expsym_cmds_RC | \
19229 module_cmds_RC | \
19230 module_expsym_cmds_RC | \
19231 old_archive_from_expsyms_cmds_RC | \
19232 export_symbols_cmds_RC | \
19233 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19234 postinstall_cmds | postuninstall_cmds | \
19235 old_postinstall_cmds | old_postuninstall_cmds | \
19236 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19237 # Double-quote double-evaled strings.
19238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19239 ;;
19240 *)
19241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19242 ;;
19243 esac
19244 done
19245
19246 case $lt_echo in
19247 *'\$0 --fallback-echo"')
19248 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19249 ;;
19250 esac
19251
19252 cfgfile="$ofile"
19253
19254 cat <<__EOF__ >> "$cfgfile"
19255 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19256
19257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19258
19259 # Shell to use when invoking shell scripts.
19260 SHELL=$lt_SHELL
19261
19262 # Whether or not to build shared libraries.
19263 build_libtool_libs=$enable_shared
19264
19265 # Whether or not to build static libraries.
19266 build_old_libs=$enable_static
19267
19268 # Whether or not to add -lc for building shared libraries.
19269 build_libtool_need_lc=$archive_cmds_need_lc_RC
19270
19271 # Whether or not to disallow shared libs when runtime libs are static
19272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19273
19274 # Whether or not to optimize for fast installation.
19275 fast_install=$enable_fast_install
19276
19277 # The host system.
19278 host_alias=$host_alias
19279 host=$host
19280 host_os=$host_os
19281
19282 # The build system.
19283 build_alias=$build_alias
19284 build=$build
19285 build_os=$build_os
19286
19287 # An echo program that does not interpret backslashes.
19288 echo=$lt_echo
19289
19290 # The archiver.
19291 AR=$lt_AR
19292 AR_FLAGS=$lt_AR_FLAGS
19293
19294 # A C compiler.
19295 LTCC=$lt_LTCC
19296
19297 # LTCC compiler flags.
19298 LTCFLAGS=$lt_LTCFLAGS
19299
19300 # A language-specific compiler.
19301 CC=$lt_compiler_RC
19302
19303 # Is the compiler the GNU C compiler?
19304 with_gcc=$GCC_RC
19305
19306 # An ERE matcher.
19307 EGREP=$lt_EGREP
19308
19309 # The linker used to build libraries.
19310 LD=$lt_LD_RC
19311
19312 # Whether we need hard or soft links.
19313 LN_S=$lt_LN_S
19314
19315 # A BSD-compatible nm program.
19316 NM=$lt_NM
19317
19318 # A symbol stripping program
19319 STRIP=$lt_STRIP
19320
19321 # Used to examine libraries when file_magic_cmd begins "file"
19322 MAGIC_CMD=$MAGIC_CMD
19323
19324 # Used on cygwin: DLL creation program.
19325 DLLTOOL="$DLLTOOL"
19326
19327 # Used on cygwin: object dumper.
19328 OBJDUMP="$OBJDUMP"
19329
19330 # Used on cygwin: assembler.
19331 AS="$AS"
19332
19333 # The name of the directory that contains temporary libtool files.
19334 objdir=$objdir
19335
19336 # How to create reloadable object files.
19337 reload_flag=$lt_reload_flag
19338 reload_cmds=$lt_reload_cmds
19339
19340 # How to pass a linker flag through the compiler.
19341 wl=$lt_lt_prog_compiler_wl_RC
19342
19343 # Object file suffix (normally "o").
19344 objext="$ac_objext"
19345
19346 # Old archive suffix (normally "a").
19347 libext="$libext"
19348
19349 # Shared library suffix (normally ".so").
19350 shrext_cmds='$shrext_cmds'
19351
19352 # Executable file suffix (normally "").
19353 exeext="$exeext"
19354
19355 # Additional compiler flags for building library objects.
19356 pic_flag=$lt_lt_prog_compiler_pic_RC
19357 pic_mode=$pic_mode
19358
19359 # What is the maximum length of a command?
19360 max_cmd_len=$lt_cv_sys_max_cmd_len
19361
19362 # Does compiler simultaneously support -c and -o options?
19363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19364
19365 # Must we lock files when doing compilation?
19366 need_locks=$lt_need_locks
19367
19368 # Do we need the lib prefix for modules?
19369 need_lib_prefix=$need_lib_prefix
19370
19371 # Do we need a version for libraries?
19372 need_version=$need_version
19373
19374 # Whether dlopen is supported.
19375 dlopen_support=$enable_dlopen
19376
19377 # Whether dlopen of programs is supported.
19378 dlopen_self=$enable_dlopen_self
19379
19380 # Whether dlopen of statically linked programs is supported.
19381 dlopen_self_static=$enable_dlopen_self_static
19382
19383 # Compiler flag to prevent dynamic linking.
19384 link_static_flag=$lt_lt_prog_compiler_static_RC
19385
19386 # Compiler flag to turn off builtin functions.
19387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19388
19389 # Compiler flag to allow reflexive dlopens.
19390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19391
19392 # Compiler flag to generate shared objects directly from archives.
19393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19394
19395 # Compiler flag to generate thread-safe objects.
19396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19397
19398 # Library versioning type.
19399 version_type=$version_type
19400
19401 # Format of library name prefix.
19402 libname_spec=$lt_libname_spec
19403
19404 # List of archive names. First name is the real one, the rest are links.
19405 # The last name is the one that the linker finds with -lNAME.
19406 library_names_spec=$lt_library_names_spec
19407
19408 # The coded name of the library, if different from the real name.
19409 soname_spec=$lt_soname_spec
19410
19411 # Commands used to build and install an old-style archive.
19412 RANLIB=$lt_RANLIB
19413 old_archive_cmds=$lt_old_archive_cmds_RC
19414 old_postinstall_cmds=$lt_old_postinstall_cmds
19415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19416
19417 # Create an old-style archive from a shared archive.
19418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19419
19420 # Create a temporary old-style archive to link instead of a shared archive.
19421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19422
19423 # Commands used to build and install a shared archive.
19424 archive_cmds=$lt_archive_cmds_RC
19425 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19426 postinstall_cmds=$lt_postinstall_cmds
19427 postuninstall_cmds=$lt_postuninstall_cmds
19428
19429 # Commands used to build a loadable module (assumed same as above if empty)
19430 module_cmds=$lt_module_cmds_RC
19431 module_expsym_cmds=$lt_module_expsym_cmds_RC
19432
19433 # Commands to strip libraries.
19434 old_striplib=$lt_old_striplib
19435 striplib=$lt_striplib
19436
19437 # Dependencies to place before the objects being linked to create a
19438 # shared library.
19439 predep_objects=$lt_predep_objects_RC
19440
19441 # Dependencies to place after the objects being linked to create a
19442 # shared library.
19443 postdep_objects=$lt_postdep_objects_RC
19444
19445 # Dependencies to place before the objects being linked to create a
19446 # shared library.
19447 predeps=$lt_predeps_RC
19448
19449 # Dependencies to place after the objects being linked to create a
19450 # shared library.
19451 postdeps=$lt_postdeps_RC
19452
19453 # The library search path used internally by the compiler when linking
19454 # a shared library.
19455 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19456
19457 # Method to check whether dependent libraries are shared objects.
19458 deplibs_check_method=$lt_deplibs_check_method
19459
19460 # Command to use when deplibs_check_method == file_magic.
19461 file_magic_cmd=$lt_file_magic_cmd
19462
19463 # Flag that allows shared libraries with undefined symbols to be built.
19464 allow_undefined_flag=$lt_allow_undefined_flag_RC
19465
19466 # Flag that forces no undefined symbols.
19467 no_undefined_flag=$lt_no_undefined_flag_RC
19468
19469 # Commands used to finish a libtool library installation in a directory.
19470 finish_cmds=$lt_finish_cmds
19471
19472 # Same as above, but a single script fragment to be evaled but not shown.
19473 finish_eval=$lt_finish_eval
19474
19475 # Take the output of nm and produce a listing of raw symbols and C names.
19476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19477
19478 # Transform the output of nm in a proper C declaration
19479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19480
19481 # Transform the output of nm in a C name address pair
19482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19483
19484 # This is the shared library runtime path variable.
19485 runpath_var=$runpath_var
19486
19487 # This is the shared library path variable.
19488 shlibpath_var=$shlibpath_var
19489
19490 # Is shlibpath searched before the hard-coded library search path?
19491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19492
19493 # How to hardcode a shared library path into an executable.
19494 hardcode_action=$hardcode_action_RC
19495
19496 # Whether we should hardcode library paths into libraries.
19497 hardcode_into_libs=$hardcode_into_libs
19498
19499 # Flag to hardcode \$libdir into a binary during linking.
19500 # This must work even if \$libdir does not exist.
19501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19502
19503 # If ld is used when linking, flag to hardcode \$libdir into
19504 # a binary during linking. This must work even if \$libdir does
19505 # not exist.
19506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19507
19508 # Whether we need a single -rpath flag with a separated argument.
19509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19510
19511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19512 # resulting binary.
19513 hardcode_direct=$hardcode_direct_RC
19514
19515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19516 # resulting binary.
19517 hardcode_minus_L=$hardcode_minus_L_RC
19518
19519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19520 # the resulting binary.
19521 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19522
19523 # Set to yes if building a shared library automatically hardcodes DIR into the library
19524 # and all subsequent libraries and executables linked against it.
19525 hardcode_automatic=$hardcode_automatic_RC
19526
19527 # Variables whose values should be saved in libtool wrapper scripts and
19528 # restored at relink time.
19529 variables_saved_for_relink="$variables_saved_for_relink"
19530
19531 # Whether libtool must link a program against all its dependency libraries.
19532 link_all_deplibs=$link_all_deplibs_RC
19533
19534 # Compile-time system search path for libraries
19535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19536
19537 # Run-time system search path for libraries
19538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19539
19540 # Fix the shell variable \$srcfile for the compiler.
19541 fix_srcfile_path=$lt_fix_srcfile_path
19542
19543 # Set to yes if exported symbols are required.
19544 always_export_symbols=$always_export_symbols_RC
19545
19546 # The commands to list exported symbols.
19547 export_symbols_cmds=$lt_export_symbols_cmds_RC
19548
19549 # The commands to extract the exported symbol list from a shared archive.
19550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19551
19552 # Symbols that should not be listed in the preloaded symbols.
19553 exclude_expsyms=$lt_exclude_expsyms_RC
19554
19555 # Symbols that must always be exported.
19556 include_expsyms=$lt_include_expsyms_RC
19557
19558 # ### END LIBTOOL TAG CONFIG: $tagname
19559
19560 __EOF__
19561
19562
19563 else
19564 # If there is no Makefile yet, we rely on a make rule to execute
19565 # `config.status --recheck' to rerun these tests and create the
19566 # libtool script then.
19567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19568 if test -f "$ltmain_in"; then
19569 test -f Makefile && make "$ltmain"
19570 fi
19571 fi
19572
19573
19574 ac_ext=c
19575 ac_cpp='$CPP $CPPFLAGS'
19576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19579
19580 CC="$lt_save_CC"
19581
19582 ;;
19583
19584 *)
19585 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19586 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19587 { (exit 1); exit 1; }; }
19588 ;;
19589 esac
19590
19591 # Append the new tag name to the list of available tags.
19592 if test -n "$tagname" ; then
19593 available_tags="$available_tags $tagname"
19594 fi
19595 fi
19596 done
19597 IFS="$lt_save_ifs"
19598
19599 # Now substitute the updated list of available tags.
19600 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19601 mv "${ofile}T" "$ofile"
19602 chmod +x "$ofile"
19603 else
19604 rm -f "${ofile}T"
19605 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19606 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19607 { (exit 1); exit 1; }; }
19608 fi
19609 fi
19610
19611
19612
19613 # This can be used to rebuild libtool when needed
19614 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19615
19616 # Always use our own libtool.
19617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19618
19619 # Prevent multiple expansion
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642 saveLIBS="$LIBS"
19643 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
19644 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
19645 if test "${ac_cv_lib_db_dbopen+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648 ac_check_lib_save_LIBS=$LIBS
19649 LIBS="-ldb $LIBS"
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h. */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656
19657 /* Override any GCC internal prototype to avoid an error.
19658 Use char because int might match the return type of a GCC
19659 builtin and then its argument prototype would still apply. */
19660 #ifdef __cplusplus
19661 extern "C"
19662 #endif
19663 char dbopen ();
19664 int
19665 main ()
19666 {
19667 return dbopen ();
19668 ;
19669 return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (ac_try="$ac_link"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_link") 2>conftest.er1
19680 ac_status=$?
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext &&
19689 $as_test_x conftest$ac_exeext; then
19690 ac_cv_lib_db_dbopen=yes
19691 else
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19694
19695 ac_cv_lib_db_dbopen=no
19696 fi
19697
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699 conftest$ac_exeext conftest.$ac_ext
19700 LIBS=$ac_check_lib_save_LIBS
19701 fi
19702 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
19703 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
19704 if test $ac_cv_lib_db_dbopen = yes; then
19705 LIBDB=-ldb ; LIBS="-ldb $LIBS"
19706 else
19707 { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
19708 echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; }
19709 if test "${ac_cv_lib_db_db_open+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712 ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-ldb $LIBS"
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720
19721 /* Override any GCC internal prototype to avoid an error.
19722 Use char because int might match the return type of a GCC
19723 builtin and then its argument prototype would still apply. */
19724 #ifdef __cplusplus
19725 extern "C"
19726 #endif
19727 char db_open ();
19728 int
19729 main ()
19730 {
19731 return db_open ();
19732 ;
19733 return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext conftest$ac_exeext
19737 if { (ac_try="$ac_link"
19738 case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_link") 2>conftest.er1
19744 ac_status=$?
19745 grep -v '^ *+' conftest.er1 >conftest.err
19746 rm -f conftest.er1
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } && {
19750 test -z "$ac_c_werror_flag" ||
19751 test ! -s conftest.err
19752 } && test -s conftest$ac_exeext &&
19753 $as_test_x conftest$ac_exeext; then
19754 ac_cv_lib_db_db_open=yes
19755 else
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 ac_cv_lib_db_db_open=no
19760 fi
19761
19762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19763 conftest$ac_exeext conftest.$ac_ext
19764 LIBS=$ac_check_lib_save_LIBS
19765 fi
19766 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
19767 echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; }
19768 if test $ac_cv_lib_db_db_open = yes; then
19769 LIBDB=-ldb ; LIBS="-ldb $LIBS"
19770 else
19771 { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
19772 echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; }
19773 if test "${ac_cv_lib_db_db_env_create+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 else
19776 ac_check_lib_save_LIBS=$LIBS
19777 LIBS="-ldb $LIBS"
19778 cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h. */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784
19785 /* Override any GCC internal prototype to avoid an error.
19786 Use char because int might match the return type of a GCC
19787 builtin and then its argument prototype would still apply. */
19788 #ifdef __cplusplus
19789 extern "C"
19790 #endif
19791 char db_env_create ();
19792 int
19793 main ()
19794 {
19795 return db_env_create ();
19796 ;
19797 return 0;
19798 }
19799 _ACEOF
19800 rm -f conftest.$ac_objext conftest$ac_exeext
19801 if { (ac_try="$ac_link"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_link") 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } && {
19814 test -z "$ac_c_werror_flag" ||
19815 test ! -s conftest.err
19816 } && test -s conftest$ac_exeext &&
19817 $as_test_x conftest$ac_exeext; then
19818 ac_cv_lib_db_db_env_create=yes
19819 else
19820 echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 ac_cv_lib_db_db_env_create=no
19824 fi
19825
19826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19827 conftest$ac_exeext conftest.$ac_ext
19828 LIBS=$ac_check_lib_save_LIBS
19829 fi
19830 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
19831 echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; }
19832 if test $ac_cv_lib_db_db_env_create = yes; then
19833 LIBDB=-ldb; LIBS="-ldb $LIBS"
19834 fi
19835
19836
19837 fi
19838
19839 fi
19840
19841
19842 FOUND_DB=0
19843 { echo "$as_me:$LINENO: checking for dbopen" >&5
19844 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
19845 if test "${ac_cv_func_dbopen+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
19855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19856 #define dbopen innocuous_dbopen
19857
19858 /* System header to define __stub macros and hopefully few prototypes,
19859 which can conflict with char dbopen (); below.
19860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19861 <limits.h> exists even on freestanding compilers. */
19862
19863 #ifdef __STDC__
19864 # include <limits.h>
19865 #else
19866 # include <assert.h>
19867 #endif
19868
19869 #undef dbopen
19870
19871 /* Override any GCC internal prototype to avoid an error.
19872 Use char because int might match the return type of a GCC
19873 builtin and then its argument prototype would still apply. */
19874 #ifdef __cplusplus
19875 extern "C"
19876 #endif
19877 char dbopen ();
19878 /* The GNU C library defines this for functions which it implements
19879 to always fail with ENOSYS. Some functions are actually named
19880 something starting with __ and the normal name is an alias. */
19881 #if defined __stub_dbopen || defined __stub___dbopen
19882 choke me
19883 #endif
19884
19885 int
19886 main ()
19887 {
19888 return dbopen ();
19889 ;
19890 return 0;
19891 }
19892 _ACEOF
19893 rm -f conftest.$ac_objext conftest$ac_exeext
19894 if { (ac_try="$ac_link"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_link") 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } && {
19907 test -z "$ac_c_werror_flag" ||
19908 test ! -s conftest.err
19909 } && test -s conftest$ac_exeext &&
19910 $as_test_x conftest$ac_exeext; then
19911 ac_cv_func_dbopen=yes
19912 else
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 ac_cv_func_dbopen=no
19917 fi
19918
19919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19920 conftest$ac_exeext conftest.$ac_ext
19921 fi
19922 { echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
19923 echo "${ECHO_T}$ac_cv_func_dbopen" >&6; }
19924 if test $ac_cv_func_dbopen = yes; then
19925 FOUND_DB=1
19926 fi
19927
19928 { echo "$as_me:$LINENO: checking for db_open" >&5
19929 echo $ECHO_N "checking for db_open... $ECHO_C" >&6; }
19930 if test "${ac_cv_func_db_open+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 /* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941 #define db_open innocuous_db_open
19942
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char db_open (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19947
19948 #ifdef __STDC__
19949 # include <limits.h>
19950 #else
19951 # include <assert.h>
19952 #endif
19953
19954 #undef db_open
19955
19956 /* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19959 #ifdef __cplusplus
19960 extern "C"
19961 #endif
19962 char db_open ();
19963 /* The GNU C library defines this for functions which it implements
19964 to always fail with ENOSYS. Some functions are actually named
19965 something starting with __ and the normal name is an alias. */
19966 #if defined __stub_db_open || defined __stub___db_open
19967 choke me
19968 #endif
19969
19970 int
19971 main ()
19972 {
19973 return db_open ();
19974 ;
19975 return 0;
19976 }
19977 _ACEOF
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (ac_try="$ac_link"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_link") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest$ac_exeext &&
19995 $as_test_x conftest$ac_exeext; then
19996 ac_cv_func_db_open=yes
19997 else
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001 ac_cv_func_db_open=no
20002 fi
20003
20004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20005 conftest$ac_exeext conftest.$ac_ext
20006 fi
20007 { echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
20008 echo "${ECHO_T}$ac_cv_func_db_open" >&6; }
20009 if test $ac_cv_func_db_open = yes; then
20010 FOUND_DB=1
20011 fi
20012
20013 { echo "$as_me:$LINENO: checking for db_env_create" >&5
20014 echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; }
20015 if test "${ac_cv_func_db_env_create+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
20025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20026 #define db_env_create innocuous_db_env_create
20027
20028 /* System header to define __stub macros and hopefully few prototypes,
20029 which can conflict with char db_env_create (); below.
20030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20031 <limits.h> exists even on freestanding compilers. */
20032
20033 #ifdef __STDC__
20034 # include <limits.h>
20035 #else
20036 # include <assert.h>
20037 #endif
20038
20039 #undef db_env_create
20040
20041 /* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20044 #ifdef __cplusplus
20045 extern "C"
20046 #endif
20047 char db_env_create ();
20048 /* The GNU C library defines this for functions which it implements
20049 to always fail with ENOSYS. Some functions are actually named
20050 something starting with __ and the normal name is an alias. */
20051 #if defined __stub_db_env_create || defined __stub___db_env_create
20052 choke me
20053 #endif
20054
20055 int
20056 main ()
20057 {
20058 return db_env_create ();
20059 ;
20060 return 0;
20061 }
20062 _ACEOF
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064 if { (ac_try="$ac_link"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_link") 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && {
20077 test -z "$ac_c_werror_flag" ||
20078 test ! -s conftest.err
20079 } && test -s conftest$ac_exeext &&
20080 $as_test_x conftest$ac_exeext; then
20081 ac_cv_func_db_env_create=yes
20082 else
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086 ac_cv_func_db_env_create=no
20087 fi
20088
20089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20090 conftest$ac_exeext conftest.$ac_ext
20091 fi
20092 { echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
20093 echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; }
20094 if test $ac_cv_func_db_env_create = yes; then
20095 FOUND_DB=1
20096 fi
20097
20098
20099 LIBS="$saveLIBS"
20100
20101
20102
20103 if test "$FOUND_DB" != 0; then
20104 FOUND_DB_TRUE=
20105 FOUND_DB_FALSE='#'
20106 else
20107 FOUND_DB_TRUE='#'
20108 FOUND_DB_FALSE=
20109 fi
20110
20111
20112
20113
20114
20115
20116 for ac_header in limits.h fcntl.h unistd.h
20117 do
20118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 fi
20125 ac_res=`eval echo '${'$as_ac_Header'}'`
20126 { echo "$as_me:$LINENO: result: $ac_res" >&5
20127 echo "${ECHO_T}$ac_res" >&6; }
20128 else
20129 # Is the header compilable?
20130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20132 cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h. */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 $ac_includes_default
20139 #include <$ac_header>
20140 _ACEOF
20141 rm -f conftest.$ac_objext
20142 if { (ac_try="$ac_compile"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_compile") 2>conftest.er1
20149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest.$ac_objext; then
20158 ac_header_compiler=yes
20159 else
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 ac_header_compiler=no
20164 fi
20165
20166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20168 echo "${ECHO_T}$ac_header_compiler" >&6; }
20169
20170 # Is the header present?
20171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h. */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 #include <$ac_header>
20180 _ACEOF
20181 if { (ac_try="$ac_cpp conftest.$ac_ext"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } >/dev/null && {
20194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20196 }; then
20197 ac_header_preproc=yes
20198 else
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ac_header_preproc=no
20203 fi
20204
20205 rm -f conftest.err conftest.$ac_ext
20206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20207 echo "${ECHO_T}$ac_header_preproc" >&6; }
20208
20209 # So? What about this header?
20210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20211 yes:no: )
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20216 ac_header_preproc=yes
20217 ;;
20218 no:yes:* )
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20231 ( cat <<\_ASBOX
20232 ## -------------------------------------------------- ##
20233 ## Report this to courier-users@lists.sourceforge.net ##
20234 ## -------------------------------------------------- ##
20235 _ASBOX
20236 ) | sed "s/^/$as_me: WARNING: /" >&2
20237 ;;
20238 esac
20239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244 eval "$as_ac_Header=\$ac_header_preproc"
20245 fi
20246 ac_res=`eval echo '${'$as_ac_Header'}'`
20247 { echo "$as_me:$LINENO: result: $ac_res" >&5
20248 echo "${ECHO_T}$ac_res" >&6; }
20249
20250 fi
20251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20252 cat >>confdefs.h <<_ACEOF
20253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254 _ACEOF
20255
20256 fi
20257
20258 done
20259
20260
20261 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20262 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20263 if test "${ac_cv_c_const+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 else
20266 cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h. */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20272
20273 int
20274 main ()
20275 {
20276 /* FIXME: Include the comments suggested by Paul. */
20277 #ifndef __cplusplus
20278 /* Ultrix mips cc rejects this. */
20279 typedef int charset[2];
20280 const charset cs;
20281 /* SunOS 4.1.1 cc rejects this. */
20282 char const *const *pcpcc;
20283 char **ppc;
20284 /* NEC SVR4.0.2 mips cc rejects this. */
20285 struct point {int x, y;};
20286 static struct point const zero = {0,0};
20287 /* AIX XL C 1.02.0.0 rejects this.
20288 It does not let you subtract one const X* pointer from another in
20289 an arm of an if-expression whose if-part is not a constant
20290 expression */
20291 const char *g = "string";
20292 pcpcc = &g + (g ? g-g : 0);
20293 /* HPUX 7.0 cc rejects these. */
20294 ++pcpcc;
20295 ppc = (char**) pcpcc;
20296 pcpcc = (char const *const *) ppc;
20297 { /* SCO 3.2v4 cc rejects this. */
20298 char *t;
20299 char const *s = 0 ? (char *) 0 : (char const *) 0;
20300
20301 *t++ = 0;
20302 if (s) return 0;
20303 }
20304 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20305 int x[] = {25, 17};
20306 const int *foo = &x[0];
20307 ++foo;
20308 }
20309 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20310 typedef const int *iptr;
20311 iptr p = 0;
20312 ++p;
20313 }
20314 { /* AIX XL C 1.02.0.0 rejects this saying
20315 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20316 struct s { int j; const int *ap[3]; };
20317 struct s *b; b->j = 5;
20318 }
20319 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20320 const int foo = 10;
20321 if (!foo) return 0;
20322 }
20323 return !cs[0] && !zero.x;
20324 #endif
20325
20326 ;
20327 return 0;
20328 }
20329 _ACEOF
20330 rm -f conftest.$ac_objext
20331 if { (ac_try="$ac_compile"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.$ac_objext; then
20347 ac_cv_c_const=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 ac_cv_c_const=no
20353 fi
20354
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 fi
20357 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20358 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20359 if test $ac_cv_c_const = no; then
20360
20361 cat >>confdefs.h <<\_ACEOF
20362 #define const
20363 _ACEOF
20364
20365 fi
20366
20367 { echo "$as_me:$LINENO: checking for size_t" >&5
20368 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20369 if test "${ac_cv_type_size_t+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372 cat >conftest.$ac_ext <<_ACEOF
20373 /* confdefs.h. */
20374 _ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20378 $ac_includes_default
20379 typedef size_t ac__type_new_;
20380 int
20381 main ()
20382 {
20383 if ((ac__type_new_ *) 0)
20384 return 0;
20385 if (sizeof (ac__type_new_))
20386 return 0;
20387 ;
20388 return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext
20392 if { (ac_try="$ac_compile"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_compile") 2>conftest.er1
20399 ac_status=$?
20400 grep -v '^ *+' conftest.er1 >conftest.err
20401 rm -f conftest.er1
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest.$ac_objext; then
20408 ac_cv_type_size_t=yes
20409 else
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 ac_cv_type_size_t=no
20414 fi
20415
20416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20417 fi
20418 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20419 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20420 if test $ac_cv_type_size_t = yes; then
20421 :
20422 else
20423
20424 cat >>confdefs.h <<_ACEOF
20425 #define size_t unsigned int
20426 _ACEOF
20427
20428 fi
20429
20430
20431 ac_ext=cpp
20432 ac_cpp='$CXXCPP $CPPFLAGS'
20433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20436
20437 { echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
20438 echo $ECHO_N "checking if the C++ compiler needs -fhandle-exceptions... $ECHO_C" >&6; }
20439 if test "${ac_cxx_need_handlexceptions+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448
20449 int
20450 main ()
20451 {
20452
20453 throw;
20454
20455 ;
20456 return 0;
20457 }
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_compile") 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_cxx_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest.$ac_objext; then
20476 ac_cxx_need_handlexceptions=no
20477 else
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481 ac_cxx_need_handlexceptions=yes
20482 fi
20483
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485
20486 fi
20487 { echo "$as_me:$LINENO: result: $ac_cxx_need_handlexceptions" >&5
20488 echo "${ECHO_T}$ac_cxx_need_handlexceptions" >&6; }
20489
20490 if test "$ac_cxx_need_handlexceptions" = "yes"
20491 then
20492 case "$CXXFLAGS" in
20493 *handle-exceptions*)
20494 ;;
20495 *)
20496 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
20497 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
20498 ;;
20499 esac
20500 fi
20501
20502 if test "$GCC" = "yes"
20503 then
20504 CFLAGS="-Wall $CFLAGS"
20505 fi
20506
20507 ac_config_files="$ac_config_files Makefile"
20508
20509 cat >confcache <<\_ACEOF
20510 # This file is a shell script that caches the results of configure
20511 # tests run on this system so they can be shared between configure
20512 # scripts and configure runs, see configure's option --config-cache.
20513 # It is not useful on other systems. If it contains results you don't
20514 # want to keep, you may remove or edit it.
20515 #
20516 # config.status only pays attention to the cache file if you give it
20517 # the --recheck option to rerun configure.
20518 #
20519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20521 # following values.
20522
20523 _ACEOF
20524
20525 # The following way of writing the cache mishandles newlines in values,
20526 # but we know of no workaround that is simple, portable, and efficient.
20527 # So, we kill variables containing newlines.
20528 # Ultrix sh set writes to stderr and can't be redirected directly,
20529 # and sets the high bit in the cache file unless we assign to the vars.
20530 (
20531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20532 eval ac_val=\$$ac_var
20533 case $ac_val in #(
20534 *${as_nl}*)
20535 case $ac_var in #(
20536 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20537 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20538 esac
20539 case $ac_var in #(
20540 _ | IFS | as_nl) ;; #(
20541 *) $as_unset $ac_var ;;
20542 esac ;;
20543 esac
20544 done
20545
20546 (set) 2>&1 |
20547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20548 *${as_nl}ac_space=\ *)
20549 # `set' does not quote correctly, so add quotes (double-quote
20550 # substitution turns \\\\ into \\, and sed turns \\ into \).
20551 sed -n \
20552 "s/'/'\\\\''/g;
20553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20554 ;; #(
20555 *)
20556 # `set' quotes correctly as required by POSIX, so do not add quotes.
20557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20558 ;;
20559 esac |
20560 sort
20561 ) |
20562 sed '
20563 /^ac_cv_env_/b end
20564 t clear
20565 :clear
20566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20567 t end
20568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20569 :end' >>confcache
20570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20571 if test -w "$cache_file"; then
20572 test "x$cache_file" != "x/dev/null" &&
20573 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20574 echo "$as_me: updating cache $cache_file" >&6;}
20575 cat confcache >$cache_file
20576 else
20577 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20578 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20579 fi
20580 fi
20581 rm -f confcache
20582
20583 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20584 # Let make expand exec_prefix.
20585 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20586
20587 DEFS=-DHAVE_CONFIG_H
20588
20589 ac_libobjs=
20590 ac_ltlibobjs=
20591 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20592 # 1. Remove the extension, and $U if already installed.
20593 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20594 ac_i=`echo "$ac_i" | sed "$ac_script"`
20595 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20596 # will be set to the directory where LIBOBJS objects are built.
20597 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20598 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20599 done
20600 LIBOBJS=$ac_libobjs
20601
20602 LTLIBOBJS=$ac_ltlibobjs
20603
20604
20605 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20606 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20607 Usually this means the macro was only invoked conditionally." >&5
20608 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20609 Usually this means the macro was only invoked conditionally." >&2;}
20610 { (exit 1); exit 1; }; }
20611 fi
20612 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20613 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20614 Usually this means the macro was only invoked conditionally." >&5
20615 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20616 Usually this means the macro was only invoked conditionally." >&2;}
20617 { (exit 1); exit 1; }; }
20618 fi
20619 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20620 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20621 Usually this means the macro was only invoked conditionally." >&5
20622 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20623 Usually this means the macro was only invoked conditionally." >&2;}
20624 { (exit 1); exit 1; }; }
20625 fi
20626 if test -z "${FOUND_DB_TRUE}" && test -z "${FOUND_DB_FALSE}"; then
20627 { { echo "$as_me:$LINENO: error: conditional \"FOUND_DB\" was never defined.
20628 Usually this means the macro was only invoked conditionally." >&5
20629 echo "$as_me: error: conditional \"FOUND_DB\" was never defined.
20630 Usually this means the macro was only invoked conditionally." >&2;}
20631 { (exit 1); exit 1; }; }
20632 fi
20633
20634 : ${CONFIG_STATUS=./config.status}
20635 ac_clean_files_save=$ac_clean_files
20636 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20637 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20638 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20639 cat >$CONFIG_STATUS <<_ACEOF
20640 #! $SHELL
20641 # Generated by $as_me.
20642 # Run this file to recreate the current configuration.
20643 # Compiler output produced by configure, useful for debugging
20644 # configure, is in config.log if it exists.
20645
20646 debug=false
20647 ac_cs_recheck=false
20648 ac_cs_silent=false
20649 SHELL=\${CONFIG_SHELL-$SHELL}
20650 _ACEOF
20651
20652 cat >>$CONFIG_STATUS <<\_ACEOF
20653 ## --------------------- ##
20654 ## M4sh Initialization. ##
20655 ## --------------------- ##
20656
20657 # Be more Bourne compatible
20658 DUALCASE=1; export DUALCASE # for MKS sh
20659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20660 emulate sh
20661 NULLCMD=:
20662 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20663 # is contrary to our usage. Disable this feature.
20664 alias -g '${1+"$@"}'='"$@"'
20665 setopt NO_GLOB_SUBST
20666 else
20667 case `(set -o) 2>/dev/null` in
20668 *posix*) set -o posix ;;
20669 esac
20670
20671 fi
20672
20673
20674
20675
20676 # PATH needs CR
20677 # Avoid depending upon Character Ranges.
20678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20681 as_cr_digits='0123456789'
20682 as_cr_alnum=$as_cr_Letters$as_cr_digits
20683
20684 # The user is always right.
20685 if test "${PATH_SEPARATOR+set}" != set; then
20686 echo "#! /bin/sh" >conf$$.sh
20687 echo "exit 0" >>conf$$.sh
20688 chmod +x conf$$.sh
20689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20690 PATH_SEPARATOR=';'
20691 else
20692 PATH_SEPARATOR=:
20693 fi
20694 rm -f conf$$.sh
20695 fi
20696
20697 # Support unset when possible.
20698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20699 as_unset=unset
20700 else
20701 as_unset=false
20702 fi
20703
20704
20705 # IFS
20706 # We need space, tab and new line, in precisely that order. Quoting is
20707 # there to prevent editors from complaining about space-tab.
20708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20709 # splitting by setting IFS to empty value.)
20710 as_nl='
20711 '
20712 IFS=" "" $as_nl"
20713
20714 # Find who we are. Look in the path if we contain no directory separator.
20715 case $0 in
20716 *[\\/]* ) as_myself=$0 ;;
20717 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20718 for as_dir in $PATH
20719 do
20720 IFS=$as_save_IFS
20721 test -z "$as_dir" && as_dir=.
20722 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20723 done
20724 IFS=$as_save_IFS
20725
20726 ;;
20727 esac
20728 # We did not find ourselves, most probably we were run as `sh COMMAND'
20729 # in which case we are not to be found in the path.
20730 if test "x$as_myself" = x; then
20731 as_myself=$0
20732 fi
20733 if test ! -f "$as_myself"; then
20734 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20735 { (exit 1); exit 1; }
20736 fi
20737
20738 # Work around bugs in pre-3.0 UWIN ksh.
20739 for as_var in ENV MAIL MAILPATH
20740 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20741 done
20742 PS1='$ '
20743 PS2='> '
20744 PS4='+ '
20745
20746 # NLS nuisances.
20747 for as_var in \
20748 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20749 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20750 LC_TELEPHONE LC_TIME
20751 do
20752 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20753 eval $as_var=C; export $as_var
20754 else
20755 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20756 fi
20757 done
20758
20759 # Required to use basename.
20760 if expr a : '\(a\)' >/dev/null 2>&1 &&
20761 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20762 as_expr=expr
20763 else
20764 as_expr=false
20765 fi
20766
20767 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20768 as_basename=basename
20769 else
20770 as_basename=false
20771 fi
20772
20773
20774 # Name of the executable.
20775 as_me=`$as_basename -- "$0" ||
20776 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20777 X"$0" : 'X\(//\)$' \| \
20778 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20779 echo X/"$0" |
20780 sed '/^.*\/\([^/][^/]*\)\/*$/{
20781 s//\1/
20782 q
20783 }
20784 /^X\/\(\/\/\)$/{
20785 s//\1/
20786 q
20787 }
20788 /^X\/\(\/\).*/{
20789 s//\1/
20790 q
20791 }
20792 s/.*/./; q'`
20793
20794 # CDPATH.
20795 $as_unset CDPATH
20796
20797
20798
20799 as_lineno_1=$LINENO
20800 as_lineno_2=$LINENO
20801 test "x$as_lineno_1" != "x$as_lineno_2" &&
20802 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20803
20804 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20805 # uniformly replaced by the line number. The first 'sed' inserts a
20806 # line-number line after each line using $LINENO; the second 'sed'
20807 # does the real work. The second script uses 'N' to pair each
20808 # line-number line with the line containing $LINENO, and appends
20809 # trailing '-' during substitution so that $LINENO is not a special
20810 # case at line end.
20811 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20812 # scripts with optimization help from Paolo Bonzini. Blame Lee
20813 # E. McMahon (1931-1989) for sed's syntax. :-)
20814 sed -n '
20815 p
20816 /[$]LINENO/=
20817 ' <$as_myself |
20818 sed '
20819 s/[$]LINENO.*/&-/
20820 t lineno
20821 b
20822 :lineno
20823 N
20824 :loop
20825 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20826 t loop
20827 s/-\n.*//
20828 ' >$as_me.lineno &&
20829 chmod +x "$as_me.lineno" ||
20830 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20831 { (exit 1); exit 1; }; }
20832
20833 # Don't try to exec as it changes $[0], causing all sort of problems
20834 # (the dirname of $[0] is not the place where we might find the
20835 # original and so on. Autoconf is especially sensitive to this).
20836 . "./$as_me.lineno"
20837 # Exit status is that of the last command.
20838 exit
20839 }
20840
20841
20842 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20843 as_dirname=dirname
20844 else
20845 as_dirname=false
20846 fi
20847
20848 ECHO_C= ECHO_N= ECHO_T=
20849 case `echo -n x` in
20850 -n*)
20851 case `echo 'x\c'` in
20852 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20853 *) ECHO_C='\c';;
20854 esac;;
20855 *)
20856 ECHO_N='-n';;
20857 esac
20858
20859 if expr a : '\(a\)' >/dev/null 2>&1 &&
20860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20861 as_expr=expr
20862 else
20863 as_expr=false
20864 fi
20865
20866 rm -f conf$$ conf$$.exe conf$$.file
20867 if test -d conf$$.dir; then
20868 rm -f conf$$.dir/conf$$.file
20869 else
20870 rm -f conf$$.dir
20871 mkdir conf$$.dir
20872 fi
20873 echo >conf$$.file
20874 if ln -s conf$$.file conf$$ 2>/dev/null; then
20875 as_ln_s='ln -s'
20876 # ... but there are two gotchas:
20877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20879 # In both cases, we have to default to `cp -p'.
20880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20881 as_ln_s='cp -p'
20882 elif ln conf$$.file conf$$ 2>/dev/null; then
20883 as_ln_s=ln
20884 else
20885 as_ln_s='cp -p'
20886 fi
20887 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20888 rmdir conf$$.dir 2>/dev/null
20889
20890 if mkdir -p . 2>/dev/null; then
20891 as_mkdir_p=:
20892 else
20893 test -d ./-p && rmdir ./-p
20894 as_mkdir_p=false
20895 fi
20896
20897 if test -x / >/dev/null 2>&1; then
20898 as_test_x='test -x'
20899 else
20900 if ls -dL / >/dev/null 2>&1; then
20901 as_ls_L_option=L
20902 else
20903 as_ls_L_option=
20904 fi
20905 as_test_x='
20906 eval sh -c '\''
20907 if test -d "$1"; then
20908 test -d "$1/.";
20909 else
20910 case $1 in
20911 -*)set "./$1";;
20912 esac;
20913 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20914 ???[sx]*):;;*)false;;esac;fi
20915 '\'' sh
20916 '
20917 fi
20918 as_executable_p=$as_test_x
20919
20920 # Sed expression to map a string onto a valid CPP name.
20921 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20922
20923 # Sed expression to map a string onto a valid variable name.
20924 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20925
20926
20927 exec 6>&1
20928
20929 # Save the log message, to keep $[0] and so on meaningful, and to
20930 # report actual input values of CONFIG_FILES etc. instead of their
20931 # values after options handling.
20932 ac_log="
20933 This file was extended by bdbobj $as_me 0.10, which was
20934 generated by GNU Autoconf 2.61. Invocation command line was
20935
20936 CONFIG_FILES = $CONFIG_FILES
20937 CONFIG_HEADERS = $CONFIG_HEADERS
20938 CONFIG_LINKS = $CONFIG_LINKS
20939 CONFIG_COMMANDS = $CONFIG_COMMANDS
20940 $ $0 $@
20941
20942 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20943 "
20944
20945 _ACEOF
20946
20947 cat >>$CONFIG_STATUS <<_ACEOF
20948 # Files that config.status was made for.
20949 config_files="$ac_config_files"
20950 config_headers="$ac_config_headers"
20951 config_commands="$ac_config_commands"
20952
20953 _ACEOF
20954
20955 cat >>$CONFIG_STATUS <<\_ACEOF
20956 ac_cs_usage="\
20957 \`$as_me' instantiates files from templates according to the
20958 current configuration.
20959
20960 Usage: $0 [OPTIONS] [FILE]...
20961
20962 -h, --help print this help, then exit
20963 -V, --version print version number and configuration settings, then exit
20964 -q, --quiet do not print progress messages
20965 -d, --debug don't remove temporary files
20966 --recheck update $as_me by reconfiguring in the same conditions
20967 --file=FILE[:TEMPLATE]
20968 instantiate the configuration file FILE
20969 --header=FILE[:TEMPLATE]
20970 instantiate the configuration header FILE
20971
20972 Configuration files:
20973 $config_files
20974
20975 Configuration headers:
20976 $config_headers
20977
20978 Configuration commands:
20979 $config_commands
20980
20981 Report bugs to <bug-autoconf@gnu.org>."
20982
20983 _ACEOF
20984 cat >>$CONFIG_STATUS <<_ACEOF
20985 ac_cs_version="\\
20986 bdbobj config.status 0.10
20987 configured by $0, generated by GNU Autoconf 2.61,
20988 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20989
20990 Copyright (C) 2006 Free Software Foundation, Inc.
20991 This config.status script is free software; the Free Software Foundation
20992 gives unlimited permission to copy, distribute and modify it."
20993
20994 ac_pwd='$ac_pwd'
20995 srcdir='$srcdir'
20996 INSTALL='$INSTALL'
20997 MKDIR_P='$MKDIR_P'
20998 _ACEOF
20999
21000 cat >>$CONFIG_STATUS <<\_ACEOF
21001 # If no file are specified by the user, then we need to provide default
21002 # value. By we need to know if files were specified by the user.
21003 ac_need_defaults=:
21004 while test $# != 0
21005 do
21006 case $1 in
21007 --*=*)
21008 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21009 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21010 ac_shift=:
21011 ;;
21012 *)
21013 ac_option=$1
21014 ac_optarg=$2
21015 ac_shift=shift
21016 ;;
21017 esac
21018
21019 case $ac_option in
21020 # Handling of the options.
21021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21022 ac_cs_recheck=: ;;
21023 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21024 echo "$ac_cs_version"; exit ;;
21025 --debug | --debu | --deb | --de | --d | -d )
21026 debug=: ;;
21027 --file | --fil | --fi | --f )
21028 $ac_shift
21029 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21030 ac_need_defaults=false;;
21031 --header | --heade | --head | --hea )
21032 $ac_shift
21033 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21034 ac_need_defaults=false;;
21035 --he | --h)
21036 # Conflict between --help and --header
21037 { echo "$as_me: error: ambiguous option: $1
21038 Try \`$0 --help' for more information." >&2
21039 { (exit 1); exit 1; }; };;
21040 --help | --hel | -h )
21041 echo "$ac_cs_usage"; exit ;;
21042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21043 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21044 ac_cs_silent=: ;;
21045
21046 # This is an error.
21047 -*) { echo "$as_me: error: unrecognized option: $1
21048 Try \`$0 --help' for more information." >&2
21049 { (exit 1); exit 1; }; } ;;
21050
21051 *) ac_config_targets="$ac_config_targets $1"
21052 ac_need_defaults=false ;;
21053
21054 esac
21055 shift
21056 done
21057
21058 ac_configure_extra_args=
21059
21060 if $ac_cs_silent; then
21061 exec 6>/dev/null
21062 ac_configure_extra_args="$ac_configure_extra_args --silent"
21063 fi
21064
21065 _ACEOF
21066 cat >>$CONFIG_STATUS <<_ACEOF
21067 if \$ac_cs_recheck; then
21068 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21069 CONFIG_SHELL=$SHELL
21070 export CONFIG_SHELL
21071 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21072 fi
21073
21074 _ACEOF
21075 cat >>$CONFIG_STATUS <<\_ACEOF
21076 exec 5>>config.log
21077 {
21078 echo
21079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21080 ## Running $as_me. ##
21081 _ASBOX
21082 echo "$ac_log"
21083 } >&5
21084
21085 _ACEOF
21086 cat >>$CONFIG_STATUS <<_ACEOF
21087 #
21088 # INIT-COMMANDS
21089 #
21090 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21091
21092 _ACEOF
21093
21094 cat >>$CONFIG_STATUS <<\_ACEOF
21095
21096 # Handling of arguments.
21097 for ac_config_target in $ac_config_targets
21098 do
21099 case $ac_config_target in
21100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21101 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21102 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21103
21104 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21105 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21106 { (exit 1); exit 1; }; };;
21107 esac
21108 done
21109
21110
21111 # If the user did not use the arguments to specify the items to instantiate,
21112 # then the envvar interface is used. Set only those that are not.
21113 # We use the long form for the default assignment because of an extremely
21114 # bizarre bug on SunOS 4.1.3.
21115 if $ac_need_defaults; then
21116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21119 fi
21120
21121 # Have a temporary directory for convenience. Make it in the build tree
21122 # simply because there is no reason against having it here, and in addition,
21123 # creating and moving files from /tmp can sometimes cause problems.
21124 # Hook for its removal unless debugging.
21125 # Note that there is a small window in which the directory will not be cleaned:
21126 # after its creation but before its name has been assigned to `$tmp'.
21127 $debug ||
21128 {
21129 tmp=
21130 trap 'exit_status=$?
21131 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21132 ' 0
21133 trap '{ (exit 1); exit 1; }' 1 2 13 15
21134 }
21135 # Create a (secure) tmp directory for tmp files.
21136
21137 {
21138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21139 test -n "$tmp" && test -d "$tmp"
21140 } ||
21141 {
21142 tmp=./conf$$-$RANDOM
21143 (umask 077 && mkdir "$tmp")
21144 } ||
21145 {
21146 echo "$me: cannot create a temporary directory in ." >&2
21147 { (exit 1); exit 1; }
21148 }
21149
21150 #
21151 # Set up the sed scripts for CONFIG_FILES section.
21152 #
21153
21154 # No need to generate the scripts if there are no CONFIG_FILES.
21155 # This happens for instance when ./config.status config.h
21156 if test -n "$CONFIG_FILES"; then
21157
21158 _ACEOF
21159
21160
21161
21162 ac_delim='%!_!# '
21163 for ac_last_try in false false false false false :; do
21164 cat >conf$$subs.sed <<_ACEOF
21165 SHELL!$SHELL$ac_delim
21166 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21167 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21168 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21169 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21170 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21171 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21172 exec_prefix!$exec_prefix$ac_delim
21173 prefix!$prefix$ac_delim
21174 program_transform_name!$program_transform_name$ac_delim
21175 bindir!$bindir$ac_delim
21176 sbindir!$sbindir$ac_delim
21177 libexecdir!$libexecdir$ac_delim
21178 datarootdir!$datarootdir$ac_delim
21179 datadir!$datadir$ac_delim
21180 sysconfdir!$sysconfdir$ac_delim
21181 sharedstatedir!$sharedstatedir$ac_delim
21182 localstatedir!$localstatedir$ac_delim
21183 includedir!$includedir$ac_delim
21184 oldincludedir!$oldincludedir$ac_delim
21185 docdir!$docdir$ac_delim
21186 infodir!$infodir$ac_delim
21187 htmldir!$htmldir$ac_delim
21188 dvidir!$dvidir$ac_delim
21189 pdfdir!$pdfdir$ac_delim
21190 psdir!$psdir$ac_delim
21191 libdir!$libdir$ac_delim
21192 localedir!$localedir$ac_delim
21193 mandir!$mandir$ac_delim
21194 DEFS!$DEFS$ac_delim
21195 ECHO_C!$ECHO_C$ac_delim
21196 ECHO_N!$ECHO_N$ac_delim
21197 ECHO_T!$ECHO_T$ac_delim
21198 LIBS!$LIBS$ac_delim
21199 build_alias!$build_alias$ac_delim
21200 host_alias!$host_alias$ac_delim
21201 target_alias!$target_alias$ac_delim
21202 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21203 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21204 INSTALL_DATA!$INSTALL_DATA$ac_delim
21205 am__isrc!$am__isrc$ac_delim
21206 CYGPATH_W!$CYGPATH_W$ac_delim
21207 PACKAGE!$PACKAGE$ac_delim
21208 VERSION!$VERSION$ac_delim
21209 ACLOCAL!$ACLOCAL$ac_delim
21210 AUTOCONF!$AUTOCONF$ac_delim
21211 AUTOMAKE!$AUTOMAKE$ac_delim
21212 AUTOHEADER!$AUTOHEADER$ac_delim
21213 MAKEINFO!$MAKEINFO$ac_delim
21214 install_sh!$install_sh$ac_delim
21215 STRIP!$STRIP$ac_delim
21216 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21217 mkdir_p!$mkdir_p$ac_delim
21218 AWK!$AWK$ac_delim
21219 SET_MAKE!$SET_MAKE$ac_delim
21220 am__leading_dot!$am__leading_dot$ac_delim
21221 AMTAR!$AMTAR$ac_delim
21222 am__tar!$am__tar$ac_delim
21223 am__untar!$am__untar$ac_delim
21224 CC!$CC$ac_delim
21225 CFLAGS!$CFLAGS$ac_delim
21226 LDFLAGS!$LDFLAGS$ac_delim
21227 CPPFLAGS!$CPPFLAGS$ac_delim
21228 ac_ct_CC!$ac_ct_CC$ac_delim
21229 EXEEXT!$EXEEXT$ac_delim
21230 OBJEXT!$OBJEXT$ac_delim
21231 DEPDIR!$DEPDIR$ac_delim
21232 am__include!$am__include$ac_delim
21233 am__quote!$am__quote$ac_delim
21234 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21235 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21236 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21237 CCDEPMODE!$CCDEPMODE$ac_delim
21238 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21239 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21240 CPP!$CPP$ac_delim
21241 GREP!$GREP$ac_delim
21242 EGREP!$EGREP$ac_delim
21243 CXX!$CXX$ac_delim
21244 CXXFLAGS!$CXXFLAGS$ac_delim
21245 ac_ct_CXX!$ac_ct_CXX$ac_delim
21246 CXXDEPMODE!$CXXDEPMODE$ac_delim
21247 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21248 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21249 build!$build$ac_delim
21250 build_cpu!$build_cpu$ac_delim
21251 build_vendor!$build_vendor$ac_delim
21252 build_os!$build_os$ac_delim
21253 host!$host$ac_delim
21254 host_cpu!$host_cpu$ac_delim
21255 host_vendor!$host_vendor$ac_delim
21256 host_os!$host_os$ac_delim
21257 SED!$SED$ac_delim
21258 LN_S!$LN_S$ac_delim
21259 ECHO!$ECHO$ac_delim
21260 AR!$AR$ac_delim
21261 RANLIB!$RANLIB$ac_delim
21262 _ACEOF
21263
21264 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21265 break
21266 elif $ac_last_try; then
21267 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21268 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21269 { (exit 1); exit 1; }; }
21270 else
21271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21272 fi
21273 done
21274
21275 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21276 if test -n "$ac_eof"; then
21277 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21278 ac_eof=`expr $ac_eof + 1`
21279 fi
21280
21281 cat >>$CONFIG_STATUS <<_ACEOF
21282 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21284 _ACEOF
21285 sed '
21286 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21287 s/^/s,@/; s/!/@,|#_!!_#|/
21288 :n
21289 t n
21290 s/'"$ac_delim"'$/,g/; t
21291 s/$/\\/; p
21292 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21293 ' >>$CONFIG_STATUS <conf$$subs.sed
21294 rm -f conf$$subs.sed
21295 cat >>$CONFIG_STATUS <<_ACEOF
21296 CEOF$ac_eof
21297 _ACEOF
21298
21299
21300 ac_delim='%!_!# '
21301 for ac_last_try in false false false false false :; do
21302 cat >conf$$subs.sed <<_ACEOF
21303 CXXCPP!$CXXCPP$ac_delim
21304 F77!$F77$ac_delim
21305 FFLAGS!$FFLAGS$ac_delim
21306 ac_ct_F77!$ac_ct_F77$ac_delim
21307 LIBTOOL!$LIBTOOL$ac_delim
21308 LIBDB!$LIBDB$ac_delim
21309 FOUND_DB_TRUE!$FOUND_DB_TRUE$ac_delim
21310 FOUND_DB_FALSE!$FOUND_DB_FALSE$ac_delim
21311 LIBOBJS!$LIBOBJS$ac_delim
21312 LTLIBOBJS!$LTLIBOBJS$ac_delim
21313 _ACEOF
21314
21315 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21316 break
21317 elif $ac_last_try; then
21318 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21319 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21320 { (exit 1); exit 1; }; }
21321 else
21322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21323 fi
21324 done
21325
21326 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21327 if test -n "$ac_eof"; then
21328 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21329 ac_eof=`expr $ac_eof + 1`
21330 fi
21331
21332 cat >>$CONFIG_STATUS <<_ACEOF
21333 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21335 _ACEOF
21336 sed '
21337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21338 s/^/s,@/; s/!/@,|#_!!_#|/
21339 :n
21340 t n
21341 s/'"$ac_delim"'$/,g/; t
21342 s/$/\\/; p
21343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21344 ' >>$CONFIG_STATUS <conf$$subs.sed
21345 rm -f conf$$subs.sed
21346 cat >>$CONFIG_STATUS <<_ACEOF
21347 :end
21348 s/|#_!!_#|//g
21349 CEOF$ac_eof
21350 _ACEOF
21351
21352
21353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21355 # trailing colons and then remove the whole line if VPATH becomes empty
21356 # (actually we leave an empty line to preserve line numbers).
21357 if test "x$srcdir" = x.; then
21358 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21359 s/:*\$(srcdir):*/:/
21360 s/:*\${srcdir}:*/:/
21361 s/:*@srcdir@:*/:/
21362 s/^\([^=]*=[ ]*\):*/\1/
21363 s/:*$//
21364 s/^[^=]*=[ ]*$//
21365 }'
21366 fi
21367
21368 cat >>$CONFIG_STATUS <<\_ACEOF
21369 fi # test -n "$CONFIG_FILES"
21370
21371
21372 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21373 do
21374 case $ac_tag in
21375 :[FHLC]) ac_mode=$ac_tag; continue;;
21376 esac
21377 case $ac_mode$ac_tag in
21378 :[FHL]*:*);;
21379 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21380 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21381 { (exit 1); exit 1; }; };;
21382 :[FH]-) ac_tag=-:-;;
21383 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21384 esac
21385 ac_save_IFS=$IFS
21386 IFS=:
21387 set x $ac_tag
21388 IFS=$ac_save_IFS
21389 shift
21390 ac_file=$1
21391 shift
21392
21393 case $ac_mode in
21394 :L) ac_source=$1;;
21395 :[FH])
21396 ac_file_inputs=
21397 for ac_f
21398 do
21399 case $ac_f in
21400 -) ac_f="$tmp/stdin";;
21401 *) # Look for the file first in the build tree, then in the source tree
21402 # (if the path is not absolute). The absolute path cannot be DOS-style,
21403 # because $ac_f cannot contain `:'.
21404 test -f "$ac_f" ||
21405 case $ac_f in
21406 [\\/$]*) false;;
21407 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21408 esac ||
21409 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21410 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21411 { (exit 1); exit 1; }; };;
21412 esac
21413 ac_file_inputs="$ac_file_inputs $ac_f"
21414 done
21415
21416 # Let's still pretend it is `configure' which instantiates (i.e., don't
21417 # use $as_me), people would be surprised to read:
21418 # /* config.h. Generated by config.status. */
21419 configure_input="Generated from "`IFS=:
21420 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21421 if test x"$ac_file" != x-; then
21422 configure_input="$ac_file. $configure_input"
21423 { echo "$as_me:$LINENO: creating $ac_file" >&5
21424 echo "$as_me: creating $ac_file" >&6;}
21425 fi
21426
21427 case $ac_tag in
21428 *:-:* | *:-) cat >"$tmp/stdin";;
21429 esac
21430 ;;
21431 esac
21432
21433 ac_dir=`$as_dirname -- "$ac_file" ||
21434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21435 X"$ac_file" : 'X\(//\)[^/]' \| \
21436 X"$ac_file" : 'X\(//\)$' \| \
21437 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21438 echo X"$ac_file" |
21439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21440 s//\1/
21441 q
21442 }
21443 /^X\(\/\/\)[^/].*/{
21444 s//\1/
21445 q
21446 }
21447 /^X\(\/\/\)$/{
21448 s//\1/
21449 q
21450 }
21451 /^X\(\/\).*/{
21452 s//\1/
21453 q
21454 }
21455 s/.*/./; q'`
21456 { as_dir="$ac_dir"
21457 case $as_dir in #(
21458 -*) as_dir=./$as_dir;;
21459 esac
21460 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21461 as_dirs=
21462 while :; do
21463 case $as_dir in #(
21464 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21465 *) as_qdir=$as_dir;;
21466 esac
21467 as_dirs="'$as_qdir' $as_dirs"
21468 as_dir=`$as_dirname -- "$as_dir" ||
21469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21470 X"$as_dir" : 'X\(//\)[^/]' \| \
21471 X"$as_dir" : 'X\(//\)$' \| \
21472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21473 echo X"$as_dir" |
21474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21475 s//\1/
21476 q
21477 }
21478 /^X\(\/\/\)[^/].*/{
21479 s//\1/
21480 q
21481 }
21482 /^X\(\/\/\)$/{
21483 s//\1/
21484 q
21485 }
21486 /^X\(\/\).*/{
21487 s//\1/
21488 q
21489 }
21490 s/.*/./; q'`
21491 test -d "$as_dir" && break
21492 done
21493 test -z "$as_dirs" || eval "mkdir $as_dirs"
21494 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21495 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21496 { (exit 1); exit 1; }; }; }
21497 ac_builddir=.
21498
21499 case "$ac_dir" in
21500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21501 *)
21502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21503 # A ".." for each directory in $ac_dir_suffix.
21504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21505 case $ac_top_builddir_sub in
21506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21508 esac ;;
21509 esac
21510 ac_abs_top_builddir=$ac_pwd
21511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21512 # for backward compatibility:
21513 ac_top_builddir=$ac_top_build_prefix
21514
21515 case $srcdir in
21516 .) # We are building in place.
21517 ac_srcdir=.
21518 ac_top_srcdir=$ac_top_builddir_sub
21519 ac_abs_top_srcdir=$ac_pwd ;;
21520 [\\/]* | ?:[\\/]* ) # Absolute name.
21521 ac_srcdir=$srcdir$ac_dir_suffix;
21522 ac_top_srcdir=$srcdir
21523 ac_abs_top_srcdir=$srcdir ;;
21524 *) # Relative name.
21525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21526 ac_top_srcdir=$ac_top_build_prefix$srcdir
21527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21528 esac
21529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21530
21531
21532 case $ac_mode in
21533 :F)
21534 #
21535 # CONFIG_FILE
21536 #
21537
21538 case $INSTALL in
21539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21540 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21541 esac
21542 ac_MKDIR_P=$MKDIR_P
21543 case $MKDIR_P in
21544 [\\/$]* | ?:[\\/]* ) ;;
21545 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21546 esac
21547 _ACEOF
21548
21549 cat >>$CONFIG_STATUS <<\_ACEOF
21550 # If the template does not know about datarootdir, expand it.
21551 # FIXME: This hack should be removed a few years after 2.60.
21552 ac_datarootdir_hack=; ac_datarootdir_seen=
21553
21554 case `sed -n '/datarootdir/ {
21555 p
21556 q
21557 }
21558 /@datadir@/p
21559 /@docdir@/p
21560 /@infodir@/p
21561 /@localedir@/p
21562 /@mandir@/p
21563 ' $ac_file_inputs` in
21564 *datarootdir*) ac_datarootdir_seen=yes;;
21565 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21566 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21567 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21568 _ACEOF
21569 cat >>$CONFIG_STATUS <<_ACEOF
21570 ac_datarootdir_hack='
21571 s&@datadir@&$datadir&g
21572 s&@docdir@&$docdir&g
21573 s&@infodir@&$infodir&g
21574 s&@localedir@&$localedir&g
21575 s&@mandir@&$mandir&g
21576 s&\\\${datarootdir}&$datarootdir&g' ;;
21577 esac
21578 _ACEOF
21579
21580 # Neutralize VPATH when `$srcdir' = `.'.
21581 # Shell code in configure.ac might set extrasub.
21582 # FIXME: do we really want to maintain this feature?
21583 cat >>$CONFIG_STATUS <<_ACEOF
21584 sed "$ac_vpsub
21585 $extrasub
21586 _ACEOF
21587 cat >>$CONFIG_STATUS <<\_ACEOF
21588 :t
21589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21590 s&@configure_input@&$configure_input&;t t
21591 s&@top_builddir@&$ac_top_builddir_sub&;t t
21592 s&@srcdir@&$ac_srcdir&;t t
21593 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21594 s&@top_srcdir@&$ac_top_srcdir&;t t
21595 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21596 s&@builddir@&$ac_builddir&;t t
21597 s&@abs_builddir@&$ac_abs_builddir&;t t
21598 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21599 s&@INSTALL@&$ac_INSTALL&;t t
21600 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21601 $ac_datarootdir_hack
21602 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21603
21604 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21605 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21606 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21607 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21608 which seems to be undefined. Please make sure it is defined." >&5
21609 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21610 which seems to be undefined. Please make sure it is defined." >&2;}
21611
21612 rm -f "$tmp/stdin"
21613 case $ac_file in
21614 -) cat "$tmp/out"; rm -f "$tmp/out";;
21615 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21616 esac
21617 ;;
21618 :H)
21619 #
21620 # CONFIG_HEADER
21621 #
21622 _ACEOF
21623
21624 # Transform confdefs.h into a sed script `conftest.defines', that
21625 # substitutes the proper values into config.h.in to produce config.h.
21626 rm -f conftest.defines conftest.tail
21627 # First, append a space to every undef/define line, to ease matching.
21628 echo 's/$/ /' >conftest.defines
21629 # Then, protect against being on the right side of a sed subst, or in
21630 # an unquoted here document, in config.status. If some macros were
21631 # called several times there might be several #defines for the same
21632 # symbol, which is useless. But do not sort them, since the last
21633 # AC_DEFINE must be honored.
21634 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21635 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21636 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21637 # PARAMS is the parameter list in the macro definition--in most cases, it's
21638 # just an empty string.
21639 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21640 ac_dB='\\)[ (].*,\\1define\\2'
21641 ac_dC=' '
21642 ac_dD=' ,'
21643
21644 uniq confdefs.h |
21645 sed -n '
21646 t rset
21647 :rset
21648 s/^[ ]*#[ ]*define[ ][ ]*//
21649 t ok
21650 d
21651 :ok
21652 s/[\\&,]/\\&/g
21653 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21654 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21655 ' >>conftest.defines
21656
21657 # Remove the space that was appended to ease matching.
21658 # Then replace #undef with comments. This is necessary, for
21659 # example, in the case of _POSIX_SOURCE, which is predefined and required
21660 # on some systems where configure will not decide to define it.
21661 # (The regexp can be short, since the line contains either #define or #undef.)
21662 echo 's/ $//
21663 s,^[ #]*u.*,/* & */,' >>conftest.defines
21664
21665 # Break up conftest.defines:
21666 ac_max_sed_lines=50
21667
21668 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21669 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21670 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21671 # et cetera.
21672 ac_in='$ac_file_inputs'
21673 ac_out='"$tmp/out1"'
21674 ac_nxt='"$tmp/out2"'
21675
21676 while :
21677 do
21678 # Write a here document:
21679 cat >>$CONFIG_STATUS <<_ACEOF
21680 # First, check the format of the line:
21681 cat >"\$tmp/defines.sed" <<\\CEOF
21682 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21683 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21684 b
21685 :def
21686 _ACEOF
21687 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21688 echo 'CEOF
21689 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21690 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21691 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21692 grep . conftest.tail >/dev/null || break
21693 rm -f conftest.defines
21694 mv conftest.tail conftest.defines
21695 done
21696 rm -f conftest.defines conftest.tail
21697
21698 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21699 cat >>$CONFIG_STATUS <<\_ACEOF
21700 if test x"$ac_file" != x-; then
21701 echo "/* $configure_input */" >"$tmp/config.h"
21702 cat "$ac_result" >>"$tmp/config.h"
21703 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21704 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21705 echo "$as_me: $ac_file is unchanged" >&6;}
21706 else
21707 rm -f $ac_file
21708 mv "$tmp/config.h" $ac_file
21709 fi
21710 else
21711 echo "/* $configure_input */"
21712 cat "$ac_result"
21713 fi
21714 rm -f "$tmp/out12"
21715 # Compute $ac_file's index in $config_headers.
21716 _am_arg=$ac_file
21717 _am_stamp_count=1
21718 for _am_header in $config_headers :; do
21719 case $_am_header in
21720 $_am_arg | $_am_arg:* )
21721 break ;;
21722 * )
21723 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21724 esac
21725 done
21726 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21727 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21728 X"$_am_arg" : 'X\(//\)[^/]' \| \
21729 X"$_am_arg" : 'X\(//\)$' \| \
21730 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21731 echo X"$_am_arg" |
21732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21733 s//\1/
21734 q
21735 }
21736 /^X\(\/\/\)[^/].*/{
21737 s//\1/
21738 q
21739 }
21740 /^X\(\/\/\)$/{
21741 s//\1/
21742 q
21743 }
21744 /^X\(\/\).*/{
21745 s//\1/
21746 q
21747 }
21748 s/.*/./; q'`/stamp-h$_am_stamp_count
21749 ;;
21750
21751 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21752 echo "$as_me: executing $ac_file commands" >&6;}
21753 ;;
21754 esac
21755
21756
21757 case $ac_file$ac_mode in
21758 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21759 # Strip MF so we end up with the name of the file.
21760 mf=`echo "$mf" | sed -e 's/:.*$//'`
21761 # Check whether this is an Automake generated Makefile or not.
21762 # We used to match only the files named `Makefile.in', but
21763 # some people rename them; so instead we look at the file content.
21764 # Grep'ing the first line is not enough: some people post-process
21765 # each Makefile.in and add a new line on top of each file to say so.
21766 # Grep'ing the whole file is not good either: AIX grep has a line
21767 # limit of 2048, but all sed's we know have understand at least 4000.
21768 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21769 dirpart=`$as_dirname -- "$mf" ||
21770 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21771 X"$mf" : 'X\(//\)[^/]' \| \
21772 X"$mf" : 'X\(//\)$' \| \
21773 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21774 echo X"$mf" |
21775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21776 s//\1/
21777 q
21778 }
21779 /^X\(\/\/\)[^/].*/{
21780 s//\1/
21781 q
21782 }
21783 /^X\(\/\/\)$/{
21784 s//\1/
21785 q
21786 }
21787 /^X\(\/\).*/{
21788 s//\1/
21789 q
21790 }
21791 s/.*/./; q'`
21792 else
21793 continue
21794 fi
21795 # Extract the definition of DEPDIR, am__include, and am__quote
21796 # from the Makefile without running `make'.
21797 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21798 test -z "$DEPDIR" && continue
21799 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21800 test -z "am__include" && continue
21801 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21802 # When using ansi2knr, U may be empty or an underscore; expand it
21803 U=`sed -n 's/^U = //p' < "$mf"`
21804 # Find all dependency output files, they are included files with
21805 # $(DEPDIR) in their names. We invoke sed twice because it is the
21806 # simplest approach to changing $(DEPDIR) to its actual value in the
21807 # expansion.
21808 for file in `sed -n "
21809 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21810 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21811 # Make sure the directory exists.
21812 test -f "$dirpart/$file" && continue
21813 fdir=`$as_dirname -- "$file" ||
21814 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21815 X"$file" : 'X\(//\)[^/]' \| \
21816 X"$file" : 'X\(//\)$' \| \
21817 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21818 echo X"$file" |
21819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21820 s//\1/
21821 q
21822 }
21823 /^X\(\/\/\)[^/].*/{
21824 s//\1/
21825 q
21826 }
21827 /^X\(\/\/\)$/{
21828 s//\1/
21829 q
21830 }
21831 /^X\(\/\).*/{
21832 s//\1/
21833 q
21834 }
21835 s/.*/./; q'`
21836 { as_dir=$dirpart/$fdir
21837 case $as_dir in #(
21838 -*) as_dir=./$as_dir;;
21839 esac
21840 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21841 as_dirs=
21842 while :; do
21843 case $as_dir in #(
21844 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21845 *) as_qdir=$as_dir;;
21846 esac
21847 as_dirs="'$as_qdir' $as_dirs"
21848 as_dir=`$as_dirname -- "$as_dir" ||
21849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21850 X"$as_dir" : 'X\(//\)[^/]' \| \
21851 X"$as_dir" : 'X\(//\)$' \| \
21852 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21853 echo X"$as_dir" |
21854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21855 s//\1/
21856 q
21857 }
21858 /^X\(\/\/\)[^/].*/{
21859 s//\1/
21860 q
21861 }
21862 /^X\(\/\/\)$/{
21863 s//\1/
21864 q
21865 }
21866 /^X\(\/\).*/{
21867 s//\1/
21868 q
21869 }
21870 s/.*/./; q'`
21871 test -d "$as_dir" && break
21872 done
21873 test -z "$as_dirs" || eval "mkdir $as_dirs"
21874 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21875 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21876 { (exit 1); exit 1; }; }; }
21877 # echo "creating $dirpart/$file"
21878 echo '# dummy' > "$dirpart/$file"
21879 done
21880 done
21881 ;;
21882
21883 esac
21884 done # for ac_tag
21885
21886
21887 { (exit 0); exit 0; }
21888 _ACEOF
21889 chmod +x $CONFIG_STATUS
21890 ac_clean_files=$ac_clean_files_save
21891
21892
21893 # configure is writing to config.log, and then calls config.status.
21894 # config.status does its own redirection, appending to config.log.
21895 # Unfortunately, on DOS this fails, as config.log is still kept open
21896 # by configure, so config.status won't be able to write to it; its
21897 # output is simply discarded. So we exec the FD to /dev/null,
21898 # effectively closing config.log, so it can be properly (re)opened and
21899 # appended to by config.status. When coming back to configure, we
21900 # need to make the FD available again.
21901 if test "$no_create" != yes; then
21902 ac_cs_success=:
21903 ac_config_status_args=
21904 test "$silent" = yes &&
21905 ac_config_status_args="$ac_config_status_args --quiet"
21906 exec 5>/dev/null
21907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21908 exec 5>>config.log
21909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21910 # would make configure fail if this is the last instruction.
21911 $ac_cs_success || { (exit 1); exit 1; }
21912 fi
21913