]> jfr.im git - irc/rqf/shadowircd.git/blob - libratbox/configure
update CREDITS a little.
[irc/rqf/shadowircd.git] / libratbox / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libratbox devel.
4 #
5 # $Id: configure.ac 23020 2006-09-01 18:20:19Z androsyn $
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='libratbox'
730 PACKAGE_TARNAME='libratbox'
731 PACKAGE_VERSION='devel'
732 PACKAGE_STRING='libratbox devel'
733 PACKAGE_BUGREPORT=''
734
735 ac_default_prefix=/usr/local/libratbox
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 GREP
848 EGREP
849 SED
850 MAINTAINER_MODE_TRUE
851 MAINTAINER_MODE_FALSE
852 MAINT
853 AS
854 RM
855 CP
856 MV
857 LN
858 AR
859 LD
860 RANLIB
861 TOUCH
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 LN_S
871 ECHO
872 DSYMUTIL
873 NMEDIT
874 CPP
875 CXX
876 CXXFLAGS
877 ac_ct_CXX
878 CXXDEPMODE
879 am__fastdepCXX_TRUE
880 am__fastdepCXX_FALSE
881 CXXCPP
882 F77
883 FFLAGS
884 ac_ct_F77
885 LIBTOOL
886 subdirs
887 MINGW_TRUE
888 MINGW_FALSE
889 NEED_CRYPT_TRUE
890 NEED_CRYPT_FALSE
891 CRYPT_LIB
892 ALLOCA
893 PICFLAGS
894 SEDOBJ
895 SSL_INCLUDES
896 SSL_LIBS
897 RB_PREFIX
898 LIBOBJS
899 LTLIBOBJS'
900 ac_subst_files=''
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 CXX
911 CXXFLAGS
912 CCC
913 CXXCPP
914 F77
915 FFLAGS'
916 ac_subdirs_all='libltdl'
917
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
974
975 case $ac_option in
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044 eval enable_$ac_feature=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid package name: $ac_package" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241 eval with_$ac_package=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid package name: $ac_package" >&2
1248 { (exit 1); exit 1; }; }
1249 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1250 eval with_$ac_package=no ;;
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1269
1270 -*) { echo "$as_me: error: unrecognized option: $ac_option
1271 Try \`$0 --help' for more information." >&2
1272 { (exit 1); exit 1; }; }
1273 ;;
1274
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280 { (exit 1); exit 1; }; }
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1283
1284 *)
1285 # FIXME: should be removed in autoconf 3.0.
1286 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 ;;
1291
1292 esac
1293 done
1294
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 { echo "$as_me: error: missing argument to $ac_option" >&2
1298 { (exit 1); exit 1; }; }
1299 fi
1300
1301 # Be sure to have absolute directory names.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1306 do
1307 eval ac_val=\$$ac_var
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$0" ||
1355 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$0" : 'X\(//\)[^/]' \| \
1357 X"$0" : 'X\(//\)$' \| \
1358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359 echo X"$0" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures libratbox devel to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1472
1473 cat <<\_ACEOF
1474
1475 Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1484 fi
1485
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of libratbox devel:";;
1489 esac
1490 cat <<\_ACEOF
1491
1492 Optional Features:
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --disable-dependency-tracking speeds up one-time build
1496 --enable-dependency-tracking do not reject slow dependency extractors
1497 --enable-static[=PKGS] build static libraries [default=no]
1498 --enable-shared[=PKGS] build shared libraries [default=yes]
1499 --enable-maintainer-mode enable make rules and dependencies not useful
1500 (and sometimes confusing) to the casual installer
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --disable-ipv6 Disable IPv6 support
1505 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1506 --disable-openssl Disable OpenSSL support.
1507 --enable-assert Enable assert(). Choose between soft(warnings) and
1508 hard(aborts the daemon)
1509 --enable-profile Enable profiling
1510 --disable-balloc Disable the block allocator.
1511 --enable-warnings Enable all sorts of warnings for debugging.
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517 --with-pic try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --with-tags[=TAGS] include additional configurations [automatic]
1520
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1532 CXXCPP C++ preprocessor
1533 F77 Fortran 77 compiler command
1534 FFLAGS Fortran 77 compiler flags
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" || continue
1547 ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 libratbox configure devel
1600 generated by GNU Autoconf 2.61
1601
1602 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1603 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606
1607 $Id: configure.ac 23020 2006-09-01 18:20:19Z androsyn $
1608 _ACEOF
1609 exit
1610 fi
1611 cat >config.log <<_ACEOF
1612 This file contains any messages produced by compilers while
1613 running configure, to aid debugging if configure makes a mistake.
1614
1615 It was created by libratbox $as_me devel, which was
1616 generated by GNU Autoconf 2.61. Invocation command line was
1617
1618 $ $0 $@
1619
1620 _ACEOF
1621 exec 5>>config.log
1622 {
1623 cat <<_ASUNAME
1624 ## --------- ##
1625 ## Platform. ##
1626 ## --------- ##
1627
1628 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633
1634 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636
1637 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1638 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1639 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1641 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1642 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1643 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644
1645 _ASUNAME
1646
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 echo "PATH: $as_dir"
1653 done
1654 IFS=$as_save_IFS
1655
1656 } >&5
1657
1658 cat >&5 <<_ACEOF
1659
1660
1661 ## ----------- ##
1662 ## Core tests. ##
1663 ## ----------- ##
1664
1665 _ACEOF
1666
1667
1668 # Keep a trace of the command line.
1669 # Strip out --no-create and --no-recursion so they do not pile up.
1670 # Strip out --silent because we don't want to record it for future runs.
1671 # Also quote any args containing shell meta-characters.
1672 # Make two passes to allow for proper duplicate-argument suppression.
1673 ac_configure_args=
1674 ac_configure_args0=
1675 ac_configure_args1=
1676 ac_must_keep_next=false
1677 for ac_pass in 1 2
1678 do
1679 for ac_arg
1680 do
1681 case $ac_arg in
1682 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684 | -silent | --silent | --silen | --sile | --sil)
1685 continue ;;
1686 *\'*)
1687 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688 esac
1689 case $ac_pass in
1690 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 2)
1692 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693 if test $ac_must_keep_next = true; then
1694 ac_must_keep_next=false # Got value, back to normal.
1695 else
1696 case $ac_arg in
1697 *=* | --config-cache | -C | -disable-* | --disable-* \
1698 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700 | -with-* | --with-* | -without-* | --without-* | --x)
1701 case "$ac_configure_args0 " in
1702 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 esac
1704 ;;
1705 -* ) ac_must_keep_next=true ;;
1706 esac
1707 fi
1708 ac_configure_args="$ac_configure_args '$ac_arg'"
1709 ;;
1710 esac
1711 done
1712 done
1713 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715
1716 # When interrupted or exit'd, cleanup temporary files, and complete
1717 # config.log. We remove comments because anyway the quotes in there
1718 # would cause problems or look ugly.
1719 # WARNING: Use '\'' to represent an apostrophe within the trap.
1720 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721 trap 'exit_status=$?
1722 # Save into config.log some information that might help in debugging.
1723 {
1724 echo
1725
1726 cat <<\_ASBOX
1727 ## ---------------- ##
1728 ## Cache variables. ##
1729 ## ---------------- ##
1730 _ASBOX
1731 echo
1732 # The following way of writing the cache mishandles newlines in values,
1733 (
1734 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735 eval ac_val=\$$ac_var
1736 case $ac_val in #(
1737 *${as_nl}*)
1738 case $ac_var in #(
1739 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1740 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741 esac
1742 case $ac_var in #(
1743 _ | IFS | as_nl) ;; #(
1744 *) $as_unset $ac_var ;;
1745 esac ;;
1746 esac
1747 done
1748 (set) 2>&1 |
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1751 sed -n \
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 ;; #(
1755 *)
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 ;;
1758 esac |
1759 sort
1760 )
1761 echo
1762
1763 cat <<\_ASBOX
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1767 _ASBOX
1768 echo
1769 for ac_var in $ac_subst_vars
1770 do
1771 eval ac_val=\$$ac_var
1772 case $ac_val in
1773 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 esac
1775 echo "$ac_var='\''$ac_val'\''"
1776 done | sort
1777 echo
1778
1779 if test -n "$ac_subst_files"; then
1780 cat <<\_ASBOX
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1784 _ASBOX
1785 echo
1786 for ac_var in $ac_subst_files
1787 do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 echo "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1795 fi
1796
1797 if test -s confdefs.h; then
1798 cat <<\_ASBOX
1799 ## ----------- ##
1800 ## confdefs.h. ##
1801 ## ----------- ##
1802 _ASBOX
1803 echo
1804 cat confdefs.h
1805 echo
1806 fi
1807 test "$ac_signal" != 0 &&
1808 echo "$as_me: caught signal $ac_signal"
1809 echo "$as_me: exit $exit_status"
1810 } >&5
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 exit $exit_status
1814 ' 0
1815 for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817 done
1818 ac_signal=0
1819
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1822
1823 # Predefined preprocessor variables.
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847 _ACEOF
1848
1849
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer explicitly selected file to automatically selected ones.
1852 if test -n "$CONFIG_SITE"; then
1853 set x "$CONFIG_SITE"
1854 elif test "x$prefix" != xNONE; then
1855 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856 else
1857 set x "$ac_default_prefix/share/config.site" \
1858 "$ac_default_prefix/etc/config.site"
1859 fi
1860 shift
1861 for ac_site_file
1862 do
1863 if test -r "$ac_site_file"; then
1864 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865 echo "$as_me: loading site script $ac_site_file" >&6;}
1866 sed 's/^/| /' "$ac_site_file" >&5
1867 . "$ac_site_file"
1868 fi
1869 done
1870
1871 if test -r "$cache_file"; then
1872 # Some versions of bash will fail to source /dev/null (special
1873 # files actually), so we avoid doing that.
1874 if test -f "$cache_file"; then
1875 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876 echo "$as_me: loading cache $cache_file" >&6;}
1877 case $cache_file in
1878 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879 *) . "./$cache_file";;
1880 esac
1881 fi
1882 else
1883 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884 echo "$as_me: creating cache $cache_file" >&6;}
1885 >$cache_file
1886 fi
1887
1888 # Check that the precious variables saved in the cache have kept the same
1889 # value.
1890 ac_cache_corrupted=false
1891 for ac_var in $ac_precious_vars; do
1892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893 eval ac_new_set=\$ac_env_${ac_var}_set
1894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895 eval ac_new_val=\$ac_env_${ac_var}_value
1896 case $ac_old_set,$ac_new_set in
1897 set,)
1898 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,set)
1902 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,);;
1906 *)
1907 if test "x$ac_old_val" != "x$ac_new_val"; then
1908 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1911 echo "$as_me: former value: $ac_old_val" >&2;}
1912 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1913 echo "$as_me: current value: $ac_new_val" >&2;}
1914 ac_cache_corrupted=:
1915 fi;;
1916 esac
1917 # Pass precious variables to config.status.
1918 if test "$ac_new_set" = set; then
1919 case $ac_new_val in
1920 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 *) ac_arg=$ac_var=$ac_new_val ;;
1922 esac
1923 case " $ac_configure_args " in
1924 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1925 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926 esac
1927 fi
1928 done
1929 if $ac_cache_corrupted; then
1930 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1934 { (exit 1); exit 1; }; }
1935 fi
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961 ac_ext=c
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966
1967
1968 am__api_version='1.10'
1969
1970 ac_aux_dir=
1971 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1972 if test -f "$ac_dir/install-sh"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install-sh -c"
1975 break
1976 elif test -f "$ac_dir/install.sh"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install.sh -c"
1979 break
1980 elif test -f "$ac_dir/shtool"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/shtool install -c"
1983 break
1984 fi
1985 done
1986 if test -z "$ac_aux_dir"; then
1987 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1988 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1989 { (exit 1); exit 1; }; }
1990 fi
1991
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999
2000
2001 # Find a good install program. We prefer a C program (faster),
2002 # so one script is as good as another. But avoid the broken or
2003 # incompatible versions:
2004 # SysV /etc/install, /usr/sbin/install
2005 # SunOS /usr/etc/install
2006 # IRIX /sbin/install
2007 # AIX /bin/install
2008 # AmigaOS /C/install, which installs bootblocks on floppy discs
2009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2012 # OS/2's system install, which has a completely different semantic
2013 # ./install, which can be erroneously created by make from ./install.sh.
2014 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2015 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2016 if test -z "$INSTALL"; then
2017 if test "${ac_cv_path_install+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 # Account for people who put trailing slashes in PATH elements.
2026 case $as_dir/ in
2027 ./ | .// | /cC/* | \
2028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2029 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2030 /usr/ucb/* ) ;;
2031 *)
2032 # OSF1 and SCO ODT 3.0 have their own names for install.
2033 # Don't use installbsd from OSF since it installs stuff as root
2034 # by default.
2035 for ac_prog in ginstall scoinst install; do
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2038 if test $ac_prog = install &&
2039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040 # AIX install. It has an incompatible calling convention.
2041 :
2042 elif test $ac_prog = install &&
2043 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # program-specific install script used by HP pwplus--don't use.
2045 :
2046 else
2047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2048 break 3
2049 fi
2050 fi
2051 done
2052 done
2053 ;;
2054 esac
2055 done
2056 IFS=$as_save_IFS
2057
2058
2059 fi
2060 if test "${ac_cv_path_install+set}" = set; then
2061 INSTALL=$ac_cv_path_install
2062 else
2063 # As a last resort, use the slow shell script. Don't cache a
2064 # value for INSTALL within a source directory, because that will
2065 # break other packages using the cache if that directory is
2066 # removed, or if the value is a relative name.
2067 INSTALL=$ac_install_sh
2068 fi
2069 fi
2070 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2071 echo "${ECHO_T}$INSTALL" >&6; }
2072
2073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2074 # It thinks the first close brace ends the variable substitution.
2075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2076
2077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2078
2079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2080
2081 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2082 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2083 # Just in case
2084 sleep 1
2085 echo timestamp > conftest.file
2086 # Do `set' in a subshell so we don't clobber the current shell's
2087 # arguments. Must try -L first in case configure is actually a
2088 # symlink; some systems play weird games with the mod time of symlinks
2089 # (eg FreeBSD returns the mod time of the symlink's containing
2090 # directory).
2091 if (
2092 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2093 if test "$*" = "X"; then
2094 # -L didn't work.
2095 set X `ls -t $srcdir/configure conftest.file`
2096 fi
2097 rm -f conftest.file
2098 if test "$*" != "X $srcdir/configure conftest.file" \
2099 && test "$*" != "X conftest.file $srcdir/configure"; then
2100
2101 # If neither matched, then we have a broken ls. This can happen
2102 # if, for instance, CONFIG_SHELL is bash and it inherits a
2103 # broken ls alias from the environment. This has actually
2104 # happened. Such a system could not be considered "sane".
2105 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2106 alias in your environment" >&5
2107 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2108 alias in your environment" >&2;}
2109 { (exit 1); exit 1; }; }
2110 fi
2111
2112 test "$2" = conftest.file
2113 )
2114 then
2115 # Ok.
2116 :
2117 else
2118 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2119 Check your system clock" >&5
2120 echo "$as_me: error: newly created file is older than distributed files!
2121 Check your system clock" >&2;}
2122 { (exit 1); exit 1; }; }
2123 fi
2124 { echo "$as_me:$LINENO: result: yes" >&5
2125 echo "${ECHO_T}yes" >&6; }
2126 test "$program_prefix" != NONE &&
2127 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2128 # Use a double $ so make ignores it.
2129 test "$program_suffix" != NONE &&
2130 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2131 # Double any \ or $. echo might interpret backslashes.
2132 # By default was `s,x,x', remove it if useless.
2133 cat <<\_ACEOF >conftest.sed
2134 s/[\\$]/&&/g;s/;s,x,x,$//
2135 _ACEOF
2136 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2137 rm -f conftest.sed
2138
2139 # expand $ac_aux_dir to an absolute path
2140 am_aux_dir=`cd $ac_aux_dir && pwd`
2141
2142 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2143 # Use eval to expand $SHELL
2144 if eval "$MISSING --run true"; then
2145 am_missing_run="$MISSING --run "
2146 else
2147 am_missing_run=
2148 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2149 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2150 fi
2151
2152 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2153 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2154 if test -z "$MKDIR_P"; then
2155 if test "${ac_cv_path_mkdir+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2160 do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_prog in mkdir gmkdir; do
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2166 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2167 'mkdir (GNU coreutils) '* | \
2168 'mkdir (coreutils) '* | \
2169 'mkdir (fileutils) '4.1*)
2170 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2171 break 3;;
2172 esac
2173 done
2174 done
2175 done
2176 IFS=$as_save_IFS
2177
2178 fi
2179
2180 if test "${ac_cv_path_mkdir+set}" = set; then
2181 MKDIR_P="$ac_cv_path_mkdir -p"
2182 else
2183 # As a last resort, use the slow shell script. Don't cache a
2184 # value for MKDIR_P within a source directory, because that will
2185 # break other packages using the cache if that directory is
2186 # removed, or if the value is a relative name.
2187 test -d ./--version && rmdir ./--version
2188 MKDIR_P="$ac_install_sh -d"
2189 fi
2190 fi
2191 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2192 echo "${ECHO_T}$MKDIR_P" >&6; }
2193
2194 mkdir_p="$MKDIR_P"
2195 case $mkdir_p in
2196 [\\/$]* | ?:[\\/]*) ;;
2197 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2198 esac
2199
2200 for ac_prog in gawk mawk nawk awk
2201 do
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206 if test "${ac_cv_prog_AWK+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 if test -n "$AWK"; then
2210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_AWK="$ac_prog"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2222 fi
2223 done
2224 done
2225 IFS=$as_save_IFS
2226
2227 fi
2228 fi
2229 AWK=$ac_cv_prog_AWK
2230 if test -n "$AWK"; then
2231 { echo "$as_me:$LINENO: result: $AWK" >&5
2232 echo "${ECHO_T}$AWK" >&6; }
2233 else
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 fi
2237
2238
2239 test -n "$AWK" && break
2240 done
2241
2242 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2243 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2244 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2245 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 cat >conftest.make <<\_ACEOF
2249 SHELL = /bin/sh
2250 all:
2251 @echo '@@@%%%=$(MAKE)=@@@%%%'
2252 _ACEOF
2253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2254 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2255 *@@@%%%=?*=@@@%%%*)
2256 eval ac_cv_prog_make_${ac_make}_set=yes;;
2257 *)
2258 eval ac_cv_prog_make_${ac_make}_set=no;;
2259 esac
2260 rm -f conftest.make
2261 fi
2262 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2263 { echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6; }
2265 SET_MAKE=
2266 else
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2269 SET_MAKE="MAKE=${MAKE-make}"
2270 fi
2271
2272 rm -rf .tst 2>/dev/null
2273 mkdir .tst 2>/dev/null
2274 if test -d .tst; then
2275 am__leading_dot=.
2276 else
2277 am__leading_dot=_
2278 fi
2279 rmdir .tst 2>/dev/null
2280
2281 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2282 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2283 # is not polluted with repeated "-I."
2284 am__isrc=' -I$(srcdir)'
2285 # test to see if srcdir already configured
2286 if test -f $srcdir/config.status; then
2287 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2288 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2289 { (exit 1); exit 1; }; }
2290 fi
2291 fi
2292
2293 # test whether we have cygpath
2294 if test -z "$CYGPATH_W"; then
2295 if (cygpath --version) >/dev/null 2>/dev/null; then
2296 CYGPATH_W='cygpath -w'
2297 else
2298 CYGPATH_W=echo
2299 fi
2300 fi
2301
2302
2303 # Define the identity of the package.
2304 PACKAGE=libratbox
2305 VERSION=devel
2306
2307
2308 # Some tools Automake needs.
2309
2310 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2311
2312
2313 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2314
2315
2316 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2317
2318
2319 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2320
2321
2322 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2323
2324 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2325
2326 # Installed binaries are usually stripped using `strip' when the user
2327 # run `make install-strip'. However `strip' might not be the right
2328 # tool to use in cross-compilation environments, therefore Automake
2329 # will honor the `STRIP' environment variable to overrule this program.
2330 if test "$cross_compiling" != no; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2333 set dummy ${ac_tool_prefix}strip; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_STRIP+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 if test -n "$STRIP"; then
2340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 STRIP=$ac_cv_prog_STRIP
2360 if test -n "$STRIP"; then
2361 { echo "$as_me:$LINENO: result: $STRIP" >&5
2362 echo "${ECHO_T}$STRIP" >&6; }
2363 else
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2366 fi
2367
2368
2369 fi
2370 if test -z "$ac_cv_prog_STRIP"; then
2371 ac_ct_STRIP=$STRIP
2372 # Extract the first word of "strip", so it can be a program name with args.
2373 set dummy strip; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$ac_ct_STRIP"; then
2380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_ac_ct_STRIP="strip"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2392 fi
2393 done
2394 done
2395 IFS=$as_save_IFS
2396
2397 fi
2398 fi
2399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2400 if test -n "$ac_ct_STRIP"; then
2401 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2402 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2403 else
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2406 fi
2407
2408 if test "x$ac_ct_STRIP" = x; then
2409 STRIP=":"
2410 else
2411 case $cross_compiling:$ac_tool_warned in
2412 yes:)
2413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet. If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&5
2416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2419 ac_tool_warned=yes ;;
2420 esac
2421 STRIP=$ac_ct_STRIP
2422 fi
2423 else
2424 STRIP="$ac_cv_prog_STRIP"
2425 fi
2426
2427 fi
2428 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2429
2430 # We need awk for the "check" target. The system "awk" is bad on
2431 # some platforms.
2432 # Always define AMTAR for backward compatibility.
2433
2434 AMTAR=${AMTAR-"${am_missing_run}tar"}
2435
2436 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2437
2438
2439
2440
2441
2442
2443 ac_config_headers="$ac_config_headers include/libratbox_config.h"
2444
2445
2446
2447
2448 cat >>confdefs.h <<\_ACEOF
2449 #define _GNU_SOURCE 1
2450 _ACEOF
2451
2452
2453
2454 DEPDIR="${am__leading_dot}deps"
2455
2456 ac_config_commands="$ac_config_commands depfiles"
2457
2458
2459 am_make=${MAKE-make}
2460 cat > confinc << 'END'
2461 am__doit:
2462 @echo done
2463 .PHONY: am__doit
2464 END
2465 # If we don't find an include directive, just comment out the code.
2466 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2467 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2468 am__include="#"
2469 am__quote=
2470 _am_result=none
2471 # First try GNU make style include.
2472 echo "include confinc" > confmf
2473 # We grep out `Entering directory' and `Leaving directory'
2474 # messages which can occur if `w' ends up in MAKEFLAGS.
2475 # In particular we don't look at `^make:' because GNU make might
2476 # be invoked under some other name (usually "gmake"), in which
2477 # case it prints its new name instead of `make'.
2478 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2479 am__include=include
2480 am__quote=
2481 _am_result=GNU
2482 fi
2483 # Now try BSD make style include.
2484 if test "$am__include" = "#"; then
2485 echo '.include "confinc"' > confmf
2486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2487 am__include=.include
2488 am__quote="\""
2489 _am_result=BSD
2490 fi
2491 fi
2492
2493
2494 { echo "$as_me:$LINENO: result: $_am_result" >&5
2495 echo "${ECHO_T}$_am_result" >&6; }
2496 rm -f confinc confmf
2497
2498 # Check whether --enable-dependency-tracking was given.
2499 if test "${enable_dependency_tracking+set}" = set; then
2500 enableval=$enable_dependency_tracking;
2501 fi
2502
2503 if test "x$enable_dependency_tracking" != xno; then
2504 am_depcomp="$ac_aux_dir/depcomp"
2505 AMDEPBACKSLASH='\'
2506 fi
2507 if test "x$enable_dependency_tracking" != xno; then
2508 AMDEP_TRUE=
2509 AMDEP_FALSE='#'
2510 else
2511 AMDEP_TRUE='#'
2512 AMDEP_FALSE=
2513 fi
2514
2515
2516 ac_ext=c
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521 if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551 { echo "$as_me:$LINENO: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6; }
2553 else
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2556 fi
2557
2558
2559 fi
2560 if test -z "$ac_cv_prog_CC"; then
2561 ac_ct_CC=$CC
2562 # Extract the first word of "gcc", so it can be a program name with args.
2563 set dummy gcc; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_CC="gcc"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 echo "${ECHO_T}$ac_ct_CC" >&6; }
2593 else
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2596 fi
2597
2598 if test "x$ac_ct_CC" = x; then
2599 CC=""
2600 else
2601 case $cross_compiling:$ac_tool_warned in
2602 yes:)
2603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&5
2606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2607 whose name does not start with the host triplet. If you think this
2608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2609 ac_tool_warned=yes ;;
2610 esac
2611 CC=$ac_ct_CC
2612 fi
2613 else
2614 CC="$ac_cv_prog_CC"
2615 fi
2616
2617 if test -z "$CC"; then
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}cc; 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}cc"
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 fi
2657 fi
2658 if test -z "$CC"; then
2659 # Extract the first word of "cc", so it can be a program name with args.
2660 set dummy cc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 ac_prog_rejected=no
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2678 ac_prog_rejected=yes
2679 continue
2680 fi
2681 ac_cv_prog_CC="cc"
2682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 if test $ac_prog_rejected = yes; then
2690 # We found a bogon in the path, so make sure we never use it.
2691 set dummy $ac_cv_prog_CC
2692 shift
2693 if test $# != 0; then
2694 # We chose a different compiler from the bogus one.
2695 # However, it has the same basename, so the bogon will be chosen
2696 # first if we set CC to just the basename; use the full file name.
2697 shift
2698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2699 fi
2700 fi
2701 fi
2702 fi
2703 CC=$ac_cv_prog_CC
2704 if test -n "$CC"; then
2705 { echo "$as_me:$LINENO: result: $CC" >&5
2706 echo "${ECHO_T}$CC" >&6; }
2707 else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2710 fi
2711
2712
2713 fi
2714 if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 for ac_prog in cl.exe
2717 do
2718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2722 if test "${ac_cv_prog_CC+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747 { echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6; }
2749 else
2750 { echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6; }
2752 fi
2753
2754
2755 test -n "$CC" && break
2756 done
2757 fi
2758 if test -z "$CC"; then
2759 ac_ct_CC=$CC
2760 for ac_prog in cl.exe
2761 do
2762 # Extract the first word of "$ac_prog", so it can be a program name with args.
2763 set dummy $ac_prog; ac_word=$2
2764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_CC="$ac_prog"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792 echo "${ECHO_T}$ac_ct_CC" >&6; }
2793 else
2794 { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2796 fi
2797
2798
2799 test -n "$ac_ct_CC" && break
2800 done
2801
2802 if test "x$ac_ct_CC" = x; then
2803 CC=""
2804 else
2805 case $cross_compiling:$ac_tool_warned in
2806 yes:)
2807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet. If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&5
2810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2811 whose name does not start with the host triplet. If you think this
2812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2813 ac_tool_warned=yes ;;
2814 esac
2815 CC=$ac_ct_CC
2816 fi
2817 fi
2818
2819 fi
2820
2821
2822 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: no acceptable C compiler found in \$PATH
2825 See \`config.log' for more details." >&2;}
2826 { (exit 1); exit 1; }; }
2827
2828 # Provide some information about the compiler.
2829 echo "$as_me:$LINENO: checking for C compiler version" >&5
2830 ac_compiler=`set X $ac_compile; echo $2`
2831 { (ac_try="$ac_compiler --version >&5"
2832 case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compiler --version >&5") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841 { (ac_try="$ac_compiler -v >&5"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compiler -v >&5") 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851 { (ac_try="$ac_compiler -V >&5"
2852 case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compiler -V >&5") 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861
2862 cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868
2869 int
2870 main ()
2871 {
2872
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 ac_clean_files_save=$ac_clean_files
2878 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2879 # Try to create an executable without -o first, disregard a.out.
2880 # It will help us diagnose broken compilers, and finding out an intuition
2881 # of exeext.
2882 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2883 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2884 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2885 #
2886 # List of possible output files, starting from the most likely.
2887 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2888 # only as a last resort. b.out is created by i960 compilers.
2889 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2890 #
2891 # The IRIX 6 linker writes into existing files which may not be
2892 # executable, retaining their permissions. Remove them first so a
2893 # subsequent execution test works.
2894 ac_rmfiles=
2895 for ac_file in $ac_files
2896 do
2897 case $ac_file in
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2899 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2900 esac
2901 done
2902 rm -f $ac_rmfiles
2903
2904 if { (ac_try="$ac_link_default"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_link_default") 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2916 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2917 # so that the user can short-circuit this test for compilers unknown to
2918 # Autoconf.
2919 for ac_file in $ac_files ''
2920 do
2921 test -f "$ac_file" || continue
2922 case $ac_file in
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2924 ;;
2925 [ab].out )
2926 # We found the default executable, but exeext='' is most
2927 # certainly right.
2928 break;;
2929 *.* )
2930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2931 then :; else
2932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933 fi
2934 # We set ac_cv_exeext here because the later test for it is not
2935 # safe: cross compilers may not add the suffix if given an `-o'
2936 # argument, so we may need to know it at that point already.
2937 # Even if this section looks crufty: it has the advantage of
2938 # actually working.
2939 break;;
2940 * )
2941 break;;
2942 esac
2943 done
2944 test "$ac_cv_exeext" = no && ac_cv_exeext=
2945
2946 else
2947 ac_file=''
2948 fi
2949
2950 { echo "$as_me:$LINENO: result: $ac_file" >&5
2951 echo "${ECHO_T}$ac_file" >&6; }
2952 if test -z "$ac_file"; then
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2957 See \`config.log' for more details." >&5
2958 echo "$as_me: error: C compiler cannot create executables
2959 See \`config.log' for more details." >&2;}
2960 { (exit 77); exit 77; }; }
2961 fi
2962
2963 ac_exeext=$ac_cv_exeext
2964
2965 # Check that the compiler produces executables we can run. If not, either
2966 # the compiler is broken, or we cross compile.
2967 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2968 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2969 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2970 # If not cross compiling, check that we can run a simple program.
2971 if test "$cross_compiling" != yes; then
2972 if { ac_try='./$ac_file'
2973 { (case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_try") 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 cross_compiling=no
2983 else
2984 if test "$cross_compiling" = maybe; then
2985 cross_compiling=yes
2986 else
2987 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2988 If you meant to cross compile, use \`--host'.
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: cannot run C compiled programs.
2991 If you meant to cross compile, use \`--host'.
2992 See \`config.log' for more details." >&2;}
2993 { (exit 1); exit 1; }; }
2994 fi
2995 fi
2996 fi
2997 { echo "$as_me:$LINENO: result: yes" >&5
2998 echo "${ECHO_T}yes" >&6; }
2999
3000 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3001 ac_clean_files=$ac_clean_files_save
3002 # Check that the compiler produces executables we can run. If not, either
3003 # the compiler is broken, or we cross compile.
3004 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3005 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3006 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3007 echo "${ECHO_T}$cross_compiling" >&6; }
3008
3009 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3010 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3011 if { (ac_try="$ac_link"
3012 case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_link") 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; then
3021 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3022 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3023 # work properly (i.e., refer to `conftest.exe'), while it won't with
3024 # `rm'.
3025 for ac_file in conftest.exe conftest conftest.*; do
3026 test -f "$ac_file" || continue
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3029 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 break;;
3031 * ) break;;
3032 esac
3033 done
3034 else
3035 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3040 fi
3041
3042 rm -f conftest$ac_cv_exeext
3043 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3044 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3045
3046 rm -f conftest.$ac_ext
3047 EXEEXT=$ac_cv_exeext
3048 ac_exeext=$EXEEXT
3049 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3050 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3051 if test "${ac_cv_objext+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060
3061 int
3062 main ()
3063 {
3064
3065 ;
3066 return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.o conftest.obj
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; then
3080 for ac_file in conftest.o conftest.obj conftest.*; do
3081 test -f "$ac_file" || continue;
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3085 break;;
3086 esac
3087 done
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3097 fi
3098
3099 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3100 fi
3101 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3102 echo "${ECHO_T}$ac_cv_objext" >&6; }
3103 OBJEXT=$ac_cv_objext
3104 ac_objext=$OBJEXT
3105 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3106 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3107 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
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 #ifndef __GNUC__
3121 choke me
3122 #endif
3123
3124 ;
3125 return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } && {
3142 test -z "$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 } && test -s conftest.$ac_objext; then
3145 ac_compiler_gnu=yes
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 ac_compiler_gnu=no
3151 fi
3152
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3155
3156 fi
3157 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3158 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3159 GCC=`test $ac_compiler_gnu = yes && echo yes`
3160 ac_test_CFLAGS=${CFLAGS+set}
3161 ac_save_CFLAGS=$CFLAGS
3162 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3164 if test "${ac_cv_prog_cc_g+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 ac_save_c_werror_flag=$ac_c_werror_flag
3168 ac_c_werror_flag=yes
3169 ac_cv_prog_cc_g=no
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3177
3178 int
3179 main ()
3180 {
3181
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && {
3200 test -z "$ac_c_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3203 ac_cv_prog_cc_g=yes
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 CFLAGS=""
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215
3216 int
3217 main ()
3218 {
3219
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3241 :
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3247 CFLAGS="-g"
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h. */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3254
3255 int
3256 main ()
3257 {
3258
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 rm -f conftest.$ac_objext
3264 if { (ac_try="$ac_compile"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3271 ac_status=$?
3272 grep -v '^ *+' conftest.er1 >conftest.err
3273 rm -f conftest.er1
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3280 ac_cv_prog_cc_g=yes
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285
3286 fi
3287
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 fi
3290
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 fi
3293
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3296 fi
3297 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3298 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3299 if test "$ac_test_CFLAGS" = set; then
3300 CFLAGS=$ac_save_CFLAGS
3301 elif test $ac_cv_prog_cc_g = yes; then
3302 if test "$GCC" = yes; then
3303 CFLAGS="-g -O2"
3304 else
3305 CFLAGS="-g"
3306 fi
3307 else
3308 if test "$GCC" = yes; then
3309 CFLAGS="-O2"
3310 else
3311 CFLAGS=
3312 fi
3313 fi
3314 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3315 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3316 if test "${ac_cv_prog_cc_c89+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 ac_cv_prog_cc_c89=no
3320 ac_save_CC=$CC
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <stdarg.h>
3328 #include <stdio.h>
3329 #include <sys/types.h>
3330 #include <sys/stat.h>
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3335 char **p;
3336 int i;
3337 {
3338 return p[i];
3339 }
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3341 {
3342 char *s;
3343 va_list v;
3344 va_start (v,p);
3345 s = g (p, va_arg (v,int));
3346 va_end (v);
3347 return s;
3348 }
3349
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3358
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3361 #define FOO(x) 'x'
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3363
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3370 int
3371 main ()
3372 {
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380 do
3381 CC="$ac_save_CC $ac_arg"
3382 rm -f conftest.$ac_objext
3383 if { (ac_try="$ac_compile"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_compile") 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } && {
3396 test -z "$ac_c_werror_flag" ||
3397 test ! -s conftest.err
3398 } && test -s conftest.$ac_objext; then
3399 ac_cv_prog_cc_c89=$ac_arg
3400 else
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404
3405 fi
3406
3407 rm -f core conftest.err conftest.$ac_objext
3408 test "x$ac_cv_prog_cc_c89" != "xno" && break
3409 done
3410 rm -f conftest.$ac_ext
3411 CC=$ac_save_CC
3412
3413 fi
3414 # AC_CACHE_VAL
3415 case "x$ac_cv_prog_cc_c89" in
3416 x)
3417 { echo "$as_me:$LINENO: result: none needed" >&5
3418 echo "${ECHO_T}none needed" >&6; } ;;
3419 xno)
3420 { echo "$as_me:$LINENO: result: unsupported" >&5
3421 echo "${ECHO_T}unsupported" >&6; } ;;
3422 *)
3423 CC="$CC $ac_cv_prog_cc_c89"
3424 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3425 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3426 esac
3427
3428
3429 ac_ext=c
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
3435 depcc="$CC" am_compiler_list=
3436
3437 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3438 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3439 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3443 # We make a subdir and do the tests there. Otherwise we can end up
3444 # making bogus files that we don't know about and never remove. For
3445 # instance it was reported that on HP-UX the gcc test will end up
3446 # making a dummy file named `D' -- because `-MD' means `put the output
3447 # in D'.
3448 mkdir conftest.dir
3449 # Copy depcomp to subdir because otherwise we won't find it if we're
3450 # using a relative directory.
3451 cp "$am_depcomp" conftest.dir
3452 cd conftest.dir
3453 # We will build objects and dependencies in a subdirectory because
3454 # it helps to detect inapplicable dependency modes. For instance
3455 # both Tru64's cc and ICC support -MD to output dependencies as a
3456 # side effect of compilation, but ICC will put the dependencies in
3457 # the current directory while Tru64 will put them in the object
3458 # directory.
3459 mkdir sub
3460
3461 am_cv_CC_dependencies_compiler_type=none
3462 if test "$am_compiler_list" = ""; then
3463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3464 fi
3465 for depmode in $am_compiler_list; do
3466 # Setup a source with many dependencies, because some compilers
3467 # like to wrap large dependency lists on column 80 (with \), and
3468 # we should not choose a depcomp mode which is confused by this.
3469 #
3470 # We need to recreate these files for each test, as the compiler may
3471 # overwrite some of them when testing with obscure command lines.
3472 # This happens at least with the AIX C compiler.
3473 : > sub/conftest.c
3474 for i in 1 2 3 4 5 6; do
3475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3476 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3477 # Solaris 8's {/usr,}/bin/sh.
3478 touch sub/conftst$i.h
3479 done
3480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3481
3482 case $depmode in
3483 nosideeffect)
3484 # after this tag, mechanisms are not by side-effect, so they'll
3485 # only be used when explicitly requested
3486 if test "x$enable_dependency_tracking" = xyes; then
3487 continue
3488 else
3489 break
3490 fi
3491 ;;
3492 none) break ;;
3493 esac
3494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3495 # mode. It turns out that the SunPro C++ compiler does not properly
3496 # handle `-M -o', and we need to detect this.
3497 if depmode=$depmode \
3498 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3500 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3501 >/dev/null 2>conftest.err &&
3502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # or remarks (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored or not supported.
3509 # When given -MP, icc 7.0 and 7.1 complain thusly:
3510 # icc: Command line warning: ignoring option '-M'; no argument required
3511 # The diagnosis changed in icc 8.0:
3512 # icc: Command line remark: option '-MP' not supported
3513 if (grep 'ignoring option' conftest.err ||
3514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3515 am_cv_CC_dependencies_compiler_type=$depmode
3516 break
3517 fi
3518 fi
3519 done
3520
3521 cd ..
3522 rm -rf conftest.dir
3523 else
3524 am_cv_CC_dependencies_compiler_type=none
3525 fi
3526
3527 fi
3528 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3529 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3531
3532 if
3533 test "x$enable_dependency_tracking" != xno \
3534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3535 am__fastdepCC_TRUE=
3536 am__fastdepCC_FALSE='#'
3537 else
3538 am__fastdepCC_TRUE='#'
3539 am__fastdepCC_FALSE=
3540 fi
3541
3542
3543 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3544 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3545 if test "${ac_cv_prog_cc_c99+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 ac_cv_prog_cc_c99=no
3549 ac_save_CC=$CC
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #include <stdarg.h>
3557 #include <stdbool.h>
3558 #include <stdlib.h>
3559 #include <wchar.h>
3560 #include <stdio.h>
3561
3562 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3563 #define debug(...) fprintf (stderr, __VA_ARGS__)
3564 #define showlist(...) puts (#__VA_ARGS__)
3565 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3566 static void
3567 test_varargs_macros (void)
3568 {
3569 int x = 1234;
3570 int y = 5678;
3571 debug ("Flag");
3572 debug ("X = %d\n", x);
3573 showlist (The first, second, and third items.);
3574 report (x>y, "x is %d but y is %d", x, y);
3575 }
3576
3577 // Check long long types.
3578 #define BIG64 18446744073709551615ull
3579 #define BIG32 4294967295ul
3580 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3581 #if !BIG_OK
3582 your preprocessor is broken;
3583 #endif
3584 #if BIG_OK
3585 #else
3586 your preprocessor is broken;
3587 #endif
3588 static long long int bignum = -9223372036854775807LL;
3589 static unsigned long long int ubignum = BIG64;
3590
3591 struct incomplete_array
3592 {
3593 int datasize;
3594 double data[];
3595 };
3596
3597 struct named_init {
3598 int number;
3599 const wchar_t *name;
3600 double average;
3601 };
3602
3603 typedef const char *ccp;
3604
3605 static inline int
3606 test_restrict (ccp restrict text)
3607 {
3608 // See if C++-style comments work.
3609 // Iterate through items via the restricted pointer.
3610 // Also check for declarations in for loops.
3611 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3612 continue;
3613 return 0;
3614 }
3615
3616 // Check varargs and va_copy.
3617 static void
3618 test_varargs (const char *format, ...)
3619 {
3620 va_list args;
3621 va_start (args, format);
3622 va_list args_copy;
3623 va_copy (args_copy, args);
3624
3625 const char *str;
3626 int number;
3627 float fnumber;
3628
3629 while (*format)
3630 {
3631 switch (*format++)
3632 {
3633 case 's': // string
3634 str = va_arg (args_copy, const char *);
3635 break;
3636 case 'd': // int
3637 number = va_arg (args_copy, int);
3638 break;
3639 case 'f': // float
3640 fnumber = va_arg (args_copy, double);
3641 break;
3642 default:
3643 break;
3644 }
3645 }
3646 va_end (args_copy);
3647 va_end (args);
3648 }
3649
3650 int
3651 main ()
3652 {
3653
3654 // Check bool.
3655 _Bool success = false;
3656
3657 // Check restrict.
3658 if (test_restrict ("String literal") == 0)
3659 success = true;
3660 char *restrict newvar = "Another string";
3661
3662 // Check varargs.
3663 test_varargs ("s, d' f .", "string", 65, 34.234);
3664 test_varargs_macros ();
3665
3666 // Check flexible array members.
3667 struct incomplete_array *ia =
3668 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3669 ia->datasize = 10;
3670 for (int i = 0; i < ia->datasize; ++i)
3671 ia->data[i] = i * 1.234;
3672
3673 // Check named initializers.
3674 struct named_init ni = {
3675 .number = 34,
3676 .name = L"Test wide string",
3677 .average = 543.34343,
3678 };
3679
3680 ni.number = 58;
3681
3682 int dynamic_array[ni.number];
3683 dynamic_array[ni.number - 1] = 543;
3684
3685 // work around unused variable warnings
3686 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3687 || dynamic_array[ni.number - 1] != 543);
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3694 do
3695 CC="$ac_save_CC $ac_arg"
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_prog_cc_c99=$ac_arg
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c99" != "xno" && break
3723 done
3724 rm -f conftest.$ac_ext
3725 CC=$ac_save_CC
3726
3727 fi
3728 # AC_CACHE_VAL
3729 case "x$ac_cv_prog_cc_c99" in
3730 x)
3731 { echo "$as_me:$LINENO: result: none needed" >&5
3732 echo "${ECHO_T}none needed" >&6; } ;;
3733 xno)
3734 { echo "$as_me:$LINENO: result: unsupported" >&5
3735 echo "${ECHO_T}unsupported" >&6; } ;;
3736 *)
3737 CC="$CC $ac_cv_prog_cc_c99"
3738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3739 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3740 esac
3741
3742
3743
3744
3745 if test x"$ac_cv_prog_cc_c99" = "xno"; then
3746 { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
3747 echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
3748 { (exit 1); exit 1; }; }
3749 fi
3750
3751
3752 # Find a good install program. We prefer a C program (faster),
3753 # so one script is as good as another. But avoid the broken or
3754 # incompatible versions:
3755 # SysV /etc/install, /usr/sbin/install
3756 # SunOS /usr/etc/install
3757 # IRIX /sbin/install
3758 # AIX /bin/install
3759 # AmigaOS /C/install, which installs bootblocks on floppy discs
3760 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3761 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3762 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3763 # OS/2's system install, which has a completely different semantic
3764 # ./install, which can be erroneously created by make from ./install.sh.
3765 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3766 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3767 if test -z "$INSTALL"; then
3768 if test "${ac_cv_path_install+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 # Account for people who put trailing slashes in PATH elements.
3777 case $as_dir/ in
3778 ./ | .// | /cC/* | \
3779 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3780 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3781 /usr/ucb/* ) ;;
3782 *)
3783 # OSF1 and SCO ODT 3.0 have their own names for install.
3784 # Don't use installbsd from OSF since it installs stuff as root
3785 # by default.
3786 for ac_prog in ginstall scoinst install; do
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3789 if test $ac_prog = install &&
3790 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3791 # AIX install. It has an incompatible calling convention.
3792 :
3793 elif test $ac_prog = install &&
3794 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3795 # program-specific install script used by HP pwplus--don't use.
3796 :
3797 else
3798 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3799 break 3
3800 fi
3801 fi
3802 done
3803 done
3804 ;;
3805 esac
3806 done
3807 IFS=$as_save_IFS
3808
3809
3810 fi
3811 if test "${ac_cv_path_install+set}" = set; then
3812 INSTALL=$ac_cv_path_install
3813 else
3814 # As a last resort, use the slow shell script. Don't cache a
3815 # value for INSTALL within a source directory, because that will
3816 # break other packages using the cache if that directory is
3817 # removed, or if the value is a relative name.
3818 INSTALL=$ac_install_sh
3819 fi
3820 fi
3821 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3822 echo "${ECHO_T}$INSTALL" >&6; }
3823
3824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3825 # It thinks the first close brace ends the variable substitution.
3826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3827
3828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3829
3830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3831
3832 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3833 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3834 if test "${ac_cv_path_GREP+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 # Extract the first word of "grep ggrep" to use in msg output
3838 if test -z "$GREP"; then
3839 set dummy grep ggrep; ac_prog_name=$2
3840 if test "${ac_cv_path_GREP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 ac_path_GREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in grep ggrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3853 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3854 # Check for GNU ac_path_GREP and select it if it is found.
3855 # Check for GNU $ac_path_GREP
3856 case `"$ac_path_GREP" --version 2>&1` in
3857 *GNU*)
3858 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3859 *)
3860 ac_count=0
3861 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862 while :
3863 do
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 echo 'GREP' >> "conftest.nl"
3868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 ac_count=`expr $ac_count + 1`
3871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_GREP="$ac_path_GREP"
3874 ac_path_GREP_max=$ac_count
3875 fi
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3878 done
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880 esac
3881
3882
3883 $ac_path_GREP_found && break 3
3884 done
3885 done
3886
3887 done
3888 IFS=$as_save_IFS
3889
3890
3891 fi
3892
3893 GREP="$ac_cv_path_GREP"
3894 if test -z "$GREP"; then
3895 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3896 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3897 { (exit 1); exit 1; }; }
3898 fi
3899
3900 else
3901 ac_cv_path_GREP=$GREP
3902 fi
3903
3904
3905 fi
3906 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3907 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3908 GREP="$ac_cv_path_GREP"
3909
3910
3911 { echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3913 if test "${ac_cv_path_EGREP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3917 then ac_cv_path_EGREP="$GREP -E"
3918 else
3919 # Extract the first word of "egrep" to use in msg output
3920 if test -z "$EGREP"; then
3921 set dummy egrep; ac_prog_name=$2
3922 if test "${ac_cv_path_EGREP+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_path_EGREP_found=false
3926 # Loop through the user's path and test for each of PROGNAME-LIST
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929 do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_prog in egrep; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3935 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3936 # Check for GNU ac_path_EGREP and select it if it is found.
3937 # Check for GNU $ac_path_EGREP
3938 case `"$ac_path_EGREP" --version 2>&1` in
3939 *GNU*)
3940 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3941 *)
3942 ac_count=0
3943 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3944 while :
3945 do
3946 cat "conftest.in" "conftest.in" >"conftest.tmp"
3947 mv "conftest.tmp" "conftest.in"
3948 cp "conftest.in" "conftest.nl"
3949 echo 'EGREP' >> "conftest.nl"
3950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952 ac_count=`expr $ac_count + 1`
3953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3954 # Best one so far, save it but keep looking for a better one
3955 ac_cv_path_EGREP="$ac_path_EGREP"
3956 ac_path_EGREP_max=$ac_count
3957 fi
3958 # 10*(2^10) chars as input seems more than enough
3959 test $ac_count -gt 10 && break
3960 done
3961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962 esac
3963
3964
3965 $ac_path_EGREP_found && break 3
3966 done
3967 done
3968
3969 done
3970 IFS=$as_save_IFS
3971
3972
3973 fi
3974
3975 EGREP="$ac_cv_path_EGREP"
3976 if test -z "$EGREP"; then
3977 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3978 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3979 { (exit 1); exit 1; }; }
3980 fi
3981
3982 else
3983 ac_cv_path_EGREP=$EGREP
3984 fi
3985
3986
3987 fi
3988 fi
3989 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3990 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3991 EGREP="$ac_cv_path_EGREP"
3992
3993
3994 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3995 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3996 if test "${ac_cv_path_SED+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4000 for ac_i in 1 2 3 4 5 6 7; do
4001 ac_script="$ac_script$as_nl$ac_script"
4002 done
4003 echo "$ac_script" | sed 99q >conftest.sed
4004 $as_unset ac_script || ac_script=
4005 # Extract the first word of "sed gsed" to use in msg output
4006 if test -z "$SED"; then
4007 set dummy sed gsed; ac_prog_name=$2
4008 if test "${ac_cv_path_SED+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 ac_path_SED_found=false
4012 # Loop through the user's path and test for each of PROGNAME-LIST
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in sed gsed; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4022 # Check for GNU ac_path_SED and select it if it is found.
4023 # Check for GNU $ac_path_SED
4024 case `"$ac_path_SED" --version 2>&1` in
4025 *GNU*)
4026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4027 *)
4028 ac_count=0
4029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4030 while :
4031 do
4032 cat "conftest.in" "conftest.in" >"conftest.tmp"
4033 mv "conftest.tmp" "conftest.in"
4034 cp "conftest.in" "conftest.nl"
4035 echo '' >> "conftest.nl"
4036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038 ac_count=`expr $ac_count + 1`
4039 if test $ac_count -gt ${ac_path_SED_max-0}; then
4040 # Best one so far, save it but keep looking for a better one
4041 ac_cv_path_SED="$ac_path_SED"
4042 ac_path_SED_max=$ac_count
4043 fi
4044 # 10*(2^10) chars as input seems more than enough
4045 test $ac_count -gt 10 && break
4046 done
4047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048 esac
4049
4050
4051 $ac_path_SED_found && break 3
4052 done
4053 done
4054
4055 done
4056 IFS=$as_save_IFS
4057
4058
4059 fi
4060
4061 SED="$ac_cv_path_SED"
4062 if test -z "$SED"; then
4063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4064 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4065 { (exit 1); exit 1; }; }
4066 fi
4067
4068 else
4069 ac_cv_path_SED=$SED
4070 fi
4071
4072 fi
4073 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4074 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4075 SED="$ac_cv_path_SED"
4076 rm -f conftest.sed
4077
4078
4079 F77=no
4080 CXX=no
4081 GCJ=no
4082
4083 # Check whether --enable-static was given.
4084 if test "${enable_static+set}" = set; then
4085 enableval=$enable_static; p=${PACKAGE-default}
4086 case $enableval in
4087 yes) enable_static=yes ;;
4088 no) enable_static=no ;;
4089 *)
4090 enable_static=no
4091 # Look at the argument we got. We use all the common list separators.
4092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4093 for pkg in $enableval; do
4094 IFS="$lt_save_ifs"
4095 if test "X$pkg" = "X$p"; then
4096 enable_static=yes
4097 fi
4098 done
4099 IFS="$lt_save_ifs"
4100 ;;
4101 esac
4102 else
4103 enable_static=no
4104 fi
4105
4106
4107
4108 # Check whether --enable-shared was given.
4109 if test "${enable_shared+set}" = set; then
4110 enableval=$enable_shared; p=${PACKAGE-default}
4111 case $enableval in
4112 yes) enable_shared=yes ;;
4113 no) enable_shared=no ;;
4114 *)
4115 enable_shared=no
4116 # Look at the argument we got. We use all the common list separators.
4117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4118 for pkg in $enableval; do
4119 IFS="$lt_save_ifs"
4120 if test "X$pkg" = "X$p"; then
4121 enable_shared=yes
4122 fi
4123 done
4124 IFS="$lt_save_ifs"
4125 ;;
4126 esac
4127 else
4128 enable_shared=yes
4129 fi
4130
4131
4132 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4133 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4134 # Check whether --enable-maintainer-mode was given.
4135 if test "${enable_maintainer_mode+set}" = set; then
4136 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4137 else
4138 USE_MAINTAINER_MODE=no
4139 fi
4140
4141 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4142 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4143 if test $USE_MAINTAINER_MODE = yes; then
4144 MAINTAINER_MODE_TRUE=
4145 MAINTAINER_MODE_FALSE='#'
4146 else
4147 MAINTAINER_MODE_TRUE='#'
4148 MAINTAINER_MODE_FALSE=
4149 fi
4150
4151 MAINT=$MAINTAINER_MODE_TRUE
4152
4153
4154
4155
4156 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4157 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4158 if test "${ac_cv_search_strerror+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 ac_func_search_save_LIBS=$LIBS
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168
4169 /* Override any GCC internal prototype to avoid an error.
4170 Use char because int might match the return type of a GCC
4171 builtin and then its argument prototype would still apply. */
4172 #ifdef __cplusplus
4173 extern "C"
4174 #endif
4175 char strerror ();
4176 int
4177 main ()
4178 {
4179 return strerror ();
4180 ;
4181 return 0;
4182 }
4183 _ACEOF
4184 for ac_lib in '' cposix; do
4185 if test -z "$ac_lib"; then
4186 ac_res="none required"
4187 else
4188 ac_res=-l$ac_lib
4189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4190 fi
4191 rm -f conftest.$ac_objext conftest$ac_exeext
4192 if { (ac_try="$ac_link"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_link") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest$ac_exeext &&
4208 $as_test_x conftest$ac_exeext; then
4209 ac_cv_search_strerror=$ac_res
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214
4215 fi
4216
4217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4218 conftest$ac_exeext
4219 if test "${ac_cv_search_strerror+set}" = set; then
4220 break
4221 fi
4222 done
4223 if test "${ac_cv_search_strerror+set}" = set; then
4224 :
4225 else
4226 ac_cv_search_strerror=no
4227 fi
4228 rm conftest.$ac_ext
4229 LIBS=$ac_func_search_save_LIBS
4230 fi
4231 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4232 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4233 ac_res=$ac_cv_search_strerror
4234 if test "$ac_res" != no; then
4235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4236
4237 fi
4238
4239 { echo "$as_me:$LINENO: checking for inline" >&5
4240 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4241 if test "${ac_cv_c_inline+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 ac_cv_c_inline=no
4245 for ac_kw in inline __inline__ __inline; do
4246 cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h. */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #ifndef __cplusplus
4253 typedef int foo_t;
4254 static $ac_kw foo_t static_foo () {return 0; }
4255 $ac_kw foo_t foo () {return 0; }
4256 #endif
4257
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest.$ac_objext; then
4276 ac_cv_c_inline=$ac_kw
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281
4282 fi
4283
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 test "$ac_cv_c_inline" != no && break
4286 done
4287
4288 fi
4289 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4290 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4291
4292
4293 case $ac_cv_c_inline in
4294 inline | yes) ;;
4295 *)
4296 case $ac_cv_c_inline in
4297 no) ac_val=;;
4298 *) ac_val=$ac_cv_c_inline;;
4299 esac
4300 cat >>confdefs.h <<_ACEOF
4301 #ifndef __cplusplus
4302 #define inline $ac_val
4303 #endif
4304 _ACEOF
4305 ;;
4306 esac
4307
4308 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4309 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4310 if test "${ac_cv_c_const+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319
4320 int
4321 main ()
4322 {
4323 /* FIXME: Include the comments suggested by Paul. */
4324 #ifndef __cplusplus
4325 /* Ultrix mips cc rejects this. */
4326 typedef int charset[2];
4327 const charset cs;
4328 /* SunOS 4.1.1 cc rejects this. */
4329 char const *const *pcpcc;
4330 char **ppc;
4331 /* NEC SVR4.0.2 mips cc rejects this. */
4332 struct point {int x, y;};
4333 static struct point const zero = {0,0};
4334 /* AIX XL C 1.02.0.0 rejects this.
4335 It does not let you subtract one const X* pointer from another in
4336 an arm of an if-expression whose if-part is not a constant
4337 expression */
4338 const char *g = "string";
4339 pcpcc = &g + (g ? g-g : 0);
4340 /* HPUX 7.0 cc rejects these. */
4341 ++pcpcc;
4342 ppc = (char**) pcpcc;
4343 pcpcc = (char const *const *) ppc;
4344 { /* SCO 3.2v4 cc rejects this. */
4345 char *t;
4346 char const *s = 0 ? (char *) 0 : (char const *) 0;
4347
4348 *t++ = 0;
4349 if (s) return 0;
4350 }
4351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4352 int x[] = {25, 17};
4353 const int *foo = &x[0];
4354 ++foo;
4355 }
4356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4357 typedef const int *iptr;
4358 iptr p = 0;
4359 ++p;
4360 }
4361 { /* AIX XL C 1.02.0.0 rejects this saying
4362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4363 struct s { int j; const int *ap[3]; };
4364 struct s *b; b->j = 5;
4365 }
4366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4367 const int foo = 10;
4368 if (!foo) return 0;
4369 }
4370 return !cs[0] && !zero.x;
4371 #endif
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest.$ac_objext; then
4394 ac_cv_c_const=yes
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 ac_cv_c_const=no
4400 fi
4401
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 fi
4404 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4405 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4406 if test $ac_cv_c_const = no; then
4407
4408 cat >>confdefs.h <<\_ACEOF
4409 #define const
4410 _ACEOF
4411
4412 fi
4413
4414 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4415 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4416 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4417 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 cat >conftest.make <<\_ACEOF
4421 SHELL = /bin/sh
4422 all:
4423 @echo '@@@%%%=$(MAKE)=@@@%%%'
4424 _ACEOF
4425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4426 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4427 *@@@%%%=?*=@@@%%%*)
4428 eval ac_cv_prog_make_${ac_make}_set=yes;;
4429 *)
4430 eval ac_cv_prog_make_${ac_make}_set=no;;
4431 esac
4432 rm -f conftest.make
4433 fi
4434 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4435 { echo "$as_me:$LINENO: result: yes" >&5
4436 echo "${ECHO_T}yes" >&6; }
4437 SET_MAKE=
4438 else
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4441 SET_MAKE="MAKE=${MAKE-make}"
4442 fi
4443
4444 # Find a good install program. We prefer a C program (faster),
4445 # so one script is as good as another. But avoid the broken or
4446 # incompatible versions:
4447 # SysV /etc/install, /usr/sbin/install
4448 # SunOS /usr/etc/install
4449 # IRIX /sbin/install
4450 # AIX /bin/install
4451 # AmigaOS /C/install, which installs bootblocks on floppy discs
4452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4455 # OS/2's system install, which has a completely different semantic
4456 # ./install, which can be erroneously created by make from ./install.sh.
4457 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4459 if test -z "$INSTALL"; then
4460 if test "${ac_cv_path_install+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 # Account for people who put trailing slashes in PATH elements.
4469 case $as_dir/ in
4470 ./ | .// | /cC/* | \
4471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4473 /usr/ucb/* ) ;;
4474 *)
4475 # OSF1 and SCO ODT 3.0 have their own names for install.
4476 # Don't use installbsd from OSF since it installs stuff as root
4477 # by default.
4478 for ac_prog in ginstall scoinst install; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4481 if test $ac_prog = install &&
4482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4483 # AIX install. It has an incompatible calling convention.
4484 :
4485 elif test $ac_prog = install &&
4486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4487 # program-specific install script used by HP pwplus--don't use.
4488 :
4489 else
4490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4491 break 3
4492 fi
4493 fi
4494 done
4495 done
4496 ;;
4497 esac
4498 done
4499 IFS=$as_save_IFS
4500
4501
4502 fi
4503 if test "${ac_cv_path_install+set}" = set; then
4504 INSTALL=$ac_cv_path_install
4505 else
4506 # As a last resort, use the slow shell script. Don't cache a
4507 # value for INSTALL within a source directory, because that will
4508 # break other packages using the cache if that directory is
4509 # removed, or if the value is a relative name.
4510 INSTALL=$ac_install_sh
4511 fi
4512 fi
4513 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4514 echo "${ECHO_T}$INSTALL" >&6; }
4515
4516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4517 # It thinks the first close brace ends the variable substitution.
4518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4519
4520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4521
4522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4523
4524 # Extract the first word of "automake", so it can be a program name with args.
4525 set dummy automake; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_path_AUTOMAKE+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 case $AUTOMAKE in
4532 [\\/]* | ?:[\\/]*)
4533 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
4534 ;;
4535 *)
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 ;;
4552 esac
4553 fi
4554 AUTOMAKE=$ac_cv_path_AUTOMAKE
4555 if test -n "$AUTOMAKE"; then
4556 { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
4557 echo "${ECHO_T}$AUTOMAKE" >&6; }
4558 else
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4561 fi
4562
4563
4564 # Extract the first word of "aclocal", so it can be a program name with args.
4565 set dummy aclocal; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_path_ACLOCAL+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 case $ACLOCAL in
4572 [\\/]* | ?:[\\/]*)
4573 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
4574 ;;
4575 *)
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4590
4591 ;;
4592 esac
4593 fi
4594 ACLOCAL=$ac_cv_path_ACLOCAL
4595 if test -n "$ACLOCAL"; then
4596 { echo "$as_me:$LINENO: result: $ACLOCAL" >&5
4597 echo "${ECHO_T}$ACLOCAL" >&6; }
4598 else
4599 { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4601 fi
4602
4603
4604 # Extract the first word of "autoheader", so it can be a program name with args.
4605 set dummy autoheader; ac_word=$2
4606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4608 if test "${ac_cv_path_AUTOHEADER+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 case $AUTOHEADER in
4612 [\\/]* | ?:[\\/]*)
4613 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
4614 ;;
4615 *)
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 ;;
4632 esac
4633 fi
4634 AUTOHEADER=$ac_cv_path_AUTOHEADER
4635 if test -n "$AUTOHEADER"; then
4636 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
4637 echo "${ECHO_T}$AUTOHEADER" >&6; }
4638 else
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4641 fi
4642
4643
4644 # Extract the first word of "as", so it can be a program name with args.
4645 set dummy as; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_path_AS+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 case $AS in
4652 [\\/]* | ?:[\\/]*)
4653 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4654 ;;
4655 *)
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 ;;
4672 esac
4673 fi
4674 AS=$ac_cv_path_AS
4675 if test -n "$AS"; then
4676 { echo "$as_me:$LINENO: result: $AS" >&5
4677 echo "${ECHO_T}$AS" >&6; }
4678 else
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4681 fi
4682
4683
4684 # Extract the first word of "rm", so it can be a program name with args.
4685 set dummy rm; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_path_RM+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 case $RM in
4692 [\\/]* | ?:[\\/]*)
4693 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4694 ;;
4695 *)
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 ;;
4712 esac
4713 fi
4714 RM=$ac_cv_path_RM
4715 if test -n "$RM"; then
4716 { echo "$as_me:$LINENO: result: $RM" >&5
4717 echo "${ECHO_T}$RM" >&6; }
4718 else
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4721 fi
4722
4723
4724 # Extract the first word of "cp", so it can be a program name with args.
4725 set dummy cp; ac_word=$2
4726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728 if test "${ac_cv_path_CP+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 case $CP in
4732 [\\/]* | ?:[\\/]*)
4733 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4734 ;;
4735 *)
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 ;;
4752 esac
4753 fi
4754 CP=$ac_cv_path_CP
4755 if test -n "$CP"; then
4756 { echo "$as_me:$LINENO: result: $CP" >&5
4757 echo "${ECHO_T}$CP" >&6; }
4758 else
4759 { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; }
4761 fi
4762
4763
4764 # Extract the first word of "mv", so it can be a program name with args.
4765 set dummy mv; ac_word=$2
4766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768 if test "${ac_cv_path_MV+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 else
4771 case $MV in
4772 [\\/]* | ?:[\\/]*)
4773 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4774 ;;
4775 *)
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787 done
4788 done
4789 IFS=$as_save_IFS
4790
4791 ;;
4792 esac
4793 fi
4794 MV=$ac_cv_path_MV
4795 if test -n "$MV"; then
4796 { echo "$as_me:$LINENO: result: $MV" >&5
4797 echo "${ECHO_T}$MV" >&6; }
4798 else
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4801 fi
4802
4803
4804 # Extract the first word of "ln", so it can be a program name with args.
4805 set dummy ln; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_path_LN+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811 case $LN in
4812 [\\/]* | ?:[\\/]*)
4813 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4814 ;;
4815 *)
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 ;;
4832 esac
4833 fi
4834 LN=$ac_cv_path_LN
4835 if test -n "$LN"; then
4836 { echo "$as_me:$LINENO: result: $LN" >&5
4837 echo "${ECHO_T}$LN" >&6; }
4838 else
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4841 fi
4842
4843
4844 # Extract the first word of "ar", so it can be a program name with args.
4845 set dummy ar; ac_word=$2
4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848 if test "${ac_cv_path_AR+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 case $AR in
4852 [\\/]* | ?:[\\/]*)
4853 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4854 ;;
4855 *)
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871 ;;
4872 esac
4873 fi
4874 AR=$ac_cv_path_AR
4875 if test -n "$AR"; then
4876 { echo "$as_me:$LINENO: result: $AR" >&5
4877 echo "${ECHO_T}$AR" >&6; }
4878 else
4879 { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4881 fi
4882
4883
4884 # Extract the first word of "ld", so it can be a program name with args.
4885 set dummy ld; ac_word=$2
4886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888 if test "${ac_cv_path_LD+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 case $LD in
4892 [\\/]* | ?:[\\/]*)
4893 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4894 ;;
4895 *)
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911 ;;
4912 esac
4913 fi
4914 LD=$ac_cv_path_LD
4915 if test -n "$LD"; then
4916 { echo "$as_me:$LINENO: result: $LD" >&5
4917 echo "${ECHO_T}$LD" >&6; }
4918 else
4919 { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923
4924 # Extract the first word of "ranlib", so it can be a program name with args.
4925 set dummy ranlib; ac_word=$2
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_path_RANLIB+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 case $RANLIB in
4932 [\\/]* | ?:[\\/]*)
4933 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4934 ;;
4935 *)
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 ;;
4952 esac
4953 fi
4954 RANLIB=$ac_cv_path_RANLIB
4955 if test -n "$RANLIB"; then
4956 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4957 echo "${ECHO_T}$RANLIB" >&6; }
4958 else
4959 { echo "$as_me:$LINENO: result: no" >&5
4960 echo "${ECHO_T}no" >&6; }
4961 fi
4962
4963
4964 # Extract the first word of "touch", so it can be a program name with args.
4965 set dummy touch; ac_word=$2
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_TOUCH+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 case $TOUCH in
4972 [\\/]* | ?:[\\/]*)
4973 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4974 ;;
4975 *)
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 ;;
4992 esac
4993 fi
4994 TOUCH=$ac_cv_path_TOUCH
4995 if test -n "$TOUCH"; then
4996 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4997 echo "${ECHO_T}$TOUCH" >&6; }
4998 else
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5001 fi
5002
5003
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009
5010
5011 # Check whether --enable-fast-install was given.
5012 if test "${enable_fast_install+set}" = set; then
5013 enableval=$enable_fast_install; p=${PACKAGE-default}
5014 case $enableval in
5015 yes) enable_fast_install=yes ;;
5016 no) enable_fast_install=no ;;
5017 *)
5018 enable_fast_install=no
5019 # Look at the argument we got. We use all the common list separators.
5020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5021 for pkg in $enableval; do
5022 IFS="$lt_save_ifs"
5023 if test "X$pkg" = "X$p"; then
5024 enable_fast_install=yes
5025 fi
5026 done
5027 IFS="$lt_save_ifs"
5028 ;;
5029 esac
5030 else
5031 enable_fast_install=yes
5032 fi
5033
5034
5035 # Make sure we can run config.sub.
5036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5037 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5038 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5039 { (exit 1); exit 1; }; }
5040
5041 { echo "$as_me:$LINENO: checking build system type" >&5
5042 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5043 if test "${ac_cv_build+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 ac_build_alias=$build_alias
5047 test "x$ac_build_alias" = x &&
5048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5049 test "x$ac_build_alias" = x &&
5050 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5051 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5052 { (exit 1); exit 1; }; }
5053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5056 { (exit 1); exit 1; }; }
5057
5058 fi
5059 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5060 echo "${ECHO_T}$ac_cv_build" >&6; }
5061 case $ac_cv_build in
5062 *-*-*) ;;
5063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5064 echo "$as_me: error: invalid value of canonical build" >&2;}
5065 { (exit 1); exit 1; }; };;
5066 esac
5067 build=$ac_cv_build
5068 ac_save_IFS=$IFS; IFS='-'
5069 set x $ac_cv_build
5070 shift
5071 build_cpu=$1
5072 build_vendor=$2
5073 shift; shift
5074 # Remember, the first character of IFS is used to create $*,
5075 # except with old shells:
5076 build_os=$*
5077 IFS=$ac_save_IFS
5078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5079
5080
5081 { echo "$as_me:$LINENO: checking host system type" >&5
5082 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5083 if test "${ac_cv_host+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 if test "x$host_alias" = x; then
5087 ac_cv_host=$ac_cv_build
5088 else
5089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5092 { (exit 1); exit 1; }; }
5093 fi
5094
5095 fi
5096 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5097 echo "${ECHO_T}$ac_cv_host" >&6; }
5098 case $ac_cv_host in
5099 *-*-*) ;;
5100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5101 echo "$as_me: error: invalid value of canonical host" >&2;}
5102 { (exit 1); exit 1; }; };;
5103 esac
5104 host=$ac_cv_host
5105 ac_save_IFS=$IFS; IFS='-'
5106 set x $ac_cv_host
5107 shift
5108 host_cpu=$1
5109 host_vendor=$2
5110 shift; shift
5111 # Remember, the first character of IFS is used to create $*,
5112 # except with old shells:
5113 host_os=$*
5114 IFS=$ac_save_IFS
5115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5116
5117
5118 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5119 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5120 if test "${lt_cv_path_SED+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 # Loop through the user's path and test for sed and gsed.
5124 # Then use that list of sed's as ones to test for truncation.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for lt_ac_prog in sed gsed; do
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5133 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5134 fi
5135 done
5136 done
5137 done
5138 IFS=$as_save_IFS
5139 lt_ac_max=0
5140 lt_ac_count=0
5141 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5142 # along with /bin/sed that truncates output.
5143 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5144 test ! -f $lt_ac_sed && continue
5145 cat /dev/null > conftest.in
5146 lt_ac_count=0
5147 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5148 # Check for GNU sed and select it if it is found.
5149 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5150 lt_cv_path_SED=$lt_ac_sed
5151 break
5152 fi
5153 while true; do
5154 cat conftest.in conftest.in >conftest.tmp
5155 mv conftest.tmp conftest.in
5156 cp conftest.in conftest.nl
5157 echo >>conftest.nl
5158 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5159 cmp -s conftest.out conftest.nl || break
5160 # 10000 chars as input seems more than enough
5161 test $lt_ac_count -gt 10 && break
5162 lt_ac_count=`expr $lt_ac_count + 1`
5163 if test $lt_ac_count -gt $lt_ac_max; then
5164 lt_ac_max=$lt_ac_count
5165 lt_cv_path_SED=$lt_ac_sed
5166 fi
5167 done
5168 done
5169
5170 fi
5171
5172 SED=$lt_cv_path_SED
5173
5174 { echo "$as_me:$LINENO: result: $SED" >&5
5175 echo "${ECHO_T}$SED" >&6; }
5176
5177
5178 # Check whether --with-gnu-ld was given.
5179 if test "${with_gnu_ld+set}" = set; then
5180 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5181 else
5182 with_gnu_ld=no
5183 fi
5184
5185 ac_prog=ld
5186 if test "$GCC" = yes; then
5187 # Check if gcc -print-prog-name=ld gives a path.
5188 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5189 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5190 case $host in
5191 *-*-mingw*)
5192 # gcc leaves a trailing carriage return which upsets mingw
5193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5194 *)
5195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5196 esac
5197 case $ac_prog in
5198 # Accept absolute paths.
5199 [\\/]* | ?:[\\/]*)
5200 re_direlt='/[^/][^/]*/\.\./'
5201 # Canonicalize the pathname of ld
5202 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5203 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5204 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5205 done
5206 test -z "$LD" && LD="$ac_prog"
5207 ;;
5208 "")
5209 # If it fails, then pretend we aren't using GCC.
5210 ac_prog=ld
5211 ;;
5212 *)
5213 # If it is relative, then search for the first ld in PATH.
5214 with_gnu_ld=unknown
5215 ;;
5216 esac
5217 elif test "$with_gnu_ld" = yes; then
5218 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5220 else
5221 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5223 fi
5224 if test "${lt_cv_path_LD+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -z "$LD"; then
5228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5229 for ac_dir in $PATH; do
5230 IFS="$lt_save_ifs"
5231 test -z "$ac_dir" && ac_dir=.
5232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5233 lt_cv_path_LD="$ac_dir/$ac_prog"
5234 # Check to see if the program is GNU ld. I'd rather use --version,
5235 # but apparently some variants of GNU ld only accept -v.
5236 # Break only if it was the GNU/non-GNU ld that we prefer.
5237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5238 *GNU* | *'with BFD'*)
5239 test "$with_gnu_ld" != no && break
5240 ;;
5241 *)
5242 test "$with_gnu_ld" != yes && break
5243 ;;
5244 esac
5245 fi
5246 done
5247 IFS="$lt_save_ifs"
5248 else
5249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5250 fi
5251 fi
5252
5253 LD="$lt_cv_path_LD"
5254 if test -n "$LD"; then
5255 { echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6; }
5257 else
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5260 fi
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263 { (exit 1); exit 1; }; }
5264 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5266 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272 lt_cv_prog_gnu_ld=yes
5273 ;;
5274 *)
5275 lt_cv_prog_gnu_ld=no
5276 ;;
5277 esac
5278 fi
5279 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5280 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5281 with_gnu_ld=$lt_cv_prog_gnu_ld
5282
5283
5284 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5285 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5286 if test "${lt_cv_ld_reload_flag+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 lt_cv_ld_reload_flag='-r'
5290 fi
5291 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5292 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5293 reload_flag=$lt_cv_ld_reload_flag
5294 case $reload_flag in
5295 "" | " "*) ;;
5296 *) reload_flag=" $reload_flag" ;;
5297 esac
5298 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5299 case $host_os in
5300 darwin*)
5301 if test "$GCC" = yes; then
5302 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5303 else
5304 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5305 fi
5306 ;;
5307 esac
5308
5309 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5310 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5311 if test "${lt_cv_path_NM+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 if test -n "$NM"; then
5315 # Let the user override the test.
5316 lt_cv_path_NM="$NM"
5317 else
5318 lt_nm_to_check="${ac_tool_prefix}nm"
5319 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5320 lt_nm_to_check="$lt_nm_to_check nm"
5321 fi
5322 for lt_tmp_nm in $lt_nm_to_check; do
5323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5324 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5325 IFS="$lt_save_ifs"
5326 test -z "$ac_dir" && ac_dir=.
5327 tmp_nm="$ac_dir/$lt_tmp_nm"
5328 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5329 # Check to see if the nm accepts a BSD-compat flag.
5330 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5331 # nm: unknown option "B" ignored
5332 # Tru64's nm complains that /dev/null is an invalid object file
5333 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5334 */dev/null* | *'Invalid file or object type'*)
5335 lt_cv_path_NM="$tmp_nm -B"
5336 break
5337 ;;
5338 *)
5339 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5340 */dev/null*)
5341 lt_cv_path_NM="$tmp_nm -p"
5342 break
5343 ;;
5344 *)
5345 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5346 continue # so that we can try to find one that supports BSD flags
5347 ;;
5348 esac
5349 ;;
5350 esac
5351 fi
5352 done
5353 IFS="$lt_save_ifs"
5354 done
5355 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5356 fi
5357 fi
5358 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5359 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5360 NM="$lt_cv_path_NM"
5361
5362 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5364 LN_S=$as_ln_s
5365 if test "$LN_S" = "ln -s"; then
5366 { echo "$as_me:$LINENO: result: yes" >&5
5367 echo "${ECHO_T}yes" >&6; }
5368 else
5369 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5370 echo "${ECHO_T}no, using $LN_S" >&6; }
5371 fi
5372
5373 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5374 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5375 if test "${lt_cv_deplibs_check_method+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 lt_cv_file_magic_cmd='$MAGIC_CMD'
5379 lt_cv_file_magic_test_file=
5380 lt_cv_deplibs_check_method='unknown'
5381 # Need to set the preceding variable on all platforms that support
5382 # interlibrary dependencies.
5383 # 'none' -- dependencies not supported.
5384 # `unknown' -- same as none, but documents that we really don't know.
5385 # 'pass_all' -- all dependencies passed with no checks.
5386 # 'test_compile' -- check by making test program.
5387 # 'file_magic [[regex]]' -- check by looking for files in library path
5388 # which responds to the $file_magic_cmd with a given extended regex.
5389 # If you have `file' or equivalent on your system and you're not sure
5390 # whether `pass_all' will *always* work, you probably want this one.
5391
5392 case $host_os in
5393 aix[4-9]*)
5394 lt_cv_deplibs_check_method=pass_all
5395 ;;
5396
5397 beos*)
5398 lt_cv_deplibs_check_method=pass_all
5399 ;;
5400
5401 bsdi[45]*)
5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5403 lt_cv_file_magic_cmd='/usr/bin/file -L'
5404 lt_cv_file_magic_test_file=/shlib/libc.so
5405 ;;
5406
5407 cygwin*)
5408 # func_win32_libid is a shell function defined in ltmain.sh
5409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410 lt_cv_file_magic_cmd='func_win32_libid'
5411 ;;
5412
5413 mingw* | pw32*)
5414 # Base MSYS/MinGW do not provide the 'file' command needed by
5415 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5416 # unless we find 'file', for example because we are cross-compiling.
5417 if ( file / ) >/dev/null 2>&1; then
5418 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5419 lt_cv_file_magic_cmd='func_win32_libid'
5420 else
5421 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5422 lt_cv_file_magic_cmd='$OBJDUMP -f'
5423 fi
5424 ;;
5425
5426 darwin* | rhapsody*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430 freebsd* | dragonfly*)
5431 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5432 case $host_cpu in
5433 i*86 )
5434 # Not sure whether the presence of OpenBSD here was a mistake.
5435 # Let's accept both of them until this is cleared up.
5436 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5439 ;;
5440 esac
5441 else
5442 lt_cv_deplibs_check_method=pass_all
5443 fi
5444 ;;
5445
5446 gnu*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449
5450 hpux10.20* | hpux11*)
5451 lt_cv_file_magic_cmd=/usr/bin/file
5452 case $host_cpu in
5453 ia64*)
5454 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5455 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5456 ;;
5457 hppa*64*)
5458 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]'
5459 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460 ;;
5461 *)
5462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5463 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5464 ;;
5465 esac
5466 ;;
5467
5468 interix[3-9]*)
5469 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5471 ;;
5472
5473 irix5* | irix6* | nonstopux*)
5474 case $LD in
5475 *-32|*"-32 ") libmagic=32-bit;;
5476 *-n32|*"-n32 ") libmagic=N32;;
5477 *-64|*"-64 ") libmagic=64-bit;;
5478 *) libmagic=never-match;;
5479 esac
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
5482
5483 # This must be Linux ELF.
5484 linux* | k*bsd*-gnu)
5485 lt_cv_deplibs_check_method=pass_all
5486 ;;
5487
5488 netbsd* | netbsdelf*-gnu)
5489 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5491 else
5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5493 fi
5494 ;;
5495
5496 newos6*)
5497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5498 lt_cv_file_magic_cmd=/usr/bin/file
5499 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5500 ;;
5501
5502 nto-qnx*)
5503 lt_cv_deplibs_check_method=unknown
5504 ;;
5505
5506 openbsd*)
5507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5509 else
5510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5511 fi
5512 ;;
5513
5514 osf3* | osf4* | osf5*)
5515 lt_cv_deplibs_check_method=pass_all
5516 ;;
5517
5518 rdos*)
5519 lt_cv_deplibs_check_method=pass_all
5520 ;;
5521
5522 solaris*)
5523 lt_cv_deplibs_check_method=pass_all
5524 ;;
5525
5526 sysv4 | sysv4.3*)
5527 case $host_vendor in
5528 motorola)
5529 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]'
5530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5531 ;;
5532 ncr)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535 sequent)
5536 lt_cv_file_magic_cmd='/bin/file'
5537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5538 ;;
5539 sni)
5540 lt_cv_file_magic_cmd='/bin/file'
5541 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5542 lt_cv_file_magic_test_file=/lib/libc.so
5543 ;;
5544 siemens)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547 pc)
5548 lt_cv_deplibs_check_method=pass_all
5549 ;;
5550 esac
5551 ;;
5552
5553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5554 lt_cv_deplibs_check_method=pass_all
5555 ;;
5556 esac
5557
5558 fi
5559 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5560 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5561 file_magic_cmd=$lt_cv_file_magic_cmd
5562 deplibs_check_method=$lt_cv_deplibs_check_method
5563 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5564
5565
5566
5567
5568 # If no C compiler was specified, use CC.
5569 LTCC=${LTCC-"$CC"}
5570
5571 # If no C compiler flags were specified, use CFLAGS.
5572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5573
5574 # Allow CC to be a program name with arguments.
5575 compiler=$CC
5576
5577 # Check whether --enable-libtool-lock was given.
5578 if test "${enable_libtool_lock+set}" = set; then
5579 enableval=$enable_libtool_lock;
5580 fi
5581
5582 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5583
5584 # Some flags need to be propagated to the compiler or linker for good
5585 # libtool support.
5586 case $host in
5587 ia64-*-hpux*)
5588 # Find out which ABI we are using.
5589 echo 'int i;' > conftest.$ac_ext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; then
5595 case `/usr/bin/file conftest.$ac_objext` in
5596 *ELF-32*)
5597 HPUX_IA64_MODE="32"
5598 ;;
5599 *ELF-64*)
5600 HPUX_IA64_MODE="64"
5601 ;;
5602 esac
5603 fi
5604 rm -rf conftest*
5605 ;;
5606 *-*-irix6*)
5607 # Find out which ABI we are using.
5608 echo '#line 5608 "configure"' > conftest.$ac_ext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; then
5614 if test "$lt_cv_prog_gnu_ld" = yes; then
5615 case `/usr/bin/file conftest.$ac_objext` in
5616 *32-bit*)
5617 LD="${LD-ld} -melf32bsmip"
5618 ;;
5619 *N32*)
5620 LD="${LD-ld} -melf32bmipn32"
5621 ;;
5622 *64-bit*)
5623 LD="${LD-ld} -melf64bmip"
5624 ;;
5625 esac
5626 else
5627 case `/usr/bin/file conftest.$ac_objext` in
5628 *32-bit*)
5629 LD="${LD-ld} -32"
5630 ;;
5631 *N32*)
5632 LD="${LD-ld} -n32"
5633 ;;
5634 *64-bit*)
5635 LD="${LD-ld} -64"
5636 ;;
5637 esac
5638 fi
5639 fi
5640 rm -rf conftest*
5641 ;;
5642
5643 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5644 s390*-*linux*|sparc*-*linux*)
5645 # Find out which ABI we are using.
5646 echo 'int i;' > conftest.$ac_ext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; then
5652 case `/usr/bin/file conftest.o` in
5653 *32-bit*)
5654 case $host in
5655 x86_64-*kfreebsd*-gnu)
5656 LD="${LD-ld} -m elf_i386_fbsd"
5657 ;;
5658 x86_64-*linux*)
5659 LD="${LD-ld} -m elf_i386"
5660 ;;
5661 ppc64-*linux*|powerpc64-*linux*)
5662 LD="${LD-ld} -m elf32ppclinux"
5663 ;;
5664 s390x-*linux*)
5665 LD="${LD-ld} -m elf_s390"
5666 ;;
5667 sparc64-*linux*)
5668 LD="${LD-ld} -m elf32_sparc"
5669 ;;
5670 esac
5671 ;;
5672 *64-bit*)
5673 case $host in
5674 x86_64-*kfreebsd*-gnu)
5675 LD="${LD-ld} -m elf_x86_64_fbsd"
5676 ;;
5677 x86_64-*linux*)
5678 LD="${LD-ld} -m elf_x86_64"
5679 ;;
5680 ppc*-*linux*|powerpc*-*linux*)
5681 LD="${LD-ld} -m elf64ppc"
5682 ;;
5683 s390*-*linux*)
5684 LD="${LD-ld} -m elf64_s390"
5685 ;;
5686 sparc*-*linux*)
5687 LD="${LD-ld} -m elf64_sparc"
5688 ;;
5689 esac
5690 ;;
5691 esac
5692 fi
5693 rm -rf conftest*
5694 ;;
5695
5696 *-*-sco3.2v5*)
5697 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5698 SAVE_CFLAGS="$CFLAGS"
5699 CFLAGS="$CFLAGS -belf"
5700 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5701 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5702 if test "${lt_cv_cc_needs_belf+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705 ac_ext=c
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717
5718 int
5719 main ()
5720 {
5721
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (ac_try="$ac_link"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_link") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest$ac_exeext &&
5743 $as_test_x conftest$ac_exeext; then
5744 lt_cv_cc_needs_belf=yes
5745 else
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 lt_cv_cc_needs_belf=no
5750 fi
5751
5752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5753 conftest$ac_exeext conftest.$ac_ext
5754 ac_ext=c
5755 ac_cpp='$CPP $CPPFLAGS'
5756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759
5760 fi
5761 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5762 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5763 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5764 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5765 CFLAGS="$SAVE_CFLAGS"
5766 fi
5767 ;;
5768 sparc*-*solaris*)
5769 # Find out which ABI we are using.
5770 echo 'int i;' > conftest.$ac_ext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; then
5776 case `/usr/bin/file conftest.o` in
5777 *64-bit*)
5778 case $lt_cv_prog_gnu_ld in
5779 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5780 *)
5781 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5782 LD="${LD-ld} -64"
5783 fi
5784 ;;
5785 esac
5786 ;;
5787 esac
5788 fi
5789 rm -rf conftest*
5790 ;;
5791
5792
5793 esac
5794
5795 need_locks="$enable_libtool_lock"
5796
5797
5798 ac_ext=c
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5805 # On Suns, sometimes $CPP names a directory.
5806 if test -n "$CPP" && test -d "$CPP"; then
5807 CPP=
5808 fi
5809 if test -z "$CPP"; then
5810 if test "${ac_cv_prog_CPP+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 # Double quotes because CPP needs to be expanded
5814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5815 do
5816 ac_preproc_ok=false
5817 for ac_c_preproc_warn_flag in '' yes
5818 do
5819 # Use a header file that comes with gcc, so configuring glibc
5820 # with a fresh cross-compiler works.
5821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822 # <limits.h> exists even on freestanding compilers.
5823 # On the NeXT, cc -E runs the code through the compiler's parser,
5824 # not just through cpp. "Syntax error" is here to catch this case.
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #ifdef __STDC__
5832 # include <limits.h>
5833 #else
5834 # include <assert.h>
5835 #endif
5836 Syntax error
5837 _ACEOF
5838 if { (ac_try="$ac_cpp conftest.$ac_ext"
5839 case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } >/dev/null && {
5851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 }; then
5854 :
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 # Broken: fails on valid input.
5860 continue
5861 fi
5862
5863 rm -f conftest.err conftest.$ac_ext
5864
5865 # OK, works on sane cases. Now check whether nonexistent headers
5866 # can be detected and how.
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h. */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 #include <ac_nonexistent.h>
5874 _ACEOF
5875 if { (ac_try="$ac_cpp conftest.$ac_ext"
5876 case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev/null && {
5888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 }; then
5891 # Broken: success on invalid input.
5892 continue
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 # Passes both tests.
5898 ac_preproc_ok=:
5899 break
5900 fi
5901
5902 rm -f conftest.err conftest.$ac_ext
5903
5904 done
5905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5906 rm -f conftest.err conftest.$ac_ext
5907 if $ac_preproc_ok; then
5908 break
5909 fi
5910
5911 done
5912 ac_cv_prog_CPP=$CPP
5913
5914 fi
5915 CPP=$ac_cv_prog_CPP
5916 else
5917 ac_cv_prog_CPP=$CPP
5918 fi
5919 { echo "$as_me:$LINENO: result: $CPP" >&5
5920 echo "${ECHO_T}$CPP" >&6; }
5921 ac_preproc_ok=false
5922 for ac_c_preproc_warn_flag in '' yes
5923 do
5924 # Use a header file that comes with gcc, so configuring glibc
5925 # with a fresh cross-compiler works.
5926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5927 # <limits.h> exists even on freestanding compilers.
5928 # On the NeXT, cc -E runs the code through the compiler's parser,
5929 # not just through cpp. "Syntax error" is here to catch this case.
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #ifdef __STDC__
5937 # include <limits.h>
5938 #else
5939 # include <assert.h>
5940 #endif
5941 Syntax error
5942 _ACEOF
5943 if { (ac_try="$ac_cpp conftest.$ac_ext"
5944 case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } >/dev/null && {
5956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5957 test ! -s conftest.err
5958 }; then
5959 :
5960 else
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 # Broken: fails on valid input.
5965 continue
5966 fi
5967
5968 rm -f conftest.err conftest.$ac_ext
5969
5970 # OK, works on sane cases. Now check whether nonexistent headers
5971 # can be detected and how.
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <ac_nonexistent.h>
5979 _ACEOF
5980 if { (ac_try="$ac_cpp conftest.$ac_ext"
5981 case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } >/dev/null && {
5993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 }; then
5996 # Broken: success on invalid input.
5997 continue
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 # Passes both tests.
6003 ac_preproc_ok=:
6004 break
6005 fi
6006
6007 rm -f conftest.err conftest.$ac_ext
6008
6009 done
6010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6011 rm -f conftest.err conftest.$ac_ext
6012 if $ac_preproc_ok; then
6013 :
6014 else
6015 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6016 See \`config.log' for more details." >&5
6017 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6018 See \`config.log' for more details." >&2;}
6019 { (exit 1); exit 1; }; }
6020 fi
6021
6022 ac_ext=c
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
6029 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6030 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6031 if test "${ac_cv_header_stdc+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
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 #include <stdlib.h>
6041 #include <stdarg.h>
6042 #include <string.h>
6043 #include <float.h>
6044
6045 int
6046 main ()
6047 {
6048
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (ac_try="$ac_compile"
6055 case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.$ac_objext; then
6070 ac_cv_header_stdc=yes
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6074
6075 ac_cv_header_stdc=no
6076 fi
6077
6078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079
6080 if test $ac_cv_header_stdc = yes; then
6081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <string.h>
6089
6090 _ACEOF
6091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6092 $EGREP "memchr" >/dev/null 2>&1; then
6093 :
6094 else
6095 ac_cv_header_stdc=no
6096 fi
6097 rm -f conftest*
6098
6099 fi
6100
6101 if test $ac_cv_header_stdc = yes; then
6102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 #include <stdlib.h>
6110
6111 _ACEOF
6112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6113 $EGREP "free" >/dev/null 2>&1; then
6114 :
6115 else
6116 ac_cv_header_stdc=no
6117 fi
6118 rm -f conftest*
6119
6120 fi
6121
6122 if test $ac_cv_header_stdc = yes; then
6123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6124 if test "$cross_compiling" = yes; then
6125 :
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <ctype.h>
6134 #include <stdlib.h>
6135 #if ((' ' & 0x0FF) == 0x020)
6136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6138 #else
6139 # define ISLOWER(c) \
6140 (('a' <= (c) && (c) <= 'i') \
6141 || ('j' <= (c) && (c) <= 'r') \
6142 || ('s' <= (c) && (c) <= 'z'))
6143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6144 #endif
6145
6146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6147 int
6148 main ()
6149 {
6150 int i;
6151 for (i = 0; i < 256; i++)
6152 if (XOR (islower (i), ISLOWER (i))
6153 || toupper (i) != TOUPPER (i))
6154 return 2;
6155 return 0;
6156 }
6157 _ACEOF
6158 rm -f conftest$ac_exeext
6159 if { (ac_try="$ac_link"
6160 case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_link") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 :
6179 else
6180 echo "$as_me: program exited with status $ac_status" >&5
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 ( exit $ac_status )
6185 ac_cv_header_stdc=no
6186 fi
6187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188 fi
6189
6190
6191 fi
6192 fi
6193 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6194 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6195 if test $ac_cv_header_stdc = yes; then
6196
6197 cat >>confdefs.h <<\_ACEOF
6198 #define STDC_HEADERS 1
6199 _ACEOF
6200
6201 fi
6202
6203 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6214 inttypes.h stdint.h unistd.h
6215 do
6216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 $ac_includes_default
6229
6230 #include <$ac_header>
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (ac_try="$ac_compile"
6234 case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
6249 eval "$as_ac_Header=yes"
6250 else
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6253
6254 eval "$as_ac_Header=no"
6255 fi
6256
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 fi
6259 ac_res=`eval echo '${'$as_ac_Header'}'`
6260 { echo "$as_me:$LINENO: result: $ac_res" >&5
6261 echo "${ECHO_T}$ac_res" >&6; }
6262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 cat >>confdefs.h <<_ACEOF
6264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265 _ACEOF
6266
6267 fi
6268
6269 done
6270
6271
6272
6273 for ac_header in dlfcn.h
6274 do
6275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 fi
6282 ac_res=`eval echo '${'$as_ac_Header'}'`
6283 { echo "$as_me:$LINENO: result: $ac_res" >&5
6284 echo "${ECHO_T}$ac_res" >&6; }
6285 else
6286 # Is the header compilable?
6287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 $ac_includes_default
6296 #include <$ac_header>
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 ac_header_compiler=yes
6316 else
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_header_compiler=no
6321 fi
6322
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6325 echo "${ECHO_T}$ac_header_compiler" >&6; }
6326
6327 # Is the header present?
6328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 #include <$ac_header>
6337 _ACEOF
6338 if { (ac_try="$ac_cpp conftest.$ac_ext"
6339 case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } >/dev/null && {
6351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 }; then
6354 ac_header_preproc=yes
6355 else
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6358
6359 ac_header_preproc=no
6360 fi
6361
6362 rm -f conftest.err conftest.$ac_ext
6363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6364 echo "${ECHO_T}$ac_header_preproc" >&6; }
6365
6366 # So? What about this header?
6367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6368 yes:no: )
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6373 ac_header_preproc=yes
6374 ;;
6375 no:yes:* )
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6388
6389 ;;
6390 esac
6391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396 eval "$as_ac_Header=\$ac_header_preproc"
6397 fi
6398 ac_res=`eval echo '${'$as_ac_Header'}'`
6399 { echo "$as_me:$LINENO: result: $ac_res" >&5
6400 echo "${ECHO_T}$ac_res" >&6; }
6401
6402 fi
6403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406 _ACEOF
6407
6408 fi
6409
6410 done
6411
6412 ac_ext=cpp
6413 ac_cpp='$CXXCPP $CPPFLAGS'
6414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6417 if test -z "$CXX"; then
6418 if test -n "$CCC"; then
6419 CXX=$CCC
6420 else
6421 if test -n "$ac_tool_prefix"; then
6422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6423 do
6424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428 if test "${ac_cv_prog_CXX+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 if test -n "$CXX"; then
6432 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 CXX=$ac_cv_prog_CXX
6452 if test -n "$CXX"; then
6453 { echo "$as_me:$LINENO: result: $CXX" >&5
6454 echo "${ECHO_T}$CXX" >&6; }
6455 else
6456 { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6458 fi
6459
6460
6461 test -n "$CXX" && break
6462 done
6463 fi
6464 if test -z "$CXX"; then
6465 ac_ct_CXX=$CXX
6466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6467 do
6468 # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy $ac_prog; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 if test -n "$ac_ct_CXX"; then
6476 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_CXX="$ac_prog"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6496 if test -n "$ac_ct_CXX"; then
6497 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6498 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6499 else
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6502 fi
6503
6504
6505 test -n "$ac_ct_CXX" && break
6506 done
6507
6508 if test "x$ac_ct_CXX" = x; then
6509 CXX="g++"
6510 else
6511 case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6514 whose name does not start with the host triplet. If you think this
6515 configuration is useful to you, please write to autoconf@gnu.org." >&5
6516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6517 whose name does not start with the host triplet. If you think this
6518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521 CXX=$ac_ct_CXX
6522 fi
6523 fi
6524
6525 fi
6526 fi
6527 # Provide some information about the compiler.
6528 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6529 ac_compiler=`set X $ac_compile; echo $2`
6530 { (ac_try="$ac_compiler --version >&5"
6531 case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_compiler --version >&5") 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }
6540 { (ac_try="$ac_compiler -v >&5"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compiler -v >&5") 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }
6550 { (ac_try="$ac_compiler -V >&5"
6551 case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compiler -V >&5") 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }
6560
6561 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6562 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6563 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572
6573 int
6574 main ()
6575 {
6576 #ifndef __GNUC__
6577 choke me
6578 #endif
6579
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_cxx_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_compiler_gnu=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ac_compiler_gnu=no
6607 fi
6608
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6611
6612 fi
6613 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6614 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6615 GXX=`test $ac_compiler_gnu = yes && echo yes`
6616 ac_test_CXXFLAGS=${CXXFLAGS+set}
6617 ac_save_CXXFLAGS=$CXXFLAGS
6618 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6619 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6620 if test "${ac_cv_prog_cxx_g+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6624 ac_cxx_werror_flag=yes
6625 ac_cv_prog_cxx_g=no
6626 CXXFLAGS="-g"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633
6634 int
6635 main ()
6636 {
6637
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest.$ac_objext
6643 if { (ac_try="$ac_compile"
6644 case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647 esac
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_compile") 2>conftest.er1
6650 ac_status=$?
6651 grep -v '^ *+' conftest.er1 >conftest.err
6652 rm -f conftest.er1
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_cxx_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest.$ac_objext; then
6659 ac_cv_prog_cxx_g=yes
6660 else
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 CXXFLAGS=""
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671
6672 int
6673 main ()
6674 {
6675
6676 ;
6677 return 0;
6678 }
6679 _ACEOF
6680 rm -f conftest.$ac_objext
6681 if { (ac_try="$ac_compile"
6682 case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_compile") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_cxx_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest.$ac_objext; then
6697 :
6698 else
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6703 CXXFLAGS="-g"
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h. */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710
6711 int
6712 main ()
6713 {
6714
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6721 case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724 esac
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726 (eval "$ac_compile") 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && {
6733 test -z "$ac_cxx_werror_flag" ||
6734 test ! -s conftest.err
6735 } && test -s conftest.$ac_objext; then
6736 ac_cv_prog_cxx_g=yes
6737 else
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741
6742 fi
6743
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 fi
6746
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 fi
6749
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6752 fi
6753 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6754 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6755 if test "$ac_test_CXXFLAGS" = set; then
6756 CXXFLAGS=$ac_save_CXXFLAGS
6757 elif test $ac_cv_prog_cxx_g = yes; then
6758 if test "$GXX" = yes; then
6759 CXXFLAGS="-g -O2"
6760 else
6761 CXXFLAGS="-g"
6762 fi
6763 else
6764 if test "$GXX" = yes; then
6765 CXXFLAGS="-O2"
6766 else
6767 CXXFLAGS=
6768 fi
6769 fi
6770 ac_ext=cpp
6771 ac_cpp='$CXXCPP $CPPFLAGS'
6772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6775
6776 depcc="$CXX" am_compiler_list=
6777
6778 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6779 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6780 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6784 # We make a subdir and do the tests there. Otherwise we can end up
6785 # making bogus files that we don't know about and never remove. For
6786 # instance it was reported that on HP-UX the gcc test will end up
6787 # making a dummy file named `D' -- because `-MD' means `put the output
6788 # in D'.
6789 mkdir conftest.dir
6790 # Copy depcomp to subdir because otherwise we won't find it if we're
6791 # using a relative directory.
6792 cp "$am_depcomp" conftest.dir
6793 cd conftest.dir
6794 # We will build objects and dependencies in a subdirectory because
6795 # it helps to detect inapplicable dependency modes. For instance
6796 # both Tru64's cc and ICC support -MD to output dependencies as a
6797 # side effect of compilation, but ICC will put the dependencies in
6798 # the current directory while Tru64 will put them in the object
6799 # directory.
6800 mkdir sub
6801
6802 am_cv_CXX_dependencies_compiler_type=none
6803 if test "$am_compiler_list" = ""; then
6804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6805 fi
6806 for depmode in $am_compiler_list; do
6807 # Setup a source with many dependencies, because some compilers
6808 # like to wrap large dependency lists on column 80 (with \), and
6809 # we should not choose a depcomp mode which is confused by this.
6810 #
6811 # We need to recreate these files for each test, as the compiler may
6812 # overwrite some of them when testing with obscure command lines.
6813 # This happens at least with the AIX C compiler.
6814 : > sub/conftest.c
6815 for i in 1 2 3 4 5 6; do
6816 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6817 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6818 # Solaris 8's {/usr,}/bin/sh.
6819 touch sub/conftst$i.h
6820 done
6821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6822
6823 case $depmode in
6824 nosideeffect)
6825 # after this tag, mechanisms are not by side-effect, so they'll
6826 # only be used when explicitly requested
6827 if test "x$enable_dependency_tracking" = xyes; then
6828 continue
6829 else
6830 break
6831 fi
6832 ;;
6833 none) break ;;
6834 esac
6835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6836 # mode. It turns out that the SunPro C++ compiler does not properly
6837 # handle `-M -o', and we need to detect this.
6838 if depmode=$depmode \
6839 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6841 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6842 >/dev/null 2>conftest.err &&
6843 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6844 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6845 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6846 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6847 # icc doesn't choke on unknown options, it will just issue warnings
6848 # or remarks (even with -Werror). So we grep stderr for any message
6849 # that says an option was ignored or not supported.
6850 # When given -MP, icc 7.0 and 7.1 complain thusly:
6851 # icc: Command line warning: ignoring option '-M'; no argument required
6852 # The diagnosis changed in icc 8.0:
6853 # icc: Command line remark: option '-MP' not supported
6854 if (grep 'ignoring option' conftest.err ||
6855 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6856 am_cv_CXX_dependencies_compiler_type=$depmode
6857 break
6858 fi
6859 fi
6860 done
6861
6862 cd ..
6863 rm -rf conftest.dir
6864 else
6865 am_cv_CXX_dependencies_compiler_type=none
6866 fi
6867
6868 fi
6869 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6870 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6871 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6872
6873 if
6874 test "x$enable_dependency_tracking" != xno \
6875 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6876 am__fastdepCXX_TRUE=
6877 am__fastdepCXX_FALSE='#'
6878 else
6879 am__fastdepCXX_TRUE='#'
6880 am__fastdepCXX_FALSE=
6881 fi
6882
6883
6884
6885
6886 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6887 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6888 (test "X$CXX" != "Xg++"))) ; then
6889 ac_ext=cpp
6890 ac_cpp='$CXXCPP $CPPFLAGS'
6891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6894 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6895 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6896 if test -z "$CXXCPP"; then
6897 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 # Double quotes because CXXCPP needs to be expanded
6901 for CXXCPP in "$CXX -E" "/lib/cpp"
6902 do
6903 ac_preproc_ok=false
6904 for ac_cxx_preproc_warn_flag in '' yes
6905 do
6906 # Use a header file that comes with gcc, so configuring glibc
6907 # with a fresh cross-compiler works.
6908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6909 # <limits.h> exists even on freestanding compilers.
6910 # On the NeXT, cc -E runs the code through the compiler's parser,
6911 # not just through cpp. "Syntax error" is here to catch this case.
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 #ifdef __STDC__
6919 # include <limits.h>
6920 #else
6921 # include <assert.h>
6922 #endif
6923 Syntax error
6924 _ACEOF
6925 if { (ac_try="$ac_cpp conftest.$ac_ext"
6926 case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929 esac
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev/null && {
6938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6939 test ! -s conftest.err
6940 }; then
6941 :
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 # Broken: fails on valid input.
6947 continue
6948 fi
6949
6950 rm -f conftest.err conftest.$ac_ext
6951
6952 # OK, works on sane cases. Now check whether nonexistent headers
6953 # can be detected and how.
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <ac_nonexistent.h>
6961 _ACEOF
6962 if { (ac_try="$ac_cpp conftest.$ac_ext"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } >/dev/null && {
6975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6976 test ! -s conftest.err
6977 }; then
6978 # Broken: success on invalid input.
6979 continue
6980 else
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984 # Passes both tests.
6985 ac_preproc_ok=:
6986 break
6987 fi
6988
6989 rm -f conftest.err conftest.$ac_ext
6990
6991 done
6992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6993 rm -f conftest.err conftest.$ac_ext
6994 if $ac_preproc_ok; then
6995 break
6996 fi
6997
6998 done
6999 ac_cv_prog_CXXCPP=$CXXCPP
7000
7001 fi
7002 CXXCPP=$ac_cv_prog_CXXCPP
7003 else
7004 ac_cv_prog_CXXCPP=$CXXCPP
7005 fi
7006 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7007 echo "${ECHO_T}$CXXCPP" >&6; }
7008 ac_preproc_ok=false
7009 for ac_cxx_preproc_warn_flag in '' yes
7010 do
7011 # Use a header file that comes with gcc, so configuring glibc
7012 # with a fresh cross-compiler works.
7013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 # <limits.h> exists even on freestanding compilers.
7015 # On the NeXT, cc -E runs the code through the compiler's parser,
7016 # not just through cpp. "Syntax error" is here to catch this case.
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 #ifdef __STDC__
7024 # include <limits.h>
7025 #else
7026 # include <assert.h>
7027 #endif
7028 Syntax error
7029 _ACEOF
7030 if { (ac_try="$ac_cpp conftest.$ac_ext"
7031 case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7034 esac
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7037 ac_status=$?
7038 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } >/dev/null && {
7043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7044 test ! -s conftest.err
7045 }; then
7046 :
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 # Broken: fails on valid input.
7052 continue
7053 fi
7054
7055 rm -f conftest.err conftest.$ac_ext
7056
7057 # OK, works on sane cases. Now check whether nonexistent headers
7058 # can be detected and how.
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #include <ac_nonexistent.h>
7066 _ACEOF
7067 if { (ac_try="$ac_cpp conftest.$ac_ext"
7068 case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } >/dev/null && {
7080 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7081 test ! -s conftest.err
7082 }; then
7083 # Broken: success on invalid input.
7084 continue
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 # Passes both tests.
7090 ac_preproc_ok=:
7091 break
7092 fi
7093
7094 rm -f conftest.err conftest.$ac_ext
7095
7096 done
7097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7098 rm -f conftest.err conftest.$ac_ext
7099 if $ac_preproc_ok; then
7100 :
7101 else
7102 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7103 See \`config.log' for more details." >&5
7104 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7105 See \`config.log' for more details." >&2;}
7106 { (exit 1); exit 1; }; }
7107 fi
7108
7109 ac_ext=cpp
7110 ac_cpp='$CXXCPP $CPPFLAGS'
7111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7114
7115 fi
7116
7117
7118 ac_ext=f
7119 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7120 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7122 if test -n "$ac_tool_prefix"; then
7123 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
7124 do
7125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_F77+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 if test -n "$F77"; then
7133 ac_cv_prog_F77="$F77" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 F77=$ac_cv_prog_F77
7153 if test -n "$F77"; then
7154 { echo "$as_me:$LINENO: result: $F77" >&5
7155 echo "${ECHO_T}$F77" >&6; }
7156 else
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 test -n "$F77" && break
7163 done
7164 fi
7165 if test -z "$F77"; then
7166 ac_ct_F77=$F77
7167 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
7168 do
7169 # Extract the first word of "$ac_prog", so it can be a program name with args.
7170 set dummy $ac_prog; ac_word=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 if test -n "$ac_ct_F77"; then
7177 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_F77="$ac_prog"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7197 if test -n "$ac_ct_F77"; then
7198 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7199 echo "${ECHO_T}$ac_ct_F77" >&6; }
7200 else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205
7206 test -n "$ac_ct_F77" && break
7207 done
7208
7209 if test "x$ac_ct_F77" = x; then
7210 F77=""
7211 else
7212 case $cross_compiling:$ac_tool_warned in
7213 yes:)
7214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7215 whose name does not start with the host triplet. If you think this
7216 configuration is useful to you, please write to autoconf@gnu.org." >&5
7217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7218 whose name does not start with the host triplet. If you think this
7219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7220 ac_tool_warned=yes ;;
7221 esac
7222 F77=$ac_ct_F77
7223 fi
7224 fi
7225
7226
7227 # Provide some information about the compiler.
7228 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7229 ac_compiler=`set X $ac_compile; echo $2`
7230 { (ac_try="$ac_compiler --version >&5"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compiler --version >&5") 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }
7240 { (ac_try="$ac_compiler -v >&5"
7241 case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244 esac
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_compiler -v >&5") 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }
7250 { (ac_try="$ac_compiler -V >&5"
7251 case "(($ac_try" in
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7254 esac
7255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256 (eval "$ac_compiler -V >&5") 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }
7260 rm -f a.out
7261
7262 # If we don't use `.F' as extension, the preprocessor is not run on the
7263 # input file. (Note that this only needs to work for GNU compilers.)
7264 ac_save_ext=$ac_ext
7265 ac_ext=F
7266 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7267 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7268 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 program main
7273 #ifndef __GNUC__
7274 choke me
7275 #endif
7276
7277 end
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (ac_try="$ac_compile"
7281 case "(($ac_try" in
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7284 esac
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286 (eval "$ac_compile") 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_f77_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest.$ac_objext; then
7296 ac_compiler_gnu=yes
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 ac_compiler_gnu=no
7302 fi
7303
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7306
7307 fi
7308 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7309 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7310 ac_ext=$ac_save_ext
7311 ac_test_FFLAGS=${FFLAGS+set}
7312 ac_save_FFLAGS=$FFLAGS
7313 FFLAGS=
7314 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7315 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7316 if test "${ac_cv_prog_f77_g+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319 FFLAGS=-g
7320 cat >conftest.$ac_ext <<_ACEOF
7321 program main
7322
7323 end
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7327 case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_f77_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_cv_prog_f77_g=yes
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7346
7347 ac_cv_prog_f77_g=no
7348 fi
7349
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351
7352 fi
7353 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7354 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7355 if test "$ac_test_FFLAGS" = set; then
7356 FFLAGS=$ac_save_FFLAGS
7357 elif test $ac_cv_prog_f77_g = yes; then
7358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7359 FFLAGS="-g -O2"
7360 else
7361 FFLAGS="-g"
7362 fi
7363 else
7364 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7365 FFLAGS="-O2"
7366 else
7367 FFLAGS=
7368 fi
7369 fi
7370
7371 G77=`test $ac_compiler_gnu = yes && echo yes`
7372 ac_ext=c
7373 ac_cpp='$CPP $CPPFLAGS'
7374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377
7378
7379
7380 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7381 # find the maximum length of command line arguments
7382 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7383 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7384 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 i=0
7388 teststring="ABCD"
7389
7390 case $build_os in
7391 msdosdjgpp*)
7392 # On DJGPP, this test can blow up pretty badly due to problems in libc
7393 # (any single argument exceeding 2000 bytes causes a buffer overrun
7394 # during glob expansion). Even if it were fixed, the result of this
7395 # check would be larger than it should be.
7396 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7397 ;;
7398
7399 gnu*)
7400 # Under GNU Hurd, this test is not required because there is
7401 # no limit to the length of command line arguments.
7402 # Libtool will interpret -1 as no limit whatsoever
7403 lt_cv_sys_max_cmd_len=-1;
7404 ;;
7405
7406 cygwin* | mingw*)
7407 # On Win9x/ME, this test blows up -- it succeeds, but takes
7408 # about 5 minutes as the teststring grows exponentially.
7409 # Worse, since 9x/ME are not pre-emptively multitasking,
7410 # you end up with a "frozen" computer, even though with patience
7411 # the test eventually succeeds (with a max line length of 256k).
7412 # Instead, let's just punt: use the minimum linelength reported by
7413 # all of the supported platforms: 8192 (on NT/2K/XP).
7414 lt_cv_sys_max_cmd_len=8192;
7415 ;;
7416
7417 amigaos*)
7418 # On AmigaOS with pdksh, this test takes hours, literally.
7419 # So we just punt and use a minimum line length of 8192.
7420 lt_cv_sys_max_cmd_len=8192;
7421 ;;
7422
7423 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7424 # This has been around since 386BSD, at least. Likely further.
7425 if test -x /sbin/sysctl; then
7426 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7427 elif test -x /usr/sbin/sysctl; then
7428 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7429 else
7430 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7431 fi
7432 # And add a safety zone
7433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7435 ;;
7436
7437 interix*)
7438 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7439 lt_cv_sys_max_cmd_len=196608
7440 ;;
7441
7442 osf*)
7443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7445 # nice to cause kernel panics so lets avoid the loop below.
7446 # First set a reasonable default.
7447 lt_cv_sys_max_cmd_len=16384
7448 #
7449 if test -x /sbin/sysconfig; then
7450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7451 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7452 esac
7453 fi
7454 ;;
7455 sco3.2v5*)
7456 lt_cv_sys_max_cmd_len=102400
7457 ;;
7458 sysv5* | sco5v6* | sysv4.2uw2*)
7459 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7460 if test -n "$kargmax"; then
7461 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7462 else
7463 lt_cv_sys_max_cmd_len=32768
7464 fi
7465 ;;
7466 *)
7467 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7468 if test -n "$lt_cv_sys_max_cmd_len"; then
7469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7471 else
7472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7473 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7474 = "XX$teststring") >/dev/null 2>&1 &&
7475 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7476 lt_cv_sys_max_cmd_len=$new_result &&
7477 test $i != 17 # 1/2 MB should be enough
7478 do
7479 i=`expr $i + 1`
7480 teststring=$teststring$teststring
7481 done
7482 teststring=
7483 # Add a significant safety factor because C++ compilers can tack on massive
7484 # amounts of additional arguments before passing them to the linker.
7485 # It appears as though 1/2 is a usable value.
7486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7487 fi
7488 ;;
7489 esac
7490
7491 fi
7492
7493 if test -n $lt_cv_sys_max_cmd_len ; then
7494 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7495 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7496 else
7497 { echo "$as_me:$LINENO: result: none" >&5
7498 echo "${ECHO_T}none" >&6; }
7499 fi
7500
7501
7502
7503
7504
7505 # Check for command to grab the raw symbol name followed by C symbol from nm.
7506 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7507 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511
7512 # These are sane defaults that work on at least a few old systems.
7513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7514
7515 # Character class describing NM global symbol codes.
7516 symcode='[BCDEGRST]'
7517
7518 # Regexp to match symbols that can be accessed directly from C.
7519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7520
7521 # Transform an extracted symbol line into a proper C declaration
7522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7523
7524 # Transform an extracted symbol line into symbol name and symbol address
7525 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'"
7526
7527 # Define system-specific variables.
7528 case $host_os in
7529 aix*)
7530 symcode='[BCDT]'
7531 ;;
7532 cygwin* | mingw* | pw32*)
7533 symcode='[ABCDGISTW]'
7534 ;;
7535 hpux*) # Its linker distinguishes data from code symbols
7536 if test "$host_cpu" = ia64; then
7537 symcode='[ABCDEGRST]'
7538 fi
7539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7540 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'"
7541 ;;
7542 linux* | k*bsd*-gnu)
7543 if test "$host_cpu" = ia64; then
7544 symcode='[ABCDGIRSTW]'
7545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7546 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'"
7547 fi
7548 ;;
7549 irix* | nonstopux*)
7550 symcode='[BCDEGRST]'
7551 ;;
7552 osf*)
7553 symcode='[BCDEGQRST]'
7554 ;;
7555 solaris*)
7556 symcode='[BDRT]'
7557 ;;
7558 sco3.2v5*)
7559 symcode='[DT]'
7560 ;;
7561 sysv4.2uw2*)
7562 symcode='[DT]'
7563 ;;
7564 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7565 symcode='[ABDT]'
7566 ;;
7567 sysv4)
7568 symcode='[DFNSTU]'
7569 ;;
7570 esac
7571
7572 # Handle CRLF in mingw tool chain
7573 opt_cr=
7574 case $build_os in
7575 mingw*)
7576 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7577 ;;
7578 esac
7579
7580 # If we're using GNU nm, then use its standard symbol codes.
7581 case `$NM -V 2>&1` in
7582 *GNU* | *'with BFD'*)
7583 symcode='[ABCDGIRSTW]' ;;
7584 esac
7585
7586 # Try without a prefix undercore, then with it.
7587 for ac_symprfx in "" "_"; do
7588
7589 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7590 symxfrm="\\1 $ac_symprfx\\2 \\2"
7591
7592 # Write the raw and C identifiers.
7593 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7594
7595 # Check to see that the pipe works correctly.
7596 pipe_works=no
7597
7598 rm -f conftest*
7599 cat > conftest.$ac_ext <<EOF
7600 #ifdef __cplusplus
7601 extern "C" {
7602 #endif
7603 char nm_test_var;
7604 void nm_test_func(){}
7605 #ifdef __cplusplus
7606 }
7607 #endif
7608 int main(){nm_test_var='a';nm_test_func();return(0);}
7609 EOF
7610
7611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7612 (eval $ac_compile) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; then
7616 # Now try to grab the symbols.
7617 nlist=conftest.nm
7618 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7619 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && test -s "$nlist"; then
7623 # Try sorting and uniquifying the output.
7624 if sort "$nlist" | uniq > "$nlist"T; then
7625 mv -f "$nlist"T "$nlist"
7626 else
7627 rm -f "$nlist"T
7628 fi
7629
7630 # Make sure that we snagged all the symbols we need.
7631 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7632 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7633 cat <<EOF > conftest.$ac_ext
7634 #ifdef __cplusplus
7635 extern "C" {
7636 #endif
7637
7638 EOF
7639 # Now generate the symbol file.
7640 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7641
7642 cat <<EOF >> conftest.$ac_ext
7643 #if defined (__STDC__) && __STDC__
7644 # define lt_ptr_t void *
7645 #else
7646 # define lt_ptr_t char *
7647 # define const
7648 #endif
7649
7650 /* The mapping between symbol names and symbols. */
7651 const struct {
7652 const char *name;
7653 lt_ptr_t address;
7654 }
7655 lt_preloaded_symbols[] =
7656 {
7657 EOF
7658 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7659 cat <<\EOF >> conftest.$ac_ext
7660 {0, (lt_ptr_t) 0}
7661 };
7662
7663 #ifdef __cplusplus
7664 }
7665 #endif
7666 EOF
7667 # Now try linking the two files.
7668 mv conftest.$ac_objext conftstm.$ac_objext
7669 lt_save_LIBS="$LIBS"
7670 lt_save_CFLAGS="$CFLAGS"
7671 LIBS="conftstm.$ac_objext"
7672 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7678 pipe_works=yes
7679 fi
7680 LIBS="$lt_save_LIBS"
7681 CFLAGS="$lt_save_CFLAGS"
7682 else
7683 echo "cannot find nm_test_func in $nlist" >&5
7684 fi
7685 else
7686 echo "cannot find nm_test_var in $nlist" >&5
7687 fi
7688 else
7689 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7690 fi
7691 else
7692 echo "$progname: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 fi
7695 rm -rf conftest* conftst*
7696
7697 # Do not use the global_symbol_pipe unless it works.
7698 if test "$pipe_works" = yes; then
7699 break
7700 else
7701 lt_cv_sys_global_symbol_pipe=
7702 fi
7703 done
7704
7705 fi
7706
7707 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7708 lt_cv_sys_global_symbol_to_cdecl=
7709 fi
7710 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7711 { echo "$as_me:$LINENO: result: failed" >&5
7712 echo "${ECHO_T}failed" >&6; }
7713 else
7714 { echo "$as_me:$LINENO: result: ok" >&5
7715 echo "${ECHO_T}ok" >&6; }
7716 fi
7717
7718 { echo "$as_me:$LINENO: checking for objdir" >&5
7719 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7720 if test "${lt_cv_objdir+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723 rm -f .libs 2>/dev/null
7724 mkdir .libs 2>/dev/null
7725 if test -d .libs; then
7726 lt_cv_objdir=.libs
7727 else
7728 # MS-DOS does not allow filenames that begin with a dot.
7729 lt_cv_objdir=_libs
7730 fi
7731 rmdir .libs 2>/dev/null
7732 fi
7733 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7734 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7735 objdir=$lt_cv_objdir
7736
7737
7738
7739
7740
7741 case $host_os in
7742 aix3*)
7743 # AIX sometimes has problems with the GCC collect2 program. For some
7744 # reason, if we set the COLLECT_NAMES environment variable, the problems
7745 # vanish in a puff of smoke.
7746 if test "X${COLLECT_NAMES+set}" != Xset; then
7747 COLLECT_NAMES=
7748 export COLLECT_NAMES
7749 fi
7750 ;;
7751 esac
7752
7753 # Sed substitution that helps us do robust quoting. It backslashifies
7754 # metacharacters that are still active within double-quoted strings.
7755 Xsed='sed -e 1s/^X//'
7756 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7757
7758 # Same as above, but do not quote variable references.
7759 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7760
7761 # Sed substitution to delay expansion of an escaped shell variable in a
7762 # double_quote_subst'ed string.
7763 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7764
7765 # Sed substitution to avoid accidental globbing in evaled expressions
7766 no_glob_subst='s/\*/\\\*/g'
7767
7768 # Constants:
7769 rm="rm -f"
7770
7771 # Global variables:
7772 default_ofile=libtool
7773 can_build_shared=yes
7774
7775 # All known linkers require a `.a' archive for static linking (except MSVC,
7776 # which needs '.lib').
7777 libext=a
7778 ltmain="$ac_aux_dir/ltmain.sh"
7779 ofile="$default_ofile"
7780 with_gnu_ld="$lt_cv_prog_gnu_ld"
7781
7782 if test -n "$ac_tool_prefix"; then
7783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7784 set dummy ${ac_tool_prefix}ar; ac_word=$2
7785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787 if test "${ac_cv_prog_AR+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790 if test -n "$AR"; then
7791 ac_cv_prog_AR="$AR" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_prog_AR="${ac_tool_prefix}ar"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808 fi
7809 fi
7810 AR=$ac_cv_prog_AR
7811 if test -n "$AR"; then
7812 { echo "$as_me:$LINENO: result: $AR" >&5
7813 echo "${ECHO_T}$AR" >&6; }
7814 else
7815 { echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6; }
7817 fi
7818
7819
7820 fi
7821 if test -z "$ac_cv_prog_AR"; then
7822 ac_ct_AR=$AR
7823 # Extract the first word of "ar", so it can be a program name with args.
7824 set dummy ar; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830 if test -n "$ac_ct_AR"; then
7831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_ac_ct_AR="ar"
7841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7851 if test -n "$ac_ct_AR"; then
7852 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7853 echo "${ECHO_T}$ac_ct_AR" >&6; }
7854 else
7855 { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7857 fi
7858
7859 if test "x$ac_ct_AR" = x; then
7860 AR="false"
7861 else
7862 case $cross_compiling:$ac_tool_warned in
7863 yes:)
7864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7865 whose name does not start with the host triplet. If you think this
7866 configuration is useful to you, please write to autoconf@gnu.org." >&5
7867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7868 whose name does not start with the host triplet. If you think this
7869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7870 ac_tool_warned=yes ;;
7871 esac
7872 AR=$ac_ct_AR
7873 fi
7874 else
7875 AR="$ac_cv_prog_AR"
7876 fi
7877
7878 if test -n "$ac_tool_prefix"; then
7879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7883 if test "${ac_cv_prog_RANLIB+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 if test -n "$RANLIB"; then
7887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904 fi
7905 fi
7906 RANLIB=$ac_cv_prog_RANLIB
7907 if test -n "$RANLIB"; then
7908 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7909 echo "${ECHO_T}$RANLIB" >&6; }
7910 else
7911 { echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6; }
7913 fi
7914
7915
7916 fi
7917 if test -z "$ac_cv_prog_RANLIB"; then
7918 ac_ct_RANLIB=$RANLIB
7919 # Extract the first word of "ranlib", so it can be a program name with args.
7920 set dummy ranlib; ac_word=$2
7921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 if test -n "$ac_ct_RANLIB"; then
7927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_ac_ct_RANLIB="ranlib"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7947 if test -n "$ac_ct_RANLIB"; then
7948 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7949 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7950 else
7951 { echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6; }
7953 fi
7954
7955 if test "x$ac_ct_RANLIB" = x; then
7956 RANLIB=":"
7957 else
7958 case $cross_compiling:$ac_tool_warned in
7959 yes:)
7960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7961 whose name does not start with the host triplet. If you think this
7962 configuration is useful to you, please write to autoconf@gnu.org." >&5
7963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7964 whose name does not start with the host triplet. If you think this
7965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7966 ac_tool_warned=yes ;;
7967 esac
7968 RANLIB=$ac_ct_RANLIB
7969 fi
7970 else
7971 RANLIB="$ac_cv_prog_RANLIB"
7972 fi
7973
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7976 set dummy ${ac_tool_prefix}strip; ac_word=$2
7977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7979 if test "${ac_cv_prog_STRIP+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 if test -n "$STRIP"; then
7983 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7992 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996 done
7997 done
7998 IFS=$as_save_IFS
7999
8000 fi
8001 fi
8002 STRIP=$ac_cv_prog_STRIP
8003 if test -n "$STRIP"; then
8004 { echo "$as_me:$LINENO: result: $STRIP" >&5
8005 echo "${ECHO_T}$STRIP" >&6; }
8006 else
8007 { echo "$as_me:$LINENO: result: no" >&5
8008 echo "${ECHO_T}no" >&6; }
8009 fi
8010
8011
8012 fi
8013 if test -z "$ac_cv_prog_STRIP"; then
8014 ac_ct_STRIP=$STRIP
8015 # Extract the first word of "strip", so it can be a program name with args.
8016 set dummy strip; ac_word=$2
8017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8019 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022 if test -n "$ac_ct_STRIP"; then
8023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_prog_ac_ct_STRIP="strip"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8043 if test -n "$ac_ct_STRIP"; then
8044 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8045 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8046 else
8047 { echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6; }
8049 fi
8050
8051 if test "x$ac_ct_STRIP" = x; then
8052 STRIP=":"
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055 yes:)
8056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8057 whose name does not start with the host triplet. If you think this
8058 configuration is useful to you, please write to autoconf@gnu.org." >&5
8059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8060 whose name does not start with the host triplet. If you think this
8061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064 STRIP=$ac_ct_STRIP
8065 fi
8066 else
8067 STRIP="$ac_cv_prog_STRIP"
8068 fi
8069
8070
8071 old_CC="$CC"
8072 old_CFLAGS="$CFLAGS"
8073
8074 # Set sane defaults for various variables
8075 test -z "$AR" && AR=ar
8076 test -z "$AR_FLAGS" && AR_FLAGS=cru
8077 test -z "$AS" && AS=as
8078 test -z "$CC" && CC=cc
8079 test -z "$LTCC" && LTCC=$CC
8080 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8081 test -z "$DLLTOOL" && DLLTOOL=dlltool
8082 test -z "$LD" && LD=ld
8083 test -z "$LN_S" && LN_S="ln -s"
8084 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8085 test -z "$NM" && NM=nm
8086 test -z "$SED" && SED=sed
8087 test -z "$OBJDUMP" && OBJDUMP=objdump
8088 test -z "$RANLIB" && RANLIB=:
8089 test -z "$STRIP" && STRIP=:
8090 test -z "$ac_objext" && ac_objext=o
8091
8092 # Determine commands to create old-style static archives.
8093 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8094 old_postinstall_cmds='chmod 644 $oldlib'
8095 old_postuninstall_cmds=
8096
8097 if test -n "$RANLIB"; then
8098 case $host_os in
8099 openbsd*)
8100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8101 ;;
8102 *)
8103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8104 ;;
8105 esac
8106 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8107 fi
8108
8109 for cc_temp in $compiler""; do
8110 case $cc_temp in
8111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8113 \-*) ;;
8114 *) break;;
8115 esac
8116 done
8117 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8118
8119
8120 # Only perform the check for file, if the check method requires it
8121 case $deplibs_check_method in
8122 file_magic*)
8123 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8124 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8125 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8126 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129 case $MAGIC_CMD in
8130 [\\/*] | ?:[\\/]*)
8131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8132 ;;
8133 *)
8134 lt_save_MAGIC_CMD="$MAGIC_CMD"
8135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8137 for ac_dir in $ac_dummy; do
8138 IFS="$lt_save_ifs"
8139 test -z "$ac_dir" && ac_dir=.
8140 if test -f $ac_dir/${ac_tool_prefix}file; then
8141 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8142 if test -n "$file_magic_test_file"; then
8143 case $deplibs_check_method in
8144 "file_magic "*)
8145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8148 $EGREP "$file_magic_regex" > /dev/null; then
8149 :
8150 else
8151 cat <<EOF 1>&2
8152
8153 *** Warning: the command libtool uses to detect shared libraries,
8154 *** $file_magic_cmd, produces output that libtool cannot recognize.
8155 *** The result is that libtool may fail to recognize shared libraries
8156 *** as such. This will affect the creation of libtool libraries that
8157 *** depend on shared libraries, but programs linked with such libtool
8158 *** libraries will work regardless of this problem. Nevertheless, you
8159 *** may want to report the problem to your system manager and/or to
8160 *** bug-libtool@gnu.org
8161
8162 EOF
8163 fi ;;
8164 esac
8165 fi
8166 break
8167 fi
8168 done
8169 IFS="$lt_save_ifs"
8170 MAGIC_CMD="$lt_save_MAGIC_CMD"
8171 ;;
8172 esac
8173 fi
8174
8175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8176 if test -n "$MAGIC_CMD"; then
8177 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8178 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8179 else
8180 { echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6; }
8182 fi
8183
8184 if test -z "$lt_cv_path_MAGIC_CMD"; then
8185 if test -n "$ac_tool_prefix"; then
8186 { echo "$as_me:$LINENO: checking for file" >&5
8187 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191 case $MAGIC_CMD in
8192 [\\/*] | ?:[\\/]*)
8193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8194 ;;
8195 *)
8196 lt_save_MAGIC_CMD="$MAGIC_CMD"
8197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8199 for ac_dir in $ac_dummy; do
8200 IFS="$lt_save_ifs"
8201 test -z "$ac_dir" && ac_dir=.
8202 if test -f $ac_dir/file; then
8203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8204 if test -n "$file_magic_test_file"; then
8205 case $deplibs_check_method in
8206 "file_magic "*)
8207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8210 $EGREP "$file_magic_regex" > /dev/null; then
8211 :
8212 else
8213 cat <<EOF 1>&2
8214
8215 *** Warning: the command libtool uses to detect shared libraries,
8216 *** $file_magic_cmd, produces output that libtool cannot recognize.
8217 *** The result is that libtool may fail to recognize shared libraries
8218 *** as such. This will affect the creation of libtool libraries that
8219 *** depend on shared libraries, but programs linked with such libtool
8220 *** libraries will work regardless of this problem. Nevertheless, you
8221 *** may want to report the problem to your system manager and/or to
8222 *** bug-libtool@gnu.org
8223
8224 EOF
8225 fi ;;
8226 esac
8227 fi
8228 break
8229 fi
8230 done
8231 IFS="$lt_save_ifs"
8232 MAGIC_CMD="$lt_save_MAGIC_CMD"
8233 ;;
8234 esac
8235 fi
8236
8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238 if test -n "$MAGIC_CMD"; then
8239 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8240 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8241 else
8242 { echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6; }
8244 fi
8245
8246 else
8247 MAGIC_CMD=:
8248 fi
8249 fi
8250
8251 fi
8252 ;;
8253 esac
8254
8255
8256 case $host_os in
8257 rhapsody* | darwin*)
8258 if test -n "$ac_tool_prefix"; then
8259 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8260 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8263 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266 if test -n "$DSYMUTIL"; then
8267 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280 done
8281 done
8282 IFS=$as_save_IFS
8283
8284 fi
8285 fi
8286 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8287 if test -n "$DSYMUTIL"; then
8288 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8289 echo "${ECHO_T}$DSYMUTIL" >&6; }
8290 else
8291 { echo "$as_me:$LINENO: result: no" >&5
8292 echo "${ECHO_T}no" >&6; }
8293 fi
8294
8295
8296 fi
8297 if test -z "$ac_cv_prog_DSYMUTIL"; then
8298 ac_ct_DSYMUTIL=$DSYMUTIL
8299 # Extract the first word of "dsymutil", so it can be a program name with args.
8300 set dummy dsymutil; ac_word=$2
8301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8303 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 if test -n "$ac_ct_DSYMUTIL"; then
8307 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8319 fi
8320 done
8321 done
8322 IFS=$as_save_IFS
8323
8324 fi
8325 fi
8326 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8327 if test -n "$ac_ct_DSYMUTIL"; then
8328 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8329 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8330 else
8331 { echo "$as_me:$LINENO: result: no" >&5
8332 echo "${ECHO_T}no" >&6; }
8333 fi
8334
8335 if test "x$ac_ct_DSYMUTIL" = x; then
8336 DSYMUTIL=":"
8337 else
8338 case $cross_compiling:$ac_tool_warned in
8339 yes:)
8340 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8341 whose name does not start with the host triplet. If you think this
8342 configuration is useful to you, please write to autoconf@gnu.org." >&5
8343 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8344 whose name does not start with the host triplet. If you think this
8345 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8346 ac_tool_warned=yes ;;
8347 esac
8348 DSYMUTIL=$ac_ct_DSYMUTIL
8349 fi
8350 else
8351 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8352 fi
8353
8354 if test -n "$ac_tool_prefix"; then
8355 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8356 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362 if test -n "$NMEDIT"; then
8363 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376 done
8377 done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 NMEDIT=$ac_cv_prog_NMEDIT
8383 if test -n "$NMEDIT"; then
8384 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8385 echo "${ECHO_T}$NMEDIT" >&6; }
8386 else
8387 { echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6; }
8389 fi
8390
8391
8392 fi
8393 if test -z "$ac_cv_prog_NMEDIT"; then
8394 ac_ct_NMEDIT=$NMEDIT
8395 # Extract the first word of "nmedit", so it can be a program name with args.
8396 set dummy nmedit; ac_word=$2
8397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8399 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 if test -n "$ac_ct_NMEDIT"; then
8403 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8423 if test -n "$ac_ct_NMEDIT"; then
8424 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8425 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8426 else
8427 { echo "$as_me:$LINENO: result: no" >&5
8428 echo "${ECHO_T}no" >&6; }
8429 fi
8430
8431 if test "x$ac_ct_NMEDIT" = x; then
8432 NMEDIT=":"
8433 else
8434 case $cross_compiling:$ac_tool_warned in
8435 yes:)
8436 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8437 whose name does not start with the host triplet. If you think this
8438 configuration is useful to you, please write to autoconf@gnu.org." >&5
8439 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8440 whose name does not start with the host triplet. If you think this
8441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8442 ac_tool_warned=yes ;;
8443 esac
8444 NMEDIT=$ac_ct_NMEDIT
8445 fi
8446 else
8447 NMEDIT="$ac_cv_prog_NMEDIT"
8448 fi
8449
8450
8451 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8452 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8453 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 lt_cv_apple_cc_single_mod=no
8457 if test -z "${LT_MULTI_MODULE}"; then
8458 # By default we will add the -single_module flag. You can override
8459 # by either setting the environment variable LT_MULTI_MODULE
8460 # non-empty at configure time, or by adding -multi_module to the
8461 # link flags.
8462 echo "int foo(void){return 1;}" > conftest.c
8463 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8464 -dynamiclib ${wl}-single_module conftest.c
8465 if test -f libconftest.dylib; then
8466 lt_cv_apple_cc_single_mod=yes
8467 rm -rf libconftest.dylib*
8468 fi
8469 rm conftest.c
8470 fi
8471 fi
8472 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8473 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8474 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8475 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8476 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 lt_cv_ld_exported_symbols_list=no
8480 save_LDFLAGS=$LDFLAGS
8481 echo "_main" > conftest.sym
8482 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h. */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8489
8490 int
8491 main ()
8492 {
8493
8494 ;
8495 return 0;
8496 }
8497 _ACEOF
8498 rm -f conftest.$ac_objext conftest$ac_exeext
8499 if { (ac_try="$ac_link"
8500 case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503 esac
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_link") 2>conftest.er1
8506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } && {
8512 test -z "$ac_c_werror_flag" ||
8513 test ! -s conftest.err
8514 } && test -s conftest$ac_exeext &&
8515 $as_test_x conftest$ac_exeext; then
8516 lt_cv_ld_exported_symbols_list=yes
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 lt_cv_ld_exported_symbols_list=no
8522 fi
8523
8524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8525 conftest$ac_exeext conftest.$ac_ext
8526 LDFLAGS="$save_LDFLAGS"
8527
8528 fi
8529 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8530 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8531 case $host_os in
8532 rhapsody* | darwin1.[0123])
8533 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8534 darwin1.*)
8535 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8536 darwin*)
8537 # if running on 10.5 or later, the deployment target defaults
8538 # to the OS version, if on x86, and 10.4, the deployment
8539 # target defaults to 10.4. Don't you love it?
8540 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8541 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8542 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8543 10.[012]*)
8544 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8545 10.*)
8546 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8547 esac
8548 ;;
8549 esac
8550 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8551 _lt_dar_single_mod='$single_module'
8552 fi
8553 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8554 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8555 else
8556 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8557 fi
8558 if test "$DSYMUTIL" != ":"; then
8559 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8560 else
8561 _lt_dsymutil=
8562 fi
8563 ;;
8564 esac
8565
8566
8567 enable_dlopen=no
8568 enable_win32_dll=no
8569
8570 # Check whether --enable-libtool-lock was given.
8571 if test "${enable_libtool_lock+set}" = set; then
8572 enableval=$enable_libtool_lock;
8573 fi
8574
8575 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8576
8577
8578 # Check whether --with-pic was given.
8579 if test "${with_pic+set}" = set; then
8580 withval=$with_pic; pic_mode="$withval"
8581 else
8582 pic_mode=default
8583 fi
8584
8585 test -z "$pic_mode" && pic_mode=default
8586
8587 # Use C for the default configuration in the libtool script
8588 tagname=
8589 lt_save_CC="$CC"
8590 ac_ext=c
8591 ac_cpp='$CPP $CPPFLAGS'
8592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8595
8596
8597 # Source file extension for C test sources.
8598 ac_ext=c
8599
8600 # Object file extension for compiled C test sources.
8601 objext=o
8602 objext=$objext
8603
8604 # Code to be used in simple compile tests
8605 lt_simple_compile_test_code="int some_variable = 0;"
8606
8607 # Code to be used in simple link tests
8608 lt_simple_link_test_code='int main(){return(0);}'
8609
8610
8611 # If no C compiler was specified, use CC.
8612 LTCC=${LTCC-"$CC"}
8613
8614 # If no C compiler flags were specified, use CFLAGS.
8615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8616
8617 # Allow CC to be a program name with arguments.
8618 compiler=$CC
8619
8620
8621 # save warnings/boilerplate of simple test code
8622 ac_outfile=conftest.$ac_objext
8623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8625 _lt_compiler_boilerplate=`cat conftest.err`
8626 $rm conftest*
8627
8628 ac_outfile=conftest.$ac_objext
8629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8631 _lt_linker_boilerplate=`cat conftest.err`
8632 $rm -r conftest*
8633
8634
8635
8636 lt_prog_compiler_no_builtin_flag=
8637
8638 if test "$GCC" = yes; then
8639 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8640
8641
8642 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8643 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8644 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8647 lt_cv_prog_compiler_rtti_exceptions=no
8648 ac_outfile=conftest.$ac_objext
8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650 lt_compiler_flag="-fno-rtti -fno-exceptions"
8651 # Insert the option either (1) after the last *FLAGS variable, or
8652 # (2) before a word containing "conftest.", or (3) at the end.
8653 # Note that $ac_compile itself does not contain backslashes and begins
8654 # with a dollar sign (not a hyphen), so the echo should work correctly.
8655 # The option is referenced via a variable to avoid confusing sed.
8656 lt_compile=`echo "$ac_compile" | $SED \
8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659 -e 's:$: $lt_compiler_flag:'`
8660 (eval echo "\"\$as_me:8660: $lt_compile\"" >&5)
8661 (eval "$lt_compile" 2>conftest.err)
8662 ac_status=$?
8663 cat conftest.err >&5
8664 echo "$as_me:8664: \$? = $ac_status" >&5
8665 if (exit $ac_status) && test -s "$ac_outfile"; then
8666 # The compiler can only warn and ignore the option if not recognized
8667 # So say no if there are warnings other than the usual output.
8668 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8671 lt_cv_prog_compiler_rtti_exceptions=yes
8672 fi
8673 fi
8674 $rm conftest*
8675
8676 fi
8677 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8678 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8679
8680 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8682 else
8683 :
8684 fi
8685
8686 fi
8687
8688 lt_prog_compiler_wl=
8689 lt_prog_compiler_pic=
8690 lt_prog_compiler_static=
8691
8692 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8693 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8694
8695 if test "$GCC" = yes; then
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_static='-static'
8698
8699 case $host_os in
8700 aix*)
8701 # All AIX code is PIC.
8702 if test "$host_cpu" = ia64; then
8703 # AIX 5 now supports IA64 processor
8704 lt_prog_compiler_static='-Bstatic'
8705 fi
8706 ;;
8707
8708 amigaos*)
8709 # FIXME: we need at least 68020 code to build shared libraries, but
8710 # adding the `-m68020' flag to GCC prevents building anything better,
8711 # like `-m68040'.
8712 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8713 ;;
8714
8715 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8716 # PIC is the default for these OSes.
8717 ;;
8718
8719 mingw* | cygwin* | pw32* | os2*)
8720 # This hack is so that the source file can tell whether it is being
8721 # built for inclusion in a dll (and should export symbols for example).
8722 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8723 # (--disable-auto-import) libraries
8724 lt_prog_compiler_pic='-DDLL_EXPORT'
8725 ;;
8726
8727 darwin* | rhapsody*)
8728 # PIC is the default on this platform
8729 # Common symbols not allowed in MH_DYLIB files
8730 lt_prog_compiler_pic='-fno-common'
8731 ;;
8732
8733 interix[3-9]*)
8734 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8735 # Instead, we relocate shared libraries at runtime.
8736 ;;
8737
8738 msdosdjgpp*)
8739 # Just because we use GCC doesn't mean we suddenly get shared libraries
8740 # on systems that don't support them.
8741 lt_prog_compiler_can_build_shared=no
8742 enable_shared=no
8743 ;;
8744
8745 sysv4*MP*)
8746 if test -d /usr/nec; then
8747 lt_prog_compiler_pic=-Kconform_pic
8748 fi
8749 ;;
8750
8751 hpux*)
8752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8753 # not for PA HP-UX.
8754 case $host_cpu in
8755 hppa*64*|ia64*)
8756 # +Z the default
8757 ;;
8758 *)
8759 lt_prog_compiler_pic='-fPIC'
8760 ;;
8761 esac
8762 ;;
8763
8764 *)
8765 lt_prog_compiler_pic='-fPIC'
8766 ;;
8767 esac
8768 else
8769 # PORTME Check for flag to pass linker flags through the system compiler.
8770 case $host_os in
8771 aix*)
8772 lt_prog_compiler_wl='-Wl,'
8773 if test "$host_cpu" = ia64; then
8774 # AIX 5 now supports IA64 processor
8775 lt_prog_compiler_static='-Bstatic'
8776 else
8777 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8778 fi
8779 ;;
8780 darwin*)
8781 # PIC is the default on this platform
8782 # Common symbols not allowed in MH_DYLIB files
8783 case $cc_basename in
8784 xlc*)
8785 lt_prog_compiler_pic='-qnocommon'
8786 lt_prog_compiler_wl='-Wl,'
8787 ;;
8788 esac
8789 ;;
8790
8791 mingw* | cygwin* | pw32* | os2*)
8792 # This hack is so that the source file can tell whether it is being
8793 # built for inclusion in a dll (and should export symbols for example).
8794 lt_prog_compiler_pic='-DDLL_EXPORT'
8795 ;;
8796
8797 hpux9* | hpux10* | hpux11*)
8798 lt_prog_compiler_wl='-Wl,'
8799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8800 # not for PA HP-UX.
8801 case $host_cpu in
8802 hppa*64*|ia64*)
8803 # +Z the default
8804 ;;
8805 *)
8806 lt_prog_compiler_pic='+Z'
8807 ;;
8808 esac
8809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8810 lt_prog_compiler_static='${wl}-a ${wl}archive'
8811 ;;
8812
8813 irix5* | irix6* | nonstopux*)
8814 lt_prog_compiler_wl='-Wl,'
8815 # PIC (with -KPIC) is the default.
8816 lt_prog_compiler_static='-non_shared'
8817 ;;
8818
8819 newsos6)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 ;;
8823
8824 linux* | k*bsd*-gnu)
8825 case $cc_basename in
8826 icc* | ecc*)
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-static'
8830 ;;
8831 pgcc* | pgf77* | pgf90* | pgf95*)
8832 # Portland Group compilers (*not* the Pentium gcc compiler,
8833 # which looks to be a dead project)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fpic'
8836 lt_prog_compiler_static='-Bstatic'
8837 ;;
8838 ccc*)
8839 lt_prog_compiler_wl='-Wl,'
8840 # All Alpha code is PIC.
8841 lt_prog_compiler_static='-non_shared'
8842 ;;
8843 *)
8844 case `$CC -V 2>&1 | sed 5q` in
8845 *Sun\ C*)
8846 # Sun C 5.9
8847 lt_prog_compiler_pic='-KPIC'
8848 lt_prog_compiler_static='-Bstatic'
8849 lt_prog_compiler_wl='-Wl,'
8850 ;;
8851 *Sun\ F*)
8852 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8855 lt_prog_compiler_wl=''
8856 ;;
8857 esac
8858 ;;
8859 esac
8860 ;;
8861
8862 osf3* | osf4* | osf5*)
8863 lt_prog_compiler_wl='-Wl,'
8864 # All OSF/1 code is PIC.
8865 lt_prog_compiler_static='-non_shared'
8866 ;;
8867
8868 rdos*)
8869 lt_prog_compiler_static='-non_shared'
8870 ;;
8871
8872 solaris*)
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 case $cc_basename in
8876 f77* | f90* | f95*)
8877 lt_prog_compiler_wl='-Qoption ld ';;
8878 *)
8879 lt_prog_compiler_wl='-Wl,';;
8880 esac
8881 ;;
8882
8883 sunos4*)
8884 lt_prog_compiler_wl='-Qoption ld '
8885 lt_prog_compiler_pic='-PIC'
8886 lt_prog_compiler_static='-Bstatic'
8887 ;;
8888
8889 sysv4 | sysv4.2uw2* | sysv4.3*)
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-KPIC'
8892 lt_prog_compiler_static='-Bstatic'
8893 ;;
8894
8895 sysv4*MP*)
8896 if test -d /usr/nec ;then
8897 lt_prog_compiler_pic='-Kconform_pic'
8898 lt_prog_compiler_static='-Bstatic'
8899 fi
8900 ;;
8901
8902 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 ;;
8907
8908 unicos*)
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_can_build_shared=no
8911 ;;
8912
8913 uts4*)
8914 lt_prog_compiler_pic='-pic'
8915 lt_prog_compiler_static='-Bstatic'
8916 ;;
8917
8918 *)
8919 lt_prog_compiler_can_build_shared=no
8920 ;;
8921 esac
8922 fi
8923
8924 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8925 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8926
8927 #
8928 # Check to make sure the PIC flag actually works.
8929 #
8930 if test -n "$lt_prog_compiler_pic"; then
8931
8932 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8933 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8934 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937 lt_cv_prog_compiler_pic_works=no
8938 ac_outfile=conftest.$ac_objext
8939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 # The option is referenced via a variable to avoid confusing sed.
8946 lt_compile=`echo "$ac_compile" | $SED \
8947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8949 -e 's:$: $lt_compiler_flag:'`
8950 (eval echo "\"\$as_me:8950: $lt_compile\"" >&5)
8951 (eval "$lt_compile" 2>conftest.err)
8952 ac_status=$?
8953 cat conftest.err >&5
8954 echo "$as_me:8954: \$? = $ac_status" >&5
8955 if (exit $ac_status) && test -s "$ac_outfile"; then
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings other than the usual output.
8958 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8961 lt_cv_prog_compiler_pic_works=yes
8962 fi
8963 fi
8964 $rm conftest*
8965
8966 fi
8967 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8968 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8969
8970 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8971 case $lt_prog_compiler_pic in
8972 "" | " "*) ;;
8973 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8974 esac
8975 else
8976 lt_prog_compiler_pic=
8977 lt_prog_compiler_can_build_shared=no
8978 fi
8979
8980 fi
8981 case $host_os in
8982 # For platforms which do not support PIC, -DPIC is meaningless:
8983 *djgpp*)
8984 lt_prog_compiler_pic=
8985 ;;
8986 *)
8987 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8988 ;;
8989 esac
8990
8991 #
8992 # Check to make sure the static flag actually works.
8993 #
8994 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8995 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8996 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8997 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000 lt_cv_prog_compiler_static_works=no
9001 save_LDFLAGS="$LDFLAGS"
9002 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9005 # The linker can only warn and ignore the option if not recognized
9006 # So say no if there are warnings
9007 if test -s conftest.err; then
9008 # Append any errors to the config.log.
9009 cat conftest.err 1>&5
9010 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012 if diff conftest.exp conftest.er2 >/dev/null; then
9013 lt_cv_prog_compiler_static_works=yes
9014 fi
9015 else
9016 lt_cv_prog_compiler_static_works=yes
9017 fi
9018 fi
9019 $rm -r conftest*
9020 LDFLAGS="$save_LDFLAGS"
9021
9022 fi
9023 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9024 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9025
9026 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9027 :
9028 else
9029 lt_prog_compiler_static=
9030 fi
9031
9032
9033 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9034 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9035 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 lt_cv_prog_compiler_c_o=no
9039 $rm -r conftest 2>/dev/null
9040 mkdir conftest
9041 cd conftest
9042 mkdir out
9043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044
9045 lt_compiler_flag="-o out/conftest2.$ac_objext"
9046 # Insert the option either (1) after the last *FLAGS variable, or
9047 # (2) before a word containing "conftest.", or (3) at the end.
9048 # Note that $ac_compile itself does not contain backslashes and begins
9049 # with a dollar sign (not a hyphen), so the echo should work correctly.
9050 lt_compile=`echo "$ac_compile" | $SED \
9051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053 -e 's:$: $lt_compiler_flag:'`
9054 (eval echo "\"\$as_me:9054: $lt_compile\"" >&5)
9055 (eval "$lt_compile" 2>out/conftest.err)
9056 ac_status=$?
9057 cat out/conftest.err >&5
9058 echo "$as_me:9058: \$? = $ac_status" >&5
9059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9060 then
9061 # The compiler can only warn and ignore the option if not recognized
9062 # So say no if there are warnings
9063 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9066 lt_cv_prog_compiler_c_o=yes
9067 fi
9068 fi
9069 chmod u+w . 2>&5
9070 $rm conftest*
9071 # SGI C++ compiler will create directory out/ii_files/ for
9072 # template instantiation
9073 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9074 $rm out/* && rmdir out
9075 cd ..
9076 rmdir conftest
9077 $rm conftest*
9078
9079 fi
9080 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9081 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9082
9083
9084 hard_links="nottested"
9085 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9086 # do not overwrite the value of need_locks provided by the user
9087 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9088 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9089 hard_links=yes
9090 $rm conftest*
9091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9092 touch conftest.a
9093 ln conftest.a conftest.b 2>&5 || hard_links=no
9094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9095 { echo "$as_me:$LINENO: result: $hard_links" >&5
9096 echo "${ECHO_T}$hard_links" >&6; }
9097 if test "$hard_links" = no; then
9098 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9099 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9100 need_locks=warn
9101 fi
9102 else
9103 need_locks=no
9104 fi
9105
9106 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9107 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9108
9109 runpath_var=
9110 allow_undefined_flag=
9111 enable_shared_with_static_runtimes=no
9112 archive_cmds=
9113 archive_expsym_cmds=
9114 old_archive_From_new_cmds=
9115 old_archive_from_expsyms_cmds=
9116 export_dynamic_flag_spec=
9117 whole_archive_flag_spec=
9118 thread_safe_flag_spec=
9119 hardcode_libdir_flag_spec=
9120 hardcode_libdir_flag_spec_ld=
9121 hardcode_libdir_separator=
9122 hardcode_direct=no
9123 hardcode_minus_L=no
9124 hardcode_shlibpath_var=unsupported
9125 link_all_deplibs=unknown
9126 hardcode_automatic=no
9127 module_cmds=
9128 module_expsym_cmds=
9129 always_export_symbols=no
9130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9131 # include_expsyms should be a list of space-separated symbols to be *always*
9132 # included in the symbol list
9133 include_expsyms=
9134 # exclude_expsyms can be an extended regexp of symbols to exclude
9135 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9136 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9137 # as well as any symbol that contains `d'.
9138 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9140 # platforms (ab)use it in PIC code, but their linkers get confused if
9141 # the symbol is explicitly referenced. Since portable code cannot
9142 # rely on this symbol name, it's probably fine to never include it in
9143 # preloaded symbol tables.
9144 # Exclude shared library initialization/finalization symbols.
9145 extract_expsyms_cmds=
9146 # Just being paranoid about ensuring that cc_basename is set.
9147 for cc_temp in $compiler""; do
9148 case $cc_temp in
9149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9151 \-*) ;;
9152 *) break;;
9153 esac
9154 done
9155 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9156
9157 case $host_os in
9158 cygwin* | mingw* | pw32*)
9159 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9160 # When not using gcc, we currently assume that we are using
9161 # Microsoft Visual C++.
9162 if test "$GCC" != yes; then
9163 with_gnu_ld=no
9164 fi
9165 ;;
9166 interix*)
9167 # we just hope/assume this is gcc and not c89 (= MSVC++)
9168 with_gnu_ld=yes
9169 ;;
9170 openbsd*)
9171 with_gnu_ld=no
9172 ;;
9173 esac
9174
9175 ld_shlibs=yes
9176 if test "$with_gnu_ld" = yes; then
9177 # If archive_cmds runs LD, not CC, wlarc should be empty
9178 wlarc='${wl}'
9179
9180 # Set some defaults for GNU ld with shared library support. These
9181 # are reset later if shared libraries are not supported. Putting them
9182 # here allows them to be overridden if necessary.
9183 runpath_var=LD_RUN_PATH
9184 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9185 export_dynamic_flag_spec='${wl}--export-dynamic'
9186 # ancient GNU ld didn't support --whole-archive et. al.
9187 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9188 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9189 else
9190 whole_archive_flag_spec=
9191 fi
9192 supports_anon_versioning=no
9193 case `$LD -v 2>/dev/null` in
9194 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9197 *\ 2.11.*) ;; # other 2.11 versions
9198 *) supports_anon_versioning=yes ;;
9199 esac
9200
9201 # See if GNU ld supports shared libraries.
9202 case $host_os in
9203 aix[3-9]*)
9204 # On AIX/PPC, the GNU linker is very broken
9205 if test "$host_cpu" != ia64; then
9206 ld_shlibs=no
9207 cat <<EOF 1>&2
9208
9209 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9210 *** to be unable to reliably create shared libraries on AIX.
9211 *** Therefore, libtool is disabling shared libraries support. If you
9212 *** really care for shared libraries, you may want to modify your PATH
9213 *** so that a non-GNU linker is found, and then restart.
9214
9215 EOF
9216 fi
9217 ;;
9218
9219 amigaos*)
9220 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)'
9221 hardcode_libdir_flag_spec='-L$libdir'
9222 hardcode_minus_L=yes
9223
9224 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9225 # that the semantics of dynamic libraries on AmigaOS, at least up
9226 # to version 4, is to share data among multiple programs linked
9227 # with the same dynamic library. Since this doesn't match the
9228 # behavior of shared libraries on other platforms, we can't use
9229 # them.
9230 ld_shlibs=no
9231 ;;
9232
9233 beos*)
9234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9235 allow_undefined_flag=unsupported
9236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9237 # support --undefined. This deserves some investigation. FIXME
9238 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239 else
9240 ld_shlibs=no
9241 fi
9242 ;;
9243
9244 cygwin* | mingw* | pw32*)
9245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9246 # as there is no search path for DLLs.
9247 hardcode_libdir_flag_spec='-L$libdir'
9248 allow_undefined_flag=unsupported
9249 always_export_symbols=no
9250 enable_shared_with_static_runtimes=yes
9251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9252
9253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9255 # If the export-symbols file already is a .def file (1st line
9256 # is EXPORTS), use it as is; otherwise, prepend...
9257 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9258 cp $export_symbols $output_objdir/$soname.def;
9259 else
9260 echo EXPORTS > $output_objdir/$soname.def;
9261 cat $export_symbols >> $output_objdir/$soname.def;
9262 fi~
9263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9264 else
9265 ld_shlibs=no
9266 fi
9267 ;;
9268
9269 interix[3-9]*)
9270 hardcode_direct=no
9271 hardcode_shlibpath_var=no
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 export_dynamic_flag_spec='${wl}-E'
9274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9275 # Instead, shared libraries are loaded at an image base (0x10000000 by
9276 # default) and relocated if they conflict, which is a slow very memory
9277 # consuming and fragmenting process. To avoid this, we pick a random,
9278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9281 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'
9282 ;;
9283
9284 gnu* | linux* | k*bsd*-gnu)
9285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9286 tmp_addflag=
9287 case $cc_basename,$host_cpu in
9288 pgcc*) # Portland Group C compiler
9289 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'
9290 tmp_addflag=' $pic_flag'
9291 ;;
9292 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9293 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'
9294 tmp_addflag=' $pic_flag -Mnomain' ;;
9295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9296 tmp_addflag=' -i_dynamic' ;;
9297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9298 tmp_addflag=' -i_dynamic -nofor_main' ;;
9299 ifc* | ifort*) # Intel Fortran compiler
9300 tmp_addflag=' -nofor_main' ;;
9301 esac
9302 case `$CC -V 2>&1 | sed 5q` in
9303 *Sun\ C*) # Sun C 5.9
9304 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'
9305 tmp_sharedflag='-G' ;;
9306 *Sun\ F*) # Sun Fortran 8.3
9307 tmp_sharedflag='-G' ;;
9308 *)
9309 tmp_sharedflag='-shared' ;;
9310 esac
9311 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312
9313 if test $supports_anon_versioning = yes; then
9314 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9316 $echo "local: *; };" >> $output_objdir/$libname.ver~
9317 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9318 fi
9319 link_all_deplibs=no
9320 else
9321 ld_shlibs=no
9322 fi
9323 ;;
9324
9325 netbsd* | netbsdelf*-gnu)
9326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9327 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9328 wlarc=
9329 else
9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9332 fi
9333 ;;
9334
9335 solaris*)
9336 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9337 ld_shlibs=no
9338 cat <<EOF 1>&2
9339
9340 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9341 *** create shared libraries on Solaris systems. Therefore, libtool
9342 *** is disabling shared libraries support. We urge you to upgrade GNU
9343 *** binutils to release 2.9.1 or newer. Another option is to modify
9344 *** your PATH or compiler configuration so that the native linker is
9345 *** used, and then restart.
9346
9347 EOF
9348 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351 else
9352 ld_shlibs=no
9353 fi
9354 ;;
9355
9356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9357 case `$LD -v 2>&1` in
9358 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9359 ld_shlibs=no
9360 cat <<_LT_EOF 1>&2
9361
9362 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9363 *** reliably create shared libraries on SCO systems. Therefore, libtool
9364 *** is disabling shared libraries support. We urge you to upgrade GNU
9365 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9366 *** your PATH or compiler configuration so that the native linker is
9367 *** used, and then restart.
9368
9369 _LT_EOF
9370 ;;
9371 *)
9372 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9373 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380 esac
9381 ;;
9382
9383 sunos4*)
9384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385 wlarc=
9386 hardcode_direct=yes
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 *)
9391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9394 else
9395 ld_shlibs=no
9396 fi
9397 ;;
9398 esac
9399
9400 if test "$ld_shlibs" = no; then
9401 runpath_var=
9402 hardcode_libdir_flag_spec=
9403 export_dynamic_flag_spec=
9404 whole_archive_flag_spec=
9405 fi
9406 else
9407 # PORTME fill in a description of your system's linker (not GNU ld)
9408 case $host_os in
9409 aix3*)
9410 allow_undefined_flag=unsupported
9411 always_export_symbols=yes
9412 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'
9413 # Note: this linker hardcodes the directories in LIBPATH if there
9414 # are no directories specified by -L.
9415 hardcode_minus_L=yes
9416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9417 # Neither direct hardcoding nor static linking is supported with a
9418 # broken collect2.
9419 hardcode_direct=unsupported
9420 fi
9421 ;;
9422
9423 aix[4-9]*)
9424 if test "$host_cpu" = ia64; then
9425 # On IA64, the linker does run time linking by default, so we don't
9426 # have to do anything special.
9427 aix_use_runtimelinking=no
9428 exp_sym_flag='-Bexport'
9429 no_entry_flag=""
9430 else
9431 # If we're using GNU nm, then we don't want the "-C" option.
9432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9433 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9434 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'
9435 else
9436 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'
9437 fi
9438 aix_use_runtimelinking=no
9439
9440 # Test if we are trying to use run time linking or normal
9441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9442 # need to do runtime linking.
9443 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9444 for ld_flag in $LDFLAGS; do
9445 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9446 aix_use_runtimelinking=yes
9447 break
9448 fi
9449 done
9450 ;;
9451 esac
9452
9453 exp_sym_flag='-bexport'
9454 no_entry_flag='-bnoentry'
9455 fi
9456
9457 # When large executables or shared objects are built, AIX ld can
9458 # have problems creating the table of contents. If linking a library
9459 # or program results in "error TOC overflow" add -mminimal-toc to
9460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9462
9463 archive_cmds=''
9464 hardcode_direct=yes
9465 hardcode_libdir_separator=':'
9466 link_all_deplibs=yes
9467
9468 if test "$GCC" = yes; then
9469 case $host_os in aix4.[012]|aix4.[012].*)
9470 # We only want to do this on AIX 4.2 and lower, the check
9471 # below for broken collect2 doesn't work under 4.3+
9472 collect2name=`${CC} -print-prog-name=collect2`
9473 if test -f "$collect2name" && \
9474 strings "$collect2name" | grep resolve_lib_name >/dev/null
9475 then
9476 # We have reworked collect2
9477 :
9478 else
9479 # We have old collect2
9480 hardcode_direct=unsupported
9481 # It fails to find uninstalled libraries when the uninstalled
9482 # path is not listed in the libpath. Setting hardcode_minus_L
9483 # to unsupported forces relinking
9484 hardcode_minus_L=yes
9485 hardcode_libdir_flag_spec='-L$libdir'
9486 hardcode_libdir_separator=
9487 fi
9488 ;;
9489 esac
9490 shared_flag='-shared'
9491 if test "$aix_use_runtimelinking" = yes; then
9492 shared_flag="$shared_flag "'${wl}-G'
9493 fi
9494 else
9495 # not using gcc
9496 if test "$host_cpu" = ia64; then
9497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9498 # chokes on -Wl,-G. The following line is correct:
9499 shared_flag='-G'
9500 else
9501 if test "$aix_use_runtimelinking" = yes; then
9502 shared_flag='${wl}-G'
9503 else
9504 shared_flag='${wl}-bM:SRE'
9505 fi
9506 fi
9507 fi
9508
9509 # It seems that -bexpall does not export symbols beginning with
9510 # underscore (_), so it is better to generate a list of symbols to export.
9511 always_export_symbols=yes
9512 if test "$aix_use_runtimelinking" = yes; then
9513 # Warning - without using the other runtime loading flags (-brtl),
9514 # -berok will link without error, but may produce a broken library.
9515 allow_undefined_flag='-berok'
9516 # Determine the default libpath from the value encoded in an empty executable.
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523
9524 int
9525 main ()
9526 {
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest$ac_exeext &&
9549 $as_test_x conftest$ac_exeext; then
9550
9551 lt_aix_libpath_sed='
9552 /Import File Strings/,/^$/ {
9553 /^0/ {
9554 s/^0 *\(.*\)$/\1/
9555 p
9556 }
9557 }'
9558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9559 # Check for a 64-bit object if we didn't find anything.
9560 if test -z "$aix_libpath"; then
9561 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562 fi
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567
9568 fi
9569
9570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9571 conftest$ac_exeext conftest.$ac_ext
9572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9573
9574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9575 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"
9576 else
9577 if test "$host_cpu" = ia64; then
9578 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9579 allow_undefined_flag="-z nodefs"
9580 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"
9581 else
9582 # Determine the default libpath from the value encoded in an empty executable.
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589
9590 int
9591 main ()
9592 {
9593
9594 ;
9595 return 0;
9596 }
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9600 case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest$ac_exeext &&
9615 $as_test_x conftest$ac_exeext; then
9616
9617 lt_aix_libpath_sed='
9618 /Import File Strings/,/^$/ {
9619 /^0/ {
9620 s/^0 *\(.*\)$/\1/
9621 p
9622 }
9623 }'
9624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625 # Check for a 64-bit object if we didn't find anything.
9626 if test -z "$aix_libpath"; then
9627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9628 fi
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633
9634 fi
9635
9636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 conftest$ac_exeext conftest.$ac_ext
9638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9639
9640 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9641 # Warning - without using the other run time loading flags,
9642 # -berok will link without error, but may produce a broken library.
9643 no_undefined_flag=' ${wl}-bernotok'
9644 allow_undefined_flag=' ${wl}-berok'
9645 # Exported symbols can be pulled into shared objects from archives
9646 whole_archive_flag_spec='$convenience'
9647 archive_cmds_need_lc=yes
9648 # This is similar to how AIX traditionally builds its shared libraries.
9649 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'
9650 fi
9651 fi
9652 ;;
9653
9654 amigaos*)
9655 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)'
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_minus_L=yes
9658 # see comment about different semantics on the GNU ld section
9659 ld_shlibs=no
9660 ;;
9661
9662 bsdi[45]*)
9663 export_dynamic_flag_spec=-rdynamic
9664 ;;
9665
9666 cygwin* | mingw* | pw32*)
9667 # When not using gcc, we currently assume that we are using
9668 # Microsoft Visual C++.
9669 # hardcode_libdir_flag_spec is actually meaningless, as there is
9670 # no search path for DLLs.
9671 hardcode_libdir_flag_spec=' '
9672 allow_undefined_flag=unsupported
9673 # Tell ltmain to make .lib files, not .a files.
9674 libext=lib
9675 # Tell ltmain to make .dll files, not .so files.
9676 shrext_cmds=".dll"
9677 # FIXME: Setting linknames here is a bad hack.
9678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9679 # The linker will automatically build a .lib file if we build a DLL.
9680 old_archive_From_new_cmds='true'
9681 # FIXME: Should let the user specify the lib program.
9682 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683 fix_srcfile_path='`cygpath -w "$srcfile"`'
9684 enable_shared_with_static_runtimes=yes
9685 ;;
9686
9687 darwin* | rhapsody*)
9688 case $host_os in
9689 rhapsody* | darwin1.[012])
9690 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9691 ;;
9692 *) # Darwin 1.3 on
9693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9694 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9695 else
9696 case ${MACOSX_DEPLOYMENT_TARGET} in
9697 10.[012])
9698 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9699 ;;
9700 10.*)
9701 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9702 ;;
9703 esac
9704 fi
9705 ;;
9706 esac
9707 archive_cmds_need_lc=no
9708 hardcode_direct=no
9709 hardcode_automatic=yes
9710 hardcode_shlibpath_var=unsupported
9711 whole_archive_flag_spec=''
9712 link_all_deplibs=yes
9713 if test "$GCC" = yes ; then
9714 output_verbose_link_cmd='echo'
9715 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9716 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9717 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9718 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9719 else
9720 case $cc_basename in
9721 xlc*)
9722 output_verbose_link_cmd='echo'
9723 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9724 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9726 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}'
9727 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}'
9728 ;;
9729 *)
9730 ld_shlibs=no
9731 ;;
9732 esac
9733 fi
9734 ;;
9735
9736 dgux*)
9737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_libdir_flag_spec='-L$libdir'
9739 hardcode_shlibpath_var=no
9740 ;;
9741
9742 freebsd1*)
9743 ld_shlibs=no
9744 ;;
9745
9746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9747 # support. Future versions do this automatically, but an explicit c++rt0.o
9748 # does not break anything, and helps significantly (at the cost of a little
9749 # extra space).
9750 freebsd2.2*)
9751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9752 hardcode_libdir_flag_spec='-R$libdir'
9753 hardcode_direct=yes
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9758 freebsd2*)
9759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_direct=yes
9761 hardcode_minus_L=yes
9762 hardcode_shlibpath_var=no
9763 ;;
9764
9765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9766 freebsd* | dragonfly*)
9767 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9768 hardcode_libdir_flag_spec='-R$libdir'
9769 hardcode_direct=yes
9770 hardcode_shlibpath_var=no
9771 ;;
9772
9773 hpux9*)
9774 if test "$GCC" = yes; then
9775 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'
9776 else
9777 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'
9778 fi
9779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9780 hardcode_libdir_separator=:
9781 hardcode_direct=yes
9782
9783 # hardcode_minus_L: Not really in the search PATH,
9784 # but as the default location of the library.
9785 hardcode_minus_L=yes
9786 export_dynamic_flag_spec='${wl}-E'
9787 ;;
9788
9789 hpux10*)
9790 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9794 fi
9795 if test "$with_gnu_ld" = no; then
9796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797 hardcode_libdir_separator=:
9798
9799 hardcode_direct=yes
9800 export_dynamic_flag_spec='${wl}-E'
9801
9802 # hardcode_minus_L: Not really in the search PATH,
9803 # but as the default location of the library.
9804 hardcode_minus_L=yes
9805 fi
9806 ;;
9807
9808 hpux11*)
9809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9810 case $host_cpu in
9811 hppa*64*)
9812 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 ;;
9814 ia64*)
9815 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9816 ;;
9817 *)
9818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9819 ;;
9820 esac
9821 else
9822 case $host_cpu in
9823 hppa*64*)
9824 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 ;;
9826 ia64*)
9827 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 *)
9830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831 ;;
9832 esac
9833 fi
9834 if test "$with_gnu_ld" = no; then
9835 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9836 hardcode_libdir_separator=:
9837
9838 case $host_cpu in
9839 hppa*64*|ia64*)
9840 hardcode_libdir_flag_spec_ld='+b $libdir'
9841 hardcode_direct=no
9842 hardcode_shlibpath_var=no
9843 ;;
9844 *)
9845 hardcode_direct=yes
9846 export_dynamic_flag_spec='${wl}-E'
9847
9848 # hardcode_minus_L: Not really in the search PATH,
9849 # but as the default location of the library.
9850 hardcode_minus_L=yes
9851 ;;
9852 esac
9853 fi
9854 ;;
9855
9856 irix5* | irix6* | nonstopux*)
9857 if test "$GCC" = yes; then
9858 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'
9859 else
9860 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'
9861 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9862 fi
9863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864 hardcode_libdir_separator=:
9865 link_all_deplibs=yes
9866 ;;
9867
9868 netbsd* | netbsdelf*-gnu)
9869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9871 else
9872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9873 fi
9874 hardcode_libdir_flag_spec='-R$libdir'
9875 hardcode_direct=yes
9876 hardcode_shlibpath_var=no
9877 ;;
9878
9879 newsos6)
9880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_direct=yes
9882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883 hardcode_libdir_separator=:
9884 hardcode_shlibpath_var=no
9885 ;;
9886
9887 openbsd*)
9888 if test -f /usr/libexec/ld.so; then
9889 hardcode_direct=yes
9890 hardcode_shlibpath_var=no
9891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9895 export_dynamic_flag_spec='${wl}-E'
9896 else
9897 case $host_os in
9898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9900 hardcode_libdir_flag_spec='-R$libdir'
9901 ;;
9902 *)
9903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9905 ;;
9906 esac
9907 fi
9908 else
9909 ld_shlibs=no
9910 fi
9911 ;;
9912
9913 os2*)
9914 hardcode_libdir_flag_spec='-L$libdir'
9915 hardcode_minus_L=yes
9916 allow_undefined_flag=unsupported
9917 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'
9918 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9919 ;;
9920
9921 osf3*)
9922 if test "$GCC" = yes; then
9923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9924 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'
9925 else
9926 allow_undefined_flag=' -expect_unresolved \*'
9927 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'
9928 fi
9929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930 hardcode_libdir_separator=:
9931 ;;
9932
9933 osf4* | osf5*) # as osf3* with the addition of -msym flag
9934 if test "$GCC" = yes; then
9935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9936 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'
9937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938 else
9939 allow_undefined_flag=' -expect_unresolved \*'
9940 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'
9941 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9942 $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'
9943
9944 # Both c and cxx compiler support -rpath directly
9945 hardcode_libdir_flag_spec='-rpath $libdir'
9946 fi
9947 hardcode_libdir_separator=:
9948 ;;
9949
9950 solaris*)
9951 no_undefined_flag=' -z text'
9952 if test "$GCC" = yes; then
9953 wlarc='${wl}'
9954 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9955 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9956 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9957 else
9958 wlarc=''
9959 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9961 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9962 fi
9963 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_shlibpath_var=no
9965 case $host_os in
9966 solaris2.[0-5] | solaris2.[0-5].*) ;;
9967 *)
9968 # The compiler driver will combine and reorder linker options,
9969 # but understands `-z linker_flag'. GCC discards it without `$wl',
9970 # but is careful enough not to reorder.
9971 # Supported since Solaris 2.6 (maybe 2.5.1?)
9972 if test "$GCC" = yes; then
9973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9974 else
9975 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9976 fi
9977 ;;
9978 esac
9979 link_all_deplibs=yes
9980 ;;
9981
9982 sunos4*)
9983 if test "x$host_vendor" = xsequent; then
9984 # Use $CC to link under sequent, because it throws in some extra .o
9985 # files that make .init and .fini sections work.
9986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9987 else
9988 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9989 fi
9990 hardcode_libdir_flag_spec='-L$libdir'
9991 hardcode_direct=yes
9992 hardcode_minus_L=yes
9993 hardcode_shlibpath_var=no
9994 ;;
9995
9996 sysv4)
9997 case $host_vendor in
9998 sni)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=yes # is this really true???
10001 ;;
10002 siemens)
10003 ## LD is ld it makes a PLAMLIB
10004 ## CC just makes a GrossModule.
10005 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10006 reload_cmds='$CC -r -o $output$reload_objs'
10007 hardcode_direct=no
10008 ;;
10009 motorola)
10010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10012 ;;
10013 esac
10014 runpath_var='LD_RUN_PATH'
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 sysv4.3*)
10019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10020 hardcode_shlibpath_var=no
10021 export_dynamic_flag_spec='-Bexport'
10022 ;;
10023
10024 sysv4*MP*)
10025 if test -d /usr/nec; then
10026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10027 hardcode_shlibpath_var=no
10028 runpath_var=LD_RUN_PATH
10029 hardcode_runpath_var=yes
10030 ld_shlibs=yes
10031 fi
10032 ;;
10033
10034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10035 no_undefined_flag='${wl}-z,text'
10036 archive_cmds_need_lc=no
10037 hardcode_shlibpath_var=no
10038 runpath_var='LD_RUN_PATH'
10039
10040 if test "$GCC" = yes; then
10041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043 else
10044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 fi
10047 ;;
10048
10049 sysv5* | sco3.2v5* | sco5v6*)
10050 # Note: We can NOT use -z defs as we might desire, because we do not
10051 # link with -lc, and that would cause any symbols used from libc to
10052 # always be unresolved, which means just about no library would
10053 # ever link correctly. If we're not using GNU ld we use -z text
10054 # though, which does catch some bad symbols but isn't as heavy-handed
10055 # as -z defs.
10056 no_undefined_flag='${wl}-z,text'
10057 allow_undefined_flag='${wl}-z,nodefs'
10058 archive_cmds_need_lc=no
10059 hardcode_shlibpath_var=no
10060 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10061 hardcode_libdir_separator=':'
10062 link_all_deplibs=yes
10063 export_dynamic_flag_spec='${wl}-Bexport'
10064 runpath_var='LD_RUN_PATH'
10065
10066 if test "$GCC" = yes; then
10067 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 fi
10073 ;;
10074
10075 uts4*)
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_shlibpath_var=no
10079 ;;
10080
10081 *)
10082 ld_shlibs=no
10083 ;;
10084 esac
10085 fi
10086
10087 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10088 echo "${ECHO_T}$ld_shlibs" >&6; }
10089 test "$ld_shlibs" = no && can_build_shared=no
10090
10091 #
10092 # Do we need to explicitly link libc?
10093 #
10094 case "x$archive_cmds_need_lc" in
10095 x|xyes)
10096 # Assume -lc should be added
10097 archive_cmds_need_lc=yes
10098
10099 if test "$enable_shared" = yes && test "$GCC" = yes; then
10100 case $archive_cmds in
10101 *'~'*)
10102 # FIXME: we may have to deal with multi-command sequences.
10103 ;;
10104 '$CC '*)
10105 # Test whether the compiler implicitly links with -lc since on some
10106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10107 # to ld, don't add -lc before -lgcc.
10108 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10109 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10110 $rm conftest*
10111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10112
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } 2>conftest.err; then
10118 soname=conftest
10119 lib=conftest
10120 libobjs=conftest.$ac_objext
10121 deplibs=
10122 wl=$lt_prog_compiler_wl
10123 pic_flag=$lt_prog_compiler_pic
10124 compiler_flags=-v
10125 linker_flags=-v
10126 verstring=
10127 output_objdir=.
10128 libname=conftest
10129 lt_save_allow_undefined_flag=$allow_undefined_flag
10130 allow_undefined_flag=
10131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10132 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }
10136 then
10137 archive_cmds_need_lc=no
10138 else
10139 archive_cmds_need_lc=yes
10140 fi
10141 allow_undefined_flag=$lt_save_allow_undefined_flag
10142 else
10143 cat conftest.err 1>&5
10144 fi
10145 $rm conftest*
10146 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10147 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10148 ;;
10149 esac
10150 fi
10151 ;;
10152 esac
10153
10154 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10155 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10156 library_names_spec=
10157 libname_spec='lib$name'
10158 soname_spec=
10159 shrext_cmds=".so"
10160 postinstall_cmds=
10161 postuninstall_cmds=
10162 finish_cmds=
10163 finish_eval=
10164 shlibpath_var=
10165 shlibpath_overrides_runpath=unknown
10166 version_type=none
10167 dynamic_linker="$host_os ld.so"
10168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10169
10170 if test "$GCC" = yes; then
10171 case $host_os in
10172 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10173 *) lt_awk_arg="/^libraries:/" ;;
10174 esac
10175 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10176 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10177 # if the path contains ";" then we assume it to be the separator
10178 # otherwise default to the standard path separator (i.e. ":") - it is
10179 # assumed that no part of a normal pathname contains ";" but that should
10180 # okay in the real world where ";" in dirpaths is itself problematic.
10181 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10182 else
10183 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10184 fi
10185 # Ok, now we have the path, separated by spaces, we can step through it
10186 # and add multilib dir if necessary.
10187 lt_tmp_lt_search_path_spec=
10188 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10189 for lt_sys_path in $lt_search_path_spec; do
10190 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10192 else
10193 test -d "$lt_sys_path" && \
10194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10195 fi
10196 done
10197 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10198 BEGIN {RS=" "; FS="/|\n";} {
10199 lt_foo="";
10200 lt_count=0;
10201 for (lt_i = NF; lt_i > 0; lt_i--) {
10202 if ($lt_i != "" && $lt_i != ".") {
10203 if ($lt_i == "..") {
10204 lt_count++;
10205 } else {
10206 if (lt_count == 0) {
10207 lt_foo="/" $lt_i lt_foo;
10208 } else {
10209 lt_count--;
10210 }
10211 }
10212 }
10213 }
10214 if (lt_foo != "") { lt_freq[lt_foo]++; }
10215 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10216 }'`
10217 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10218 else
10219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10220 fi
10221 need_lib_prefix=unknown
10222 hardcode_into_libs=no
10223
10224 # when you set need_version to no, make sure it does not cause -set_version
10225 # flags to be left without arguments
10226 need_version=unknown
10227
10228 case $host_os in
10229 aix3*)
10230 version_type=linux
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10232 shlibpath_var=LIBPATH
10233
10234 # AIX 3 has no versioning support, so we append a major version to the name.
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 ;;
10237
10238 aix[4-9]*)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 hardcode_into_libs=yes
10243 if test "$host_cpu" = ia64; then
10244 # AIX 5 supports IA64
10245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 else
10248 # With GCC up to 2.95.x, collect2 would create an import file
10249 # for dependence libraries. The import file would start with
10250 # the line `#! .'. This would cause the generated library to
10251 # depend on `.', always an invalid library. This was fixed in
10252 # development snapshots of GCC prior to 3.0.
10253 case $host_os in
10254 aix4 | aix4.[01] | aix4.[01].*)
10255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10256 echo ' yes '
10257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10258 :
10259 else
10260 can_build_shared=no
10261 fi
10262 ;;
10263 esac
10264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10265 # soname into executable. Probably we can add versioning support to
10266 # collect2, so additional links can be useful in future.
10267 if test "$aix_use_runtimelinking" = yes; then
10268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10269 # instead of lib<name>.a to let people know that these are not
10270 # typical AIX shared libraries.
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 else
10273 # We preserve .a as extension for shared libraries through AIX4.2
10274 # and later when we are not doing run time linking.
10275 library_names_spec='${libname}${release}.a $libname.a'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 fi
10278 shlibpath_var=LIBPATH
10279 fi
10280 ;;
10281
10282 amigaos*)
10283 library_names_spec='$libname.ixlibrary $libname.a'
10284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10285 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'
10286 ;;
10287
10288 beos*)
10289 library_names_spec='${libname}${shared_ext}'
10290 dynamic_linker="$host_os ld.so"
10291 shlibpath_var=LIBRARY_PATH
10292 ;;
10293
10294 bsdi[45]*)
10295 version_type=linux
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10303 # the default ld.so.conf also contains /usr/contrib/lib and
10304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10305 # libtool to hard-code these into programs
10306 ;;
10307
10308 cygwin* | mingw* | pw32*)
10309 version_type=windows
10310 shrext_cmds=".dll"
10311 need_version=no
10312 need_lib_prefix=no
10313
10314 case $GCC,$host_os in
10315 yes,cygwin* | yes,mingw* | yes,pw32*)
10316 library_names_spec='$libname.dll.a'
10317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10318 postinstall_cmds='base_file=`basename \${file}`~
10319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10320 dldir=$destdir/`dirname \$dlpath`~
10321 test -d \$dldir || mkdir -p \$dldir~
10322 $install_prog $dir/$dlname \$dldir/$dlname~
10323 chmod a+x \$dldir/$dlname'
10324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10325 dlpath=$dir/\$dldll~
10326 $rm \$dlpath'
10327 shlibpath_overrides_runpath=yes
10328
10329 case $host_os in
10330 cygwin*)
10331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10334 ;;
10335 mingw*)
10336 # MinGW DLLs use traditional 'lib' prefix
10337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10340 # It is most probably a Windows format PATH printed by
10341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10342 # path with ; separators, and with drive letters. We can handle the
10343 # drive letters (cygwin fileutils understands them), so leave them,
10344 # especially as we might pass files found there to a mingw objdump,
10345 # which wouldn't understand a cygwinified path. Ahh.
10346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10347 else
10348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10349 fi
10350 ;;
10351 pw32*)
10352 # pw32 DLLs use 'pw' prefix rather than 'lib'
10353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10354 ;;
10355 esac
10356 ;;
10357
10358 *)
10359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10360 ;;
10361 esac
10362 dynamic_linker='Win32 ld.exe'
10363 # FIXME: first we should search . and the directory the executable is in
10364 shlibpath_var=PATH
10365 ;;
10366
10367 darwin* | rhapsody*)
10368 dynamic_linker="$host_os dyld"
10369 version_type=darwin
10370 need_lib_prefix=no
10371 need_version=no
10372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10373 soname_spec='${libname}${release}${major}$shared_ext'
10374 shlibpath_overrides_runpath=yes
10375 shlibpath_var=DYLD_LIBRARY_PATH
10376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10377
10378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10380 ;;
10381
10382 dgux*)
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 ;;
10390
10391 freebsd1*)
10392 dynamic_linker=no
10393 ;;
10394
10395 freebsd* | dragonfly*)
10396 # DragonFly does not have aout. When/if they implement a new
10397 # versioning mechanism, adjust this.
10398 if test -x /usr/bin/objformat; then
10399 objformat=`/usr/bin/objformat`
10400 else
10401 case $host_os in
10402 freebsd[123]*) objformat=aout ;;
10403 *) objformat=elf ;;
10404 esac
10405 fi
10406 version_type=freebsd-$objformat
10407 case $version_type in
10408 freebsd-elf*)
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10410 need_version=no
10411 need_lib_prefix=no
10412 ;;
10413 freebsd-*)
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10415 need_version=yes
10416 ;;
10417 esac
10418 shlibpath_var=LD_LIBRARY_PATH
10419 case $host_os in
10420 freebsd2*)
10421 shlibpath_overrides_runpath=yes
10422 ;;
10423 freebsd3.[01]* | freebsdelf3.[01]*)
10424 shlibpath_overrides_runpath=yes
10425 hardcode_into_libs=yes
10426 ;;
10427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10429 shlibpath_overrides_runpath=no
10430 hardcode_into_libs=yes
10431 ;;
10432 *) # from 4.6 on, and DragonFly
10433 shlibpath_overrides_runpath=yes
10434 hardcode_into_libs=yes
10435 ;;
10436 esac
10437 ;;
10438
10439 gnu*)
10440 version_type=linux
10441 need_lib_prefix=no
10442 need_version=no
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 hardcode_into_libs=yes
10447 ;;
10448
10449 hpux9* | hpux10* | hpux11*)
10450 # Give a soname corresponding to the major version so that dld.sl refuses to
10451 # link against other versions.
10452 version_type=sunos
10453 need_lib_prefix=no
10454 need_version=no
10455 case $host_cpu in
10456 ia64*)
10457 shrext_cmds='.so'
10458 hardcode_into_libs=yes
10459 dynamic_linker="$host_os dld.so"
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 if test "X$HPUX_IA64_MODE" = X32; then
10465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10466 else
10467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10468 fi
10469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10470 ;;
10471 hppa*64*)
10472 shrext_cmds='.sl'
10473 hardcode_into_libs=yes
10474 dynamic_linker="$host_os dld.sl"
10475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10481 ;;
10482 *)
10483 shrext_cmds='.sl'
10484 dynamic_linker="$host_os dld.sl"
10485 shlibpath_var=SHLIB_PATH
10486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 ;;
10490 esac
10491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10492 postinstall_cmds='chmod 555 $lib'
10493 ;;
10494
10495 interix[3-9]*)
10496 version_type=linux
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=no
10504 hardcode_into_libs=yes
10505 ;;
10506
10507 irix5* | irix6* | nonstopux*)
10508 case $host_os in
10509 nonstopux*) version_type=nonstopux ;;
10510 *)
10511 if test "$lt_cv_prog_gnu_ld" = yes; then
10512 version_type=linux
10513 else
10514 version_type=irix
10515 fi ;;
10516 esac
10517 need_lib_prefix=no
10518 need_version=no
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10521 case $host_os in
10522 irix5* | nonstopux*)
10523 libsuff= shlibsuff=
10524 ;;
10525 *)
10526 case $LD in # libtool.m4 will add one of these switches to LD
10527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528 libsuff= shlibsuff= libmagic=32-bit;;
10529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530 libsuff=32 shlibsuff=N32 libmagic=N32;;
10531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533 *) libsuff= shlibsuff= libmagic=never-match;;
10534 esac
10535 ;;
10536 esac
10537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541 hardcode_into_libs=yes
10542 ;;
10543
10544 # No shared lib support for Linux oldld, aout, or coff.
10545 linux*oldld* | linux*aout* | linux*coff*)
10546 dynamic_linker=no
10547 ;;
10548
10549 # This must be Linux ELF.
10550 linux* | k*bsd*-gnu)
10551 version_type=linux
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 # This implies no fast_install, which is unacceptable.
10560 # Some rework will be needed to allow for fast_install
10561 # before this can be enabled.
10562 hardcode_into_libs=yes
10563
10564 # Append ld.so.conf contents to the search path
10565 if test -f /etc/ld.so.conf; then
10566 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' ' '`
10567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10568 fi
10569
10570 # We used to test for /lib/ld.so.1 and disable shared libraries on
10571 # powerpc, because MkLinux only supported shared libraries with the
10572 # GNU dynamic linker. Since this was broken with cross compilers,
10573 # most powerpc-linux boxes support dynamic linking these days and
10574 # people can always --disable-shared, the test was removed, and we
10575 # assume the GNU/Linux dynamic linker is in use.
10576 dynamic_linker='GNU/Linux ld.so'
10577 ;;
10578
10579 netbsdelf*-gnu)
10580 version_type=linux
10581 need_lib_prefix=no
10582 need_version=no
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=no
10587 hardcode_into_libs=yes
10588 dynamic_linker='NetBSD ld.elf_so'
10589 ;;
10590
10591 netbsd*)
10592 version_type=sunos
10593 need_lib_prefix=no
10594 need_version=no
10595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10598 dynamic_linker='NetBSD (a.out) ld.so'
10599 else
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 dynamic_linker='NetBSD ld.elf_so'
10603 fi
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10606 hardcode_into_libs=yes
10607 ;;
10608
10609 newsos6)
10610 version_type=linux
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=yes
10614 ;;
10615
10616 nto-qnx*)
10617 version_type=linux
10618 need_lib_prefix=no
10619 need_version=no
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 ;;
10625
10626 openbsd*)
10627 version_type=sunos
10628 sys_lib_dlsearch_path_spec="/usr/lib"
10629 need_lib_prefix=no
10630 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10631 case $host_os in
10632 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10633 *) need_version=no ;;
10634 esac
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10639 case $host_os in
10640 openbsd2.[89] | openbsd2.[89].*)
10641 shlibpath_overrides_runpath=no
10642 ;;
10643 *)
10644 shlibpath_overrides_runpath=yes
10645 ;;
10646 esac
10647 else
10648 shlibpath_overrides_runpath=yes
10649 fi
10650 ;;
10651
10652 os2*)
10653 libname_spec='$name'
10654 shrext_cmds=".dll"
10655 need_lib_prefix=no
10656 library_names_spec='$libname${shared_ext} $libname.a'
10657 dynamic_linker='OS/2 ld.exe'
10658 shlibpath_var=LIBPATH
10659 ;;
10660
10661 osf3* | osf4* | osf5*)
10662 version_type=osf
10663 need_lib_prefix=no
10664 need_version=no
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10669 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10670 ;;
10671
10672 rdos*)
10673 dynamic_linker=no
10674 ;;
10675
10676 solaris*)
10677 version_type=linux
10678 need_lib_prefix=no
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=yes
10684 hardcode_into_libs=yes
10685 # ldd complains unless libraries are executable
10686 postinstall_cmds='chmod +x $lib'
10687 ;;
10688
10689 sunos4*)
10690 version_type=sunos
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=yes
10695 if test "$with_gnu_ld" = yes; then
10696 need_lib_prefix=no
10697 fi
10698 need_version=yes
10699 ;;
10700
10701 sysv4 | sysv4.3*)
10702 version_type=linux
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 case $host_vendor in
10707 sni)
10708 shlibpath_overrides_runpath=no
10709 need_lib_prefix=no
10710 export_dynamic_flag_spec='${wl}-Blargedynsym'
10711 runpath_var=LD_RUN_PATH
10712 ;;
10713 siemens)
10714 need_lib_prefix=no
10715 ;;
10716 motorola)
10717 need_lib_prefix=no
10718 need_version=no
10719 shlibpath_overrides_runpath=no
10720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10721 ;;
10722 esac
10723 ;;
10724
10725 sysv4*MP*)
10726 if test -d /usr/nec ;then
10727 version_type=linux
10728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10729 soname_spec='$libname${shared_ext}.$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 fi
10732 ;;
10733
10734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10735 version_type=freebsd-elf
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 hardcode_into_libs=yes
10742 if test "$with_gnu_ld" = yes; then
10743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10744 shlibpath_overrides_runpath=no
10745 else
10746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10747 shlibpath_overrides_runpath=yes
10748 case $host_os in
10749 sco3.2v5*)
10750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10751 ;;
10752 esac
10753 fi
10754 sys_lib_dlsearch_path_spec='/usr/lib'
10755 ;;
10756
10757 uts4*)
10758 version_type=linux
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 ;;
10763
10764 *)
10765 dynamic_linker=no
10766 ;;
10767 esac
10768 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10769 echo "${ECHO_T}$dynamic_linker" >&6; }
10770 test "$dynamic_linker" = no && can_build_shared=no
10771
10772 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10776 fi
10777
10778 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10779 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10782 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10783 fi
10784
10785 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10786
10787 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10788 if test "$GCC" = yes; then
10789 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10790 fi
10791
10792 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10794 hardcode_action=
10795 if test -n "$hardcode_libdir_flag_spec" || \
10796 test -n "$runpath_var" || \
10797 test "X$hardcode_automatic" = "Xyes" ; then
10798
10799 # We can hardcode non-existant directories.
10800 if test "$hardcode_direct" != no &&
10801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10802 # have to relink, otherwise we might link with an installed library
10803 # when we should be linking with a yet-to-be-installed one
10804 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10805 test "$hardcode_minus_L" != no; then
10806 # Linking always hardcodes the temporary library directory.
10807 hardcode_action=relink
10808 else
10809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10810 hardcode_action=immediate
10811 fi
10812 else
10813 # We cannot hardcode anything, or else we can only hardcode existing
10814 # directories.
10815 hardcode_action=unsupported
10816 fi
10817 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10818 echo "${ECHO_T}$hardcode_action" >&6; }
10819
10820 if test "$hardcode_action" = relink; then
10821 # Fast installation is not supported
10822 enable_fast_install=no
10823 elif test "$shlibpath_overrides_runpath" = yes ||
10824 test "$enable_shared" = no; then
10825 # Fast installation is not necessary
10826 enable_fast_install=needless
10827 fi
10828
10829 striplib=
10830 old_striplib=
10831 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10832 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10833 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10835 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10836 { echo "$as_me:$LINENO: result: yes" >&5
10837 echo "${ECHO_T}yes" >&6; }
10838 else
10839 # FIXME - insert some real tests, host_os isn't really good enough
10840 case $host_os in
10841 darwin*)
10842 if test -n "$STRIP" ; then
10843 striplib="$STRIP -x"
10844 old_striplib="$STRIP -S"
10845 { echo "$as_me:$LINENO: result: yes" >&5
10846 echo "${ECHO_T}yes" >&6; }
10847 else
10848 { echo "$as_me:$LINENO: result: no" >&5
10849 echo "${ECHO_T}no" >&6; }
10850 fi
10851 ;;
10852 *)
10853 { echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6; }
10855 ;;
10856 esac
10857 fi
10858
10859 if test "x$enable_dlopen" != xyes; then
10860 enable_dlopen=unknown
10861 enable_dlopen_self=unknown
10862 enable_dlopen_self_static=unknown
10863 else
10864 lt_cv_dlopen=no
10865 lt_cv_dlopen_libs=
10866
10867 case $host_os in
10868 beos*)
10869 lt_cv_dlopen="load_add_on"
10870 lt_cv_dlopen_libs=
10871 lt_cv_dlopen_self=yes
10872 ;;
10873
10874 mingw* | pw32*)
10875 lt_cv_dlopen="LoadLibrary"
10876 lt_cv_dlopen_libs=
10877 ;;
10878
10879 cygwin*)
10880 lt_cv_dlopen="dlopen"
10881 lt_cv_dlopen_libs=
10882 ;;
10883
10884 darwin*)
10885 # if libdl is installed we need to link against it
10886 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10887 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10888 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-ldl $LIBS"
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10903 #ifdef __cplusplus
10904 extern "C"
10905 #endif
10906 char dlopen ();
10907 int
10908 main ()
10909 {
10910 return dlopen ();
10911 ;
10912 return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (ac_try="$ac_link"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_link") 2>conftest.er1
10923 ac_status=$?
10924 grep -v '^ *+' conftest.er1 >conftest.err
10925 rm -f conftest.er1
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest$ac_exeext &&
10932 $as_test_x conftest$ac_exeext; then
10933 ac_cv_lib_dl_dlopen=yes
10934 else
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 ac_cv_lib_dl_dlopen=no
10939 fi
10940
10941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10942 conftest$ac_exeext conftest.$ac_ext
10943 LIBS=$ac_check_lib_save_LIBS
10944 fi
10945 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10946 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10947 if test $ac_cv_lib_dl_dlopen = yes; then
10948 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10949 else
10950
10951 lt_cv_dlopen="dyld"
10952 lt_cv_dlopen_libs=
10953 lt_cv_dlopen_self=yes
10954
10955 fi
10956
10957 ;;
10958
10959 *)
10960 { echo "$as_me:$LINENO: checking for shl_load" >&5
10961 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10962 if test "${ac_cv_func_shl_load+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973 #define shl_load innocuous_shl_load
10974
10975 /* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char shl_load (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10979
10980 #ifdef __STDC__
10981 # include <limits.h>
10982 #else
10983 # include <assert.h>
10984 #endif
10985
10986 #undef shl_load
10987
10988 /* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10991 #ifdef __cplusplus
10992 extern "C"
10993 #endif
10994 char shl_load ();
10995 /* The GNU C library defines this for functions which it implements
10996 to always fail with ENOSYS. Some functions are actually named
10997 something starting with __ and the normal name is an alias. */
10998 #if defined __stub_shl_load || defined __stub___shl_load
10999 choke me
11000 #endif
11001
11002 int
11003 main ()
11004 {
11005 return shl_load ();
11006 ;
11007 return 0;
11008 }
11009 _ACEOF
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && {
11024 test -z "$ac_c_werror_flag" ||
11025 test ! -s conftest.err
11026 } && test -s conftest$ac_exeext &&
11027 $as_test_x conftest$ac_exeext; then
11028 ac_cv_func_shl_load=yes
11029 else
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_cv_func_shl_load=no
11034 fi
11035
11036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11037 conftest$ac_exeext conftest.$ac_ext
11038 fi
11039 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11040 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11041 if test $ac_cv_func_shl_load = yes; then
11042 lt_cv_dlopen="shl_load"
11043 else
11044 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11045 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11046 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049 ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-ldld $LIBS"
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057
11058 /* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061 #ifdef __cplusplus
11062 extern "C"
11063 #endif
11064 char shl_load ();
11065 int
11066 main ()
11067 {
11068 return shl_load ();
11069 ;
11070 return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_link") 2>conftest.er1
11081 ac_status=$?
11082 grep -v '^ *+' conftest.er1 >conftest.err
11083 rm -f conftest.er1
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest$ac_exeext &&
11090 $as_test_x conftest$ac_exeext; then
11091 ac_cv_lib_dld_shl_load=yes
11092 else
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_cv_lib_dld_shl_load=no
11097 fi
11098
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11102 fi
11103 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11104 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11105 if test $ac_cv_lib_dld_shl_load = yes; then
11106 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11107 else
11108 { echo "$as_me:$LINENO: checking for dlopen" >&5
11109 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11110 if test "${ac_cv_func_dlopen+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11121 #define dlopen innocuous_dlopen
11122
11123 /* System header to define __stub macros and hopefully few prototypes,
11124 which can conflict with char dlopen (); below.
11125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11126 <limits.h> exists even on freestanding compilers. */
11127
11128 #ifdef __STDC__
11129 # include <limits.h>
11130 #else
11131 # include <assert.h>
11132 #endif
11133
11134 #undef dlopen
11135
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char dlopen ();
11143 /* The GNU C library defines this for functions which it implements
11144 to always fail with ENOSYS. Some functions are actually named
11145 something starting with __ and the normal name is an alias. */
11146 #if defined __stub_dlopen || defined __stub___dlopen
11147 choke me
11148 #endif
11149
11150 int
11151 main ()
11152 {
11153 return dlopen ();
11154 ;
11155 return 0;
11156 }
11157 _ACEOF
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (ac_try="$ac_link"
11160 case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_link") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_c_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest$ac_exeext &&
11175 $as_test_x conftest$ac_exeext; then
11176 ac_cv_func_dlopen=yes
11177 else
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ac_cv_func_dlopen=no
11182 fi
11183
11184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11185 conftest$ac_exeext conftest.$ac_ext
11186 fi
11187 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11188 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11189 if test $ac_cv_func_dlopen = yes; then
11190 lt_cv_dlopen="dlopen"
11191 else
11192 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11193 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11194 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 ac_check_lib_save_LIBS=$LIBS
11198 LIBS="-ldl $LIBS"
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205
11206 /* Override any GCC internal prototype to avoid an error.
11207 Use char because int might match the return type of a GCC
11208 builtin and then its argument prototype would still apply. */
11209 #ifdef __cplusplus
11210 extern "C"
11211 #endif
11212 char dlopen ();
11213 int
11214 main ()
11215 {
11216 return dlopen ();
11217 ;
11218 return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (ac_try="$ac_link"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226 esac
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_link") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && {
11235 test -z "$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 } && test -s conftest$ac_exeext &&
11238 $as_test_x conftest$ac_exeext; then
11239 ac_cv_lib_dl_dlopen=yes
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11243
11244 ac_cv_lib_dl_dlopen=no
11245 fi
11246
11247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11250 fi
11251 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11253 if test $ac_cv_lib_dl_dlopen = yes; then
11254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11255 else
11256 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11257 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11258 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261 ac_check_lib_save_LIBS=$LIBS
11262 LIBS="-lsvld $LIBS"
11263 cat >conftest.$ac_ext <<_ACEOF
11264 /* confdefs.h. */
11265 _ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11269
11270 /* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 char dlopen ();
11277 int
11278 main ()
11279 {
11280 return dlopen ();
11281 ;
11282 return 0;
11283 }
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (ac_try="$ac_link"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_link") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest$ac_exeext &&
11302 $as_test_x conftest$ac_exeext; then
11303 ac_cv_lib_svld_dlopen=yes
11304 else
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11307
11308 ac_cv_lib_svld_dlopen=no
11309 fi
11310
11311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11312 conftest$ac_exeext conftest.$ac_ext
11313 LIBS=$ac_check_lib_save_LIBS
11314 fi
11315 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11316 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11317 if test $ac_cv_lib_svld_dlopen = yes; then
11318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11319 else
11320 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11321 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11322 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325 ac_check_lib_save_LIBS=$LIBS
11326 LIBS="-ldld $LIBS"
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h. */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11337 #ifdef __cplusplus
11338 extern "C"
11339 #endif
11340 char dld_link ();
11341 int
11342 main ()
11343 {
11344 return dld_link ();
11345 ;
11346 return 0;
11347 }
11348 _ACEOF
11349 rm -f conftest.$ac_objext conftest$ac_exeext
11350 if { (ac_try="$ac_link"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_link") 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest$ac_exeext &&
11366 $as_test_x conftest$ac_exeext; then
11367 ac_cv_lib_dld_dld_link=yes
11368 else
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_cv_lib_dld_dld_link=no
11373 fi
11374
11375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11376 conftest$ac_exeext conftest.$ac_ext
11377 LIBS=$ac_check_lib_save_LIBS
11378 fi
11379 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11380 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11381 if test $ac_cv_lib_dld_dld_link = yes; then
11382 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11383 fi
11384
11385
11386 fi
11387
11388
11389 fi
11390
11391
11392 fi
11393
11394
11395 fi
11396
11397
11398 fi
11399
11400 ;;
11401 esac
11402
11403 if test "x$lt_cv_dlopen" != xno; then
11404 enable_dlopen=yes
11405 else
11406 enable_dlopen=no
11407 fi
11408
11409 case $lt_cv_dlopen in
11410 dlopen)
11411 save_CPPFLAGS="$CPPFLAGS"
11412 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11413
11414 save_LDFLAGS="$LDFLAGS"
11415 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11416
11417 save_LIBS="$LIBS"
11418 LIBS="$lt_cv_dlopen_libs $LIBS"
11419
11420 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11421 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11422 if test "${lt_cv_dlopen_self+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 if test "$cross_compiling" = yes; then :
11426 lt_cv_dlopen_self=cross
11427 else
11428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11429 lt_status=$lt_dlunknown
11430 cat > conftest.$ac_ext <<EOF
11431 #line 11431 "configure"
11432 #include "confdefs.h"
11433
11434 #if HAVE_DLFCN_H
11435 #include <dlfcn.h>
11436 #endif
11437
11438 #include <stdio.h>
11439
11440 #ifdef RTLD_GLOBAL
11441 # define LT_DLGLOBAL RTLD_GLOBAL
11442 #else
11443 # ifdef DL_GLOBAL
11444 # define LT_DLGLOBAL DL_GLOBAL
11445 # else
11446 # define LT_DLGLOBAL 0
11447 # endif
11448 #endif
11449
11450 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11451 find out it does not work in some platform. */
11452 #ifndef LT_DLLAZY_OR_NOW
11453 # ifdef RTLD_LAZY
11454 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11455 # else
11456 # ifdef DL_LAZY
11457 # define LT_DLLAZY_OR_NOW DL_LAZY
11458 # else
11459 # ifdef RTLD_NOW
11460 # define LT_DLLAZY_OR_NOW RTLD_NOW
11461 # else
11462 # ifdef DL_NOW
11463 # define LT_DLLAZY_OR_NOW DL_NOW
11464 # else
11465 # define LT_DLLAZY_OR_NOW 0
11466 # endif
11467 # endif
11468 # endif
11469 # endif
11470 #endif
11471
11472 #ifdef __cplusplus
11473 extern "C" void exit (int);
11474 #endif
11475
11476 void fnord() { int i=42;}
11477 int main ()
11478 {
11479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11480 int status = $lt_dlunknown;
11481
11482 if (self)
11483 {
11484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11485 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11486 /* dlclose (self); */
11487 }
11488 else
11489 puts (dlerror ());
11490
11491 exit (status);
11492 }
11493 EOF
11494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11495 (eval $ac_link) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11499 (./conftest; exit; ) >&5 2>/dev/null
11500 lt_status=$?
11501 case x$lt_status in
11502 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11503 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11504 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11505 esac
11506 else :
11507 # compilation failed
11508 lt_cv_dlopen_self=no
11509 fi
11510 fi
11511 rm -fr conftest*
11512
11513
11514 fi
11515 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11516 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11517
11518 if test "x$lt_cv_dlopen_self" = xyes; then
11519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11520 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11521 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11522 if test "${lt_cv_dlopen_self_static+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525 if test "$cross_compiling" = yes; then :
11526 lt_cv_dlopen_self_static=cross
11527 else
11528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11529 lt_status=$lt_dlunknown
11530 cat > conftest.$ac_ext <<EOF
11531 #line 11531 "configure"
11532 #include "confdefs.h"
11533
11534 #if HAVE_DLFCN_H
11535 #include <dlfcn.h>
11536 #endif
11537
11538 #include <stdio.h>
11539
11540 #ifdef RTLD_GLOBAL
11541 # define LT_DLGLOBAL RTLD_GLOBAL
11542 #else
11543 # ifdef DL_GLOBAL
11544 # define LT_DLGLOBAL DL_GLOBAL
11545 # else
11546 # define LT_DLGLOBAL 0
11547 # endif
11548 #endif
11549
11550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11551 find out it does not work in some platform. */
11552 #ifndef LT_DLLAZY_OR_NOW
11553 # ifdef RTLD_LAZY
11554 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11555 # else
11556 # ifdef DL_LAZY
11557 # define LT_DLLAZY_OR_NOW DL_LAZY
11558 # else
11559 # ifdef RTLD_NOW
11560 # define LT_DLLAZY_OR_NOW RTLD_NOW
11561 # else
11562 # ifdef DL_NOW
11563 # define LT_DLLAZY_OR_NOW DL_NOW
11564 # else
11565 # define LT_DLLAZY_OR_NOW 0
11566 # endif
11567 # endif
11568 # endif
11569 # endif
11570 #endif
11571
11572 #ifdef __cplusplus
11573 extern "C" void exit (int);
11574 #endif
11575
11576 void fnord() { int i=42;}
11577 int main ()
11578 {
11579 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11580 int status = $lt_dlunknown;
11581
11582 if (self)
11583 {
11584 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11585 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11586 /* dlclose (self); */
11587 }
11588 else
11589 puts (dlerror ());
11590
11591 exit (status);
11592 }
11593 EOF
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11599 (./conftest; exit; ) >&5 2>/dev/null
11600 lt_status=$?
11601 case x$lt_status in
11602 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11603 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11604 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11605 esac
11606 else :
11607 # compilation failed
11608 lt_cv_dlopen_self_static=no
11609 fi
11610 fi
11611 rm -fr conftest*
11612
11613
11614 fi
11615 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11616 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11617 fi
11618
11619 CPPFLAGS="$save_CPPFLAGS"
11620 LDFLAGS="$save_LDFLAGS"
11621 LIBS="$save_LIBS"
11622 ;;
11623 esac
11624
11625 case $lt_cv_dlopen_self in
11626 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11627 *) enable_dlopen_self=unknown ;;
11628 esac
11629
11630 case $lt_cv_dlopen_self_static in
11631 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11632 *) enable_dlopen_self_static=unknown ;;
11633 esac
11634 fi
11635
11636
11637 # Report which library types will actually be built
11638 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11639 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11640 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11641 echo "${ECHO_T}$can_build_shared" >&6; }
11642
11643 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11644 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11645 test "$can_build_shared" = "no" && enable_shared=no
11646
11647 # On AIX, shared libraries and static libraries use the same namespace, and
11648 # are all built from PIC.
11649 case $host_os in
11650 aix3*)
11651 test "$enable_shared" = yes && enable_static=no
11652 if test -n "$RANLIB"; then
11653 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11654 postinstall_cmds='$RANLIB $lib'
11655 fi
11656 ;;
11657
11658 aix[4-9]*)
11659 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11660 test "$enable_shared" = yes && enable_static=no
11661 fi
11662 ;;
11663 esac
11664 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11665 echo "${ECHO_T}$enable_shared" >&6; }
11666
11667 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11668 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11669 # Make sure either enable_shared or enable_static is yes.
11670 test "$enable_shared" = yes || enable_static=yes
11671 { echo "$as_me:$LINENO: result: $enable_static" >&5
11672 echo "${ECHO_T}$enable_static" >&6; }
11673
11674 # The else clause should only fire when bootstrapping the
11675 # libtool distribution, otherwise you forgot to ship ltmain.sh
11676 # with your package, and you will get complaints that there are
11677 # no rules to generate ltmain.sh.
11678 if test -f "$ltmain"; then
11679 # See if we are running on zsh, and set the options which allow our commands through
11680 # without removal of \ escapes.
11681 if test -n "${ZSH_VERSION+set}" ; then
11682 setopt NO_GLOB_SUBST
11683 fi
11684 # Now quote all the things that may contain metacharacters while being
11685 # careful not to overquote the AC_SUBSTed values. We take copies of the
11686 # variables and quote the copies for generation of the libtool script.
11687 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11688 SED SHELL STRIP \
11689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11691 deplibs_check_method reload_flag reload_cmds need_locks \
11692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11693 lt_cv_sys_global_symbol_to_c_name_address \
11694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11695 old_postinstall_cmds old_postuninstall_cmds \
11696 compiler \
11697 CC \
11698 LD \
11699 lt_prog_compiler_wl \
11700 lt_prog_compiler_pic \
11701 lt_prog_compiler_static \
11702 lt_prog_compiler_no_builtin_flag \
11703 export_dynamic_flag_spec \
11704 thread_safe_flag_spec \
11705 whole_archive_flag_spec \
11706 enable_shared_with_static_runtimes \
11707 old_archive_cmds \
11708 old_archive_from_new_cmds \
11709 predep_objects \
11710 postdep_objects \
11711 predeps \
11712 postdeps \
11713 compiler_lib_search_path \
11714 compiler_lib_search_dirs \
11715 archive_cmds \
11716 archive_expsym_cmds \
11717 postinstall_cmds \
11718 postuninstall_cmds \
11719 old_archive_from_expsyms_cmds \
11720 allow_undefined_flag \
11721 no_undefined_flag \
11722 export_symbols_cmds \
11723 hardcode_libdir_flag_spec \
11724 hardcode_libdir_flag_spec_ld \
11725 hardcode_libdir_separator \
11726 hardcode_automatic \
11727 module_cmds \
11728 module_expsym_cmds \
11729 lt_cv_prog_compiler_c_o \
11730 fix_srcfile_path \
11731 exclude_expsyms \
11732 include_expsyms; do
11733
11734 case $var in
11735 old_archive_cmds | \
11736 old_archive_from_new_cmds | \
11737 archive_cmds | \
11738 archive_expsym_cmds | \
11739 module_cmds | \
11740 module_expsym_cmds | \
11741 old_archive_from_expsyms_cmds | \
11742 export_symbols_cmds | \
11743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11744 postinstall_cmds | postuninstall_cmds | \
11745 old_postinstall_cmds | old_postuninstall_cmds | \
11746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11747 # Double-quote double-evaled strings.
11748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11749 ;;
11750 *)
11751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11752 ;;
11753 esac
11754 done
11755
11756 case $lt_echo in
11757 *'\$0 --fallback-echo"')
11758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11759 ;;
11760 esac
11761
11762 cfgfile="${ofile}T"
11763 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11764 $rm -f "$cfgfile"
11765 { echo "$as_me:$LINENO: creating $ofile" >&5
11766 echo "$as_me: creating $ofile" >&6;}
11767
11768 cat <<__EOF__ >> "$cfgfile"
11769 #! $SHELL
11770
11771 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11772 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11773 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11774 #
11775 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11776 # Free Software Foundation, Inc.
11777 #
11778 # This file is part of GNU Libtool:
11779 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11780 #
11781 # This program is free software; you can redistribute it and/or modify
11782 # it under the terms of the GNU General Public License as published by
11783 # the Free Software Foundation; either version 2 of the License, or
11784 # (at your option) any later version.
11785 #
11786 # This program is distributed in the hope that it will be useful, but
11787 # WITHOUT ANY WARRANTY; without even the implied warranty of
11788 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11789 # General Public License for more details.
11790 #
11791 # You should have received a copy of the GNU General Public License
11792 # along with this program; if not, write to the Free Software
11793 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11794 #
11795 # As a special exception to the GNU General Public License, if you
11796 # distribute this file as part of a program that contains a
11797 # configuration script generated by Autoconf, you may include it under
11798 # the same distribution terms that you use for the rest of that program.
11799
11800 # A sed program that does not truncate output.
11801 SED=$lt_SED
11802
11803 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11804 Xsed="$SED -e 1s/^X//"
11805
11806 # The HP-UX ksh and POSIX shell print the target directory to stdout
11807 # if CDPATH is set.
11808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11809
11810 # The names of the tagged configurations supported by this script.
11811 available_tags=
11812
11813 # ### BEGIN LIBTOOL CONFIG
11814
11815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11816
11817 # Shell to use when invoking shell scripts.
11818 SHELL=$lt_SHELL
11819
11820 # Whether or not to build shared libraries.
11821 build_libtool_libs=$enable_shared
11822
11823 # Whether or not to build static libraries.
11824 build_old_libs=$enable_static
11825
11826 # Whether or not to add -lc for building shared libraries.
11827 build_libtool_need_lc=$archive_cmds_need_lc
11828
11829 # Whether or not to disallow shared libs when runtime libs are static
11830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11831
11832 # Whether or not to optimize for fast installation.
11833 fast_install=$enable_fast_install
11834
11835 # The host system.
11836 host_alias=$host_alias
11837 host=$host
11838 host_os=$host_os
11839
11840 # The build system.
11841 build_alias=$build_alias
11842 build=$build
11843 build_os=$build_os
11844
11845 # An echo program that does not interpret backslashes.
11846 echo=$lt_echo
11847
11848 # The archiver.
11849 AR=$lt_AR
11850 AR_FLAGS=$lt_AR_FLAGS
11851
11852 # A C compiler.
11853 LTCC=$lt_LTCC
11854
11855 # LTCC compiler flags.
11856 LTCFLAGS=$lt_LTCFLAGS
11857
11858 # A language-specific compiler.
11859 CC=$lt_compiler
11860
11861 # Is the compiler the GNU C compiler?
11862 with_gcc=$GCC
11863
11864 # An ERE matcher.
11865 EGREP=$lt_EGREP
11866
11867 # The linker used to build libraries.
11868 LD=$lt_LD
11869
11870 # Whether we need hard or soft links.
11871 LN_S=$lt_LN_S
11872
11873 # A BSD-compatible nm program.
11874 NM=$lt_NM
11875
11876 # A symbol stripping program
11877 STRIP=$lt_STRIP
11878
11879 # Used to examine libraries when file_magic_cmd begins "file"
11880 MAGIC_CMD=$MAGIC_CMD
11881
11882 # Used on cygwin: DLL creation program.
11883 DLLTOOL="$DLLTOOL"
11884
11885 # Used on cygwin: object dumper.
11886 OBJDUMP="$OBJDUMP"
11887
11888 # Used on cygwin: assembler.
11889 AS="$AS"
11890
11891 # The name of the directory that contains temporary libtool files.
11892 objdir=$objdir
11893
11894 # How to create reloadable object files.
11895 reload_flag=$lt_reload_flag
11896 reload_cmds=$lt_reload_cmds
11897
11898 # How to pass a linker flag through the compiler.
11899 wl=$lt_lt_prog_compiler_wl
11900
11901 # Object file suffix (normally "o").
11902 objext="$ac_objext"
11903
11904 # Old archive suffix (normally "a").
11905 libext="$libext"
11906
11907 # Shared library suffix (normally ".so").
11908 shrext_cmds='$shrext_cmds'
11909
11910 # Executable file suffix (normally "").
11911 exeext="$exeext"
11912
11913 # Additional compiler flags for building library objects.
11914 pic_flag=$lt_lt_prog_compiler_pic
11915 pic_mode=$pic_mode
11916
11917 # What is the maximum length of a command?
11918 max_cmd_len=$lt_cv_sys_max_cmd_len
11919
11920 # Does compiler simultaneously support -c and -o options?
11921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11922
11923 # Must we lock files when doing compilation?
11924 need_locks=$lt_need_locks
11925
11926 # Do we need the lib prefix for modules?
11927 need_lib_prefix=$need_lib_prefix
11928
11929 # Do we need a version for libraries?
11930 need_version=$need_version
11931
11932 # Whether dlopen is supported.
11933 dlopen_support=$enable_dlopen
11934
11935 # Whether dlopen of programs is supported.
11936 dlopen_self=$enable_dlopen_self
11937
11938 # Whether dlopen of statically linked programs is supported.
11939 dlopen_self_static=$enable_dlopen_self_static
11940
11941 # Compiler flag to prevent dynamic linking.
11942 link_static_flag=$lt_lt_prog_compiler_static
11943
11944 # Compiler flag to turn off builtin functions.
11945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11946
11947 # Compiler flag to allow reflexive dlopens.
11948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11949
11950 # Compiler flag to generate shared objects directly from archives.
11951 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11952
11953 # Compiler flag to generate thread-safe objects.
11954 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11955
11956 # Library versioning type.
11957 version_type=$version_type
11958
11959 # Format of library name prefix.
11960 libname_spec=$lt_libname_spec
11961
11962 # List of archive names. First name is the real one, the rest are links.
11963 # The last name is the one that the linker finds with -lNAME.
11964 library_names_spec=$lt_library_names_spec
11965
11966 # The coded name of the library, if different from the real name.
11967 soname_spec=$lt_soname_spec
11968
11969 # Commands used to build and install an old-style archive.
11970 RANLIB=$lt_RANLIB
11971 old_archive_cmds=$lt_old_archive_cmds
11972 old_postinstall_cmds=$lt_old_postinstall_cmds
11973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11974
11975 # Create an old-style archive from a shared archive.
11976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11977
11978 # Create a temporary old-style archive to link instead of a shared archive.
11979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11980
11981 # Commands used to build and install a shared archive.
11982 archive_cmds=$lt_archive_cmds
11983 archive_expsym_cmds=$lt_archive_expsym_cmds
11984 postinstall_cmds=$lt_postinstall_cmds
11985 postuninstall_cmds=$lt_postuninstall_cmds
11986
11987 # Commands used to build a loadable module (assumed same as above if empty)
11988 module_cmds=$lt_module_cmds
11989 module_expsym_cmds=$lt_module_expsym_cmds
11990
11991 # Commands to strip libraries.
11992 old_striplib=$lt_old_striplib
11993 striplib=$lt_striplib
11994
11995 # Dependencies to place before the objects being linked to create a
11996 # shared library.
11997 predep_objects=$lt_predep_objects
11998
11999 # Dependencies to place after the objects being linked to create a
12000 # shared library.
12001 postdep_objects=$lt_postdep_objects
12002
12003 # Dependencies to place before the objects being linked to create a
12004 # shared library.
12005 predeps=$lt_predeps
12006
12007 # Dependencies to place after the objects being linked to create a
12008 # shared library.
12009 postdeps=$lt_postdeps
12010
12011 # The directories searched by this compiler when creating a shared
12012 # library
12013 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12014
12015 # The library search path used internally by the compiler when linking
12016 # a shared library.
12017 compiler_lib_search_path=$lt_compiler_lib_search_path
12018
12019 # Method to check whether dependent libraries are shared objects.
12020 deplibs_check_method=$lt_deplibs_check_method
12021
12022 # Command to use when deplibs_check_method == file_magic.
12023 file_magic_cmd=$lt_file_magic_cmd
12024
12025 # Flag that allows shared libraries with undefined symbols to be built.
12026 allow_undefined_flag=$lt_allow_undefined_flag
12027
12028 # Flag that forces no undefined symbols.
12029 no_undefined_flag=$lt_no_undefined_flag
12030
12031 # Commands used to finish a libtool library installation in a directory.
12032 finish_cmds=$lt_finish_cmds
12033
12034 # Same as above, but a single script fragment to be evaled but not shown.
12035 finish_eval=$lt_finish_eval
12036
12037 # Take the output of nm and produce a listing of raw symbols and C names.
12038 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12039
12040 # Transform the output of nm in a proper C declaration
12041 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12042
12043 # Transform the output of nm in a C name address pair
12044 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12045
12046 # This is the shared library runtime path variable.
12047 runpath_var=$runpath_var
12048
12049 # This is the shared library path variable.
12050 shlibpath_var=$shlibpath_var
12051
12052 # Is shlibpath searched before the hard-coded library search path?
12053 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12054
12055 # How to hardcode a shared library path into an executable.
12056 hardcode_action=$hardcode_action
12057
12058 # Whether we should hardcode library paths into libraries.
12059 hardcode_into_libs=$hardcode_into_libs
12060
12061 # Flag to hardcode \$libdir into a binary during linking.
12062 # This must work even if \$libdir does not exist.
12063 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12064
12065 # If ld is used when linking, flag to hardcode \$libdir into
12066 # a binary during linking. This must work even if \$libdir does
12067 # not exist.
12068 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12069
12070 # Whether we need a single -rpath flag with a separated argument.
12071 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12072
12073 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12074 # resulting binary.
12075 hardcode_direct=$hardcode_direct
12076
12077 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12078 # resulting binary.
12079 hardcode_minus_L=$hardcode_minus_L
12080
12081 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12082 # the resulting binary.
12083 hardcode_shlibpath_var=$hardcode_shlibpath_var
12084
12085 # Set to yes if building a shared library automatically hardcodes DIR into the library
12086 # and all subsequent libraries and executables linked against it.
12087 hardcode_automatic=$hardcode_automatic
12088
12089 # Variables whose values should be saved in libtool wrapper scripts and
12090 # restored at relink time.
12091 variables_saved_for_relink="$variables_saved_for_relink"
12092
12093 # Whether libtool must link a program against all its dependency libraries.
12094 link_all_deplibs=$link_all_deplibs
12095
12096 # Compile-time system search path for libraries
12097 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12098
12099 # Run-time system search path for libraries
12100 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12101
12102 # Fix the shell variable \$srcfile for the compiler.
12103 fix_srcfile_path=$lt_fix_srcfile_path
12104
12105 # Set to yes if exported symbols are required.
12106 always_export_symbols=$always_export_symbols
12107
12108 # The commands to list exported symbols.
12109 export_symbols_cmds=$lt_export_symbols_cmds
12110
12111 # The commands to extract the exported symbol list from a shared archive.
12112 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12113
12114 # Symbols that should not be listed in the preloaded symbols.
12115 exclude_expsyms=$lt_exclude_expsyms
12116
12117 # Symbols that must always be exported.
12118 include_expsyms=$lt_include_expsyms
12119
12120 # ### END LIBTOOL CONFIG
12121
12122 __EOF__
12123
12124
12125 case $host_os in
12126 aix3*)
12127 cat <<\EOF >> "$cfgfile"
12128
12129 # AIX sometimes has problems with the GCC collect2 program. For some
12130 # reason, if we set the COLLECT_NAMES environment variable, the problems
12131 # vanish in a puff of smoke.
12132 if test "X${COLLECT_NAMES+set}" != Xset; then
12133 COLLECT_NAMES=
12134 export COLLECT_NAMES
12135 fi
12136 EOF
12137 ;;
12138 esac
12139
12140 # We use sed instead of cat because bash on DJGPP gets confused if
12141 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12142 # text mode, it properly converts lines to CR/LF. This bash problem
12143 # is reportedly fixed, but why not run on old versions too?
12144 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12145
12146 mv -f "$cfgfile" "$ofile" || \
12147 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12148 chmod +x "$ofile"
12149
12150 else
12151 # If there is no Makefile yet, we rely on a make rule to execute
12152 # `config.status --recheck' to rerun these tests and create the
12153 # libtool script then.
12154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12155 if test -f "$ltmain_in"; then
12156 test -f Makefile && make "$ltmain"
12157 fi
12158 fi
12159
12160
12161 ac_ext=c
12162 ac_cpp='$CPP $CPPFLAGS'
12163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12166
12167 CC="$lt_save_CC"
12168
12169
12170 # Check whether --with-tags was given.
12171 if test "${with_tags+set}" = set; then
12172 withval=$with_tags; tagnames="$withval"
12173 fi
12174
12175
12176 if test -f "$ltmain" && test -n "$tagnames"; then
12177 if test ! -f "${ofile}"; then
12178 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12179 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12180 fi
12181
12182 if test -z "$LTCC"; then
12183 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12184 if test -z "$LTCC"; then
12185 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12186 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12187 else
12188 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12189 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12190 fi
12191 fi
12192 if test -z "$LTCFLAGS"; then
12193 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12194 fi
12195
12196 # Extract list of available tagged configurations in $ofile.
12197 # Note that this assumes the entire list is on one line.
12198 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12199
12200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12201 for tagname in $tagnames; do
12202 IFS="$lt_save_ifs"
12203 # Check whether tagname contains only valid characters
12204 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12205 "") ;;
12206 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12207 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12208 { (exit 1); exit 1; }; }
12209 ;;
12210 esac
12211
12212 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12213 then
12214 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12215 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12216 { (exit 1); exit 1; }; }
12217 fi
12218
12219 # Update the list of available tags.
12220 if test -n "$tagname"; then
12221 echo appending configuration tag \"$tagname\" to $ofile
12222
12223 case $tagname in
12224 CXX)
12225 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12226 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12227 (test "X$CXX" != "Xg++"))) ; then
12228 ac_ext=cpp
12229 ac_cpp='$CXXCPP $CPPFLAGS'
12230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12233
12234
12235
12236
12237 archive_cmds_need_lc_CXX=no
12238 allow_undefined_flag_CXX=
12239 always_export_symbols_CXX=no
12240 archive_expsym_cmds_CXX=
12241 export_dynamic_flag_spec_CXX=
12242 hardcode_direct_CXX=no
12243 hardcode_libdir_flag_spec_CXX=
12244 hardcode_libdir_flag_spec_ld_CXX=
12245 hardcode_libdir_separator_CXX=
12246 hardcode_minus_L_CXX=no
12247 hardcode_shlibpath_var_CXX=unsupported
12248 hardcode_automatic_CXX=no
12249 module_cmds_CXX=
12250 module_expsym_cmds_CXX=
12251 link_all_deplibs_CXX=unknown
12252 old_archive_cmds_CXX=$old_archive_cmds
12253 no_undefined_flag_CXX=
12254 whole_archive_flag_spec_CXX=
12255 enable_shared_with_static_runtimes_CXX=no
12256
12257 # Dependencies to place before and after the object being linked:
12258 predep_objects_CXX=
12259 postdep_objects_CXX=
12260 predeps_CXX=
12261 postdeps_CXX=
12262 compiler_lib_search_path_CXX=
12263 compiler_lib_search_dirs_CXX=
12264
12265 # Source file extension for C++ test sources.
12266 ac_ext=cpp
12267
12268 # Object file extension for compiled C++ test sources.
12269 objext=o
12270 objext_CXX=$objext
12271
12272 # Code to be used in simple compile tests
12273 lt_simple_compile_test_code="int some_variable = 0;"
12274
12275 # Code to be used in simple link tests
12276 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12277
12278 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12279
12280 # If no C compiler was specified, use CC.
12281 LTCC=${LTCC-"$CC"}
12282
12283 # If no C compiler flags were specified, use CFLAGS.
12284 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12285
12286 # Allow CC to be a program name with arguments.
12287 compiler=$CC
12288
12289
12290 # save warnings/boilerplate of simple test code
12291 ac_outfile=conftest.$ac_objext
12292 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12293 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12294 _lt_compiler_boilerplate=`cat conftest.err`
12295 $rm conftest*
12296
12297 ac_outfile=conftest.$ac_objext
12298 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12299 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12300 _lt_linker_boilerplate=`cat conftest.err`
12301 $rm -r conftest*
12302
12303
12304 # Allow CC to be a program name with arguments.
12305 lt_save_CC=$CC
12306 lt_save_LD=$LD
12307 lt_save_GCC=$GCC
12308 GCC=$GXX
12309 lt_save_with_gnu_ld=$with_gnu_ld
12310 lt_save_path_LD=$lt_cv_path_LD
12311 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12312 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12313 else
12314 $as_unset lt_cv_prog_gnu_ld
12315 fi
12316 if test -n "${lt_cv_path_LDCXX+set}"; then
12317 lt_cv_path_LD=$lt_cv_path_LDCXX
12318 else
12319 $as_unset lt_cv_path_LD
12320 fi
12321 test -z "${LDCXX+set}" || LD=$LDCXX
12322 CC=${CXX-"c++"}
12323 compiler=$CC
12324 compiler_CXX=$CC
12325 for cc_temp in $compiler""; do
12326 case $cc_temp in
12327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12329 \-*) ;;
12330 *) break;;
12331 esac
12332 done
12333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12334
12335
12336 # We don't want -fno-exception wen compiling C++ code, so set the
12337 # no_builtin_flag separately
12338 if test "$GXX" = yes; then
12339 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12340 else
12341 lt_prog_compiler_no_builtin_flag_CXX=
12342 fi
12343
12344 if test "$GXX" = yes; then
12345 # Set up default GNU C++ configuration
12346
12347
12348 # Check whether --with-gnu-ld was given.
12349 if test "${with_gnu_ld+set}" = set; then
12350 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12351 else
12352 with_gnu_ld=no
12353 fi
12354
12355 ac_prog=ld
12356 if test "$GCC" = yes; then
12357 # Check if gcc -print-prog-name=ld gives a path.
12358 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12359 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12360 case $host in
12361 *-*-mingw*)
12362 # gcc leaves a trailing carriage return which upsets mingw
12363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12364 *)
12365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12366 esac
12367 case $ac_prog in
12368 # Accept absolute paths.
12369 [\\/]* | ?:[\\/]*)
12370 re_direlt='/[^/][^/]*/\.\./'
12371 # Canonicalize the pathname of ld
12372 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12373 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12374 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12375 done
12376 test -z "$LD" && LD="$ac_prog"
12377 ;;
12378 "")
12379 # If it fails, then pretend we aren't using GCC.
12380 ac_prog=ld
12381 ;;
12382 *)
12383 # If it is relative, then search for the first ld in PATH.
12384 with_gnu_ld=unknown
12385 ;;
12386 esac
12387 elif test "$with_gnu_ld" = yes; then
12388 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12389 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12390 else
12391 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12392 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12393 fi
12394 if test "${lt_cv_path_LD+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397 if test -z "$LD"; then
12398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12399 for ac_dir in $PATH; do
12400 IFS="$lt_save_ifs"
12401 test -z "$ac_dir" && ac_dir=.
12402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12403 lt_cv_path_LD="$ac_dir/$ac_prog"
12404 # Check to see if the program is GNU ld. I'd rather use --version,
12405 # but apparently some variants of GNU ld only accept -v.
12406 # Break only if it was the GNU/non-GNU ld that we prefer.
12407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12408 *GNU* | *'with BFD'*)
12409 test "$with_gnu_ld" != no && break
12410 ;;
12411 *)
12412 test "$with_gnu_ld" != yes && break
12413 ;;
12414 esac
12415 fi
12416 done
12417 IFS="$lt_save_ifs"
12418 else
12419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12420 fi
12421 fi
12422
12423 LD="$lt_cv_path_LD"
12424 if test -n "$LD"; then
12425 { echo "$as_me:$LINENO: result: $LD" >&5
12426 echo "${ECHO_T}$LD" >&6; }
12427 else
12428 { echo "$as_me:$LINENO: result: no" >&5
12429 echo "${ECHO_T}no" >&6; }
12430 fi
12431 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12432 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12433 { (exit 1); exit 1; }; }
12434 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12435 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12436 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12440 case `$LD -v 2>&1 </dev/null` in
12441 *GNU* | *'with BFD'*)
12442 lt_cv_prog_gnu_ld=yes
12443 ;;
12444 *)
12445 lt_cv_prog_gnu_ld=no
12446 ;;
12447 esac
12448 fi
12449 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12450 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12451 with_gnu_ld=$lt_cv_prog_gnu_ld
12452
12453
12454
12455 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12456 # archiving commands below assume that GNU ld is being used.
12457 if test "$with_gnu_ld" = yes; then
12458 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 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'
12460
12461 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12463
12464 # If archive_cmds runs LD, not CC, wlarc should be empty
12465 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12466 # investigate it a little bit more. (MM)
12467 wlarc='${wl}'
12468
12469 # ancient GNU ld didn't support --whole-archive et. al.
12470 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12471 grep 'no-whole-archive' > /dev/null; then
12472 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473 else
12474 whole_archive_flag_spec_CXX=
12475 fi
12476 else
12477 with_gnu_ld=no
12478 wlarc=
12479
12480 # A generic and very simple default shared library creation
12481 # command for GNU C++ for the case where it uses the native
12482 # linker, instead of GNU ld. If possible, this setting should
12483 # overridden to take advantage of the native linker features on
12484 # the platform it is being used on.
12485 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12486 fi
12487
12488 # Commands to make compiler produce verbose output that lists
12489 # what "hidden" libraries, object files and flags are used when
12490 # linking a shared library.
12491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12492
12493 else
12494 GXX=no
12495 with_gnu_ld=no
12496 wlarc=
12497 fi
12498
12499 # PORTME: fill in a description of your system's C++ link characteristics
12500 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12501 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12502 ld_shlibs_CXX=yes
12503 case $host_os in
12504 aix3*)
12505 # FIXME: insert proper C++ library support
12506 ld_shlibs_CXX=no
12507 ;;
12508 aix[4-9]*)
12509 if test "$host_cpu" = ia64; then
12510 # On IA64, the linker does run time linking by default, so we don't
12511 # have to do anything special.
12512 aix_use_runtimelinking=no
12513 exp_sym_flag='-Bexport'
12514 no_entry_flag=""
12515 else
12516 aix_use_runtimelinking=no
12517
12518 # Test if we are trying to use run time linking or normal
12519 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12520 # need to do runtime linking.
12521 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12522 for ld_flag in $LDFLAGS; do
12523 case $ld_flag in
12524 *-brtl*)
12525 aix_use_runtimelinking=yes
12526 break
12527 ;;
12528 esac
12529 done
12530 ;;
12531 esac
12532
12533 exp_sym_flag='-bexport'
12534 no_entry_flag='-bnoentry'
12535 fi
12536
12537 # When large executables or shared objects are built, AIX ld can
12538 # have problems creating the table of contents. If linking a library
12539 # or program results in "error TOC overflow" add -mminimal-toc to
12540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12542
12543 archive_cmds_CXX=''
12544 hardcode_direct_CXX=yes
12545 hardcode_libdir_separator_CXX=':'
12546 link_all_deplibs_CXX=yes
12547
12548 if test "$GXX" = yes; then
12549 case $host_os in aix4.[012]|aix4.[012].*)
12550 # We only want to do this on AIX 4.2 and lower, the check
12551 # below for broken collect2 doesn't work under 4.3+
12552 collect2name=`${CC} -print-prog-name=collect2`
12553 if test -f "$collect2name" && \
12554 strings "$collect2name" | grep resolve_lib_name >/dev/null
12555 then
12556 # We have reworked collect2
12557 :
12558 else
12559 # We have old collect2
12560 hardcode_direct_CXX=unsupported
12561 # It fails to find uninstalled libraries when the uninstalled
12562 # path is not listed in the libpath. Setting hardcode_minus_L
12563 # to unsupported forces relinking
12564 hardcode_minus_L_CXX=yes
12565 hardcode_libdir_flag_spec_CXX='-L$libdir'
12566 hardcode_libdir_separator_CXX=
12567 fi
12568 ;;
12569 esac
12570 shared_flag='-shared'
12571 if test "$aix_use_runtimelinking" = yes; then
12572 shared_flag="$shared_flag "'${wl}-G'
12573 fi
12574 else
12575 # not using gcc
12576 if test "$host_cpu" = ia64; then
12577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12578 # chokes on -Wl,-G. The following line is correct:
12579 shared_flag='-G'
12580 else
12581 if test "$aix_use_runtimelinking" = yes; then
12582 shared_flag='${wl}-G'
12583 else
12584 shared_flag='${wl}-bM:SRE'
12585 fi
12586 fi
12587 fi
12588
12589 # It seems that -bexpall does not export symbols beginning with
12590 # underscore (_), so it is better to generate a list of symbols to export.
12591 always_export_symbols_CXX=yes
12592 if test "$aix_use_runtimelinking" = yes; then
12593 # Warning - without using the other runtime loading flags (-brtl),
12594 # -berok will link without error, but may produce a broken library.
12595 allow_undefined_flag_CXX='-berok'
12596 # Determine the default libpath from the value encoded in an empty executable.
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603
12604 int
12605 main ()
12606 {
12607
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_cxx_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest$ac_exeext &&
12629 $as_test_x conftest$ac_exeext; then
12630
12631 lt_aix_libpath_sed='
12632 /Import File Strings/,/^$/ {
12633 /^0/ {
12634 s/^0 *\(.*\)$/\1/
12635 p
12636 }
12637 }'
12638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639 # Check for a 64-bit object if we didn't find anything.
12640 if test -z "$aix_libpath"; then
12641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642 fi
12643 else
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647
12648 fi
12649
12650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12651 conftest$ac_exeext conftest.$ac_ext
12652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12653
12654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12655
12656 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"
12657 else
12658 if test "$host_cpu" = ia64; then
12659 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12660 allow_undefined_flag_CXX="-z nodefs"
12661 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"
12662 else
12663 # Determine the default libpath from the value encoded in an empty executable.
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670
12671 int
12672 main ()
12673 {
12674
12675 ;
12676 return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (ac_try="$ac_link"
12681 case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_link") 2>conftest.er1
12687 ac_status=$?
12688 grep -v '^ *+' conftest.er1 >conftest.err
12689 rm -f conftest.er1
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } && {
12693 test -z "$ac_cxx_werror_flag" ||
12694 test ! -s conftest.err
12695 } && test -s conftest$ac_exeext &&
12696 $as_test_x conftest$ac_exeext; then
12697
12698 lt_aix_libpath_sed='
12699 /Import File Strings/,/^$/ {
12700 /^0/ {
12701 s/^0 *\(.*\)$/\1/
12702 p
12703 }
12704 }'
12705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12706 # Check for a 64-bit object if we didn't find anything.
12707 if test -z "$aix_libpath"; then
12708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12709 fi
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12713
12714
12715 fi
12716
12717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12718 conftest$ac_exeext conftest.$ac_ext
12719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12720
12721 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12722 # Warning - without using the other run time loading flags,
12723 # -berok will link without error, but may produce a broken library.
12724 no_undefined_flag_CXX=' ${wl}-bernotok'
12725 allow_undefined_flag_CXX=' ${wl}-berok'
12726 # Exported symbols can be pulled into shared objects from archives
12727 whole_archive_flag_spec_CXX='$convenience'
12728 archive_cmds_need_lc_CXX=yes
12729 # This is similar to how AIX traditionally builds its shared libraries.
12730 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'
12731 fi
12732 fi
12733 ;;
12734
12735 beos*)
12736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12737 allow_undefined_flag_CXX=unsupported
12738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12739 # support --undefined. This deserves some investigation. FIXME
12740 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12741 else
12742 ld_shlibs_CXX=no
12743 fi
12744 ;;
12745
12746 chorus*)
12747 case $cc_basename in
12748 *)
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12751 ;;
12752 esac
12753 ;;
12754
12755 cygwin* | mingw* | pw32*)
12756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12757 # as there is no search path for DLLs.
12758 hardcode_libdir_flag_spec_CXX='-L$libdir'
12759 allow_undefined_flag_CXX=unsupported
12760 always_export_symbols_CXX=no
12761 enable_shared_with_static_runtimes_CXX=yes
12762
12763 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12764 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'
12765 # If the export-symbols file already is a .def file (1st line
12766 # is EXPORTS), use it as is; otherwise, prepend...
12767 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12768 cp $export_symbols $output_objdir/$soname.def;
12769 else
12770 echo EXPORTS > $output_objdir/$soname.def;
12771 cat $export_symbols >> $output_objdir/$soname.def;
12772 fi~
12773 $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'
12774 else
12775 ld_shlibs_CXX=no
12776 fi
12777 ;;
12778 darwin* | rhapsody*)
12779 archive_cmds_need_lc_CXX=no
12780 hardcode_direct_CXX=no
12781 hardcode_automatic_CXX=yes
12782 hardcode_shlibpath_var_CXX=unsupported
12783 whole_archive_flag_spec_CXX=''
12784 link_all_deplibs_CXX=yes
12785 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12786 if test "$GXX" = yes ; then
12787 output_verbose_link_cmd='echo'
12788 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12789 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12790 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12791 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12792 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12793 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${_lt_dsymutil}"
12794 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
12795 fi
12796 else
12797 case $cc_basename in
12798 xlc*)
12799 output_verbose_link_cmd='echo'
12800 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'
12801 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12803 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}'
12804 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}'
12805 ;;
12806 *)
12807 ld_shlibs_CXX=no
12808 ;;
12809 esac
12810 fi
12811 ;;
12812
12813 dgux*)
12814 case $cc_basename in
12815 ec++*)
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12818 ;;
12819 ghcx*)
12820 # Green Hills C++ Compiler
12821 # FIXME: insert proper C++ library support
12822 ld_shlibs_CXX=no
12823 ;;
12824 *)
12825 # FIXME: insert proper C++ library support
12826 ld_shlibs_CXX=no
12827 ;;
12828 esac
12829 ;;
12830 freebsd[12]*)
12831 # C++ shared libraries reported to be fairly broken before switch to ELF
12832 ld_shlibs_CXX=no
12833 ;;
12834 freebsd-elf*)
12835 archive_cmds_need_lc_CXX=no
12836 ;;
12837 freebsd* | dragonfly*)
12838 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12839 # conventions
12840 ld_shlibs_CXX=yes
12841 ;;
12842 gnu*)
12843 ;;
12844 hpux9*)
12845 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12846 hardcode_libdir_separator_CXX=:
12847 export_dynamic_flag_spec_CXX='${wl}-E'
12848 hardcode_direct_CXX=yes
12849 hardcode_minus_L_CXX=yes # Not in the search PATH,
12850 # but as the default
12851 # location of the library.
12852
12853 case $cc_basename in
12854 CC*)
12855 # FIXME: insert proper C++ library support
12856 ld_shlibs_CXX=no
12857 ;;
12858 aCC*)
12859 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'
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 #
12864 # There doesn't appear to be a way to prevent this compiler from
12865 # explicitly linking system object files so we need to strip them
12866 # from the output so that they don't get included in the library
12867 # dependencies.
12868 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'
12869 ;;
12870 *)
12871 if test "$GXX" = yes; then
12872 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'
12873 else
12874 # FIXME: insert proper C++ library support
12875 ld_shlibs_CXX=no
12876 fi
12877 ;;
12878 esac
12879 ;;
12880 hpux10*|hpux11*)
12881 if test $with_gnu_ld = no; then
12882 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12883 hardcode_libdir_separator_CXX=:
12884
12885 case $host_cpu in
12886 hppa*64*|ia64*) ;;
12887 *)
12888 export_dynamic_flag_spec_CXX='${wl}-E'
12889 ;;
12890 esac
12891 fi
12892 case $host_cpu in
12893 hppa*64*|ia64*)
12894 hardcode_direct_CXX=no
12895 hardcode_shlibpath_var_CXX=no
12896 ;;
12897 *)
12898 hardcode_direct_CXX=yes
12899 hardcode_minus_L_CXX=yes # Not in the search PATH,
12900 # but as the default
12901 # location of the library.
12902 ;;
12903 esac
12904
12905 case $cc_basename in
12906 CC*)
12907 # FIXME: insert proper C++ library support
12908 ld_shlibs_CXX=no
12909 ;;
12910 aCC*)
12911 case $host_cpu in
12912 hppa*64*)
12913 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12914 ;;
12915 ia64*)
12916 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12917 ;;
12918 *)
12919 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12920 ;;
12921 esac
12922 # Commands to make compiler produce verbose output that lists
12923 # what "hidden" libraries, object files and flags are used when
12924 # linking a shared library.
12925 #
12926 # There doesn't appear to be a way to prevent this compiler from
12927 # explicitly linking system object files so we need to strip them
12928 # from the output so that they don't get included in the library
12929 # dependencies.
12930 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'
12931 ;;
12932 *)
12933 if test "$GXX" = yes; then
12934 if test $with_gnu_ld = no; then
12935 case $host_cpu in
12936 hppa*64*)
12937 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12938 ;;
12939 ia64*)
12940 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12941 ;;
12942 *)
12943 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'
12944 ;;
12945 esac
12946 fi
12947 else
12948 # FIXME: insert proper C++ library support
12949 ld_shlibs_CXX=no
12950 fi
12951 ;;
12952 esac
12953 ;;
12954 interix[3-9]*)
12955 hardcode_direct_CXX=no
12956 hardcode_shlibpath_var_CXX=no
12957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12958 export_dynamic_flag_spec_CXX='${wl}-E'
12959 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12960 # Instead, shared libraries are loaded at an image base (0x10000000 by
12961 # default) and relocated if they conflict, which is a slow very memory
12962 # consuming and fragmenting process. To avoid this, we pick a random,
12963 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12964 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12965 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'
12966 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'
12967 ;;
12968 irix5* | irix6*)
12969 case $cc_basename in
12970 CC*)
12971 # SGI C++
12972 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'
12973
12974 # Archives containing C++ object files must be created using
12975 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12976 # necessary to make sure instantiated templates are included
12977 # in the archive.
12978 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12979 ;;
12980 *)
12981 if test "$GXX" = yes; then
12982 if test "$with_gnu_ld" = no; then
12983 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'
12984 else
12985 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'
12986 fi
12987 fi
12988 link_all_deplibs_CXX=yes
12989 ;;
12990 esac
12991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12992 hardcode_libdir_separator_CXX=:
12993 ;;
12994 linux* | k*bsd*-gnu)
12995 case $cc_basename in
12996 KCC*)
12997 # Kuck and Associates, Inc. (KAI) C++ Compiler
12998
12999 # KCC will only create a shared library if the output file
13000 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13001 # to its proper name (with version) after linking.
13002 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'
13003 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'
13004 # Commands to make compiler produce verbose output that lists
13005 # what "hidden" libraries, object files and flags are used when
13006 # linking a shared library.
13007 #
13008 # There doesn't appear to be a way to prevent this compiler from
13009 # explicitly linking system object files so we need to strip them
13010 # from the output so that they don't get included in the library
13011 # dependencies.
13012 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'
13013
13014 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13015 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13016
13017 # Archives containing C++ object files must be created using
13018 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13019 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13020 ;;
13021 icpc*)
13022 # Intel C++
13023 with_gnu_ld=yes
13024 # version 8.0 and above of icpc choke on multiply defined symbols
13025 # if we add $predep_objects and $postdep_objects, however 7.1 and
13026 # earlier do not add the objects themselves.
13027 case `$CC -V 2>&1` in
13028 *"Version 7."*)
13029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13030 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'
13031 ;;
13032 *) # Version 8.0 or newer
13033 tmp_idyn=
13034 case $host_cpu in
13035 ia64*) tmp_idyn=' -i_dynamic';;
13036 esac
13037 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13038 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'
13039 ;;
13040 esac
13041 archive_cmds_need_lc_CXX=no
13042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13043 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13044 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13045 ;;
13046 pgCC* | pgcpp*)
13047 # Portland Group C++ compiler
13048 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13049 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'
13050
13051 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13053 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'
13054 ;;
13055 cxx*)
13056 # Compaq C++
13057 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13058 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'
13059
13060 runpath_var=LD_RUN_PATH
13061 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13062 hardcode_libdir_separator_CXX=:
13063
13064 # Commands to make compiler produce verbose output that lists
13065 # what "hidden" libraries, object files and flags are used when
13066 # linking a shared library.
13067 #
13068 # There doesn't appear to be a way to prevent this compiler from
13069 # explicitly linking system object files so we need to strip them
13070 # from the output so that they don't get included in the library
13071 # dependencies.
13072 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'
13073 ;;
13074 *)
13075 case `$CC -V 2>&1 | sed 5q` in
13076 *Sun\ C*)
13077 # Sun C++ 5.9
13078 no_undefined_flag_CXX=' -zdefs'
13079 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13080 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'
13081 hardcode_libdir_flag_spec_CXX='-R$libdir'
13082 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'
13083
13084 # Not sure whether something based on
13085 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13086 # would be better.
13087 output_verbose_link_cmd='echo'
13088
13089 # Archives containing C++ object files must be created using
13090 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13091 # necessary to make sure instantiated templates are included
13092 # in the archive.
13093 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13094 ;;
13095 esac
13096 ;;
13097 esac
13098 ;;
13099 lynxos*)
13100 # FIXME: insert proper C++ library support
13101 ld_shlibs_CXX=no
13102 ;;
13103 m88k*)
13104 # FIXME: insert proper C++ library support
13105 ld_shlibs_CXX=no
13106 ;;
13107 mvs*)
13108 case $cc_basename in
13109 cxx*)
13110 # FIXME: insert proper C++ library support
13111 ld_shlibs_CXX=no
13112 ;;
13113 *)
13114 # FIXME: insert proper C++ library support
13115 ld_shlibs_CXX=no
13116 ;;
13117 esac
13118 ;;
13119 netbsd* | netbsdelf*-gnu)
13120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13121 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13122 wlarc=
13123 hardcode_libdir_flag_spec_CXX='-R$libdir'
13124 hardcode_direct_CXX=yes
13125 hardcode_shlibpath_var_CXX=no
13126 fi
13127 # Workaround some broken pre-1.5 toolchains
13128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13129 ;;
13130 openbsd2*)
13131 # C++ shared libraries are fairly broken
13132 ld_shlibs_CXX=no
13133 ;;
13134 openbsd*)
13135 if test -f /usr/libexec/ld.so; then
13136 hardcode_direct_CXX=yes
13137 hardcode_shlibpath_var_CXX=no
13138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13139 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13141 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13142 export_dynamic_flag_spec_CXX='${wl}-E'
13143 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13144 fi
13145 output_verbose_link_cmd='echo'
13146 else
13147 ld_shlibs_CXX=no
13148 fi
13149 ;;
13150 osf3*)
13151 case $cc_basename in
13152 KCC*)
13153 # Kuck and Associates, Inc. (KAI) C++ Compiler
13154
13155 # KCC will only create a shared library if the output file
13156 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13157 # to its proper name (with version) after linking.
13158 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'
13159
13160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13161 hardcode_libdir_separator_CXX=:
13162
13163 # Archives containing C++ object files must be created using
13164 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13165 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13166
13167 ;;
13168 RCC*)
13169 # Rational C++ 2.4.1
13170 # FIXME: insert proper C++ library support
13171 ld_shlibs_CXX=no
13172 ;;
13173 cxx*)
13174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13175 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'
13176
13177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13178 hardcode_libdir_separator_CXX=:
13179
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13183 #
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13187 # dependencies.
13188 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'
13189 ;;
13190 *)
13191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13193 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'
13194
13195 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13196 hardcode_libdir_separator_CXX=:
13197
13198 # Commands to make compiler produce verbose output that lists
13199 # what "hidden" libraries, object files and flags are used when
13200 # linking a shared library.
13201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13202
13203 else
13204 # FIXME: insert proper C++ library support
13205 ld_shlibs_CXX=no
13206 fi
13207 ;;
13208 esac
13209 ;;
13210 osf4* | osf5*)
13211 case $cc_basename in
13212 KCC*)
13213 # Kuck and Associates, Inc. (KAI) C++ Compiler
13214
13215 # KCC will only create a shared library if the output file
13216 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13217 # to its proper name (with version) after linking.
13218 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'
13219
13220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13221 hardcode_libdir_separator_CXX=:
13222
13223 # Archives containing C++ object files must be created using
13224 # the KAI C++ compiler.
13225 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13226 ;;
13227 RCC*)
13228 # Rational C++ 2.4.1
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13231 ;;
13232 cxx*)
13233 allow_undefined_flag_CXX=' -expect_unresolved \*'
13234 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'
13235 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13236 echo "-hidden">> $lib.exp~
13237 $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~
13238 $rm $lib.exp'
13239
13240 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13241 hardcode_libdir_separator_CXX=:
13242
13243 # Commands to make compiler produce verbose output that lists
13244 # what "hidden" libraries, object files and flags are used when
13245 # linking a shared library.
13246 #
13247 # There doesn't appear to be a way to prevent this compiler from
13248 # explicitly linking system object files so we need to strip them
13249 # from the output so that they don't get included in the library
13250 # dependencies.
13251 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'
13252 ;;
13253 *)
13254 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13256 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'
13257
13258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13259 hardcode_libdir_separator_CXX=:
13260
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13265
13266 else
13267 # FIXME: insert proper C++ library support
13268 ld_shlibs_CXX=no
13269 fi
13270 ;;
13271 esac
13272 ;;
13273 psos*)
13274 # FIXME: insert proper C++ library support
13275 ld_shlibs_CXX=no
13276 ;;
13277 sunos4*)
13278 case $cc_basename in
13279 CC*)
13280 # Sun C++ 4.x
13281 # FIXME: insert proper C++ library support
13282 ld_shlibs_CXX=no
13283 ;;
13284 lcc*)
13285 # Lucid
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13288 ;;
13289 *)
13290 # FIXME: insert proper C++ library support
13291 ld_shlibs_CXX=no
13292 ;;
13293 esac
13294 ;;
13295 solaris*)
13296 case $cc_basename in
13297 CC*)
13298 # Sun C++ 4.2, 5.x and Centerline C++
13299 archive_cmds_need_lc_CXX=yes
13300 no_undefined_flag_CXX=' -zdefs'
13301 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13303 $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'
13304
13305 hardcode_libdir_flag_spec_CXX='-R$libdir'
13306 hardcode_shlibpath_var_CXX=no
13307 case $host_os in
13308 solaris2.[0-5] | solaris2.[0-5].*) ;;
13309 *)
13310 # The compiler driver will combine and reorder linker options,
13311 # but understands `-z linker_flag'.
13312 # Supported since Solaris 2.6 (maybe 2.5.1?)
13313 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13314 ;;
13315 esac
13316 link_all_deplibs_CXX=yes
13317
13318 output_verbose_link_cmd='echo'
13319
13320 # Archives containing C++ object files must be created using
13321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13322 # necessary to make sure instantiated templates are included
13323 # in the archive.
13324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13325 ;;
13326 gcx*)
13327 # Green Hills C++ Compiler
13328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13329
13330 # The C++ compiler must be used to create the archive.
13331 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13332 ;;
13333 *)
13334 # GNU C++ compiler with Solaris linker
13335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13336 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13337 if $CC --version | grep -v '^2\.7' > /dev/null; then
13338 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13339 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13340 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13341
13342 # Commands to make compiler produce verbose output that lists
13343 # what "hidden" libraries, object files and flags are used when
13344 # linking a shared library.
13345 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13346 else
13347 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13348 # platform.
13349 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13350 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13351 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13352
13353 # Commands to make compiler produce verbose output that lists
13354 # what "hidden" libraries, object files and flags are used when
13355 # linking a shared library.
13356 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13357 fi
13358
13359 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13360 case $host_os in
13361 solaris2.[0-5] | solaris2.[0-5].*) ;;
13362 *)
13363 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13364 ;;
13365 esac
13366 fi
13367 ;;
13368 esac
13369 ;;
13370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13371 no_undefined_flag_CXX='${wl}-z,text'
13372 archive_cmds_need_lc_CXX=no
13373 hardcode_shlibpath_var_CXX=no
13374 runpath_var='LD_RUN_PATH'
13375
13376 case $cc_basename in
13377 CC*)
13378 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380 ;;
13381 *)
13382 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13383 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 ;;
13385 esac
13386 ;;
13387 sysv5* | sco3.2v5* | sco5v6*)
13388 # Note: We can NOT use -z defs as we might desire, because we do not
13389 # link with -lc, and that would cause any symbols used from libc to
13390 # always be unresolved, which means just about no library would
13391 # ever link correctly. If we're not using GNU ld we use -z text
13392 # though, which does catch some bad symbols but isn't as heavy-handed
13393 # as -z defs.
13394 # For security reasons, it is highly recommended that you always
13395 # use absolute paths for naming shared libraries, and exclude the
13396 # DT_RUNPATH tag from executables and libraries. But doing so
13397 # requires that you compile everything twice, which is a pain.
13398 # So that behaviour is only enabled if SCOABSPATH is set to a
13399 # non-empty value in the environment. Most likely only useful for
13400 # creating official distributions of packages.
13401 # This is a hack until libtool officially supports absolute path
13402 # names for shared libraries.
13403 no_undefined_flag_CXX='${wl}-z,text'
13404 allow_undefined_flag_CXX='${wl}-z,nodefs'
13405 archive_cmds_need_lc_CXX=no
13406 hardcode_shlibpath_var_CXX=no
13407 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13408 hardcode_libdir_separator_CXX=':'
13409 link_all_deplibs_CXX=yes
13410 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13411 runpath_var='LD_RUN_PATH'
13412
13413 case $cc_basename in
13414 CC*)
13415 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13416 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13417 ;;
13418 *)
13419 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13421 ;;
13422 esac
13423 ;;
13424 tandem*)
13425 case $cc_basename in
13426 NCC*)
13427 # NonStop-UX NCC 3.20
13428 # FIXME: insert proper C++ library support
13429 ld_shlibs_CXX=no
13430 ;;
13431 *)
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13434 ;;
13435 esac
13436 ;;
13437 vxworks*)
13438 # FIXME: insert proper C++ library support
13439 ld_shlibs_CXX=no
13440 ;;
13441 *)
13442 # FIXME: insert proper C++ library support
13443 ld_shlibs_CXX=no
13444 ;;
13445 esac
13446 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13447 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13448 test "$ld_shlibs_CXX" = no && can_build_shared=no
13449
13450 GCC_CXX="$GXX"
13451 LD_CXX="$LD"
13452
13453 cat > conftest.$ac_ext <<EOF
13454 class Foo
13455 {
13456 public:
13457 Foo (void) { a = 0; }
13458 private:
13459 int a;
13460 };
13461 EOF
13462
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; then
13468 # Parse the compiler output and extract the necessary
13469 # objects, libraries and library flags.
13470
13471 # Sentinel used to keep track of whether or not we are before
13472 # the conftest object file.
13473 pre_test_object_deps_done=no
13474
13475 # The `*' in the case matches for architectures that use `case' in
13476 # $output_verbose_cmd can trigger glob expansion during the loop
13477 # eval without this substitution.
13478 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13479
13480 for p in `eval $output_verbose_link_cmd`; do
13481 case $p in
13482
13483 -L* | -R* | -l*)
13484 # Some compilers place space between "-{L,R}" and the path.
13485 # Remove the space.
13486 if test $p = "-L" \
13487 || test $p = "-R"; then
13488 prev=$p
13489 continue
13490 else
13491 prev=
13492 fi
13493
13494 if test "$pre_test_object_deps_done" = no; then
13495 case $p in
13496 -L* | -R*)
13497 # Internal compiler library paths should come after those
13498 # provided the user. The postdeps already come after the
13499 # user supplied libs so there is no need to process them.
13500 if test -z "$compiler_lib_search_path_CXX"; then
13501 compiler_lib_search_path_CXX="${prev}${p}"
13502 else
13503 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13504 fi
13505 ;;
13506 # The "-l" case would never come before the object being
13507 # linked, so don't bother handling this case.
13508 esac
13509 else
13510 if test -z "$postdeps_CXX"; then
13511 postdeps_CXX="${prev}${p}"
13512 else
13513 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13514 fi
13515 fi
13516 ;;
13517
13518 *.$objext)
13519 # This assumes that the test object file only shows up
13520 # once in the compiler output.
13521 if test "$p" = "conftest.$objext"; then
13522 pre_test_object_deps_done=yes
13523 continue
13524 fi
13525
13526 if test "$pre_test_object_deps_done" = no; then
13527 if test -z "$predep_objects_CXX"; then
13528 predep_objects_CXX="$p"
13529 else
13530 predep_objects_CXX="$predep_objects_CXX $p"
13531 fi
13532 else
13533 if test -z "$postdep_objects_CXX"; then
13534 postdep_objects_CXX="$p"
13535 else
13536 postdep_objects_CXX="$postdep_objects_CXX $p"
13537 fi
13538 fi
13539 ;;
13540
13541 *) ;; # Ignore the rest.
13542
13543 esac
13544 done
13545
13546 # Clean up.
13547 rm -f a.out a.exe
13548 else
13549 echo "libtool.m4: error: problem compiling CXX test program"
13550 fi
13551
13552 $rm -f confest.$objext
13553
13554 compiler_lib_search_dirs_CXX=
13555 if test -n "$compiler_lib_search_path_CXX"; then
13556 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13557 fi
13558
13559 # PORTME: override above test on systems where it is broken
13560 case $host_os in
13561 interix[3-9]*)
13562 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13563 # hack all around it, let's just trust "g++" to DTRT.
13564 predep_objects_CXX=
13565 postdep_objects_CXX=
13566 postdeps_CXX=
13567 ;;
13568
13569 linux*)
13570 case `$CC -V 2>&1 | sed 5q` in
13571 *Sun\ C*)
13572 # Sun C++ 5.9
13573 #
13574 # The more standards-conforming stlport4 library is
13575 # incompatible with the Cstd library. Avoid specifying
13576 # it if it's in CXXFLAGS. Ignore libCrun as
13577 # -library=stlport4 depends on it.
13578 case " $CXX $CXXFLAGS " in
13579 *" -library=stlport4 "*)
13580 solaris_use_stlport4=yes
13581 ;;
13582 esac
13583 if test "$solaris_use_stlport4" != yes; then
13584 postdeps_CXX='-library=Cstd -library=Crun'
13585 fi
13586 ;;
13587 esac
13588 ;;
13589
13590 solaris*)
13591 case $cc_basename in
13592 CC*)
13593 # The more standards-conforming stlport4 library is
13594 # incompatible with the Cstd library. Avoid specifying
13595 # it if it's in CXXFLAGS. Ignore libCrun as
13596 # -library=stlport4 depends on it.
13597 case " $CXX $CXXFLAGS " in
13598 *" -library=stlport4 "*)
13599 solaris_use_stlport4=yes
13600 ;;
13601 esac
13602
13603 # Adding this requires a known-good setup of shared libraries for
13604 # Sun compiler versions before 5.6, else PIC objects from an old
13605 # archive will be linked into the output, leading to subtle bugs.
13606 if test "$solaris_use_stlport4" != yes; then
13607 postdeps_CXX='-library=Cstd -library=Crun'
13608 fi
13609 ;;
13610 esac
13611 ;;
13612 esac
13613
13614 case " $postdeps_CXX " in
13615 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13616 esac
13617
13618 lt_prog_compiler_wl_CXX=
13619 lt_prog_compiler_pic_CXX=
13620 lt_prog_compiler_static_CXX=
13621
13622 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13623 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13624
13625 # C++ specific cases for pic, static, wl, etc.
13626 if test "$GXX" = yes; then
13627 lt_prog_compiler_wl_CXX='-Wl,'
13628 lt_prog_compiler_static_CXX='-static'
13629
13630 case $host_os in
13631 aix*)
13632 # All AIX code is PIC.
13633 if test "$host_cpu" = ia64; then
13634 # AIX 5 now supports IA64 processor
13635 lt_prog_compiler_static_CXX='-Bstatic'
13636 fi
13637 ;;
13638 amigaos*)
13639 # FIXME: we need at least 68020 code to build shared libraries, but
13640 # adding the `-m68020' flag to GCC prevents building anything better,
13641 # like `-m68040'.
13642 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13643 ;;
13644 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13645 # PIC is the default for these OSes.
13646 ;;
13647 mingw* | cygwin* | os2* | pw32*)
13648 # This hack is so that the source file can tell whether it is being
13649 # built for inclusion in a dll (and should export symbols for example).
13650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13651 # (--disable-auto-import) libraries
13652 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13653 ;;
13654 darwin* | rhapsody*)
13655 # PIC is the default on this platform
13656 # Common symbols not allowed in MH_DYLIB files
13657 lt_prog_compiler_pic_CXX='-fno-common'
13658 ;;
13659 *djgpp*)
13660 # DJGPP does not support shared libraries at all
13661 lt_prog_compiler_pic_CXX=
13662 ;;
13663 interix[3-9]*)
13664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665 # Instead, we relocate shared libraries at runtime.
13666 ;;
13667 sysv4*MP*)
13668 if test -d /usr/nec; then
13669 lt_prog_compiler_pic_CXX=-Kconform_pic
13670 fi
13671 ;;
13672 hpux*)
13673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13674 # not for PA HP-UX.
13675 case $host_cpu in
13676 hppa*64*|ia64*)
13677 ;;
13678 *)
13679 lt_prog_compiler_pic_CXX='-fPIC'
13680 ;;
13681 esac
13682 ;;
13683 *)
13684 lt_prog_compiler_pic_CXX='-fPIC'
13685 ;;
13686 esac
13687 else
13688 case $host_os in
13689 aix[4-9]*)
13690 # All AIX code is PIC.
13691 if test "$host_cpu" = ia64; then
13692 # AIX 5 now supports IA64 processor
13693 lt_prog_compiler_static_CXX='-Bstatic'
13694 else
13695 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13696 fi
13697 ;;
13698 chorus*)
13699 case $cc_basename in
13700 cxch68*)
13701 # Green Hills C++ Compiler
13702 # _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"
13703 ;;
13704 esac
13705 ;;
13706 darwin*)
13707 # PIC is the default on this platform
13708 # Common symbols not allowed in MH_DYLIB files
13709 case $cc_basename in
13710 xlc*)
13711 lt_prog_compiler_pic_CXX='-qnocommon'
13712 lt_prog_compiler_wl_CXX='-Wl,'
13713 ;;
13714 esac
13715 ;;
13716 dgux*)
13717 case $cc_basename in
13718 ec++*)
13719 lt_prog_compiler_pic_CXX='-KPIC'
13720 ;;
13721 ghcx*)
13722 # Green Hills C++ Compiler
13723 lt_prog_compiler_pic_CXX='-pic'
13724 ;;
13725 *)
13726 ;;
13727 esac
13728 ;;
13729 freebsd* | dragonfly*)
13730 # FreeBSD uses GNU C++
13731 ;;
13732 hpux9* | hpux10* | hpux11*)
13733 case $cc_basename in
13734 CC*)
13735 lt_prog_compiler_wl_CXX='-Wl,'
13736 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13737 if test "$host_cpu" != ia64; then
13738 lt_prog_compiler_pic_CXX='+Z'
13739 fi
13740 ;;
13741 aCC*)
13742 lt_prog_compiler_wl_CXX='-Wl,'
13743 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13744 case $host_cpu in
13745 hppa*64*|ia64*)
13746 # +Z the default
13747 ;;
13748 *)
13749 lt_prog_compiler_pic_CXX='+Z'
13750 ;;
13751 esac
13752 ;;
13753 *)
13754 ;;
13755 esac
13756 ;;
13757 interix*)
13758 # This is c89, which is MS Visual C++ (no shared libs)
13759 # Anyone wants to do a port?
13760 ;;
13761 irix5* | irix6* | nonstopux*)
13762 case $cc_basename in
13763 CC*)
13764 lt_prog_compiler_wl_CXX='-Wl,'
13765 lt_prog_compiler_static_CXX='-non_shared'
13766 # CC pic flag -KPIC is the default.
13767 ;;
13768 *)
13769 ;;
13770 esac
13771 ;;
13772 linux* | k*bsd*-gnu)
13773 case $cc_basename in
13774 KCC*)
13775 # KAI C++ Compiler
13776 lt_prog_compiler_wl_CXX='--backend -Wl,'
13777 lt_prog_compiler_pic_CXX='-fPIC'
13778 ;;
13779 icpc* | ecpc*)
13780 # Intel C++
13781 lt_prog_compiler_wl_CXX='-Wl,'
13782 lt_prog_compiler_pic_CXX='-KPIC'
13783 lt_prog_compiler_static_CXX='-static'
13784 ;;
13785 pgCC* | pgcpp*)
13786 # Portland Group C++ compiler.
13787 lt_prog_compiler_wl_CXX='-Wl,'
13788 lt_prog_compiler_pic_CXX='-fpic'
13789 lt_prog_compiler_static_CXX='-Bstatic'
13790 ;;
13791 cxx*)
13792 # Compaq C++
13793 # Make sure the PIC flag is empty. It appears that all Alpha
13794 # Linux and Compaq Tru64 Unix objects are PIC.
13795 lt_prog_compiler_pic_CXX=
13796 lt_prog_compiler_static_CXX='-non_shared'
13797 ;;
13798 *)
13799 case `$CC -V 2>&1 | sed 5q` in
13800 *Sun\ C*)
13801 # Sun C++ 5.9
13802 lt_prog_compiler_pic_CXX='-KPIC'
13803 lt_prog_compiler_static_CXX='-Bstatic'
13804 lt_prog_compiler_wl_CXX='-Qoption ld '
13805 ;;
13806 esac
13807 ;;
13808 esac
13809 ;;
13810 lynxos*)
13811 ;;
13812 m88k*)
13813 ;;
13814 mvs*)
13815 case $cc_basename in
13816 cxx*)
13817 lt_prog_compiler_pic_CXX='-W c,exportall'
13818 ;;
13819 *)
13820 ;;
13821 esac
13822 ;;
13823 netbsd* | netbsdelf*-gnu)
13824 ;;
13825 osf3* | osf4* | osf5*)
13826 case $cc_basename in
13827 KCC*)
13828 lt_prog_compiler_wl_CXX='--backend -Wl,'
13829 ;;
13830 RCC*)
13831 # Rational C++ 2.4.1
13832 lt_prog_compiler_pic_CXX='-pic'
13833 ;;
13834 cxx*)
13835 # Digital/Compaq C++
13836 lt_prog_compiler_wl_CXX='-Wl,'
13837 # Make sure the PIC flag is empty. It appears that all Alpha
13838 # Linux and Compaq Tru64 Unix objects are PIC.
13839 lt_prog_compiler_pic_CXX=
13840 lt_prog_compiler_static_CXX='-non_shared'
13841 ;;
13842 *)
13843 ;;
13844 esac
13845 ;;
13846 psos*)
13847 ;;
13848 solaris*)
13849 case $cc_basename in
13850 CC*)
13851 # Sun C++ 4.2, 5.x and Centerline C++
13852 lt_prog_compiler_pic_CXX='-KPIC'
13853 lt_prog_compiler_static_CXX='-Bstatic'
13854 lt_prog_compiler_wl_CXX='-Qoption ld '
13855 ;;
13856 gcx*)
13857 # Green Hills C++ Compiler
13858 lt_prog_compiler_pic_CXX='-PIC'
13859 ;;
13860 *)
13861 ;;
13862 esac
13863 ;;
13864 sunos4*)
13865 case $cc_basename in
13866 CC*)
13867 # Sun C++ 4.x
13868 lt_prog_compiler_pic_CXX='-pic'
13869 lt_prog_compiler_static_CXX='-Bstatic'
13870 ;;
13871 lcc*)
13872 # Lucid
13873 lt_prog_compiler_pic_CXX='-pic'
13874 ;;
13875 *)
13876 ;;
13877 esac
13878 ;;
13879 tandem*)
13880 case $cc_basename in
13881 NCC*)
13882 # NonStop-UX NCC 3.20
13883 lt_prog_compiler_pic_CXX='-KPIC'
13884 ;;
13885 *)
13886 ;;
13887 esac
13888 ;;
13889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13890 case $cc_basename in
13891 CC*)
13892 lt_prog_compiler_wl_CXX='-Wl,'
13893 lt_prog_compiler_pic_CXX='-KPIC'
13894 lt_prog_compiler_static_CXX='-Bstatic'
13895 ;;
13896 esac
13897 ;;
13898 vxworks*)
13899 ;;
13900 *)
13901 lt_prog_compiler_can_build_shared_CXX=no
13902 ;;
13903 esac
13904 fi
13905
13906 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13907 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13908
13909 #
13910 # Check to make sure the PIC flag actually works.
13911 #
13912 if test -n "$lt_prog_compiler_pic_CXX"; then
13913
13914 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13915 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13916 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919 lt_cv_prog_compiler_pic_works_CXX=no
13920 ac_outfile=conftest.$ac_objext
13921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13922 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13923 # Insert the option either (1) after the last *FLAGS variable, or
13924 # (2) before a word containing "conftest.", or (3) at the end.
13925 # Note that $ac_compile itself does not contain backslashes and begins
13926 # with a dollar sign (not a hyphen), so the echo should work correctly.
13927 # The option is referenced via a variable to avoid confusing sed.
13928 lt_compile=`echo "$ac_compile" | $SED \
13929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13931 -e 's:$: $lt_compiler_flag:'`
13932 (eval echo "\"\$as_me:13932: $lt_compile\"" >&5)
13933 (eval "$lt_compile" 2>conftest.err)
13934 ac_status=$?
13935 cat conftest.err >&5
13936 echo "$as_me:13936: \$? = $ac_status" >&5
13937 if (exit $ac_status) && test -s "$ac_outfile"; then
13938 # The compiler can only warn and ignore the option if not recognized
13939 # So say no if there are warnings other than the usual output.
13940 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13943 lt_cv_prog_compiler_pic_works_CXX=yes
13944 fi
13945 fi
13946 $rm conftest*
13947
13948 fi
13949 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13950 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13951
13952 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13953 case $lt_prog_compiler_pic_CXX in
13954 "" | " "*) ;;
13955 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13956 esac
13957 else
13958 lt_prog_compiler_pic_CXX=
13959 lt_prog_compiler_can_build_shared_CXX=no
13960 fi
13961
13962 fi
13963 case $host_os in
13964 # For platforms which do not support PIC, -DPIC is meaningless:
13965 *djgpp*)
13966 lt_prog_compiler_pic_CXX=
13967 ;;
13968 *)
13969 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13970 ;;
13971 esac
13972
13973 #
13974 # Check to make sure the static flag actually works.
13975 #
13976 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13977 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13978 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13979 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982 lt_cv_prog_compiler_static_works_CXX=no
13983 save_LDFLAGS="$LDFLAGS"
13984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13987 # The linker can only warn and ignore the option if not recognized
13988 # So say no if there are warnings
13989 if test -s conftest.err; then
13990 # Append any errors to the config.log.
13991 cat conftest.err 1>&5
13992 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13994 if diff conftest.exp conftest.er2 >/dev/null; then
13995 lt_cv_prog_compiler_static_works_CXX=yes
13996 fi
13997 else
13998 lt_cv_prog_compiler_static_works_CXX=yes
13999 fi
14000 fi
14001 $rm -r conftest*
14002 LDFLAGS="$save_LDFLAGS"
14003
14004 fi
14005 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14006 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14007
14008 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14009 :
14010 else
14011 lt_prog_compiler_static_CXX=
14012 fi
14013
14014
14015 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14016 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14017 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020 lt_cv_prog_compiler_c_o_CXX=no
14021 $rm -r conftest 2>/dev/null
14022 mkdir conftest
14023 cd conftest
14024 mkdir out
14025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14026
14027 lt_compiler_flag="-o out/conftest2.$ac_objext"
14028 # Insert the option either (1) after the last *FLAGS variable, or
14029 # (2) before a word containing "conftest.", or (3) at the end.
14030 # Note that $ac_compile itself does not contain backslashes and begins
14031 # with a dollar sign (not a hyphen), so the echo should work correctly.
14032 lt_compile=`echo "$ac_compile" | $SED \
14033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14035 -e 's:$: $lt_compiler_flag:'`
14036 (eval echo "\"\$as_me:14036: $lt_compile\"" >&5)
14037 (eval "$lt_compile" 2>out/conftest.err)
14038 ac_status=$?
14039 cat out/conftest.err >&5
14040 echo "$as_me:14040: \$? = $ac_status" >&5
14041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14042 then
14043 # The compiler can only warn and ignore the option if not recognized
14044 # So say no if there are warnings
14045 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14048 lt_cv_prog_compiler_c_o_CXX=yes
14049 fi
14050 fi
14051 chmod u+w . 2>&5
14052 $rm conftest*
14053 # SGI C++ compiler will create directory out/ii_files/ for
14054 # template instantiation
14055 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14056 $rm out/* && rmdir out
14057 cd ..
14058 rmdir conftest
14059 $rm conftest*
14060
14061 fi
14062 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14063 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14064
14065
14066 hard_links="nottested"
14067 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14068 # do not overwrite the value of need_locks provided by the user
14069 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14070 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14071 hard_links=yes
14072 $rm conftest*
14073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14074 touch conftest.a
14075 ln conftest.a conftest.b 2>&5 || hard_links=no
14076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14077 { echo "$as_me:$LINENO: result: $hard_links" >&5
14078 echo "${ECHO_T}$hard_links" >&6; }
14079 if test "$hard_links" = no; then
14080 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14081 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14082 need_locks=warn
14083 fi
14084 else
14085 need_locks=no
14086 fi
14087
14088 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14090
14091 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14092 case $host_os in
14093 aix[4-9]*)
14094 # If we're using GNU nm, then we don't want the "-C" option.
14095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14096 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14097 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'
14098 else
14099 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'
14100 fi
14101 ;;
14102 pw32*)
14103 export_symbols_cmds_CXX="$ltdll_cmds"
14104 ;;
14105 cygwin* | mingw*)
14106 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'
14107 ;;
14108 linux* | k*bsd*-gnu)
14109 link_all_deplibs_CXX=no
14110 ;;
14111 *)
14112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14113 ;;
14114 esac
14115 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14116
14117 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14118 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14119 test "$ld_shlibs_CXX" = no && can_build_shared=no
14120
14121 #
14122 # Do we need to explicitly link libc?
14123 #
14124 case "x$archive_cmds_need_lc_CXX" in
14125 x|xyes)
14126 # Assume -lc should be added
14127 archive_cmds_need_lc_CXX=yes
14128
14129 if test "$enable_shared" = yes && test "$GCC" = yes; then
14130 case $archive_cmds_CXX in
14131 *'~'*)
14132 # FIXME: we may have to deal with multi-command sequences.
14133 ;;
14134 '$CC '*)
14135 # Test whether the compiler implicitly links with -lc since on some
14136 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14137 # to ld, don't add -lc before -lgcc.
14138 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14139 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14140 $rm conftest*
14141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14142
14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14144 (eval $ac_compile) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } 2>conftest.err; then
14148 soname=conftest
14149 lib=conftest
14150 libobjs=conftest.$ac_objext
14151 deplibs=
14152 wl=$lt_prog_compiler_wl_CXX
14153 pic_flag=$lt_prog_compiler_pic_CXX
14154 compiler_flags=-v
14155 linker_flags=-v
14156 verstring=
14157 output_objdir=.
14158 libname=conftest
14159 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14160 allow_undefined_flag_CXX=
14161 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14162 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }
14166 then
14167 archive_cmds_need_lc_CXX=no
14168 else
14169 archive_cmds_need_lc_CXX=yes
14170 fi
14171 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14172 else
14173 cat conftest.err 1>&5
14174 fi
14175 $rm conftest*
14176 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14177 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14178 ;;
14179 esac
14180 fi
14181 ;;
14182 esac
14183
14184 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14185 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14186 library_names_spec=
14187 libname_spec='lib$name'
14188 soname_spec=
14189 shrext_cmds=".so"
14190 postinstall_cmds=
14191 postuninstall_cmds=
14192 finish_cmds=
14193 finish_eval=
14194 shlibpath_var=
14195 shlibpath_overrides_runpath=unknown
14196 version_type=none
14197 dynamic_linker="$host_os ld.so"
14198 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14199
14200 need_lib_prefix=unknown
14201 hardcode_into_libs=no
14202
14203 # when you set need_version to no, make sure it does not cause -set_version
14204 # flags to be left without arguments
14205 need_version=unknown
14206
14207 case $host_os in
14208 aix3*)
14209 version_type=linux
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14211 shlibpath_var=LIBPATH
14212
14213 # AIX 3 has no versioning support, so we append a major version to the name.
14214 soname_spec='${libname}${release}${shared_ext}$major'
14215 ;;
14216
14217 aix[4-9]*)
14218 version_type=linux
14219 need_lib_prefix=no
14220 need_version=no
14221 hardcode_into_libs=yes
14222 if test "$host_cpu" = ia64; then
14223 # AIX 5 supports IA64
14224 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14225 shlibpath_var=LD_LIBRARY_PATH
14226 else
14227 # With GCC up to 2.95.x, collect2 would create an import file
14228 # for dependence libraries. The import file would start with
14229 # the line `#! .'. This would cause the generated library to
14230 # depend on `.', always an invalid library. This was fixed in
14231 # development snapshots of GCC prior to 3.0.
14232 case $host_os in
14233 aix4 | aix4.[01] | aix4.[01].*)
14234 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14235 echo ' yes '
14236 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14237 :
14238 else
14239 can_build_shared=no
14240 fi
14241 ;;
14242 esac
14243 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14244 # soname into executable. Probably we can add versioning support to
14245 # collect2, so additional links can be useful in future.
14246 if test "$aix_use_runtimelinking" = yes; then
14247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14248 # instead of lib<name>.a to let people know that these are not
14249 # typical AIX shared libraries.
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14251 else
14252 # We preserve .a as extension for shared libraries through AIX4.2
14253 # and later when we are not doing run time linking.
14254 library_names_spec='${libname}${release}.a $libname.a'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 fi
14257 shlibpath_var=LIBPATH
14258 fi
14259 ;;
14260
14261 amigaos*)
14262 library_names_spec='$libname.ixlibrary $libname.a'
14263 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14264 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'
14265 ;;
14266
14267 beos*)
14268 library_names_spec='${libname}${shared_ext}'
14269 dynamic_linker="$host_os ld.so"
14270 shlibpath_var=LIBRARY_PATH
14271 ;;
14272
14273 bsdi[45]*)
14274 version_type=linux
14275 need_version=no
14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14277 soname_spec='${libname}${release}${shared_ext}$major'
14278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14279 shlibpath_var=LD_LIBRARY_PATH
14280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14282 # the default ld.so.conf also contains /usr/contrib/lib and
14283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14284 # libtool to hard-code these into programs
14285 ;;
14286
14287 cygwin* | mingw* | pw32*)
14288 version_type=windows
14289 shrext_cmds=".dll"
14290 need_version=no
14291 need_lib_prefix=no
14292
14293 case $GCC,$host_os in
14294 yes,cygwin* | yes,mingw* | yes,pw32*)
14295 library_names_spec='$libname.dll.a'
14296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14297 postinstall_cmds='base_file=`basename \${file}`~
14298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14299 dldir=$destdir/`dirname \$dlpath`~
14300 test -d \$dldir || mkdir -p \$dldir~
14301 $install_prog $dir/$dlname \$dldir/$dlname~
14302 chmod a+x \$dldir/$dlname'
14303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14304 dlpath=$dir/\$dldll~
14305 $rm \$dlpath'
14306 shlibpath_overrides_runpath=yes
14307
14308 case $host_os in
14309 cygwin*)
14310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14312 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14313 ;;
14314 mingw*)
14315 # MinGW DLLs use traditional 'lib' prefix
14316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14318 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14319 # It is most probably a Windows format PATH printed by
14320 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14321 # path with ; separators, and with drive letters. We can handle the
14322 # drive letters (cygwin fileutils understands them), so leave them,
14323 # especially as we might pass files found there to a mingw objdump,
14324 # which wouldn't understand a cygwinified path. Ahh.
14325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14326 else
14327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14328 fi
14329 ;;
14330 pw32*)
14331 # pw32 DLLs use 'pw' prefix rather than 'lib'
14332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14333 ;;
14334 esac
14335 ;;
14336
14337 *)
14338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14339 ;;
14340 esac
14341 dynamic_linker='Win32 ld.exe'
14342 # FIXME: first we should search . and the directory the executable is in
14343 shlibpath_var=PATH
14344 ;;
14345
14346 darwin* | rhapsody*)
14347 dynamic_linker="$host_os dyld"
14348 version_type=darwin
14349 need_lib_prefix=no
14350 need_version=no
14351 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14352 soname_spec='${libname}${release}${major}$shared_ext'
14353 shlibpath_overrides_runpath=yes
14354 shlibpath_var=DYLD_LIBRARY_PATH
14355 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14356
14357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14358 ;;
14359
14360 dgux*)
14361 version_type=linux
14362 need_lib_prefix=no
14363 need_version=no
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 shlibpath_var=LD_LIBRARY_PATH
14367 ;;
14368
14369 freebsd1*)
14370 dynamic_linker=no
14371 ;;
14372
14373 freebsd* | dragonfly*)
14374 # DragonFly does not have aout. When/if they implement a new
14375 # versioning mechanism, adjust this.
14376 if test -x /usr/bin/objformat; then
14377 objformat=`/usr/bin/objformat`
14378 else
14379 case $host_os in
14380 freebsd[123]*) objformat=aout ;;
14381 *) objformat=elf ;;
14382 esac
14383 fi
14384 version_type=freebsd-$objformat
14385 case $version_type in
14386 freebsd-elf*)
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14388 need_version=no
14389 need_lib_prefix=no
14390 ;;
14391 freebsd-*)
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14393 need_version=yes
14394 ;;
14395 esac
14396 shlibpath_var=LD_LIBRARY_PATH
14397 case $host_os in
14398 freebsd2*)
14399 shlibpath_overrides_runpath=yes
14400 ;;
14401 freebsd3.[01]* | freebsdelf3.[01]*)
14402 shlibpath_overrides_runpath=yes
14403 hardcode_into_libs=yes
14404 ;;
14405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14407 shlibpath_overrides_runpath=no
14408 hardcode_into_libs=yes
14409 ;;
14410 *) # from 4.6 on, and DragonFly
14411 shlibpath_overrides_runpath=yes
14412 hardcode_into_libs=yes
14413 ;;
14414 esac
14415 ;;
14416
14417 gnu*)
14418 version_type=linux
14419 need_lib_prefix=no
14420 need_version=no
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14422 soname_spec='${libname}${release}${shared_ext}$major'
14423 shlibpath_var=LD_LIBRARY_PATH
14424 hardcode_into_libs=yes
14425 ;;
14426
14427 hpux9* | hpux10* | hpux11*)
14428 # Give a soname corresponding to the major version so that dld.sl refuses to
14429 # link against other versions.
14430 version_type=sunos
14431 need_lib_prefix=no
14432 need_version=no
14433 case $host_cpu in
14434 ia64*)
14435 shrext_cmds='.so'
14436 hardcode_into_libs=yes
14437 dynamic_linker="$host_os dld.so"
14438 shlibpath_var=LD_LIBRARY_PATH
14439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 if test "X$HPUX_IA64_MODE" = X32; then
14443 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14444 else
14445 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14446 fi
14447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14448 ;;
14449 hppa*64*)
14450 shrext_cmds='.sl'
14451 hardcode_into_libs=yes
14452 dynamic_linker="$host_os dld.sl"
14453 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14459 ;;
14460 *)
14461 shrext_cmds='.sl'
14462 dynamic_linker="$host_os dld.sl"
14463 shlibpath_var=SHLIB_PATH
14464 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 ;;
14468 esac
14469 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14470 postinstall_cmds='chmod 555 $lib'
14471 ;;
14472
14473 interix[3-9]*)
14474 version_type=linux
14475 need_lib_prefix=no
14476 need_version=no
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 shlibpath_overrides_runpath=no
14482 hardcode_into_libs=yes
14483 ;;
14484
14485 irix5* | irix6* | nonstopux*)
14486 case $host_os in
14487 nonstopux*) version_type=nonstopux ;;
14488 *)
14489 if test "$lt_cv_prog_gnu_ld" = yes; then
14490 version_type=linux
14491 else
14492 version_type=irix
14493 fi ;;
14494 esac
14495 need_lib_prefix=no
14496 need_version=no
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14499 case $host_os in
14500 irix5* | nonstopux*)
14501 libsuff= shlibsuff=
14502 ;;
14503 *)
14504 case $LD in # libtool.m4 will add one of these switches to LD
14505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14506 libsuff= shlibsuff= libmagic=32-bit;;
14507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14508 libsuff=32 shlibsuff=N32 libmagic=N32;;
14509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14511 *) libsuff= shlibsuff= libmagic=never-match;;
14512 esac
14513 ;;
14514 esac
14515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14516 shlibpath_overrides_runpath=no
14517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14519 hardcode_into_libs=yes
14520 ;;
14521
14522 # No shared lib support for Linux oldld, aout, or coff.
14523 linux*oldld* | linux*aout* | linux*coff*)
14524 dynamic_linker=no
14525 ;;
14526
14527 # This must be Linux ELF.
14528 linux* | k*bsd*-gnu)
14529 version_type=linux
14530 need_lib_prefix=no
14531 need_version=no
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=no
14537 # This implies no fast_install, which is unacceptable.
14538 # Some rework will be needed to allow for fast_install
14539 # before this can be enabled.
14540 hardcode_into_libs=yes
14541
14542 # Append ld.so.conf contents to the search path
14543 if test -f /etc/ld.so.conf; then
14544 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' ' '`
14545 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14546 fi
14547
14548 # We used to test for /lib/ld.so.1 and disable shared libraries on
14549 # powerpc, because MkLinux only supported shared libraries with the
14550 # GNU dynamic linker. Since this was broken with cross compilers,
14551 # most powerpc-linux boxes support dynamic linking these days and
14552 # people can always --disable-shared, the test was removed, and we
14553 # assume the GNU/Linux dynamic linker is in use.
14554 dynamic_linker='GNU/Linux ld.so'
14555 ;;
14556
14557 netbsdelf*-gnu)
14558 version_type=linux
14559 need_lib_prefix=no
14560 need_version=no
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 shlibpath_overrides_runpath=no
14565 hardcode_into_libs=yes
14566 dynamic_linker='NetBSD ld.elf_so'
14567 ;;
14568
14569 netbsd*)
14570 version_type=sunos
14571 need_lib_prefix=no
14572 need_version=no
14573 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14576 dynamic_linker='NetBSD (a.out) ld.so'
14577 else
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 dynamic_linker='NetBSD ld.elf_so'
14581 fi
14582 shlibpath_var=LD_LIBRARY_PATH
14583 shlibpath_overrides_runpath=yes
14584 hardcode_into_libs=yes
14585 ;;
14586
14587 newsos6)
14588 version_type=linux
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 shlibpath_overrides_runpath=yes
14592 ;;
14593
14594 nto-qnx*)
14595 version_type=linux
14596 need_lib_prefix=no
14597 need_version=no
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=yes
14602 ;;
14603
14604 openbsd*)
14605 version_type=sunos
14606 sys_lib_dlsearch_path_spec="/usr/lib"
14607 need_lib_prefix=no
14608 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14609 case $host_os in
14610 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14611 *) need_version=no ;;
14612 esac
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14617 case $host_os in
14618 openbsd2.[89] | openbsd2.[89].*)
14619 shlibpath_overrides_runpath=no
14620 ;;
14621 *)
14622 shlibpath_overrides_runpath=yes
14623 ;;
14624 esac
14625 else
14626 shlibpath_overrides_runpath=yes
14627 fi
14628 ;;
14629
14630 os2*)
14631 libname_spec='$name'
14632 shrext_cmds=".dll"
14633 need_lib_prefix=no
14634 library_names_spec='$libname${shared_ext} $libname.a'
14635 dynamic_linker='OS/2 ld.exe'
14636 shlibpath_var=LIBPATH
14637 ;;
14638
14639 osf3* | osf4* | osf5*)
14640 version_type=osf
14641 need_lib_prefix=no
14642 need_version=no
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14648 ;;
14649
14650 rdos*)
14651 dynamic_linker=no
14652 ;;
14653
14654 solaris*)
14655 version_type=linux
14656 need_lib_prefix=no
14657 need_version=no
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14662 hardcode_into_libs=yes
14663 # ldd complains unless libraries are executable
14664 postinstall_cmds='chmod +x $lib'
14665 ;;
14666
14667 sunos4*)
14668 version_type=sunos
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14673 if test "$with_gnu_ld" = yes; then
14674 need_lib_prefix=no
14675 fi
14676 need_version=yes
14677 ;;
14678
14679 sysv4 | sysv4.3*)
14680 version_type=linux
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 case $host_vendor in
14685 sni)
14686 shlibpath_overrides_runpath=no
14687 need_lib_prefix=no
14688 export_dynamic_flag_spec='${wl}-Blargedynsym'
14689 runpath_var=LD_RUN_PATH
14690 ;;
14691 siemens)
14692 need_lib_prefix=no
14693 ;;
14694 motorola)
14695 need_lib_prefix=no
14696 need_version=no
14697 shlibpath_overrides_runpath=no
14698 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14699 ;;
14700 esac
14701 ;;
14702
14703 sysv4*MP*)
14704 if test -d /usr/nec ;then
14705 version_type=linux
14706 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14707 soname_spec='$libname${shared_ext}.$major'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 fi
14710 ;;
14711
14712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14713 version_type=freebsd-elf
14714 need_lib_prefix=no
14715 need_version=no
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 hardcode_into_libs=yes
14720 if test "$with_gnu_ld" = yes; then
14721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14722 shlibpath_overrides_runpath=no
14723 else
14724 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14725 shlibpath_overrides_runpath=yes
14726 case $host_os in
14727 sco3.2v5*)
14728 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14729 ;;
14730 esac
14731 fi
14732 sys_lib_dlsearch_path_spec='/usr/lib'
14733 ;;
14734
14735 uts4*)
14736 version_type=linux
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 ;;
14741
14742 *)
14743 dynamic_linker=no
14744 ;;
14745 esac
14746 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14747 echo "${ECHO_T}$dynamic_linker" >&6; }
14748 test "$dynamic_linker" = no && can_build_shared=no
14749
14750 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14754 fi
14755
14756 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14757 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14761 fi
14762
14763 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14764
14765 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14766 if test "$GCC" = yes; then
14767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14768 fi
14769
14770 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14771 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14772 hardcode_action_CXX=
14773 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14774 test -n "$runpath_var_CXX" || \
14775 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14776
14777 # We can hardcode non-existant directories.
14778 if test "$hardcode_direct_CXX" != no &&
14779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14780 # have to relink, otherwise we might link with an installed library
14781 # when we should be linking with a yet-to-be-installed one
14782 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14783 test "$hardcode_minus_L_CXX" != no; then
14784 # Linking always hardcodes the temporary library directory.
14785 hardcode_action_CXX=relink
14786 else
14787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14788 hardcode_action_CXX=immediate
14789 fi
14790 else
14791 # We cannot hardcode anything, or else we can only hardcode existing
14792 # directories.
14793 hardcode_action_CXX=unsupported
14794 fi
14795 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14796 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14797
14798 if test "$hardcode_action_CXX" = relink; then
14799 # Fast installation is not supported
14800 enable_fast_install=no
14801 elif test "$shlibpath_overrides_runpath" = yes ||
14802 test "$enable_shared" = no; then
14803 # Fast installation is not necessary
14804 enable_fast_install=needless
14805 fi
14806
14807
14808 # The else clause should only fire when bootstrapping the
14809 # libtool distribution, otherwise you forgot to ship ltmain.sh
14810 # with your package, and you will get complaints that there are
14811 # no rules to generate ltmain.sh.
14812 if test -f "$ltmain"; then
14813 # See if we are running on zsh, and set the options which allow our commands through
14814 # without removal of \ escapes.
14815 if test -n "${ZSH_VERSION+set}" ; then
14816 setopt NO_GLOB_SUBST
14817 fi
14818 # Now quote all the things that may contain metacharacters while being
14819 # careful not to overquote the AC_SUBSTed values. We take copies of the
14820 # variables and quote the copies for generation of the libtool script.
14821 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14822 SED SHELL STRIP \
14823 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14824 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14825 deplibs_check_method reload_flag reload_cmds need_locks \
14826 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14827 lt_cv_sys_global_symbol_to_c_name_address \
14828 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14829 old_postinstall_cmds old_postuninstall_cmds \
14830 compiler_CXX \
14831 CC_CXX \
14832 LD_CXX \
14833 lt_prog_compiler_wl_CXX \
14834 lt_prog_compiler_pic_CXX \
14835 lt_prog_compiler_static_CXX \
14836 lt_prog_compiler_no_builtin_flag_CXX \
14837 export_dynamic_flag_spec_CXX \
14838 thread_safe_flag_spec_CXX \
14839 whole_archive_flag_spec_CXX \
14840 enable_shared_with_static_runtimes_CXX \
14841 old_archive_cmds_CXX \
14842 old_archive_from_new_cmds_CXX \
14843 predep_objects_CXX \
14844 postdep_objects_CXX \
14845 predeps_CXX \
14846 postdeps_CXX \
14847 compiler_lib_search_path_CXX \
14848 compiler_lib_search_dirs_CXX \
14849 archive_cmds_CXX \
14850 archive_expsym_cmds_CXX \
14851 postinstall_cmds_CXX \
14852 postuninstall_cmds_CXX \
14853 old_archive_from_expsyms_cmds_CXX \
14854 allow_undefined_flag_CXX \
14855 no_undefined_flag_CXX \
14856 export_symbols_cmds_CXX \
14857 hardcode_libdir_flag_spec_CXX \
14858 hardcode_libdir_flag_spec_ld_CXX \
14859 hardcode_libdir_separator_CXX \
14860 hardcode_automatic_CXX \
14861 module_cmds_CXX \
14862 module_expsym_cmds_CXX \
14863 lt_cv_prog_compiler_c_o_CXX \
14864 fix_srcfile_path_CXX \
14865 exclude_expsyms_CXX \
14866 include_expsyms_CXX; do
14867
14868 case $var in
14869 old_archive_cmds_CXX | \
14870 old_archive_from_new_cmds_CXX | \
14871 archive_cmds_CXX | \
14872 archive_expsym_cmds_CXX | \
14873 module_cmds_CXX | \
14874 module_expsym_cmds_CXX | \
14875 old_archive_from_expsyms_cmds_CXX | \
14876 export_symbols_cmds_CXX | \
14877 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14878 postinstall_cmds | postuninstall_cmds | \
14879 old_postinstall_cmds | old_postuninstall_cmds | \
14880 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14881 # Double-quote double-evaled strings.
14882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14883 ;;
14884 *)
14885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14886 ;;
14887 esac
14888 done
14889
14890 case $lt_echo in
14891 *'\$0 --fallback-echo"')
14892 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14893 ;;
14894 esac
14895
14896 cfgfile="$ofile"
14897
14898 cat <<__EOF__ >> "$cfgfile"
14899 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14900
14901 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14902
14903 # Shell to use when invoking shell scripts.
14904 SHELL=$lt_SHELL
14905
14906 # Whether or not to build shared libraries.
14907 build_libtool_libs=$enable_shared
14908
14909 # Whether or not to build static libraries.
14910 build_old_libs=$enable_static
14911
14912 # Whether or not to add -lc for building shared libraries.
14913 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14914
14915 # Whether or not to disallow shared libs when runtime libs are static
14916 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14917
14918 # Whether or not to optimize for fast installation.
14919 fast_install=$enable_fast_install
14920
14921 # The host system.
14922 host_alias=$host_alias
14923 host=$host
14924 host_os=$host_os
14925
14926 # The build system.
14927 build_alias=$build_alias
14928 build=$build
14929 build_os=$build_os
14930
14931 # An echo program that does not interpret backslashes.
14932 echo=$lt_echo
14933
14934 # The archiver.
14935 AR=$lt_AR
14936 AR_FLAGS=$lt_AR_FLAGS
14937
14938 # A C compiler.
14939 LTCC=$lt_LTCC
14940
14941 # LTCC compiler flags.
14942 LTCFLAGS=$lt_LTCFLAGS
14943
14944 # A language-specific compiler.
14945 CC=$lt_compiler_CXX
14946
14947 # Is the compiler the GNU C compiler?
14948 with_gcc=$GCC_CXX
14949
14950 # An ERE matcher.
14951 EGREP=$lt_EGREP
14952
14953 # The linker used to build libraries.
14954 LD=$lt_LD_CXX
14955
14956 # Whether we need hard or soft links.
14957 LN_S=$lt_LN_S
14958
14959 # A BSD-compatible nm program.
14960 NM=$lt_NM
14961
14962 # A symbol stripping program
14963 STRIP=$lt_STRIP
14964
14965 # Used to examine libraries when file_magic_cmd begins "file"
14966 MAGIC_CMD=$MAGIC_CMD
14967
14968 # Used on cygwin: DLL creation program.
14969 DLLTOOL="$DLLTOOL"
14970
14971 # Used on cygwin: object dumper.
14972 OBJDUMP="$OBJDUMP"
14973
14974 # Used on cygwin: assembler.
14975 AS="$AS"
14976
14977 # The name of the directory that contains temporary libtool files.
14978 objdir=$objdir
14979
14980 # How to create reloadable object files.
14981 reload_flag=$lt_reload_flag
14982 reload_cmds=$lt_reload_cmds
14983
14984 # How to pass a linker flag through the compiler.
14985 wl=$lt_lt_prog_compiler_wl_CXX
14986
14987 # Object file suffix (normally "o").
14988 objext="$ac_objext"
14989
14990 # Old archive suffix (normally "a").
14991 libext="$libext"
14992
14993 # Shared library suffix (normally ".so").
14994 shrext_cmds='$shrext_cmds'
14995
14996 # Executable file suffix (normally "").
14997 exeext="$exeext"
14998
14999 # Additional compiler flags for building library objects.
15000 pic_flag=$lt_lt_prog_compiler_pic_CXX
15001 pic_mode=$pic_mode
15002
15003 # What is the maximum length of a command?
15004 max_cmd_len=$lt_cv_sys_max_cmd_len
15005
15006 # Does compiler simultaneously support -c and -o options?
15007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15008
15009 # Must we lock files when doing compilation?
15010 need_locks=$lt_need_locks
15011
15012 # Do we need the lib prefix for modules?
15013 need_lib_prefix=$need_lib_prefix
15014
15015 # Do we need a version for libraries?
15016 need_version=$need_version
15017
15018 # Whether dlopen is supported.
15019 dlopen_support=$enable_dlopen
15020
15021 # Whether dlopen of programs is supported.
15022 dlopen_self=$enable_dlopen_self
15023
15024 # Whether dlopen of statically linked programs is supported.
15025 dlopen_self_static=$enable_dlopen_self_static
15026
15027 # Compiler flag to prevent dynamic linking.
15028 link_static_flag=$lt_lt_prog_compiler_static_CXX
15029
15030 # Compiler flag to turn off builtin functions.
15031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15032
15033 # Compiler flag to allow reflexive dlopens.
15034 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15035
15036 # Compiler flag to generate shared objects directly from archives.
15037 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15038
15039 # Compiler flag to generate thread-safe objects.
15040 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15041
15042 # Library versioning type.
15043 version_type=$version_type
15044
15045 # Format of library name prefix.
15046 libname_spec=$lt_libname_spec
15047
15048 # List of archive names. First name is the real one, the rest are links.
15049 # The last name is the one that the linker finds with -lNAME.
15050 library_names_spec=$lt_library_names_spec
15051
15052 # The coded name of the library, if different from the real name.
15053 soname_spec=$lt_soname_spec
15054
15055 # Commands used to build and install an old-style archive.
15056 RANLIB=$lt_RANLIB
15057 old_archive_cmds=$lt_old_archive_cmds_CXX
15058 old_postinstall_cmds=$lt_old_postinstall_cmds
15059 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15060
15061 # Create an old-style archive from a shared archive.
15062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15063
15064 # Create a temporary old-style archive to link instead of a shared archive.
15065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15066
15067 # Commands used to build and install a shared archive.
15068 archive_cmds=$lt_archive_cmds_CXX
15069 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15070 postinstall_cmds=$lt_postinstall_cmds
15071 postuninstall_cmds=$lt_postuninstall_cmds
15072
15073 # Commands used to build a loadable module (assumed same as above if empty)
15074 module_cmds=$lt_module_cmds_CXX
15075 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15076
15077 # Commands to strip libraries.
15078 old_striplib=$lt_old_striplib
15079 striplib=$lt_striplib
15080
15081 # Dependencies to place before the objects being linked to create a
15082 # shared library.
15083 predep_objects=$lt_predep_objects_CXX
15084
15085 # Dependencies to place after the objects being linked to create a
15086 # shared library.
15087 postdep_objects=$lt_postdep_objects_CXX
15088
15089 # Dependencies to place before the objects being linked to create a
15090 # shared library.
15091 predeps=$lt_predeps_CXX
15092
15093 # Dependencies to place after the objects being linked to create a
15094 # shared library.
15095 postdeps=$lt_postdeps_CXX
15096
15097 # The directories searched by this compiler when creating a shared
15098 # library
15099 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15100
15101 # The library search path used internally by the compiler when linking
15102 # a shared library.
15103 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15104
15105 # Method to check whether dependent libraries are shared objects.
15106 deplibs_check_method=$lt_deplibs_check_method
15107
15108 # Command to use when deplibs_check_method == file_magic.
15109 file_magic_cmd=$lt_file_magic_cmd
15110
15111 # Flag that allows shared libraries with undefined symbols to be built.
15112 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15113
15114 # Flag that forces no undefined symbols.
15115 no_undefined_flag=$lt_no_undefined_flag_CXX
15116
15117 # Commands used to finish a libtool library installation in a directory.
15118 finish_cmds=$lt_finish_cmds
15119
15120 # Same as above, but a single script fragment to be evaled but not shown.
15121 finish_eval=$lt_finish_eval
15122
15123 # Take the output of nm and produce a listing of raw symbols and C names.
15124 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15125
15126 # Transform the output of nm in a proper C declaration
15127 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15128
15129 # Transform the output of nm in a C name address pair
15130 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15131
15132 # This is the shared library runtime path variable.
15133 runpath_var=$runpath_var
15134
15135 # This is the shared library path variable.
15136 shlibpath_var=$shlibpath_var
15137
15138 # Is shlibpath searched before the hard-coded library search path?
15139 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15140
15141 # How to hardcode a shared library path into an executable.
15142 hardcode_action=$hardcode_action_CXX
15143
15144 # Whether we should hardcode library paths into libraries.
15145 hardcode_into_libs=$hardcode_into_libs
15146
15147 # Flag to hardcode \$libdir into a binary during linking.
15148 # This must work even if \$libdir does not exist.
15149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15150
15151 # If ld is used when linking, flag to hardcode \$libdir into
15152 # a binary during linking. This must work even if \$libdir does
15153 # not exist.
15154 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15155
15156 # Whether we need a single -rpath flag with a separated argument.
15157 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15158
15159 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15160 # resulting binary.
15161 hardcode_direct=$hardcode_direct_CXX
15162
15163 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15164 # resulting binary.
15165 hardcode_minus_L=$hardcode_minus_L_CXX
15166
15167 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15168 # the resulting binary.
15169 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15170
15171 # Set to yes if building a shared library automatically hardcodes DIR into the library
15172 # and all subsequent libraries and executables linked against it.
15173 hardcode_automatic=$hardcode_automatic_CXX
15174
15175 # Variables whose values should be saved in libtool wrapper scripts and
15176 # restored at relink time.
15177 variables_saved_for_relink="$variables_saved_for_relink"
15178
15179 # Whether libtool must link a program against all its dependency libraries.
15180 link_all_deplibs=$link_all_deplibs_CXX
15181
15182 # Compile-time system search path for libraries
15183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15184
15185 # Run-time system search path for libraries
15186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15187
15188 # Fix the shell variable \$srcfile for the compiler.
15189 fix_srcfile_path=$lt_fix_srcfile_path
15190
15191 # Set to yes if exported symbols are required.
15192 always_export_symbols=$always_export_symbols_CXX
15193
15194 # The commands to list exported symbols.
15195 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15196
15197 # The commands to extract the exported symbol list from a shared archive.
15198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15199
15200 # Symbols that should not be listed in the preloaded symbols.
15201 exclude_expsyms=$lt_exclude_expsyms_CXX
15202
15203 # Symbols that must always be exported.
15204 include_expsyms=$lt_include_expsyms_CXX
15205
15206 # ### END LIBTOOL TAG CONFIG: $tagname
15207
15208 __EOF__
15209
15210
15211 else
15212 # If there is no Makefile yet, we rely on a make rule to execute
15213 # `config.status --recheck' to rerun these tests and create the
15214 # libtool script then.
15215 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15216 if test -f "$ltmain_in"; then
15217 test -f Makefile && make "$ltmain"
15218 fi
15219 fi
15220
15221
15222 ac_ext=c
15223 ac_cpp='$CPP $CPPFLAGS'
15224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15227
15228 CC=$lt_save_CC
15229 LDCXX=$LD
15230 LD=$lt_save_LD
15231 GCC=$lt_save_GCC
15232 with_gnu_ldcxx=$with_gnu_ld
15233 with_gnu_ld=$lt_save_with_gnu_ld
15234 lt_cv_path_LDCXX=$lt_cv_path_LD
15235 lt_cv_path_LD=$lt_save_path_LD
15236 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15237 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15238
15239 else
15240 tagname=""
15241 fi
15242 ;;
15243
15244 F77)
15245 if test -n "$F77" && test "X$F77" != "Xno"; then
15246
15247 ac_ext=f
15248 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15249 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15251
15252
15253 archive_cmds_need_lc_F77=no
15254 allow_undefined_flag_F77=
15255 always_export_symbols_F77=no
15256 archive_expsym_cmds_F77=
15257 export_dynamic_flag_spec_F77=
15258 hardcode_direct_F77=no
15259 hardcode_libdir_flag_spec_F77=
15260 hardcode_libdir_flag_spec_ld_F77=
15261 hardcode_libdir_separator_F77=
15262 hardcode_minus_L_F77=no
15263 hardcode_automatic_F77=no
15264 module_cmds_F77=
15265 module_expsym_cmds_F77=
15266 link_all_deplibs_F77=unknown
15267 old_archive_cmds_F77=$old_archive_cmds
15268 no_undefined_flag_F77=
15269 whole_archive_flag_spec_F77=
15270 enable_shared_with_static_runtimes_F77=no
15271
15272 # Source file extension for f77 test sources.
15273 ac_ext=f
15274
15275 # Object file extension for compiled f77 test sources.
15276 objext=o
15277 objext_F77=$objext
15278
15279 # Code to be used in simple compile tests
15280 lt_simple_compile_test_code="\
15281 subroutine t
15282 return
15283 end
15284 "
15285
15286 # Code to be used in simple link tests
15287 lt_simple_link_test_code="\
15288 program t
15289 end
15290 "
15291
15292 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15293
15294 # If no C compiler was specified, use CC.
15295 LTCC=${LTCC-"$CC"}
15296
15297 # If no C compiler flags were specified, use CFLAGS.
15298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15299
15300 # Allow CC to be a program name with arguments.
15301 compiler=$CC
15302
15303
15304 # save warnings/boilerplate of simple test code
15305 ac_outfile=conftest.$ac_objext
15306 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15308 _lt_compiler_boilerplate=`cat conftest.err`
15309 $rm conftest*
15310
15311 ac_outfile=conftest.$ac_objext
15312 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15313 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15314 _lt_linker_boilerplate=`cat conftest.err`
15315 $rm -r conftest*
15316
15317
15318 # Allow CC to be a program name with arguments.
15319 lt_save_CC="$CC"
15320 CC=${F77-"f77"}
15321 compiler=$CC
15322 compiler_F77=$CC
15323 for cc_temp in $compiler""; do
15324 case $cc_temp in
15325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15327 \-*) ;;
15328 *) break;;
15329 esac
15330 done
15331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15332
15333
15334 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15335 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15336 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15337 echo "${ECHO_T}$can_build_shared" >&6; }
15338
15339 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15340 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15341 test "$can_build_shared" = "no" && enable_shared=no
15342
15343 # On AIX, shared libraries and static libraries use the same namespace, and
15344 # are all built from PIC.
15345 case $host_os in
15346 aix3*)
15347 test "$enable_shared" = yes && enable_static=no
15348 if test -n "$RANLIB"; then
15349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15350 postinstall_cmds='$RANLIB $lib'
15351 fi
15352 ;;
15353 aix[4-9]*)
15354 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15355 test "$enable_shared" = yes && enable_static=no
15356 fi
15357 ;;
15358 esac
15359 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15360 echo "${ECHO_T}$enable_shared" >&6; }
15361
15362 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15363 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15364 # Make sure either enable_shared or enable_static is yes.
15365 test "$enable_shared" = yes || enable_static=yes
15366 { echo "$as_me:$LINENO: result: $enable_static" >&5
15367 echo "${ECHO_T}$enable_static" >&6; }
15368
15369 GCC_F77="$G77"
15370 LD_F77="$LD"
15371
15372 lt_prog_compiler_wl_F77=
15373 lt_prog_compiler_pic_F77=
15374 lt_prog_compiler_static_F77=
15375
15376 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15377 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15378
15379 if test "$GCC" = yes; then
15380 lt_prog_compiler_wl_F77='-Wl,'
15381 lt_prog_compiler_static_F77='-static'
15382
15383 case $host_os in
15384 aix*)
15385 # All AIX code is PIC.
15386 if test "$host_cpu" = ia64; then
15387 # AIX 5 now supports IA64 processor
15388 lt_prog_compiler_static_F77='-Bstatic'
15389 fi
15390 ;;
15391
15392 amigaos*)
15393 # FIXME: we need at least 68020 code to build shared libraries, but
15394 # adding the `-m68020' flag to GCC prevents building anything better,
15395 # like `-m68040'.
15396 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15397 ;;
15398
15399 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15400 # PIC is the default for these OSes.
15401 ;;
15402
15403 mingw* | cygwin* | pw32* | os2*)
15404 # This hack is so that the source file can tell whether it is being
15405 # built for inclusion in a dll (and should export symbols for example).
15406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15407 # (--disable-auto-import) libraries
15408 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15409 ;;
15410
15411 darwin* | rhapsody*)
15412 # PIC is the default on this platform
15413 # Common symbols not allowed in MH_DYLIB files
15414 lt_prog_compiler_pic_F77='-fno-common'
15415 ;;
15416
15417 interix[3-9]*)
15418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15419 # Instead, we relocate shared libraries at runtime.
15420 ;;
15421
15422 msdosdjgpp*)
15423 # Just because we use GCC doesn't mean we suddenly get shared libraries
15424 # on systems that don't support them.
15425 lt_prog_compiler_can_build_shared_F77=no
15426 enable_shared=no
15427 ;;
15428
15429 sysv4*MP*)
15430 if test -d /usr/nec; then
15431 lt_prog_compiler_pic_F77=-Kconform_pic
15432 fi
15433 ;;
15434
15435 hpux*)
15436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15437 # not for PA HP-UX.
15438 case $host_cpu in
15439 hppa*64*|ia64*)
15440 # +Z the default
15441 ;;
15442 *)
15443 lt_prog_compiler_pic_F77='-fPIC'
15444 ;;
15445 esac
15446 ;;
15447
15448 *)
15449 lt_prog_compiler_pic_F77='-fPIC'
15450 ;;
15451 esac
15452 else
15453 # PORTME Check for flag to pass linker flags through the system compiler.
15454 case $host_os in
15455 aix*)
15456 lt_prog_compiler_wl_F77='-Wl,'
15457 if test "$host_cpu" = ia64; then
15458 # AIX 5 now supports IA64 processor
15459 lt_prog_compiler_static_F77='-Bstatic'
15460 else
15461 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15462 fi
15463 ;;
15464 darwin*)
15465 # PIC is the default on this platform
15466 # Common symbols not allowed in MH_DYLIB files
15467 case $cc_basename in
15468 xlc*)
15469 lt_prog_compiler_pic_F77='-qnocommon'
15470 lt_prog_compiler_wl_F77='-Wl,'
15471 ;;
15472 esac
15473 ;;
15474
15475 mingw* | cygwin* | pw32* | os2*)
15476 # This hack is so that the source file can tell whether it is being
15477 # built for inclusion in a dll (and should export symbols for example).
15478 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15479 ;;
15480
15481 hpux9* | hpux10* | hpux11*)
15482 lt_prog_compiler_wl_F77='-Wl,'
15483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15484 # not for PA HP-UX.
15485 case $host_cpu in
15486 hppa*64*|ia64*)
15487 # +Z the default
15488 ;;
15489 *)
15490 lt_prog_compiler_pic_F77='+Z'
15491 ;;
15492 esac
15493 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15494 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15495 ;;
15496
15497 irix5* | irix6* | nonstopux*)
15498 lt_prog_compiler_wl_F77='-Wl,'
15499 # PIC (with -KPIC) is the default.
15500 lt_prog_compiler_static_F77='-non_shared'
15501 ;;
15502
15503 newsos6)
15504 lt_prog_compiler_pic_F77='-KPIC'
15505 lt_prog_compiler_static_F77='-Bstatic'
15506 ;;
15507
15508 linux* | k*bsd*-gnu)
15509 case $cc_basename in
15510 icc* | ecc*)
15511 lt_prog_compiler_wl_F77='-Wl,'
15512 lt_prog_compiler_pic_F77='-KPIC'
15513 lt_prog_compiler_static_F77='-static'
15514 ;;
15515 pgcc* | pgf77* | pgf90* | pgf95*)
15516 # Portland Group compilers (*not* the Pentium gcc compiler,
15517 # which looks to be a dead project)
15518 lt_prog_compiler_wl_F77='-Wl,'
15519 lt_prog_compiler_pic_F77='-fpic'
15520 lt_prog_compiler_static_F77='-Bstatic'
15521 ;;
15522 ccc*)
15523 lt_prog_compiler_wl_F77='-Wl,'
15524 # All Alpha code is PIC.
15525 lt_prog_compiler_static_F77='-non_shared'
15526 ;;
15527 *)
15528 case `$CC -V 2>&1 | sed 5q` in
15529 *Sun\ C*)
15530 # Sun C 5.9
15531 lt_prog_compiler_pic_F77='-KPIC'
15532 lt_prog_compiler_static_F77='-Bstatic'
15533 lt_prog_compiler_wl_F77='-Wl,'
15534 ;;
15535 *Sun\ F*)
15536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15537 lt_prog_compiler_pic_F77='-KPIC'
15538 lt_prog_compiler_static_F77='-Bstatic'
15539 lt_prog_compiler_wl_F77=''
15540 ;;
15541 esac
15542 ;;
15543 esac
15544 ;;
15545
15546 osf3* | osf4* | osf5*)
15547 lt_prog_compiler_wl_F77='-Wl,'
15548 # All OSF/1 code is PIC.
15549 lt_prog_compiler_static_F77='-non_shared'
15550 ;;
15551
15552 rdos*)
15553 lt_prog_compiler_static_F77='-non_shared'
15554 ;;
15555
15556 solaris*)
15557 lt_prog_compiler_pic_F77='-KPIC'
15558 lt_prog_compiler_static_F77='-Bstatic'
15559 case $cc_basename in
15560 f77* | f90* | f95*)
15561 lt_prog_compiler_wl_F77='-Qoption ld ';;
15562 *)
15563 lt_prog_compiler_wl_F77='-Wl,';;
15564 esac
15565 ;;
15566
15567 sunos4*)
15568 lt_prog_compiler_wl_F77='-Qoption ld '
15569 lt_prog_compiler_pic_F77='-PIC'
15570 lt_prog_compiler_static_F77='-Bstatic'
15571 ;;
15572
15573 sysv4 | sysv4.2uw2* | sysv4.3*)
15574 lt_prog_compiler_wl_F77='-Wl,'
15575 lt_prog_compiler_pic_F77='-KPIC'
15576 lt_prog_compiler_static_F77='-Bstatic'
15577 ;;
15578
15579 sysv4*MP*)
15580 if test -d /usr/nec ;then
15581 lt_prog_compiler_pic_F77='-Kconform_pic'
15582 lt_prog_compiler_static_F77='-Bstatic'
15583 fi
15584 ;;
15585
15586 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15587 lt_prog_compiler_wl_F77='-Wl,'
15588 lt_prog_compiler_pic_F77='-KPIC'
15589 lt_prog_compiler_static_F77='-Bstatic'
15590 ;;
15591
15592 unicos*)
15593 lt_prog_compiler_wl_F77='-Wl,'
15594 lt_prog_compiler_can_build_shared_F77=no
15595 ;;
15596
15597 uts4*)
15598 lt_prog_compiler_pic_F77='-pic'
15599 lt_prog_compiler_static_F77='-Bstatic'
15600 ;;
15601
15602 *)
15603 lt_prog_compiler_can_build_shared_F77=no
15604 ;;
15605 esac
15606 fi
15607
15608 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15609 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15610
15611 #
15612 # Check to make sure the PIC flag actually works.
15613 #
15614 if test -n "$lt_prog_compiler_pic_F77"; then
15615
15616 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15617 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15618 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621 lt_cv_prog_compiler_pic_works_F77=no
15622 ac_outfile=conftest.$ac_objext
15623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15624 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15625 # Insert the option either (1) after the last *FLAGS variable, or
15626 # (2) before a word containing "conftest.", or (3) at the end.
15627 # Note that $ac_compile itself does not contain backslashes and begins
15628 # with a dollar sign (not a hyphen), so the echo should work correctly.
15629 # The option is referenced via a variable to avoid confusing sed.
15630 lt_compile=`echo "$ac_compile" | $SED \
15631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15633 -e 's:$: $lt_compiler_flag:'`
15634 (eval echo "\"\$as_me:15634: $lt_compile\"" >&5)
15635 (eval "$lt_compile" 2>conftest.err)
15636 ac_status=$?
15637 cat conftest.err >&5
15638 echo "$as_me:15638: \$? = $ac_status" >&5
15639 if (exit $ac_status) && test -s "$ac_outfile"; then
15640 # The compiler can only warn and ignore the option if not recognized
15641 # So say no if there are warnings other than the usual output.
15642 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15645 lt_cv_prog_compiler_pic_works_F77=yes
15646 fi
15647 fi
15648 $rm conftest*
15649
15650 fi
15651 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15652 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15653
15654 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15655 case $lt_prog_compiler_pic_F77 in
15656 "" | " "*) ;;
15657 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15658 esac
15659 else
15660 lt_prog_compiler_pic_F77=
15661 lt_prog_compiler_can_build_shared_F77=no
15662 fi
15663
15664 fi
15665 case $host_os in
15666 # For platforms which do not support PIC, -DPIC is meaningless:
15667 *djgpp*)
15668 lt_prog_compiler_pic_F77=
15669 ;;
15670 *)
15671 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15672 ;;
15673 esac
15674
15675 #
15676 # Check to make sure the static flag actually works.
15677 #
15678 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15679 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15680 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15681 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684 lt_cv_prog_compiler_static_works_F77=no
15685 save_LDFLAGS="$LDFLAGS"
15686 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15687 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15688 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15689 # The linker can only warn and ignore the option if not recognized
15690 # So say no if there are warnings
15691 if test -s conftest.err; then
15692 # Append any errors to the config.log.
15693 cat conftest.err 1>&5
15694 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15696 if diff conftest.exp conftest.er2 >/dev/null; then
15697 lt_cv_prog_compiler_static_works_F77=yes
15698 fi
15699 else
15700 lt_cv_prog_compiler_static_works_F77=yes
15701 fi
15702 fi
15703 $rm -r conftest*
15704 LDFLAGS="$save_LDFLAGS"
15705
15706 fi
15707 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15708 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15709
15710 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15711 :
15712 else
15713 lt_prog_compiler_static_F77=
15714 fi
15715
15716
15717 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15718 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15719 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722 lt_cv_prog_compiler_c_o_F77=no
15723 $rm -r conftest 2>/dev/null
15724 mkdir conftest
15725 cd conftest
15726 mkdir out
15727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15728
15729 lt_compiler_flag="-o out/conftest2.$ac_objext"
15730 # Insert the option either (1) after the last *FLAGS variable, or
15731 # (2) before a word containing "conftest.", or (3) at the end.
15732 # Note that $ac_compile itself does not contain backslashes and begins
15733 # with a dollar sign (not a hyphen), so the echo should work correctly.
15734 lt_compile=`echo "$ac_compile" | $SED \
15735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15737 -e 's:$: $lt_compiler_flag:'`
15738 (eval echo "\"\$as_me:15738: $lt_compile\"" >&5)
15739 (eval "$lt_compile" 2>out/conftest.err)
15740 ac_status=$?
15741 cat out/conftest.err >&5
15742 echo "$as_me:15742: \$? = $ac_status" >&5
15743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15744 then
15745 # The compiler can only warn and ignore the option if not recognized
15746 # So say no if there are warnings
15747 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15750 lt_cv_prog_compiler_c_o_F77=yes
15751 fi
15752 fi
15753 chmod u+w . 2>&5
15754 $rm conftest*
15755 # SGI C++ compiler will create directory out/ii_files/ for
15756 # template instantiation
15757 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15758 $rm out/* && rmdir out
15759 cd ..
15760 rmdir conftest
15761 $rm conftest*
15762
15763 fi
15764 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15765 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15766
15767
15768 hard_links="nottested"
15769 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15770 # do not overwrite the value of need_locks provided by the user
15771 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15772 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15773 hard_links=yes
15774 $rm conftest*
15775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15776 touch conftest.a
15777 ln conftest.a conftest.b 2>&5 || hard_links=no
15778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15779 { echo "$as_me:$LINENO: result: $hard_links" >&5
15780 echo "${ECHO_T}$hard_links" >&6; }
15781 if test "$hard_links" = no; then
15782 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15783 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15784 need_locks=warn
15785 fi
15786 else
15787 need_locks=no
15788 fi
15789
15790 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15791 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15792
15793 runpath_var=
15794 allow_undefined_flag_F77=
15795 enable_shared_with_static_runtimes_F77=no
15796 archive_cmds_F77=
15797 archive_expsym_cmds_F77=
15798 old_archive_From_new_cmds_F77=
15799 old_archive_from_expsyms_cmds_F77=
15800 export_dynamic_flag_spec_F77=
15801 whole_archive_flag_spec_F77=
15802 thread_safe_flag_spec_F77=
15803 hardcode_libdir_flag_spec_F77=
15804 hardcode_libdir_flag_spec_ld_F77=
15805 hardcode_libdir_separator_F77=
15806 hardcode_direct_F77=no
15807 hardcode_minus_L_F77=no
15808 hardcode_shlibpath_var_F77=unsupported
15809 link_all_deplibs_F77=unknown
15810 hardcode_automatic_F77=no
15811 module_cmds_F77=
15812 module_expsym_cmds_F77=
15813 always_export_symbols_F77=no
15814 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15815 # include_expsyms should be a list of space-separated symbols to be *always*
15816 # included in the symbol list
15817 include_expsyms_F77=
15818 # exclude_expsyms can be an extended regexp of symbols to exclude
15819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15821 # as well as any symbol that contains `d'.
15822 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15824 # platforms (ab)use it in PIC code, but their linkers get confused if
15825 # the symbol is explicitly referenced. Since portable code cannot
15826 # rely on this symbol name, it's probably fine to never include it in
15827 # preloaded symbol tables.
15828 # Exclude shared library initialization/finalization symbols.
15829 extract_expsyms_cmds=
15830 # Just being paranoid about ensuring that cc_basename is set.
15831 for cc_temp in $compiler""; do
15832 case $cc_temp in
15833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15835 \-*) ;;
15836 *) break;;
15837 esac
15838 done
15839 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15840
15841 case $host_os in
15842 cygwin* | mingw* | pw32*)
15843 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15844 # When not using gcc, we currently assume that we are using
15845 # Microsoft Visual C++.
15846 if test "$GCC" != yes; then
15847 with_gnu_ld=no
15848 fi
15849 ;;
15850 interix*)
15851 # we just hope/assume this is gcc and not c89 (= MSVC++)
15852 with_gnu_ld=yes
15853 ;;
15854 openbsd*)
15855 with_gnu_ld=no
15856 ;;
15857 esac
15858
15859 ld_shlibs_F77=yes
15860 if test "$with_gnu_ld" = yes; then
15861 # If archive_cmds runs LD, not CC, wlarc should be empty
15862 wlarc='${wl}'
15863
15864 # Set some defaults for GNU ld with shared library support. These
15865 # are reset later if shared libraries are not supported. Putting them
15866 # here allows them to be overridden if necessary.
15867 runpath_var=LD_RUN_PATH
15868 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15869 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15870 # ancient GNU ld didn't support --whole-archive et. al.
15871 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15872 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15873 else
15874 whole_archive_flag_spec_F77=
15875 fi
15876 supports_anon_versioning=no
15877 case `$LD -v 2>/dev/null` in
15878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15881 *\ 2.11.*) ;; # other 2.11 versions
15882 *) supports_anon_versioning=yes ;;
15883 esac
15884
15885 # See if GNU ld supports shared libraries.
15886 case $host_os in
15887 aix[3-9]*)
15888 # On AIX/PPC, the GNU linker is very broken
15889 if test "$host_cpu" != ia64; then
15890 ld_shlibs_F77=no
15891 cat <<EOF 1>&2
15892
15893 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15894 *** to be unable to reliably create shared libraries on AIX.
15895 *** Therefore, libtool is disabling shared libraries support. If you
15896 *** really care for shared libraries, you may want to modify your PATH
15897 *** so that a non-GNU linker is found, and then restart.
15898
15899 EOF
15900 fi
15901 ;;
15902
15903 amigaos*)
15904 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)'
15905 hardcode_libdir_flag_spec_F77='-L$libdir'
15906 hardcode_minus_L_F77=yes
15907
15908 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15909 # that the semantics of dynamic libraries on AmigaOS, at least up
15910 # to version 4, is to share data among multiple programs linked
15911 # with the same dynamic library. Since this doesn't match the
15912 # behavior of shared libraries on other platforms, we can't use
15913 # them.
15914 ld_shlibs_F77=no
15915 ;;
15916
15917 beos*)
15918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15919 allow_undefined_flag_F77=unsupported
15920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15921 # support --undefined. This deserves some investigation. FIXME
15922 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15923 else
15924 ld_shlibs_F77=no
15925 fi
15926 ;;
15927
15928 cygwin* | mingw* | pw32*)
15929 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15930 # as there is no search path for DLLs.
15931 hardcode_libdir_flag_spec_F77='-L$libdir'
15932 allow_undefined_flag_F77=unsupported
15933 always_export_symbols_F77=no
15934 enable_shared_with_static_runtimes_F77=yes
15935 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15936
15937 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15938 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15939 # If the export-symbols file already is a .def file (1st line
15940 # is EXPORTS), use it as is; otherwise, prepend...
15941 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15942 cp $export_symbols $output_objdir/$soname.def;
15943 else
15944 echo EXPORTS > $output_objdir/$soname.def;
15945 cat $export_symbols >> $output_objdir/$soname.def;
15946 fi~
15947 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15948 else
15949 ld_shlibs_F77=no
15950 fi
15951 ;;
15952
15953 interix[3-9]*)
15954 hardcode_direct_F77=no
15955 hardcode_shlibpath_var_F77=no
15956 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15957 export_dynamic_flag_spec_F77='${wl}-E'
15958 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15959 # Instead, shared libraries are loaded at an image base (0x10000000 by
15960 # default) and relocated if they conflict, which is a slow very memory
15961 # consuming and fragmenting process. To avoid this, we pick a random,
15962 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15963 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15964 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'
15965 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'
15966 ;;
15967
15968 gnu* | linux* | k*bsd*-gnu)
15969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15970 tmp_addflag=
15971 case $cc_basename,$host_cpu in
15972 pgcc*) # Portland Group C compiler
15973 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'
15974 tmp_addflag=' $pic_flag'
15975 ;;
15976 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15977 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'
15978 tmp_addflag=' $pic_flag -Mnomain' ;;
15979 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15980 tmp_addflag=' -i_dynamic' ;;
15981 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15982 tmp_addflag=' -i_dynamic -nofor_main' ;;
15983 ifc* | ifort*) # Intel Fortran compiler
15984 tmp_addflag=' -nofor_main' ;;
15985 esac
15986 case `$CC -V 2>&1 | sed 5q` in
15987 *Sun\ C*) # Sun C 5.9
15988 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'
15989 tmp_sharedflag='-G' ;;
15990 *Sun\ F*) # Sun Fortran 8.3
15991 tmp_sharedflag='-G' ;;
15992 *)
15993 tmp_sharedflag='-shared' ;;
15994 esac
15995 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15996
15997 if test $supports_anon_versioning = yes; then
15998 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16000 $echo "local: *; };" >> $output_objdir/$libname.ver~
16001 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16002 fi
16003 link_all_deplibs_F77=no
16004 else
16005 ld_shlibs_F77=no
16006 fi
16007 ;;
16008
16009 netbsd* | netbsdelf*-gnu)
16010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16011 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16012 wlarc=
16013 else
16014 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16015 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16016 fi
16017 ;;
16018
16019 solaris*)
16020 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16021 ld_shlibs_F77=no
16022 cat <<EOF 1>&2
16023
16024 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16025 *** create shared libraries on Solaris systems. Therefore, libtool
16026 *** is disabling shared libraries support. We urge you to upgrade GNU
16027 *** binutils to release 2.9.1 or newer. Another option is to modify
16028 *** your PATH or compiler configuration so that the native linker is
16029 *** used, and then restart.
16030
16031 EOF
16032 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16033 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16034 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16035 else
16036 ld_shlibs_F77=no
16037 fi
16038 ;;
16039
16040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16041 case `$LD -v 2>&1` in
16042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16043 ld_shlibs_F77=no
16044 cat <<_LT_EOF 1>&2
16045
16046 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16047 *** reliably create shared libraries on SCO systems. Therefore, libtool
16048 *** is disabling shared libraries support. We urge you to upgrade GNU
16049 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16050 *** your PATH or compiler configuration so that the native linker is
16051 *** used, and then restart.
16052
16053 _LT_EOF
16054 ;;
16055 *)
16056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16057 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16058 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16059 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16060 else
16061 ld_shlibs_F77=no
16062 fi
16063 ;;
16064 esac
16065 ;;
16066
16067 sunos4*)
16068 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16069 wlarc=
16070 hardcode_direct_F77=yes
16071 hardcode_shlibpath_var_F77=no
16072 ;;
16073
16074 *)
16075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16076 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16078 else
16079 ld_shlibs_F77=no
16080 fi
16081 ;;
16082 esac
16083
16084 if test "$ld_shlibs_F77" = no; then
16085 runpath_var=
16086 hardcode_libdir_flag_spec_F77=
16087 export_dynamic_flag_spec_F77=
16088 whole_archive_flag_spec_F77=
16089 fi
16090 else
16091 # PORTME fill in a description of your system's linker (not GNU ld)
16092 case $host_os in
16093 aix3*)
16094 allow_undefined_flag_F77=unsupported
16095 always_export_symbols_F77=yes
16096 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'
16097 # Note: this linker hardcodes the directories in LIBPATH if there
16098 # are no directories specified by -L.
16099 hardcode_minus_L_F77=yes
16100 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16101 # Neither direct hardcoding nor static linking is supported with a
16102 # broken collect2.
16103 hardcode_direct_F77=unsupported
16104 fi
16105 ;;
16106
16107 aix[4-9]*)
16108 if test "$host_cpu" = ia64; then
16109 # On IA64, the linker does run time linking by default, so we don't
16110 # have to do anything special.
16111 aix_use_runtimelinking=no
16112 exp_sym_flag='-Bexport'
16113 no_entry_flag=""
16114 else
16115 # If we're using GNU nm, then we don't want the "-C" option.
16116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16118 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'
16119 else
16120 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'
16121 fi
16122 aix_use_runtimelinking=no
16123
16124 # Test if we are trying to use run time linking or normal
16125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16126 # need to do runtime linking.
16127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16128 for ld_flag in $LDFLAGS; do
16129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16130 aix_use_runtimelinking=yes
16131 break
16132 fi
16133 done
16134 ;;
16135 esac
16136
16137 exp_sym_flag='-bexport'
16138 no_entry_flag='-bnoentry'
16139 fi
16140
16141 # When large executables or shared objects are built, AIX ld can
16142 # have problems creating the table of contents. If linking a library
16143 # or program results in "error TOC overflow" add -mminimal-toc to
16144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16146
16147 archive_cmds_F77=''
16148 hardcode_direct_F77=yes
16149 hardcode_libdir_separator_F77=':'
16150 link_all_deplibs_F77=yes
16151
16152 if test "$GCC" = yes; then
16153 case $host_os in aix4.[012]|aix4.[012].*)
16154 # We only want to do this on AIX 4.2 and lower, the check
16155 # below for broken collect2 doesn't work under 4.3+
16156 collect2name=`${CC} -print-prog-name=collect2`
16157 if test -f "$collect2name" && \
16158 strings "$collect2name" | grep resolve_lib_name >/dev/null
16159 then
16160 # We have reworked collect2
16161 :
16162 else
16163 # We have old collect2
16164 hardcode_direct_F77=unsupported
16165 # It fails to find uninstalled libraries when the uninstalled
16166 # path is not listed in the libpath. Setting hardcode_minus_L
16167 # to unsupported forces relinking
16168 hardcode_minus_L_F77=yes
16169 hardcode_libdir_flag_spec_F77='-L$libdir'
16170 hardcode_libdir_separator_F77=
16171 fi
16172 ;;
16173 esac
16174 shared_flag='-shared'
16175 if test "$aix_use_runtimelinking" = yes; then
16176 shared_flag="$shared_flag "'${wl}-G'
16177 fi
16178 else
16179 # not using gcc
16180 if test "$host_cpu" = ia64; then
16181 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16182 # chokes on -Wl,-G. The following line is correct:
16183 shared_flag='-G'
16184 else
16185 if test "$aix_use_runtimelinking" = yes; then
16186 shared_flag='${wl}-G'
16187 else
16188 shared_flag='${wl}-bM:SRE'
16189 fi
16190 fi
16191 fi
16192
16193 # It seems that -bexpall does not export symbols beginning with
16194 # underscore (_), so it is better to generate a list of symbols to export.
16195 always_export_symbols_F77=yes
16196 if test "$aix_use_runtimelinking" = yes; then
16197 # Warning - without using the other runtime loading flags (-brtl),
16198 # -berok will link without error, but may produce a broken library.
16199 allow_undefined_flag_F77='-berok'
16200 # Determine the default libpath from the value encoded in an empty executable.
16201 cat >conftest.$ac_ext <<_ACEOF
16202 program main
16203
16204 end
16205 _ACEOF
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (ac_try="$ac_link"
16208 case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211 esac
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_link") 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } && {
16220 test -z "$ac_f77_werror_flag" ||
16221 test ! -s conftest.err
16222 } && test -s conftest$ac_exeext &&
16223 $as_test_x conftest$ac_exeext; then
16224
16225 lt_aix_libpath_sed='
16226 /Import File Strings/,/^$/ {
16227 /^0/ {
16228 s/^0 *\(.*\)$/\1/
16229 p
16230 }
16231 }'
16232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16233 # Check for a 64-bit object if we didn't find anything.
16234 if test -z "$aix_libpath"; then
16235 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16236 fi
16237 else
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241
16242 fi
16243
16244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16245 conftest$ac_exeext conftest.$ac_ext
16246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16247
16248 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16249 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"
16250 else
16251 if test "$host_cpu" = ia64; then
16252 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16253 allow_undefined_flag_F77="-z nodefs"
16254 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"
16255 else
16256 # Determine the default libpath from the value encoded in an empty executable.
16257 cat >conftest.$ac_ext <<_ACEOF
16258 program main
16259
16260 end
16261 _ACEOF
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (ac_try="$ac_link"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_link") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_f77_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest$ac_exeext &&
16279 $as_test_x conftest$ac_exeext; then
16280
16281 lt_aix_libpath_sed='
16282 /Import File Strings/,/^$/ {
16283 /^0/ {
16284 s/^0 *\(.*\)$/\1/
16285 p
16286 }
16287 }'
16288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16289 # Check for a 64-bit object if we didn't find anything.
16290 if test -z "$aix_libpath"; then
16291 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16292 fi
16293 else
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297
16298 fi
16299
16300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16301 conftest$ac_exeext conftest.$ac_ext
16302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16303
16304 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16305 # Warning - without using the other run time loading flags,
16306 # -berok will link without error, but may produce a broken library.
16307 no_undefined_flag_F77=' ${wl}-bernotok'
16308 allow_undefined_flag_F77=' ${wl}-berok'
16309 # Exported symbols can be pulled into shared objects from archives
16310 whole_archive_flag_spec_F77='$convenience'
16311 archive_cmds_need_lc_F77=yes
16312 # This is similar to how AIX traditionally builds its shared libraries.
16313 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'
16314 fi
16315 fi
16316 ;;
16317
16318 amigaos*)
16319 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)'
16320 hardcode_libdir_flag_spec_F77='-L$libdir'
16321 hardcode_minus_L_F77=yes
16322 # see comment about different semantics on the GNU ld section
16323 ld_shlibs_F77=no
16324 ;;
16325
16326 bsdi[45]*)
16327 export_dynamic_flag_spec_F77=-rdynamic
16328 ;;
16329
16330 cygwin* | mingw* | pw32*)
16331 # When not using gcc, we currently assume that we are using
16332 # Microsoft Visual C++.
16333 # hardcode_libdir_flag_spec is actually meaningless, as there is
16334 # no search path for DLLs.
16335 hardcode_libdir_flag_spec_F77=' '
16336 allow_undefined_flag_F77=unsupported
16337 # Tell ltmain to make .lib files, not .a files.
16338 libext=lib
16339 # Tell ltmain to make .dll files, not .so files.
16340 shrext_cmds=".dll"
16341 # FIXME: Setting linknames here is a bad hack.
16342 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16343 # The linker will automatically build a .lib file if we build a DLL.
16344 old_archive_From_new_cmds_F77='true'
16345 # FIXME: Should let the user specify the lib program.
16346 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16347 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16348 enable_shared_with_static_runtimes_F77=yes
16349 ;;
16350
16351 darwin* | rhapsody*)
16352 case $host_os in
16353 rhapsody* | darwin1.[012])
16354 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16355 ;;
16356 *) # Darwin 1.3 on
16357 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16358 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16359 else
16360 case ${MACOSX_DEPLOYMENT_TARGET} in
16361 10.[012])
16362 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16363 ;;
16364 10.*)
16365 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16366 ;;
16367 esac
16368 fi
16369 ;;
16370 esac
16371 archive_cmds_need_lc_F77=no
16372 hardcode_direct_F77=no
16373 hardcode_automatic_F77=yes
16374 hardcode_shlibpath_var_F77=unsupported
16375 whole_archive_flag_spec_F77=''
16376 link_all_deplibs_F77=yes
16377 if test "$GCC" = yes ; then
16378 output_verbose_link_cmd='echo'
16379 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16380 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16381 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16382 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16383 else
16384 case $cc_basename in
16385 xlc*)
16386 output_verbose_link_cmd='echo'
16387 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16388 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16390 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}'
16391 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}'
16392 ;;
16393 *)
16394 ld_shlibs_F77=no
16395 ;;
16396 esac
16397 fi
16398 ;;
16399
16400 dgux*)
16401 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_libdir_flag_spec_F77='-L$libdir'
16403 hardcode_shlibpath_var_F77=no
16404 ;;
16405
16406 freebsd1*)
16407 ld_shlibs_F77=no
16408 ;;
16409
16410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16411 # support. Future versions do this automatically, but an explicit c++rt0.o
16412 # does not break anything, and helps significantly (at the cost of a little
16413 # extra space).
16414 freebsd2.2*)
16415 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16416 hardcode_libdir_flag_spec_F77='-R$libdir'
16417 hardcode_direct_F77=yes
16418 hardcode_shlibpath_var_F77=no
16419 ;;
16420
16421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16422 freebsd2*)
16423 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_direct_F77=yes
16425 hardcode_minus_L_F77=yes
16426 hardcode_shlibpath_var_F77=no
16427 ;;
16428
16429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16430 freebsd* | dragonfly*)
16431 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16432 hardcode_libdir_flag_spec_F77='-R$libdir'
16433 hardcode_direct_F77=yes
16434 hardcode_shlibpath_var_F77=no
16435 ;;
16436
16437 hpux9*)
16438 if test "$GCC" = yes; then
16439 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'
16440 else
16441 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'
16442 fi
16443 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16444 hardcode_libdir_separator_F77=:
16445 hardcode_direct_F77=yes
16446
16447 # hardcode_minus_L: Not really in the search PATH,
16448 # but as the default location of the library.
16449 hardcode_minus_L_F77=yes
16450 export_dynamic_flag_spec_F77='${wl}-E'
16451 ;;
16452
16453 hpux10*)
16454 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16455 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16456 else
16457 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16458 fi
16459 if test "$with_gnu_ld" = no; then
16460 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16461 hardcode_libdir_separator_F77=:
16462
16463 hardcode_direct_F77=yes
16464 export_dynamic_flag_spec_F77='${wl}-E'
16465
16466 # hardcode_minus_L: Not really in the search PATH,
16467 # but as the default location of the library.
16468 hardcode_minus_L_F77=yes
16469 fi
16470 ;;
16471
16472 hpux11*)
16473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16474 case $host_cpu in
16475 hppa*64*)
16476 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16477 ;;
16478 ia64*)
16479 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16480 ;;
16481 *)
16482 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16483 ;;
16484 esac
16485 else
16486 case $host_cpu in
16487 hppa*64*)
16488 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 ;;
16490 ia64*)
16491 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16492 ;;
16493 *)
16494 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16495 ;;
16496 esac
16497 fi
16498 if test "$with_gnu_ld" = no; then
16499 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16500 hardcode_libdir_separator_F77=:
16501
16502 case $host_cpu in
16503 hppa*64*|ia64*)
16504 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16505 hardcode_direct_F77=no
16506 hardcode_shlibpath_var_F77=no
16507 ;;
16508 *)
16509 hardcode_direct_F77=yes
16510 export_dynamic_flag_spec_F77='${wl}-E'
16511
16512 # hardcode_minus_L: Not really in the search PATH,
16513 # but as the default location of the library.
16514 hardcode_minus_L_F77=yes
16515 ;;
16516 esac
16517 fi
16518 ;;
16519
16520 irix5* | irix6* | nonstopux*)
16521 if test "$GCC" = yes; then
16522 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'
16523 else
16524 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'
16525 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16526 fi
16527 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16528 hardcode_libdir_separator_F77=:
16529 link_all_deplibs_F77=yes
16530 ;;
16531
16532 netbsd* | netbsdelf*-gnu)
16533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16534 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16535 else
16536 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16537 fi
16538 hardcode_libdir_flag_spec_F77='-R$libdir'
16539 hardcode_direct_F77=yes
16540 hardcode_shlibpath_var_F77=no
16541 ;;
16542
16543 newsos6)
16544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545 hardcode_direct_F77=yes
16546 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16547 hardcode_libdir_separator_F77=:
16548 hardcode_shlibpath_var_F77=no
16549 ;;
16550
16551 openbsd*)
16552 if test -f /usr/libexec/ld.so; then
16553 hardcode_direct_F77=yes
16554 hardcode_shlibpath_var_F77=no
16555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16556 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16558 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16559 export_dynamic_flag_spec_F77='${wl}-E'
16560 else
16561 case $host_os in
16562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16563 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16564 hardcode_libdir_flag_spec_F77='-R$libdir'
16565 ;;
16566 *)
16567 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16568 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16569 ;;
16570 esac
16571 fi
16572 else
16573 ld_shlibs_F77=no
16574 fi
16575 ;;
16576
16577 os2*)
16578 hardcode_libdir_flag_spec_F77='-L$libdir'
16579 hardcode_minus_L_F77=yes
16580 allow_undefined_flag_F77=unsupported
16581 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'
16582 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16583 ;;
16584
16585 osf3*)
16586 if test "$GCC" = yes; then
16587 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16588 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'
16589 else
16590 allow_undefined_flag_F77=' -expect_unresolved \*'
16591 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'
16592 fi
16593 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16594 hardcode_libdir_separator_F77=:
16595 ;;
16596
16597 osf4* | osf5*) # as osf3* with the addition of -msym flag
16598 if test "$GCC" = yes; then
16599 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16600 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'
16601 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16602 else
16603 allow_undefined_flag_F77=' -expect_unresolved \*'
16604 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'
16605 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~
16606 $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'
16607
16608 # Both c and cxx compiler support -rpath directly
16609 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16610 fi
16611 hardcode_libdir_separator_F77=:
16612 ;;
16613
16614 solaris*)
16615 no_undefined_flag_F77=' -z text'
16616 if test "$GCC" = yes; then
16617 wlarc='${wl}'
16618 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16619 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16620 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16621 else
16622 wlarc=''
16623 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16625 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16626 fi
16627 hardcode_libdir_flag_spec_F77='-R$libdir'
16628 hardcode_shlibpath_var_F77=no
16629 case $host_os in
16630 solaris2.[0-5] | solaris2.[0-5].*) ;;
16631 *)
16632 # The compiler driver will combine and reorder linker options,
16633 # but understands `-z linker_flag'. GCC discards it without `$wl',
16634 # but is careful enough not to reorder.
16635 # Supported since Solaris 2.6 (maybe 2.5.1?)
16636 if test "$GCC" = yes; then
16637 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16638 else
16639 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16640 fi
16641 ;;
16642 esac
16643 link_all_deplibs_F77=yes
16644 ;;
16645
16646 sunos4*)
16647 if test "x$host_vendor" = xsequent; then
16648 # Use $CC to link under sequent, because it throws in some extra .o
16649 # files that make .init and .fini sections work.
16650 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16651 else
16652 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16653 fi
16654 hardcode_libdir_flag_spec_F77='-L$libdir'
16655 hardcode_direct_F77=yes
16656 hardcode_minus_L_F77=yes
16657 hardcode_shlibpath_var_F77=no
16658 ;;
16659
16660 sysv4)
16661 case $host_vendor in
16662 sni)
16663 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_direct_F77=yes # is this really true???
16665 ;;
16666 siemens)
16667 ## LD is ld it makes a PLAMLIB
16668 ## CC just makes a GrossModule.
16669 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16670 reload_cmds_F77='$CC -r -o $output$reload_objs'
16671 hardcode_direct_F77=no
16672 ;;
16673 motorola)
16674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16675 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16676 ;;
16677 esac
16678 runpath_var='LD_RUN_PATH'
16679 hardcode_shlibpath_var_F77=no
16680 ;;
16681
16682 sysv4.3*)
16683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16684 hardcode_shlibpath_var_F77=no
16685 export_dynamic_flag_spec_F77='-Bexport'
16686 ;;
16687
16688 sysv4*MP*)
16689 if test -d /usr/nec; then
16690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16691 hardcode_shlibpath_var_F77=no
16692 runpath_var=LD_RUN_PATH
16693 hardcode_runpath_var=yes
16694 ld_shlibs_F77=yes
16695 fi
16696 ;;
16697
16698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16699 no_undefined_flag_F77='${wl}-z,text'
16700 archive_cmds_need_lc_F77=no
16701 hardcode_shlibpath_var_F77=no
16702 runpath_var='LD_RUN_PATH'
16703
16704 if test "$GCC" = yes; then
16705 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16706 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16707 else
16708 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16709 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16710 fi
16711 ;;
16712
16713 sysv5* | sco3.2v5* | sco5v6*)
16714 # Note: We can NOT use -z defs as we might desire, because we do not
16715 # link with -lc, and that would cause any symbols used from libc to
16716 # always be unresolved, which means just about no library would
16717 # ever link correctly. If we're not using GNU ld we use -z text
16718 # though, which does catch some bad symbols but isn't as heavy-handed
16719 # as -z defs.
16720 no_undefined_flag_F77='${wl}-z,text'
16721 allow_undefined_flag_F77='${wl}-z,nodefs'
16722 archive_cmds_need_lc_F77=no
16723 hardcode_shlibpath_var_F77=no
16724 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16725 hardcode_libdir_separator_F77=':'
16726 link_all_deplibs_F77=yes
16727 export_dynamic_flag_spec_F77='${wl}-Bexport'
16728 runpath_var='LD_RUN_PATH'
16729
16730 if test "$GCC" = yes; then
16731 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16732 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16733 else
16734 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736 fi
16737 ;;
16738
16739 uts4*)
16740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741 hardcode_libdir_flag_spec_F77='-L$libdir'
16742 hardcode_shlibpath_var_F77=no
16743 ;;
16744
16745 *)
16746 ld_shlibs_F77=no
16747 ;;
16748 esac
16749 fi
16750
16751 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16752 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16753 test "$ld_shlibs_F77" = no && can_build_shared=no
16754
16755 #
16756 # Do we need to explicitly link libc?
16757 #
16758 case "x$archive_cmds_need_lc_F77" in
16759 x|xyes)
16760 # Assume -lc should be added
16761 archive_cmds_need_lc_F77=yes
16762
16763 if test "$enable_shared" = yes && test "$GCC" = yes; then
16764 case $archive_cmds_F77 in
16765 *'~'*)
16766 # FIXME: we may have to deal with multi-command sequences.
16767 ;;
16768 '$CC '*)
16769 # Test whether the compiler implicitly links with -lc since on some
16770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16771 # to ld, don't add -lc before -lgcc.
16772 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16773 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16774 $rm conftest*
16775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16776
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } 2>conftest.err; then
16782 soname=conftest
16783 lib=conftest
16784 libobjs=conftest.$ac_objext
16785 deplibs=
16786 wl=$lt_prog_compiler_wl_F77
16787 pic_flag=$lt_prog_compiler_pic_F77
16788 compiler_flags=-v
16789 linker_flags=-v
16790 verstring=
16791 output_objdir=.
16792 libname=conftest
16793 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16794 allow_undefined_flag_F77=
16795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16796 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }
16800 then
16801 archive_cmds_need_lc_F77=no
16802 else
16803 archive_cmds_need_lc_F77=yes
16804 fi
16805 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16806 else
16807 cat conftest.err 1>&5
16808 fi
16809 $rm conftest*
16810 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16811 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16812 ;;
16813 esac
16814 fi
16815 ;;
16816 esac
16817
16818 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16819 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16820 library_names_spec=
16821 libname_spec='lib$name'
16822 soname_spec=
16823 shrext_cmds=".so"
16824 postinstall_cmds=
16825 postuninstall_cmds=
16826 finish_cmds=
16827 finish_eval=
16828 shlibpath_var=
16829 shlibpath_overrides_runpath=unknown
16830 version_type=none
16831 dynamic_linker="$host_os ld.so"
16832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16833
16834 need_lib_prefix=unknown
16835 hardcode_into_libs=no
16836
16837 # when you set need_version to no, make sure it does not cause -set_version
16838 # flags to be left without arguments
16839 need_version=unknown
16840
16841 case $host_os in
16842 aix3*)
16843 version_type=linux
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16845 shlibpath_var=LIBPATH
16846
16847 # AIX 3 has no versioning support, so we append a major version to the name.
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 ;;
16850
16851 aix[4-9]*)
16852 version_type=linux
16853 need_lib_prefix=no
16854 need_version=no
16855 hardcode_into_libs=yes
16856 if test "$host_cpu" = ia64; then
16857 # AIX 5 supports IA64
16858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16859 shlibpath_var=LD_LIBRARY_PATH
16860 else
16861 # With GCC up to 2.95.x, collect2 would create an import file
16862 # for dependence libraries. The import file would start with
16863 # the line `#! .'. This would cause the generated library to
16864 # depend on `.', always an invalid library. This was fixed in
16865 # development snapshots of GCC prior to 3.0.
16866 case $host_os in
16867 aix4 | aix4.[01] | aix4.[01].*)
16868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16869 echo ' yes '
16870 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16871 :
16872 else
16873 can_build_shared=no
16874 fi
16875 ;;
16876 esac
16877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16878 # soname into executable. Probably we can add versioning support to
16879 # collect2, so additional links can be useful in future.
16880 if test "$aix_use_runtimelinking" = yes; then
16881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16882 # instead of lib<name>.a to let people know that these are not
16883 # typical AIX shared libraries.
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885 else
16886 # We preserve .a as extension for shared libraries through AIX4.2
16887 # and later when we are not doing run time linking.
16888 library_names_spec='${libname}${release}.a $libname.a'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 fi
16891 shlibpath_var=LIBPATH
16892 fi
16893 ;;
16894
16895 amigaos*)
16896 library_names_spec='$libname.ixlibrary $libname.a'
16897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16898 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'
16899 ;;
16900
16901 beos*)
16902 library_names_spec='${libname}${shared_ext}'
16903 dynamic_linker="$host_os ld.so"
16904 shlibpath_var=LIBRARY_PATH
16905 ;;
16906
16907 bsdi[45]*)
16908 version_type=linux
16909 need_version=no
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16916 # the default ld.so.conf also contains /usr/contrib/lib and
16917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16918 # libtool to hard-code these into programs
16919 ;;
16920
16921 cygwin* | mingw* | pw32*)
16922 version_type=windows
16923 shrext_cmds=".dll"
16924 need_version=no
16925 need_lib_prefix=no
16926
16927 case $GCC,$host_os in
16928 yes,cygwin* | yes,mingw* | yes,pw32*)
16929 library_names_spec='$libname.dll.a'
16930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16931 postinstall_cmds='base_file=`basename \${file}`~
16932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16933 dldir=$destdir/`dirname \$dlpath`~
16934 test -d \$dldir || mkdir -p \$dldir~
16935 $install_prog $dir/$dlname \$dldir/$dlname~
16936 chmod a+x \$dldir/$dlname'
16937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16938 dlpath=$dir/\$dldll~
16939 $rm \$dlpath'
16940 shlibpath_overrides_runpath=yes
16941
16942 case $host_os in
16943 cygwin*)
16944 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16946 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16947 ;;
16948 mingw*)
16949 # MinGW DLLs use traditional 'lib' prefix
16950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16952 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16953 # It is most probably a Windows format PATH printed by
16954 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16955 # path with ; separators, and with drive letters. We can handle the
16956 # drive letters (cygwin fileutils understands them), so leave them,
16957 # especially as we might pass files found there to a mingw objdump,
16958 # which wouldn't understand a cygwinified path. Ahh.
16959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16960 else
16961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16962 fi
16963 ;;
16964 pw32*)
16965 # pw32 DLLs use 'pw' prefix rather than 'lib'
16966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16967 ;;
16968 esac
16969 ;;
16970
16971 *)
16972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16973 ;;
16974 esac
16975 dynamic_linker='Win32 ld.exe'
16976 # FIXME: first we should search . and the directory the executable is in
16977 shlibpath_var=PATH
16978 ;;
16979
16980 darwin* | rhapsody*)
16981 dynamic_linker="$host_os dyld"
16982 version_type=darwin
16983 need_lib_prefix=no
16984 need_version=no
16985 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16986 soname_spec='${libname}${release}${major}$shared_ext'
16987 shlibpath_overrides_runpath=yes
16988 shlibpath_var=DYLD_LIBRARY_PATH
16989 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16990
16991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16992 ;;
16993
16994 dgux*)
16995 version_type=linux
16996 need_lib_prefix=no
16997 need_version=no
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 shlibpath_var=LD_LIBRARY_PATH
17001 ;;
17002
17003 freebsd1*)
17004 dynamic_linker=no
17005 ;;
17006
17007 freebsd* | dragonfly*)
17008 # DragonFly does not have aout. When/if they implement a new
17009 # versioning mechanism, adjust this.
17010 if test -x /usr/bin/objformat; then
17011 objformat=`/usr/bin/objformat`
17012 else
17013 case $host_os in
17014 freebsd[123]*) objformat=aout ;;
17015 *) objformat=elf ;;
17016 esac
17017 fi
17018 version_type=freebsd-$objformat
17019 case $version_type in
17020 freebsd-elf*)
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17022 need_version=no
17023 need_lib_prefix=no
17024 ;;
17025 freebsd-*)
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17027 need_version=yes
17028 ;;
17029 esac
17030 shlibpath_var=LD_LIBRARY_PATH
17031 case $host_os in
17032 freebsd2*)
17033 shlibpath_overrides_runpath=yes
17034 ;;
17035 freebsd3.[01]* | freebsdelf3.[01]*)
17036 shlibpath_overrides_runpath=yes
17037 hardcode_into_libs=yes
17038 ;;
17039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17041 shlibpath_overrides_runpath=no
17042 hardcode_into_libs=yes
17043 ;;
17044 *) # from 4.6 on, and DragonFly
17045 shlibpath_overrides_runpath=yes
17046 hardcode_into_libs=yes
17047 ;;
17048 esac
17049 ;;
17050
17051 gnu*)
17052 version_type=linux
17053 need_lib_prefix=no
17054 need_version=no
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 hardcode_into_libs=yes
17059 ;;
17060
17061 hpux9* | hpux10* | hpux11*)
17062 # Give a soname corresponding to the major version so that dld.sl refuses to
17063 # link against other versions.
17064 version_type=sunos
17065 need_lib_prefix=no
17066 need_version=no
17067 case $host_cpu in
17068 ia64*)
17069 shrext_cmds='.so'
17070 hardcode_into_libs=yes
17071 dynamic_linker="$host_os dld.so"
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 if test "X$HPUX_IA64_MODE" = X32; then
17077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17078 else
17079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17080 fi
17081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17082 ;;
17083 hppa*64*)
17084 shrext_cmds='.sl'
17085 hardcode_into_libs=yes
17086 dynamic_linker="$host_os dld.sl"
17087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17093 ;;
17094 *)
17095 shrext_cmds='.sl'
17096 dynamic_linker="$host_os dld.sl"
17097 shlibpath_var=SHLIB_PATH
17098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 ;;
17102 esac
17103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17104 postinstall_cmds='chmod 555 $lib'
17105 ;;
17106
17107 interix[3-9]*)
17108 version_type=linux
17109 need_lib_prefix=no
17110 need_version=no
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17114 shlibpath_var=LD_LIBRARY_PATH
17115 shlibpath_overrides_runpath=no
17116 hardcode_into_libs=yes
17117 ;;
17118
17119 irix5* | irix6* | nonstopux*)
17120 case $host_os in
17121 nonstopux*) version_type=nonstopux ;;
17122 *)
17123 if test "$lt_cv_prog_gnu_ld" = yes; then
17124 version_type=linux
17125 else
17126 version_type=irix
17127 fi ;;
17128 esac
17129 need_lib_prefix=no
17130 need_version=no
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17133 case $host_os in
17134 irix5* | nonstopux*)
17135 libsuff= shlibsuff=
17136 ;;
17137 *)
17138 case $LD in # libtool.m4 will add one of these switches to LD
17139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17140 libsuff= shlibsuff= libmagic=32-bit;;
17141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17142 libsuff=32 shlibsuff=N32 libmagic=N32;;
17143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17145 *) libsuff= shlibsuff= libmagic=never-match;;
17146 esac
17147 ;;
17148 esac
17149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17150 shlibpath_overrides_runpath=no
17151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17153 hardcode_into_libs=yes
17154 ;;
17155
17156 # No shared lib support for Linux oldld, aout, or coff.
17157 linux*oldld* | linux*aout* | linux*coff*)
17158 dynamic_linker=no
17159 ;;
17160
17161 # This must be Linux ELF.
17162 linux* | k*bsd*-gnu)
17163 version_type=linux
17164 need_lib_prefix=no
17165 need_version=no
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 shlibpath_overrides_runpath=no
17171 # This implies no fast_install, which is unacceptable.
17172 # Some rework will be needed to allow for fast_install
17173 # before this can be enabled.
17174 hardcode_into_libs=yes
17175
17176 # Append ld.so.conf contents to the search path
17177 if test -f /etc/ld.so.conf; then
17178 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' ' '`
17179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17180 fi
17181
17182 # We used to test for /lib/ld.so.1 and disable shared libraries on
17183 # powerpc, because MkLinux only supported shared libraries with the
17184 # GNU dynamic linker. Since this was broken with cross compilers,
17185 # most powerpc-linux boxes support dynamic linking these days and
17186 # people can always --disable-shared, the test was removed, and we
17187 # assume the GNU/Linux dynamic linker is in use.
17188 dynamic_linker='GNU/Linux ld.so'
17189 ;;
17190
17191 netbsdelf*-gnu)
17192 version_type=linux
17193 need_lib_prefix=no
17194 need_version=no
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17196 soname_spec='${libname}${release}${shared_ext}$major'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 shlibpath_overrides_runpath=no
17199 hardcode_into_libs=yes
17200 dynamic_linker='NetBSD ld.elf_so'
17201 ;;
17202
17203 netbsd*)
17204 version_type=sunos
17205 need_lib_prefix=no
17206 need_version=no
17207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17210 dynamic_linker='NetBSD (a.out) ld.so'
17211 else
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 dynamic_linker='NetBSD ld.elf_so'
17215 fi
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=yes
17218 hardcode_into_libs=yes
17219 ;;
17220
17221 newsos6)
17222 version_type=linux
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224 shlibpath_var=LD_LIBRARY_PATH
17225 shlibpath_overrides_runpath=yes
17226 ;;
17227
17228 nto-qnx*)
17229 version_type=linux
17230 need_lib_prefix=no
17231 need_version=no
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=yes
17236 ;;
17237
17238 openbsd*)
17239 version_type=sunos
17240 sys_lib_dlsearch_path_spec="/usr/lib"
17241 need_lib_prefix=no
17242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17243 case $host_os in
17244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17245 *) need_version=no ;;
17246 esac
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17251 case $host_os in
17252 openbsd2.[89] | openbsd2.[89].*)
17253 shlibpath_overrides_runpath=no
17254 ;;
17255 *)
17256 shlibpath_overrides_runpath=yes
17257 ;;
17258 esac
17259 else
17260 shlibpath_overrides_runpath=yes
17261 fi
17262 ;;
17263
17264 os2*)
17265 libname_spec='$name'
17266 shrext_cmds=".dll"
17267 need_lib_prefix=no
17268 library_names_spec='$libname${shared_ext} $libname.a'
17269 dynamic_linker='OS/2 ld.exe'
17270 shlibpath_var=LIBPATH
17271 ;;
17272
17273 osf3* | osf4* | osf5*)
17274 version_type=osf
17275 need_lib_prefix=no
17276 need_version=no
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17282 ;;
17283
17284 rdos*)
17285 dynamic_linker=no
17286 ;;
17287
17288 solaris*)
17289 version_type=linux
17290 need_lib_prefix=no
17291 need_version=no
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=yes
17296 hardcode_into_libs=yes
17297 # ldd complains unless libraries are executable
17298 postinstall_cmds='chmod +x $lib'
17299 ;;
17300
17301 sunos4*)
17302 version_type=sunos
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath=yes
17307 if test "$with_gnu_ld" = yes; then
17308 need_lib_prefix=no
17309 fi
17310 need_version=yes
17311 ;;
17312
17313 sysv4 | sysv4.3*)
17314 version_type=linux
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 case $host_vendor in
17319 sni)
17320 shlibpath_overrides_runpath=no
17321 need_lib_prefix=no
17322 export_dynamic_flag_spec='${wl}-Blargedynsym'
17323 runpath_var=LD_RUN_PATH
17324 ;;
17325 siemens)
17326 need_lib_prefix=no
17327 ;;
17328 motorola)
17329 need_lib_prefix=no
17330 need_version=no
17331 shlibpath_overrides_runpath=no
17332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17333 ;;
17334 esac
17335 ;;
17336
17337 sysv4*MP*)
17338 if test -d /usr/nec ;then
17339 version_type=linux
17340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17341 soname_spec='$libname${shared_ext}.$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 fi
17344 ;;
17345
17346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17347 version_type=freebsd-elf
17348 need_lib_prefix=no
17349 need_version=no
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 shlibpath_var=LD_LIBRARY_PATH
17353 hardcode_into_libs=yes
17354 if test "$with_gnu_ld" = yes; then
17355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17356 shlibpath_overrides_runpath=no
17357 else
17358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17359 shlibpath_overrides_runpath=yes
17360 case $host_os in
17361 sco3.2v5*)
17362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17363 ;;
17364 esac
17365 fi
17366 sys_lib_dlsearch_path_spec='/usr/lib'
17367 ;;
17368
17369 uts4*)
17370 version_type=linux
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 shlibpath_var=LD_LIBRARY_PATH
17374 ;;
17375
17376 *)
17377 dynamic_linker=no
17378 ;;
17379 esac
17380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17381 echo "${ECHO_T}$dynamic_linker" >&6; }
17382 test "$dynamic_linker" = no && can_build_shared=no
17383
17384 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17388 fi
17389
17390 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17391 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17395 fi
17396
17397 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17398
17399 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17400 if test "$GCC" = yes; then
17401 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17402 fi
17403
17404 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17405 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17406 hardcode_action_F77=
17407 if test -n "$hardcode_libdir_flag_spec_F77" || \
17408 test -n "$runpath_var_F77" || \
17409 test "X$hardcode_automatic_F77" = "Xyes" ; then
17410
17411 # We can hardcode non-existant directories.
17412 if test "$hardcode_direct_F77" != no &&
17413 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17414 # have to relink, otherwise we might link with an installed library
17415 # when we should be linking with a yet-to-be-installed one
17416 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17417 test "$hardcode_minus_L_F77" != no; then
17418 # Linking always hardcodes the temporary library directory.
17419 hardcode_action_F77=relink
17420 else
17421 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17422 hardcode_action_F77=immediate
17423 fi
17424 else
17425 # We cannot hardcode anything, or else we can only hardcode existing
17426 # directories.
17427 hardcode_action_F77=unsupported
17428 fi
17429 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17430 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17431
17432 if test "$hardcode_action_F77" = relink; then
17433 # Fast installation is not supported
17434 enable_fast_install=no
17435 elif test "$shlibpath_overrides_runpath" = yes ||
17436 test "$enable_shared" = no; then
17437 # Fast installation is not necessary
17438 enable_fast_install=needless
17439 fi
17440
17441
17442 # The else clause should only fire when bootstrapping the
17443 # libtool distribution, otherwise you forgot to ship ltmain.sh
17444 # with your package, and you will get complaints that there are
17445 # no rules to generate ltmain.sh.
17446 if test -f "$ltmain"; then
17447 # See if we are running on zsh, and set the options which allow our commands through
17448 # without removal of \ escapes.
17449 if test -n "${ZSH_VERSION+set}" ; then
17450 setopt NO_GLOB_SUBST
17451 fi
17452 # Now quote all the things that may contain metacharacters while being
17453 # careful not to overquote the AC_SUBSTed values. We take copies of the
17454 # variables and quote the copies for generation of the libtool script.
17455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17456 SED SHELL STRIP \
17457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17459 deplibs_check_method reload_flag reload_cmds need_locks \
17460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17461 lt_cv_sys_global_symbol_to_c_name_address \
17462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17463 old_postinstall_cmds old_postuninstall_cmds \
17464 compiler_F77 \
17465 CC_F77 \
17466 LD_F77 \
17467 lt_prog_compiler_wl_F77 \
17468 lt_prog_compiler_pic_F77 \
17469 lt_prog_compiler_static_F77 \
17470 lt_prog_compiler_no_builtin_flag_F77 \
17471 export_dynamic_flag_spec_F77 \
17472 thread_safe_flag_spec_F77 \
17473 whole_archive_flag_spec_F77 \
17474 enable_shared_with_static_runtimes_F77 \
17475 old_archive_cmds_F77 \
17476 old_archive_from_new_cmds_F77 \
17477 predep_objects_F77 \
17478 postdep_objects_F77 \
17479 predeps_F77 \
17480 postdeps_F77 \
17481 compiler_lib_search_path_F77 \
17482 compiler_lib_search_dirs_F77 \
17483 archive_cmds_F77 \
17484 archive_expsym_cmds_F77 \
17485 postinstall_cmds_F77 \
17486 postuninstall_cmds_F77 \
17487 old_archive_from_expsyms_cmds_F77 \
17488 allow_undefined_flag_F77 \
17489 no_undefined_flag_F77 \
17490 export_symbols_cmds_F77 \
17491 hardcode_libdir_flag_spec_F77 \
17492 hardcode_libdir_flag_spec_ld_F77 \
17493 hardcode_libdir_separator_F77 \
17494 hardcode_automatic_F77 \
17495 module_cmds_F77 \
17496 module_expsym_cmds_F77 \
17497 lt_cv_prog_compiler_c_o_F77 \
17498 fix_srcfile_path_F77 \
17499 exclude_expsyms_F77 \
17500 include_expsyms_F77; do
17501
17502 case $var in
17503 old_archive_cmds_F77 | \
17504 old_archive_from_new_cmds_F77 | \
17505 archive_cmds_F77 | \
17506 archive_expsym_cmds_F77 | \
17507 module_cmds_F77 | \
17508 module_expsym_cmds_F77 | \
17509 old_archive_from_expsyms_cmds_F77 | \
17510 export_symbols_cmds_F77 | \
17511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17512 postinstall_cmds | postuninstall_cmds | \
17513 old_postinstall_cmds | old_postuninstall_cmds | \
17514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17515 # Double-quote double-evaled strings.
17516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17517 ;;
17518 *)
17519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17520 ;;
17521 esac
17522 done
17523
17524 case $lt_echo in
17525 *'\$0 --fallback-echo"')
17526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17527 ;;
17528 esac
17529
17530 cfgfile="$ofile"
17531
17532 cat <<__EOF__ >> "$cfgfile"
17533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17534
17535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17536
17537 # Shell to use when invoking shell scripts.
17538 SHELL=$lt_SHELL
17539
17540 # Whether or not to build shared libraries.
17541 build_libtool_libs=$enable_shared
17542
17543 # Whether or not to build static libraries.
17544 build_old_libs=$enable_static
17545
17546 # Whether or not to add -lc for building shared libraries.
17547 build_libtool_need_lc=$archive_cmds_need_lc_F77
17548
17549 # Whether or not to disallow shared libs when runtime libs are static
17550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17551
17552 # Whether or not to optimize for fast installation.
17553 fast_install=$enable_fast_install
17554
17555 # The host system.
17556 host_alias=$host_alias
17557 host=$host
17558 host_os=$host_os
17559
17560 # The build system.
17561 build_alias=$build_alias
17562 build=$build
17563 build_os=$build_os
17564
17565 # An echo program that does not interpret backslashes.
17566 echo=$lt_echo
17567
17568 # The archiver.
17569 AR=$lt_AR
17570 AR_FLAGS=$lt_AR_FLAGS
17571
17572 # A C compiler.
17573 LTCC=$lt_LTCC
17574
17575 # LTCC compiler flags.
17576 LTCFLAGS=$lt_LTCFLAGS
17577
17578 # A language-specific compiler.
17579 CC=$lt_compiler_F77
17580
17581 # Is the compiler the GNU C compiler?
17582 with_gcc=$GCC_F77
17583
17584 # An ERE matcher.
17585 EGREP=$lt_EGREP
17586
17587 # The linker used to build libraries.
17588 LD=$lt_LD_F77
17589
17590 # Whether we need hard or soft links.
17591 LN_S=$lt_LN_S
17592
17593 # A BSD-compatible nm program.
17594 NM=$lt_NM
17595
17596 # A symbol stripping program
17597 STRIP=$lt_STRIP
17598
17599 # Used to examine libraries when file_magic_cmd begins "file"
17600 MAGIC_CMD=$MAGIC_CMD
17601
17602 # Used on cygwin: DLL creation program.
17603 DLLTOOL="$DLLTOOL"
17604
17605 # Used on cygwin: object dumper.
17606 OBJDUMP="$OBJDUMP"
17607
17608 # Used on cygwin: assembler.
17609 AS="$AS"
17610
17611 # The name of the directory that contains temporary libtool files.
17612 objdir=$objdir
17613
17614 # How to create reloadable object files.
17615 reload_flag=$lt_reload_flag
17616 reload_cmds=$lt_reload_cmds
17617
17618 # How to pass a linker flag through the compiler.
17619 wl=$lt_lt_prog_compiler_wl_F77
17620
17621 # Object file suffix (normally "o").
17622 objext="$ac_objext"
17623
17624 # Old archive suffix (normally "a").
17625 libext="$libext"
17626
17627 # Shared library suffix (normally ".so").
17628 shrext_cmds='$shrext_cmds'
17629
17630 # Executable file suffix (normally "").
17631 exeext="$exeext"
17632
17633 # Additional compiler flags for building library objects.
17634 pic_flag=$lt_lt_prog_compiler_pic_F77
17635 pic_mode=$pic_mode
17636
17637 # What is the maximum length of a command?
17638 max_cmd_len=$lt_cv_sys_max_cmd_len
17639
17640 # Does compiler simultaneously support -c and -o options?
17641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17642
17643 # Must we lock files when doing compilation?
17644 need_locks=$lt_need_locks
17645
17646 # Do we need the lib prefix for modules?
17647 need_lib_prefix=$need_lib_prefix
17648
17649 # Do we need a version for libraries?
17650 need_version=$need_version
17651
17652 # Whether dlopen is supported.
17653 dlopen_support=$enable_dlopen
17654
17655 # Whether dlopen of programs is supported.
17656 dlopen_self=$enable_dlopen_self
17657
17658 # Whether dlopen of statically linked programs is supported.
17659 dlopen_self_static=$enable_dlopen_self_static
17660
17661 # Compiler flag to prevent dynamic linking.
17662 link_static_flag=$lt_lt_prog_compiler_static_F77
17663
17664 # Compiler flag to turn off builtin functions.
17665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17666
17667 # Compiler flag to allow reflexive dlopens.
17668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17669
17670 # Compiler flag to generate shared objects directly from archives.
17671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17672
17673 # Compiler flag to generate thread-safe objects.
17674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17675
17676 # Library versioning type.
17677 version_type=$version_type
17678
17679 # Format of library name prefix.
17680 libname_spec=$lt_libname_spec
17681
17682 # List of archive names. First name is the real one, the rest are links.
17683 # The last name is the one that the linker finds with -lNAME.
17684 library_names_spec=$lt_library_names_spec
17685
17686 # The coded name of the library, if different from the real name.
17687 soname_spec=$lt_soname_spec
17688
17689 # Commands used to build and install an old-style archive.
17690 RANLIB=$lt_RANLIB
17691 old_archive_cmds=$lt_old_archive_cmds_F77
17692 old_postinstall_cmds=$lt_old_postinstall_cmds
17693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17694
17695 # Create an old-style archive from a shared archive.
17696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17697
17698 # Create a temporary old-style archive to link instead of a shared archive.
17699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17700
17701 # Commands used to build and install a shared archive.
17702 archive_cmds=$lt_archive_cmds_F77
17703 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17704 postinstall_cmds=$lt_postinstall_cmds
17705 postuninstall_cmds=$lt_postuninstall_cmds
17706
17707 # Commands used to build a loadable module (assumed same as above if empty)
17708 module_cmds=$lt_module_cmds_F77
17709 module_expsym_cmds=$lt_module_expsym_cmds_F77
17710
17711 # Commands to strip libraries.
17712 old_striplib=$lt_old_striplib
17713 striplib=$lt_striplib
17714
17715 # Dependencies to place before the objects being linked to create a
17716 # shared library.
17717 predep_objects=$lt_predep_objects_F77
17718
17719 # Dependencies to place after the objects being linked to create a
17720 # shared library.
17721 postdep_objects=$lt_postdep_objects_F77
17722
17723 # Dependencies to place before the objects being linked to create a
17724 # shared library.
17725 predeps=$lt_predeps_F77
17726
17727 # Dependencies to place after the objects being linked to create a
17728 # shared library.
17729 postdeps=$lt_postdeps_F77
17730
17731 # The directories searched by this compiler when creating a shared
17732 # library
17733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17734
17735 # The library search path used internally by the compiler when linking
17736 # a shared library.
17737 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17738
17739 # Method to check whether dependent libraries are shared objects.
17740 deplibs_check_method=$lt_deplibs_check_method
17741
17742 # Command to use when deplibs_check_method == file_magic.
17743 file_magic_cmd=$lt_file_magic_cmd
17744
17745 # Flag that allows shared libraries with undefined symbols to be built.
17746 allow_undefined_flag=$lt_allow_undefined_flag_F77
17747
17748 # Flag that forces no undefined symbols.
17749 no_undefined_flag=$lt_no_undefined_flag_F77
17750
17751 # Commands used to finish a libtool library installation in a directory.
17752 finish_cmds=$lt_finish_cmds
17753
17754 # Same as above, but a single script fragment to be evaled but not shown.
17755 finish_eval=$lt_finish_eval
17756
17757 # Take the output of nm and produce a listing of raw symbols and C names.
17758 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17759
17760 # Transform the output of nm in a proper C declaration
17761 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17762
17763 # Transform the output of nm in a C name address pair
17764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17765
17766 # This is the shared library runtime path variable.
17767 runpath_var=$runpath_var
17768
17769 # This is the shared library path variable.
17770 shlibpath_var=$shlibpath_var
17771
17772 # Is shlibpath searched before the hard-coded library search path?
17773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17774
17775 # How to hardcode a shared library path into an executable.
17776 hardcode_action=$hardcode_action_F77
17777
17778 # Whether we should hardcode library paths into libraries.
17779 hardcode_into_libs=$hardcode_into_libs
17780
17781 # Flag to hardcode \$libdir into a binary during linking.
17782 # This must work even if \$libdir does not exist.
17783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17784
17785 # If ld is used when linking, flag to hardcode \$libdir into
17786 # a binary during linking. This must work even if \$libdir does
17787 # not exist.
17788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17789
17790 # Whether we need a single -rpath flag with a separated argument.
17791 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17792
17793 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17794 # resulting binary.
17795 hardcode_direct=$hardcode_direct_F77
17796
17797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17798 # resulting binary.
17799 hardcode_minus_L=$hardcode_minus_L_F77
17800
17801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17802 # the resulting binary.
17803 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17804
17805 # Set to yes if building a shared library automatically hardcodes DIR into the library
17806 # and all subsequent libraries and executables linked against it.
17807 hardcode_automatic=$hardcode_automatic_F77
17808
17809 # Variables whose values should be saved in libtool wrapper scripts and
17810 # restored at relink time.
17811 variables_saved_for_relink="$variables_saved_for_relink"
17812
17813 # Whether libtool must link a program against all its dependency libraries.
17814 link_all_deplibs=$link_all_deplibs_F77
17815
17816 # Compile-time system search path for libraries
17817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17818
17819 # Run-time system search path for libraries
17820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17821
17822 # Fix the shell variable \$srcfile for the compiler.
17823 fix_srcfile_path=$lt_fix_srcfile_path
17824
17825 # Set to yes if exported symbols are required.
17826 always_export_symbols=$always_export_symbols_F77
17827
17828 # The commands to list exported symbols.
17829 export_symbols_cmds=$lt_export_symbols_cmds_F77
17830
17831 # The commands to extract the exported symbol list from a shared archive.
17832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17833
17834 # Symbols that should not be listed in the preloaded symbols.
17835 exclude_expsyms=$lt_exclude_expsyms_F77
17836
17837 # Symbols that must always be exported.
17838 include_expsyms=$lt_include_expsyms_F77
17839
17840 # ### END LIBTOOL TAG CONFIG: $tagname
17841
17842 __EOF__
17843
17844
17845 else
17846 # If there is no Makefile yet, we rely on a make rule to execute
17847 # `config.status --recheck' to rerun these tests and create the
17848 # libtool script then.
17849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17850 if test -f "$ltmain_in"; then
17851 test -f Makefile && make "$ltmain"
17852 fi
17853 fi
17854
17855
17856 ac_ext=c
17857 ac_cpp='$CPP $CPPFLAGS'
17858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17861
17862 CC="$lt_save_CC"
17863
17864 else
17865 tagname=""
17866 fi
17867 ;;
17868
17869 GCJ)
17870 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17871
17872
17873 # Source file extension for Java test sources.
17874 ac_ext=java
17875
17876 # Object file extension for compiled Java test sources.
17877 objext=o
17878 objext_GCJ=$objext
17879
17880 # Code to be used in simple compile tests
17881 lt_simple_compile_test_code="class foo {}"
17882
17883 # Code to be used in simple link tests
17884 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17885
17886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17887
17888 # If no C compiler was specified, use CC.
17889 LTCC=${LTCC-"$CC"}
17890
17891 # If no C compiler flags were specified, use CFLAGS.
17892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17893
17894 # Allow CC to be a program name with arguments.
17895 compiler=$CC
17896
17897
17898 # save warnings/boilerplate of simple test code
17899 ac_outfile=conftest.$ac_objext
17900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17902 _lt_compiler_boilerplate=`cat conftest.err`
17903 $rm conftest*
17904
17905 ac_outfile=conftest.$ac_objext
17906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17908 _lt_linker_boilerplate=`cat conftest.err`
17909 $rm -r conftest*
17910
17911
17912 # Allow CC to be a program name with arguments.
17913 lt_save_CC="$CC"
17914 CC=${GCJ-"gcj"}
17915 compiler=$CC
17916 compiler_GCJ=$CC
17917 for cc_temp in $compiler""; do
17918 case $cc_temp in
17919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17921 \-*) ;;
17922 *) break;;
17923 esac
17924 done
17925 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17926
17927
17928 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17929 archive_cmds_need_lc_GCJ=no
17930
17931 old_archive_cmds_GCJ=$old_archive_cmds
17932
17933
17934 lt_prog_compiler_no_builtin_flag_GCJ=
17935
17936 if test "$GCC" = yes; then
17937 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17938
17939
17940 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17941 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17942 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17944 else
17945 lt_cv_prog_compiler_rtti_exceptions=no
17946 ac_outfile=conftest.$ac_objext
17947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17948 lt_compiler_flag="-fno-rtti -fno-exceptions"
17949 # Insert the option either (1) after the last *FLAGS variable, or
17950 # (2) before a word containing "conftest.", or (3) at the end.
17951 # Note that $ac_compile itself does not contain backslashes and begins
17952 # with a dollar sign (not a hyphen), so the echo should work correctly.
17953 # The option is referenced via a variable to avoid confusing sed.
17954 lt_compile=`echo "$ac_compile" | $SED \
17955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17957 -e 's:$: $lt_compiler_flag:'`
17958 (eval echo "\"\$as_me:17958: $lt_compile\"" >&5)
17959 (eval "$lt_compile" 2>conftest.err)
17960 ac_status=$?
17961 cat conftest.err >&5
17962 echo "$as_me:17962: \$? = $ac_status" >&5
17963 if (exit $ac_status) && test -s "$ac_outfile"; then
17964 # The compiler can only warn and ignore the option if not recognized
17965 # So say no if there are warnings other than the usual output.
17966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17969 lt_cv_prog_compiler_rtti_exceptions=yes
17970 fi
17971 fi
17972 $rm conftest*
17973
17974 fi
17975 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17976 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17977
17978 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17979 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17980 else
17981 :
17982 fi
17983
17984 fi
17985
17986 lt_prog_compiler_wl_GCJ=
17987 lt_prog_compiler_pic_GCJ=
17988 lt_prog_compiler_static_GCJ=
17989
17990 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17991 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17992
17993 if test "$GCC" = yes; then
17994 lt_prog_compiler_wl_GCJ='-Wl,'
17995 lt_prog_compiler_static_GCJ='-static'
17996
17997 case $host_os in
17998 aix*)
17999 # All AIX code is PIC.
18000 if test "$host_cpu" = ia64; then
18001 # AIX 5 now supports IA64 processor
18002 lt_prog_compiler_static_GCJ='-Bstatic'
18003 fi
18004 ;;
18005
18006 amigaos*)
18007 # FIXME: we need at least 68020 code to build shared libraries, but
18008 # adding the `-m68020' flag to GCC prevents building anything better,
18009 # like `-m68040'.
18010 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18011 ;;
18012
18013 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18014 # PIC is the default for these OSes.
18015 ;;
18016
18017 mingw* | cygwin* | pw32* | os2*)
18018 # This hack is so that the source file can tell whether it is being
18019 # built for inclusion in a dll (and should export symbols for example).
18020 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18021 # (--disable-auto-import) libraries
18022
18023 ;;
18024
18025 darwin* | rhapsody*)
18026 # PIC is the default on this platform
18027 # Common symbols not allowed in MH_DYLIB files
18028 lt_prog_compiler_pic_GCJ='-fno-common'
18029 ;;
18030
18031 interix[3-9]*)
18032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18033 # Instead, we relocate shared libraries at runtime.
18034 ;;
18035
18036 msdosdjgpp*)
18037 # Just because we use GCC doesn't mean we suddenly get shared libraries
18038 # on systems that don't support them.
18039 lt_prog_compiler_can_build_shared_GCJ=no
18040 enable_shared=no
18041 ;;
18042
18043 sysv4*MP*)
18044 if test -d /usr/nec; then
18045 lt_prog_compiler_pic_GCJ=-Kconform_pic
18046 fi
18047 ;;
18048
18049 hpux*)
18050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18051 # not for PA HP-UX.
18052 case $host_cpu in
18053 hppa*64*|ia64*)
18054 # +Z the default
18055 ;;
18056 *)
18057 lt_prog_compiler_pic_GCJ='-fPIC'
18058 ;;
18059 esac
18060 ;;
18061
18062 *)
18063 lt_prog_compiler_pic_GCJ='-fPIC'
18064 ;;
18065 esac
18066 else
18067 # PORTME Check for flag to pass linker flags through the system compiler.
18068 case $host_os in
18069 aix*)
18070 lt_prog_compiler_wl_GCJ='-Wl,'
18071 if test "$host_cpu" = ia64; then
18072 # AIX 5 now supports IA64 processor
18073 lt_prog_compiler_static_GCJ='-Bstatic'
18074 else
18075 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18076 fi
18077 ;;
18078 darwin*)
18079 # PIC is the default on this platform
18080 # Common symbols not allowed in MH_DYLIB files
18081 case $cc_basename in
18082 xlc*)
18083 lt_prog_compiler_pic_GCJ='-qnocommon'
18084 lt_prog_compiler_wl_GCJ='-Wl,'
18085 ;;
18086 esac
18087 ;;
18088
18089 mingw* | cygwin* | pw32* | os2*)
18090 # This hack is so that the source file can tell whether it is being
18091 # built for inclusion in a dll (and should export symbols for example).
18092
18093 ;;
18094
18095 hpux9* | hpux10* | hpux11*)
18096 lt_prog_compiler_wl_GCJ='-Wl,'
18097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18098 # not for PA HP-UX.
18099 case $host_cpu in
18100 hppa*64*|ia64*)
18101 # +Z the default
18102 ;;
18103 *)
18104 lt_prog_compiler_pic_GCJ='+Z'
18105 ;;
18106 esac
18107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18108 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18109 ;;
18110
18111 irix5* | irix6* | nonstopux*)
18112 lt_prog_compiler_wl_GCJ='-Wl,'
18113 # PIC (with -KPIC) is the default.
18114 lt_prog_compiler_static_GCJ='-non_shared'
18115 ;;
18116
18117 newsos6)
18118 lt_prog_compiler_pic_GCJ='-KPIC'
18119 lt_prog_compiler_static_GCJ='-Bstatic'
18120 ;;
18121
18122 linux* | k*bsd*-gnu)
18123 case $cc_basename in
18124 icc* | ecc*)
18125 lt_prog_compiler_wl_GCJ='-Wl,'
18126 lt_prog_compiler_pic_GCJ='-KPIC'
18127 lt_prog_compiler_static_GCJ='-static'
18128 ;;
18129 pgcc* | pgf77* | pgf90* | pgf95*)
18130 # Portland Group compilers (*not* the Pentium gcc compiler,
18131 # which looks to be a dead project)
18132 lt_prog_compiler_wl_GCJ='-Wl,'
18133 lt_prog_compiler_pic_GCJ='-fpic'
18134 lt_prog_compiler_static_GCJ='-Bstatic'
18135 ;;
18136 ccc*)
18137 lt_prog_compiler_wl_GCJ='-Wl,'
18138 # All Alpha code is PIC.
18139 lt_prog_compiler_static_GCJ='-non_shared'
18140 ;;
18141 *)
18142 case `$CC -V 2>&1 | sed 5q` in
18143 *Sun\ C*)
18144 # Sun C 5.9
18145 lt_prog_compiler_pic_GCJ='-KPIC'
18146 lt_prog_compiler_static_GCJ='-Bstatic'
18147 lt_prog_compiler_wl_GCJ='-Wl,'
18148 ;;
18149 *Sun\ F*)
18150 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18151 lt_prog_compiler_pic_GCJ='-KPIC'
18152 lt_prog_compiler_static_GCJ='-Bstatic'
18153 lt_prog_compiler_wl_GCJ=''
18154 ;;
18155 esac
18156 ;;
18157 esac
18158 ;;
18159
18160 osf3* | osf4* | osf5*)
18161 lt_prog_compiler_wl_GCJ='-Wl,'
18162 # All OSF/1 code is PIC.
18163 lt_prog_compiler_static_GCJ='-non_shared'
18164 ;;
18165
18166 rdos*)
18167 lt_prog_compiler_static_GCJ='-non_shared'
18168 ;;
18169
18170 solaris*)
18171 lt_prog_compiler_pic_GCJ='-KPIC'
18172 lt_prog_compiler_static_GCJ='-Bstatic'
18173 case $cc_basename in
18174 f77* | f90* | f95*)
18175 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18176 *)
18177 lt_prog_compiler_wl_GCJ='-Wl,';;
18178 esac
18179 ;;
18180
18181 sunos4*)
18182 lt_prog_compiler_wl_GCJ='-Qoption ld '
18183 lt_prog_compiler_pic_GCJ='-PIC'
18184 lt_prog_compiler_static_GCJ='-Bstatic'
18185 ;;
18186
18187 sysv4 | sysv4.2uw2* | sysv4.3*)
18188 lt_prog_compiler_wl_GCJ='-Wl,'
18189 lt_prog_compiler_pic_GCJ='-KPIC'
18190 lt_prog_compiler_static_GCJ='-Bstatic'
18191 ;;
18192
18193 sysv4*MP*)
18194 if test -d /usr/nec ;then
18195 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18196 lt_prog_compiler_static_GCJ='-Bstatic'
18197 fi
18198 ;;
18199
18200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18201 lt_prog_compiler_wl_GCJ='-Wl,'
18202 lt_prog_compiler_pic_GCJ='-KPIC'
18203 lt_prog_compiler_static_GCJ='-Bstatic'
18204 ;;
18205
18206 unicos*)
18207 lt_prog_compiler_wl_GCJ='-Wl,'
18208 lt_prog_compiler_can_build_shared_GCJ=no
18209 ;;
18210
18211 uts4*)
18212 lt_prog_compiler_pic_GCJ='-pic'
18213 lt_prog_compiler_static_GCJ='-Bstatic'
18214 ;;
18215
18216 *)
18217 lt_prog_compiler_can_build_shared_GCJ=no
18218 ;;
18219 esac
18220 fi
18221
18222 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18223 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18224
18225 #
18226 # Check to make sure the PIC flag actually works.
18227 #
18228 if test -n "$lt_prog_compiler_pic_GCJ"; then
18229
18230 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18231 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18232 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235 lt_cv_prog_compiler_pic_works_GCJ=no
18236 ac_outfile=conftest.$ac_objext
18237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18238 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18239 # Insert the option either (1) after the last *FLAGS variable, or
18240 # (2) before a word containing "conftest.", or (3) at the end.
18241 # Note that $ac_compile itself does not contain backslashes and begins
18242 # with a dollar sign (not a hyphen), so the echo should work correctly.
18243 # The option is referenced via a variable to avoid confusing sed.
18244 lt_compile=`echo "$ac_compile" | $SED \
18245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18247 -e 's:$: $lt_compiler_flag:'`
18248 (eval echo "\"\$as_me:18248: $lt_compile\"" >&5)
18249 (eval "$lt_compile" 2>conftest.err)
18250 ac_status=$?
18251 cat conftest.err >&5
18252 echo "$as_me:18252: \$? = $ac_status" >&5
18253 if (exit $ac_status) && test -s "$ac_outfile"; then
18254 # The compiler can only warn and ignore the option if not recognized
18255 # So say no if there are warnings other than the usual output.
18256 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18259 lt_cv_prog_compiler_pic_works_GCJ=yes
18260 fi
18261 fi
18262 $rm conftest*
18263
18264 fi
18265 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18266 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18267
18268 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18269 case $lt_prog_compiler_pic_GCJ in
18270 "" | " "*) ;;
18271 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18272 esac
18273 else
18274 lt_prog_compiler_pic_GCJ=
18275 lt_prog_compiler_can_build_shared_GCJ=no
18276 fi
18277
18278 fi
18279 case $host_os in
18280 # For platforms which do not support PIC, -DPIC is meaningless:
18281 *djgpp*)
18282 lt_prog_compiler_pic_GCJ=
18283 ;;
18284 *)
18285 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18286 ;;
18287 esac
18288
18289 #
18290 # Check to make sure the static flag actually works.
18291 #
18292 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18293 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18294 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18295 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 else
18298 lt_cv_prog_compiler_static_works_GCJ=no
18299 save_LDFLAGS="$LDFLAGS"
18300 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18301 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18302 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18303 # The linker can only warn and ignore the option if not recognized
18304 # So say no if there are warnings
18305 if test -s conftest.err; then
18306 # Append any errors to the config.log.
18307 cat conftest.err 1>&5
18308 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18310 if diff conftest.exp conftest.er2 >/dev/null; then
18311 lt_cv_prog_compiler_static_works_GCJ=yes
18312 fi
18313 else
18314 lt_cv_prog_compiler_static_works_GCJ=yes
18315 fi
18316 fi
18317 $rm -r conftest*
18318 LDFLAGS="$save_LDFLAGS"
18319
18320 fi
18321 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18322 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18323
18324 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18325 :
18326 else
18327 lt_prog_compiler_static_GCJ=
18328 fi
18329
18330
18331 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18332 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18333 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336 lt_cv_prog_compiler_c_o_GCJ=no
18337 $rm -r conftest 2>/dev/null
18338 mkdir conftest
18339 cd conftest
18340 mkdir out
18341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18342
18343 lt_compiler_flag="-o out/conftest2.$ac_objext"
18344 # Insert the option either (1) after the last *FLAGS variable, or
18345 # (2) before a word containing "conftest.", or (3) at the end.
18346 # Note that $ac_compile itself does not contain backslashes and begins
18347 # with a dollar sign (not a hyphen), so the echo should work correctly.
18348 lt_compile=`echo "$ac_compile" | $SED \
18349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18351 -e 's:$: $lt_compiler_flag:'`
18352 (eval echo "\"\$as_me:18352: $lt_compile\"" >&5)
18353 (eval "$lt_compile" 2>out/conftest.err)
18354 ac_status=$?
18355 cat out/conftest.err >&5
18356 echo "$as_me:18356: \$? = $ac_status" >&5
18357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18358 then
18359 # The compiler can only warn and ignore the option if not recognized
18360 # So say no if there are warnings
18361 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18364 lt_cv_prog_compiler_c_o_GCJ=yes
18365 fi
18366 fi
18367 chmod u+w . 2>&5
18368 $rm conftest*
18369 # SGI C++ compiler will create directory out/ii_files/ for
18370 # template instantiation
18371 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18372 $rm out/* && rmdir out
18373 cd ..
18374 rmdir conftest
18375 $rm conftest*
18376
18377 fi
18378 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18379 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18380
18381
18382 hard_links="nottested"
18383 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18384 # do not overwrite the value of need_locks provided by the user
18385 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18386 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18387 hard_links=yes
18388 $rm conftest*
18389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18390 touch conftest.a
18391 ln conftest.a conftest.b 2>&5 || hard_links=no
18392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18393 { echo "$as_me:$LINENO: result: $hard_links" >&5
18394 echo "${ECHO_T}$hard_links" >&6; }
18395 if test "$hard_links" = no; then
18396 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18397 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18398 need_locks=warn
18399 fi
18400 else
18401 need_locks=no
18402 fi
18403
18404 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18405 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18406
18407 runpath_var=
18408 allow_undefined_flag_GCJ=
18409 enable_shared_with_static_runtimes_GCJ=no
18410 archive_cmds_GCJ=
18411 archive_expsym_cmds_GCJ=
18412 old_archive_From_new_cmds_GCJ=
18413 old_archive_from_expsyms_cmds_GCJ=
18414 export_dynamic_flag_spec_GCJ=
18415 whole_archive_flag_spec_GCJ=
18416 thread_safe_flag_spec_GCJ=
18417 hardcode_libdir_flag_spec_GCJ=
18418 hardcode_libdir_flag_spec_ld_GCJ=
18419 hardcode_libdir_separator_GCJ=
18420 hardcode_direct_GCJ=no
18421 hardcode_minus_L_GCJ=no
18422 hardcode_shlibpath_var_GCJ=unsupported
18423 link_all_deplibs_GCJ=unknown
18424 hardcode_automatic_GCJ=no
18425 module_cmds_GCJ=
18426 module_expsym_cmds_GCJ=
18427 always_export_symbols_GCJ=no
18428 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18429 # include_expsyms should be a list of space-separated symbols to be *always*
18430 # included in the symbol list
18431 include_expsyms_GCJ=
18432 # exclude_expsyms can be an extended regexp of symbols to exclude
18433 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18434 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18435 # as well as any symbol that contains `d'.
18436 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18437 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18438 # platforms (ab)use it in PIC code, but their linkers get confused if
18439 # the symbol is explicitly referenced. Since portable code cannot
18440 # rely on this symbol name, it's probably fine to never include it in
18441 # preloaded symbol tables.
18442 # Exclude shared library initialization/finalization symbols.
18443 extract_expsyms_cmds=
18444 # Just being paranoid about ensuring that cc_basename is set.
18445 for cc_temp in $compiler""; do
18446 case $cc_temp in
18447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18449 \-*) ;;
18450 *) break;;
18451 esac
18452 done
18453 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18454
18455 case $host_os in
18456 cygwin* | mingw* | pw32*)
18457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18458 # When not using gcc, we currently assume that we are using
18459 # Microsoft Visual C++.
18460 if test "$GCC" != yes; then
18461 with_gnu_ld=no
18462 fi
18463 ;;
18464 interix*)
18465 # we just hope/assume this is gcc and not c89 (= MSVC++)
18466 with_gnu_ld=yes
18467 ;;
18468 openbsd*)
18469 with_gnu_ld=no
18470 ;;
18471 esac
18472
18473 ld_shlibs_GCJ=yes
18474 if test "$with_gnu_ld" = yes; then
18475 # If archive_cmds runs LD, not CC, wlarc should be empty
18476 wlarc='${wl}'
18477
18478 # Set some defaults for GNU ld with shared library support. These
18479 # are reset later if shared libraries are not supported. Putting them
18480 # here allows them to be overridden if necessary.
18481 runpath_var=LD_RUN_PATH
18482 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18483 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18484 # ancient GNU ld didn't support --whole-archive et. al.
18485 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18486 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18487 else
18488 whole_archive_flag_spec_GCJ=
18489 fi
18490 supports_anon_versioning=no
18491 case `$LD -v 2>/dev/null` in
18492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18495 *\ 2.11.*) ;; # other 2.11 versions
18496 *) supports_anon_versioning=yes ;;
18497 esac
18498
18499 # See if GNU ld supports shared libraries.
18500 case $host_os in
18501 aix[3-9]*)
18502 # On AIX/PPC, the GNU linker is very broken
18503 if test "$host_cpu" != ia64; then
18504 ld_shlibs_GCJ=no
18505 cat <<EOF 1>&2
18506
18507 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18508 *** to be unable to reliably create shared libraries on AIX.
18509 *** Therefore, libtool is disabling shared libraries support. If you
18510 *** really care for shared libraries, you may want to modify your PATH
18511 *** so that a non-GNU linker is found, and then restart.
18512
18513 EOF
18514 fi
18515 ;;
18516
18517 amigaos*)
18518 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)'
18519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18520 hardcode_minus_L_GCJ=yes
18521
18522 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18523 # that the semantics of dynamic libraries on AmigaOS, at least up
18524 # to version 4, is to share data among multiple programs linked
18525 # with the same dynamic library. Since this doesn't match the
18526 # behavior of shared libraries on other platforms, we can't use
18527 # them.
18528 ld_shlibs_GCJ=no
18529 ;;
18530
18531 beos*)
18532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18533 allow_undefined_flag_GCJ=unsupported
18534 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18535 # support --undefined. This deserves some investigation. FIXME
18536 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537 else
18538 ld_shlibs_GCJ=no
18539 fi
18540 ;;
18541
18542 cygwin* | mingw* | pw32*)
18543 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18544 # as there is no search path for DLLs.
18545 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18546 allow_undefined_flag_GCJ=unsupported
18547 always_export_symbols_GCJ=no
18548 enable_shared_with_static_runtimes_GCJ=yes
18549 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18550
18551 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18552 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18553 # If the export-symbols file already is a .def file (1st line
18554 # is EXPORTS), use it as is; otherwise, prepend...
18555 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18556 cp $export_symbols $output_objdir/$soname.def;
18557 else
18558 echo EXPORTS > $output_objdir/$soname.def;
18559 cat $export_symbols >> $output_objdir/$soname.def;
18560 fi~
18561 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18562 else
18563 ld_shlibs_GCJ=no
18564 fi
18565 ;;
18566
18567 interix[3-9]*)
18568 hardcode_direct_GCJ=no
18569 hardcode_shlibpath_var_GCJ=no
18570 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18571 export_dynamic_flag_spec_GCJ='${wl}-E'
18572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18573 # Instead, shared libraries are loaded at an image base (0x10000000 by
18574 # default) and relocated if they conflict, which is a slow very memory
18575 # consuming and fragmenting process. To avoid this, we pick a random,
18576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18578 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'
18579 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'
18580 ;;
18581
18582 gnu* | linux* | k*bsd*-gnu)
18583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18584 tmp_addflag=
18585 case $cc_basename,$host_cpu in
18586 pgcc*) # Portland Group C compiler
18587 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'
18588 tmp_addflag=' $pic_flag'
18589 ;;
18590 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18591 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'
18592 tmp_addflag=' $pic_flag -Mnomain' ;;
18593 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18594 tmp_addflag=' -i_dynamic' ;;
18595 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18596 tmp_addflag=' -i_dynamic -nofor_main' ;;
18597 ifc* | ifort*) # Intel Fortran compiler
18598 tmp_addflag=' -nofor_main' ;;
18599 esac
18600 case `$CC -V 2>&1 | sed 5q` in
18601 *Sun\ C*) # Sun C 5.9
18602 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'
18603 tmp_sharedflag='-G' ;;
18604 *Sun\ F*) # Sun Fortran 8.3
18605 tmp_sharedflag='-G' ;;
18606 *)
18607 tmp_sharedflag='-shared' ;;
18608 esac
18609 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610
18611 if test $supports_anon_versioning = yes; then
18612 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18614 $echo "local: *; };" >> $output_objdir/$libname.ver~
18615 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18616 fi
18617 link_all_deplibs_GCJ=no
18618 else
18619 ld_shlibs_GCJ=no
18620 fi
18621 ;;
18622
18623 netbsd* | netbsdelf*-gnu)
18624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18625 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18626 wlarc=
18627 else
18628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18630 fi
18631 ;;
18632
18633 solaris*)
18634 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18635 ld_shlibs_GCJ=no
18636 cat <<EOF 1>&2
18637
18638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18639 *** create shared libraries on Solaris systems. Therefore, libtool
18640 *** is disabling shared libraries support. We urge you to upgrade GNU
18641 *** binutils to release 2.9.1 or newer. Another option is to modify
18642 *** your PATH or compiler configuration so that the native linker is
18643 *** used, and then restart.
18644
18645 EOF
18646 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18649 else
18650 ld_shlibs_GCJ=no
18651 fi
18652 ;;
18653
18654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18655 case `$LD -v 2>&1` in
18656 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18657 ld_shlibs_GCJ=no
18658 cat <<_LT_EOF 1>&2
18659
18660 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18661 *** reliably create shared libraries on SCO systems. Therefore, libtool
18662 *** is disabling shared libraries support. We urge you to upgrade GNU
18663 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18664 *** your PATH or compiler configuration so that the native linker is
18665 *** used, and then restart.
18666
18667 _LT_EOF
18668 ;;
18669 *)
18670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18671 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18674 else
18675 ld_shlibs_GCJ=no
18676 fi
18677 ;;
18678 esac
18679 ;;
18680
18681 sunos4*)
18682 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18683 wlarc=
18684 hardcode_direct_GCJ=yes
18685 hardcode_shlibpath_var_GCJ=no
18686 ;;
18687
18688 *)
18689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18690 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18691 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18692 else
18693 ld_shlibs_GCJ=no
18694 fi
18695 ;;
18696 esac
18697
18698 if test "$ld_shlibs_GCJ" = no; then
18699 runpath_var=
18700 hardcode_libdir_flag_spec_GCJ=
18701 export_dynamic_flag_spec_GCJ=
18702 whole_archive_flag_spec_GCJ=
18703 fi
18704 else
18705 # PORTME fill in a description of your system's linker (not GNU ld)
18706 case $host_os in
18707 aix3*)
18708 allow_undefined_flag_GCJ=unsupported
18709 always_export_symbols_GCJ=yes
18710 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'
18711 # Note: this linker hardcodes the directories in LIBPATH if there
18712 # are no directories specified by -L.
18713 hardcode_minus_L_GCJ=yes
18714 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18715 # Neither direct hardcoding nor static linking is supported with a
18716 # broken collect2.
18717 hardcode_direct_GCJ=unsupported
18718 fi
18719 ;;
18720
18721 aix[4-9]*)
18722 if test "$host_cpu" = ia64; then
18723 # On IA64, the linker does run time linking by default, so we don't
18724 # have to do anything special.
18725 aix_use_runtimelinking=no
18726 exp_sym_flag='-Bexport'
18727 no_entry_flag=""
18728 else
18729 # If we're using GNU nm, then we don't want the "-C" option.
18730 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18731 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18732 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'
18733 else
18734 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'
18735 fi
18736 aix_use_runtimelinking=no
18737
18738 # Test if we are trying to use run time linking or normal
18739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18740 # need to do runtime linking.
18741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18742 for ld_flag in $LDFLAGS; do
18743 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18744 aix_use_runtimelinking=yes
18745 break
18746 fi
18747 done
18748 ;;
18749 esac
18750
18751 exp_sym_flag='-bexport'
18752 no_entry_flag='-bnoentry'
18753 fi
18754
18755 # When large executables or shared objects are built, AIX ld can
18756 # have problems creating the table of contents. If linking a library
18757 # or program results in "error TOC overflow" add -mminimal-toc to
18758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18760
18761 archive_cmds_GCJ=''
18762 hardcode_direct_GCJ=yes
18763 hardcode_libdir_separator_GCJ=':'
18764 link_all_deplibs_GCJ=yes
18765
18766 if test "$GCC" = yes; then
18767 case $host_os in aix4.[012]|aix4.[012].*)
18768 # We only want to do this on AIX 4.2 and lower, the check
18769 # below for broken collect2 doesn't work under 4.3+
18770 collect2name=`${CC} -print-prog-name=collect2`
18771 if test -f "$collect2name" && \
18772 strings "$collect2name" | grep resolve_lib_name >/dev/null
18773 then
18774 # We have reworked collect2
18775 :
18776 else
18777 # We have old collect2
18778 hardcode_direct_GCJ=unsupported
18779 # It fails to find uninstalled libraries when the uninstalled
18780 # path is not listed in the libpath. Setting hardcode_minus_L
18781 # to unsupported forces relinking
18782 hardcode_minus_L_GCJ=yes
18783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18784 hardcode_libdir_separator_GCJ=
18785 fi
18786 ;;
18787 esac
18788 shared_flag='-shared'
18789 if test "$aix_use_runtimelinking" = yes; then
18790 shared_flag="$shared_flag "'${wl}-G'
18791 fi
18792 else
18793 # not using gcc
18794 if test "$host_cpu" = ia64; then
18795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18796 # chokes on -Wl,-G. The following line is correct:
18797 shared_flag='-G'
18798 else
18799 if test "$aix_use_runtimelinking" = yes; then
18800 shared_flag='${wl}-G'
18801 else
18802 shared_flag='${wl}-bM:SRE'
18803 fi
18804 fi
18805 fi
18806
18807 # It seems that -bexpall does not export symbols beginning with
18808 # underscore (_), so it is better to generate a list of symbols to export.
18809 always_export_symbols_GCJ=yes
18810 if test "$aix_use_runtimelinking" = yes; then
18811 # Warning - without using the other runtime loading flags (-brtl),
18812 # -berok will link without error, but may produce a broken library.
18813 allow_undefined_flag_GCJ='-berok'
18814 # Determine the default libpath from the value encoded in an empty executable.
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821
18822 int
18823 main ()
18824 {
18825
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_link") 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest$ac_exeext &&
18847 $as_test_x conftest$ac_exeext; then
18848
18849 lt_aix_libpath_sed='
18850 /Import File Strings/,/^$/ {
18851 /^0/ {
18852 s/^0 *\(.*\)$/\1/
18853 p
18854 }
18855 }'
18856 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18857 # Check for a 64-bit object if we didn't find anything.
18858 if test -z "$aix_libpath"; then
18859 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18860 fi
18861 else
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865
18866 fi
18867
18868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18869 conftest$ac_exeext conftest.$ac_ext
18870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18871
18872 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18873 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"
18874 else
18875 if test "$host_cpu" = ia64; then
18876 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18877 allow_undefined_flag_GCJ="-z nodefs"
18878 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"
18879 else
18880 # Determine the default libpath from the value encoded in an empty executable.
18881 cat >conftest.$ac_ext <<_ACEOF
18882 /* confdefs.h. */
18883 _ACEOF
18884 cat confdefs.h >>conftest.$ac_ext
18885 cat >>conftest.$ac_ext <<_ACEOF
18886 /* end confdefs.h. */
18887
18888 int
18889 main ()
18890 {
18891
18892 ;
18893 return 0;
18894 }
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } && {
18910 test -z "$ac_c_werror_flag" ||
18911 test ! -s conftest.err
18912 } && test -s conftest$ac_exeext &&
18913 $as_test_x conftest$ac_exeext; then
18914
18915 lt_aix_libpath_sed='
18916 /Import File Strings/,/^$/ {
18917 /^0/ {
18918 s/^0 *\(.*\)$/\1/
18919 p
18920 }
18921 }'
18922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18923 # Check for a 64-bit object if we didn't find anything.
18924 if test -z "$aix_libpath"; then
18925 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18926 fi
18927 else
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931
18932 fi
18933
18934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18935 conftest$ac_exeext conftest.$ac_ext
18936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18937
18938 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18939 # Warning - without using the other run time loading flags,
18940 # -berok will link without error, but may produce a broken library.
18941 no_undefined_flag_GCJ=' ${wl}-bernotok'
18942 allow_undefined_flag_GCJ=' ${wl}-berok'
18943 # Exported symbols can be pulled into shared objects from archives
18944 whole_archive_flag_spec_GCJ='$convenience'
18945 archive_cmds_need_lc_GCJ=yes
18946 # This is similar to how AIX traditionally builds its shared libraries.
18947 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'
18948 fi
18949 fi
18950 ;;
18951
18952 amigaos*)
18953 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)'
18954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18955 hardcode_minus_L_GCJ=yes
18956 # see comment about different semantics on the GNU ld section
18957 ld_shlibs_GCJ=no
18958 ;;
18959
18960 bsdi[45]*)
18961 export_dynamic_flag_spec_GCJ=-rdynamic
18962 ;;
18963
18964 cygwin* | mingw* | pw32*)
18965 # When not using gcc, we currently assume that we are using
18966 # Microsoft Visual C++.
18967 # hardcode_libdir_flag_spec is actually meaningless, as there is
18968 # no search path for DLLs.
18969 hardcode_libdir_flag_spec_GCJ=' '
18970 allow_undefined_flag_GCJ=unsupported
18971 # Tell ltmain to make .lib files, not .a files.
18972 libext=lib
18973 # Tell ltmain to make .dll files, not .so files.
18974 shrext_cmds=".dll"
18975 # FIXME: Setting linknames here is a bad hack.
18976 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18977 # The linker will automatically build a .lib file if we build a DLL.
18978 old_archive_From_new_cmds_GCJ='true'
18979 # FIXME: Should let the user specify the lib program.
18980 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18981 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18982 enable_shared_with_static_runtimes_GCJ=yes
18983 ;;
18984
18985 darwin* | rhapsody*)
18986 case $host_os in
18987 rhapsody* | darwin1.[012])
18988 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18989 ;;
18990 *) # Darwin 1.3 on
18991 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18992 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18993 else
18994 case ${MACOSX_DEPLOYMENT_TARGET} in
18995 10.[012])
18996 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18997 ;;
18998 10.*)
18999 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19000 ;;
19001 esac
19002 fi
19003 ;;
19004 esac
19005 archive_cmds_need_lc_GCJ=no
19006 hardcode_direct_GCJ=no
19007 hardcode_automatic_GCJ=yes
19008 hardcode_shlibpath_var_GCJ=unsupported
19009 whole_archive_flag_spec_GCJ=''
19010 link_all_deplibs_GCJ=yes
19011 if test "$GCC" = yes ; then
19012 output_verbose_link_cmd='echo'
19013 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19014 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19015 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19016 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19017 else
19018 case $cc_basename in
19019 xlc*)
19020 output_verbose_link_cmd='echo'
19021 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19022 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19023 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19024 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}'
19025 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}'
19026 ;;
19027 *)
19028 ld_shlibs_GCJ=no
19029 ;;
19030 esac
19031 fi
19032 ;;
19033
19034 dgux*)
19035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19037 hardcode_shlibpath_var_GCJ=no
19038 ;;
19039
19040 freebsd1*)
19041 ld_shlibs_GCJ=no
19042 ;;
19043
19044 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19045 # support. Future versions do this automatically, but an explicit c++rt0.o
19046 # does not break anything, and helps significantly (at the cost of a little
19047 # extra space).
19048 freebsd2.2*)
19049 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19051 hardcode_direct_GCJ=yes
19052 hardcode_shlibpath_var_GCJ=no
19053 ;;
19054
19055 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19056 freebsd2*)
19057 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19058 hardcode_direct_GCJ=yes
19059 hardcode_minus_L_GCJ=yes
19060 hardcode_shlibpath_var_GCJ=no
19061 ;;
19062
19063 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19064 freebsd* | dragonfly*)
19065 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19066 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19067 hardcode_direct_GCJ=yes
19068 hardcode_shlibpath_var_GCJ=no
19069 ;;
19070
19071 hpux9*)
19072 if test "$GCC" = yes; then
19073 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'
19074 else
19075 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'
19076 fi
19077 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19078 hardcode_libdir_separator_GCJ=:
19079 hardcode_direct_GCJ=yes
19080
19081 # hardcode_minus_L: Not really in the search PATH,
19082 # but as the default location of the library.
19083 hardcode_minus_L_GCJ=yes
19084 export_dynamic_flag_spec_GCJ='${wl}-E'
19085 ;;
19086
19087 hpux10*)
19088 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19089 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19090 else
19091 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19092 fi
19093 if test "$with_gnu_ld" = no; then
19094 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19095 hardcode_libdir_separator_GCJ=:
19096
19097 hardcode_direct_GCJ=yes
19098 export_dynamic_flag_spec_GCJ='${wl}-E'
19099
19100 # hardcode_minus_L: Not really in the search PATH,
19101 # but as the default location of the library.
19102 hardcode_minus_L_GCJ=yes
19103 fi
19104 ;;
19105
19106 hpux11*)
19107 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19108 case $host_cpu in
19109 hppa*64*)
19110 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19111 ;;
19112 ia64*)
19113 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19114 ;;
19115 *)
19116 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19117 ;;
19118 esac
19119 else
19120 case $host_cpu in
19121 hppa*64*)
19122 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19123 ;;
19124 ia64*)
19125 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19126 ;;
19127 *)
19128 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19129 ;;
19130 esac
19131 fi
19132 if test "$with_gnu_ld" = no; then
19133 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19134 hardcode_libdir_separator_GCJ=:
19135
19136 case $host_cpu in
19137 hppa*64*|ia64*)
19138 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19139 hardcode_direct_GCJ=no
19140 hardcode_shlibpath_var_GCJ=no
19141 ;;
19142 *)
19143 hardcode_direct_GCJ=yes
19144 export_dynamic_flag_spec_GCJ='${wl}-E'
19145
19146 # hardcode_minus_L: Not really in the search PATH,
19147 # but as the default location of the library.
19148 hardcode_minus_L_GCJ=yes
19149 ;;
19150 esac
19151 fi
19152 ;;
19153
19154 irix5* | irix6* | nonstopux*)
19155 if test "$GCC" = yes; then
19156 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'
19157 else
19158 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'
19159 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19160 fi
19161 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19162 hardcode_libdir_separator_GCJ=:
19163 link_all_deplibs_GCJ=yes
19164 ;;
19165
19166 netbsd* | netbsdelf*-gnu)
19167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19168 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19169 else
19170 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19171 fi
19172 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19173 hardcode_direct_GCJ=yes
19174 hardcode_shlibpath_var_GCJ=no
19175 ;;
19176
19177 newsos6)
19178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19179 hardcode_direct_GCJ=yes
19180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19181 hardcode_libdir_separator_GCJ=:
19182 hardcode_shlibpath_var_GCJ=no
19183 ;;
19184
19185 openbsd*)
19186 if test -f /usr/libexec/ld.so; then
19187 hardcode_direct_GCJ=yes
19188 hardcode_shlibpath_var_GCJ=no
19189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19190 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19191 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19193 export_dynamic_flag_spec_GCJ='${wl}-E'
19194 else
19195 case $host_os in
19196 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19197 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19198 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19199 ;;
19200 *)
19201 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19202 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19203 ;;
19204 esac
19205 fi
19206 else
19207 ld_shlibs_GCJ=no
19208 fi
19209 ;;
19210
19211 os2*)
19212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19213 hardcode_minus_L_GCJ=yes
19214 allow_undefined_flag_GCJ=unsupported
19215 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'
19216 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19217 ;;
19218
19219 osf3*)
19220 if test "$GCC" = yes; then
19221 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19222 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'
19223 else
19224 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19225 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'
19226 fi
19227 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19228 hardcode_libdir_separator_GCJ=:
19229 ;;
19230
19231 osf4* | osf5*) # as osf3* with the addition of -msym flag
19232 if test "$GCC" = yes; then
19233 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19234 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'
19235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19236 else
19237 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19238 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'
19239 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~
19240 $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'
19241
19242 # Both c and cxx compiler support -rpath directly
19243 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19244 fi
19245 hardcode_libdir_separator_GCJ=:
19246 ;;
19247
19248 solaris*)
19249 no_undefined_flag_GCJ=' -z text'
19250 if test "$GCC" = yes; then
19251 wlarc='${wl}'
19252 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19253 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19254 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19255 else
19256 wlarc=''
19257 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19258 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19259 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19260 fi
19261 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19262 hardcode_shlibpath_var_GCJ=no
19263 case $host_os in
19264 solaris2.[0-5] | solaris2.[0-5].*) ;;
19265 *)
19266 # The compiler driver will combine and reorder linker options,
19267 # but understands `-z linker_flag'. GCC discards it without `$wl',
19268 # but is careful enough not to reorder.
19269 # Supported since Solaris 2.6 (maybe 2.5.1?)
19270 if test "$GCC" = yes; then
19271 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19272 else
19273 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19274 fi
19275 ;;
19276 esac
19277 link_all_deplibs_GCJ=yes
19278 ;;
19279
19280 sunos4*)
19281 if test "x$host_vendor" = xsequent; then
19282 # Use $CC to link under sequent, because it throws in some extra .o
19283 # files that make .init and .fini sections work.
19284 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19285 else
19286 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19287 fi
19288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19289 hardcode_direct_GCJ=yes
19290 hardcode_minus_L_GCJ=yes
19291 hardcode_shlibpath_var_GCJ=no
19292 ;;
19293
19294 sysv4)
19295 case $host_vendor in
19296 sni)
19297 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19298 hardcode_direct_GCJ=yes # is this really true???
19299 ;;
19300 siemens)
19301 ## LD is ld it makes a PLAMLIB
19302 ## CC just makes a GrossModule.
19303 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19304 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19305 hardcode_direct_GCJ=no
19306 ;;
19307 motorola)
19308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19309 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19310 ;;
19311 esac
19312 runpath_var='LD_RUN_PATH'
19313 hardcode_shlibpath_var_GCJ=no
19314 ;;
19315
19316 sysv4.3*)
19317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19318 hardcode_shlibpath_var_GCJ=no
19319 export_dynamic_flag_spec_GCJ='-Bexport'
19320 ;;
19321
19322 sysv4*MP*)
19323 if test -d /usr/nec; then
19324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19325 hardcode_shlibpath_var_GCJ=no
19326 runpath_var=LD_RUN_PATH
19327 hardcode_runpath_var=yes
19328 ld_shlibs_GCJ=yes
19329 fi
19330 ;;
19331
19332 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19333 no_undefined_flag_GCJ='${wl}-z,text'
19334 archive_cmds_need_lc_GCJ=no
19335 hardcode_shlibpath_var_GCJ=no
19336 runpath_var='LD_RUN_PATH'
19337
19338 if test "$GCC" = yes; then
19339 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19340 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19341 else
19342 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19343 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19344 fi
19345 ;;
19346
19347 sysv5* | sco3.2v5* | sco5v6*)
19348 # Note: We can NOT use -z defs as we might desire, because we do not
19349 # link with -lc, and that would cause any symbols used from libc to
19350 # always be unresolved, which means just about no library would
19351 # ever link correctly. If we're not using GNU ld we use -z text
19352 # though, which does catch some bad symbols but isn't as heavy-handed
19353 # as -z defs.
19354 no_undefined_flag_GCJ='${wl}-z,text'
19355 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19356 archive_cmds_need_lc_GCJ=no
19357 hardcode_shlibpath_var_GCJ=no
19358 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19359 hardcode_libdir_separator_GCJ=':'
19360 link_all_deplibs_GCJ=yes
19361 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19362 runpath_var='LD_RUN_PATH'
19363
19364 if test "$GCC" = yes; then
19365 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19366 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19367 else
19368 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19369 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19370 fi
19371 ;;
19372
19373 uts4*)
19374 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19375 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19376 hardcode_shlibpath_var_GCJ=no
19377 ;;
19378
19379 *)
19380 ld_shlibs_GCJ=no
19381 ;;
19382 esac
19383 fi
19384
19385 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19386 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19387 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19388
19389 #
19390 # Do we need to explicitly link libc?
19391 #
19392 case "x$archive_cmds_need_lc_GCJ" in
19393 x|xyes)
19394 # Assume -lc should be added
19395 archive_cmds_need_lc_GCJ=yes
19396
19397 if test "$enable_shared" = yes && test "$GCC" = yes; then
19398 case $archive_cmds_GCJ in
19399 *'~'*)
19400 # FIXME: we may have to deal with multi-command sequences.
19401 ;;
19402 '$CC '*)
19403 # Test whether the compiler implicitly links with -lc since on some
19404 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19405 # to ld, don't add -lc before -lgcc.
19406 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19407 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19408 $rm conftest*
19409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19410
19411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19412 (eval $ac_compile) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } 2>conftest.err; then
19416 soname=conftest
19417 lib=conftest
19418 libobjs=conftest.$ac_objext
19419 deplibs=
19420 wl=$lt_prog_compiler_wl_GCJ
19421 pic_flag=$lt_prog_compiler_pic_GCJ
19422 compiler_flags=-v
19423 linker_flags=-v
19424 verstring=
19425 output_objdir=.
19426 libname=conftest
19427 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19428 allow_undefined_flag_GCJ=
19429 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19430 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }
19434 then
19435 archive_cmds_need_lc_GCJ=no
19436 else
19437 archive_cmds_need_lc_GCJ=yes
19438 fi
19439 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19440 else
19441 cat conftest.err 1>&5
19442 fi
19443 $rm conftest*
19444 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19445 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19446 ;;
19447 esac
19448 fi
19449 ;;
19450 esac
19451
19452 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19453 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19454 library_names_spec=
19455 libname_spec='lib$name'
19456 soname_spec=
19457 shrext_cmds=".so"
19458 postinstall_cmds=
19459 postuninstall_cmds=
19460 finish_cmds=
19461 finish_eval=
19462 shlibpath_var=
19463 shlibpath_overrides_runpath=unknown
19464 version_type=none
19465 dynamic_linker="$host_os ld.so"
19466 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19467
19468 need_lib_prefix=unknown
19469 hardcode_into_libs=no
19470
19471 # when you set need_version to no, make sure it does not cause -set_version
19472 # flags to be left without arguments
19473 need_version=unknown
19474
19475 case $host_os in
19476 aix3*)
19477 version_type=linux
19478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19479 shlibpath_var=LIBPATH
19480
19481 # AIX 3 has no versioning support, so we append a major version to the name.
19482 soname_spec='${libname}${release}${shared_ext}$major'
19483 ;;
19484
19485 aix[4-9]*)
19486 version_type=linux
19487 need_lib_prefix=no
19488 need_version=no
19489 hardcode_into_libs=yes
19490 if test "$host_cpu" = ia64; then
19491 # AIX 5 supports IA64
19492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19493 shlibpath_var=LD_LIBRARY_PATH
19494 else
19495 # With GCC up to 2.95.x, collect2 would create an import file
19496 # for dependence libraries. The import file would start with
19497 # the line `#! .'. This would cause the generated library to
19498 # depend on `.', always an invalid library. This was fixed in
19499 # development snapshots of GCC prior to 3.0.
19500 case $host_os in
19501 aix4 | aix4.[01] | aix4.[01].*)
19502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19503 echo ' yes '
19504 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19505 :
19506 else
19507 can_build_shared=no
19508 fi
19509 ;;
19510 esac
19511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19512 # soname into executable. Probably we can add versioning support to
19513 # collect2, so additional links can be useful in future.
19514 if test "$aix_use_runtimelinking" = yes; then
19515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19516 # instead of lib<name>.a to let people know that these are not
19517 # typical AIX shared libraries.
19518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19519 else
19520 # We preserve .a as extension for shared libraries through AIX4.2
19521 # and later when we are not doing run time linking.
19522 library_names_spec='${libname}${release}.a $libname.a'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 fi
19525 shlibpath_var=LIBPATH
19526 fi
19527 ;;
19528
19529 amigaos*)
19530 library_names_spec='$libname.ixlibrary $libname.a'
19531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19532 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'
19533 ;;
19534
19535 beos*)
19536 library_names_spec='${libname}${shared_ext}'
19537 dynamic_linker="$host_os ld.so"
19538 shlibpath_var=LIBRARY_PATH
19539 ;;
19540
19541 bsdi[45]*)
19542 version_type=linux
19543 need_version=no
19544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 soname_spec='${libname}${release}${shared_ext}$major'
19546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19547 shlibpath_var=LD_LIBRARY_PATH
19548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19550 # the default ld.so.conf also contains /usr/contrib/lib and
19551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19552 # libtool to hard-code these into programs
19553 ;;
19554
19555 cygwin* | mingw* | pw32*)
19556 version_type=windows
19557 shrext_cmds=".dll"
19558 need_version=no
19559 need_lib_prefix=no
19560
19561 case $GCC,$host_os in
19562 yes,cygwin* | yes,mingw* | yes,pw32*)
19563 library_names_spec='$libname.dll.a'
19564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19565 postinstall_cmds='base_file=`basename \${file}`~
19566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19567 dldir=$destdir/`dirname \$dlpath`~
19568 test -d \$dldir || mkdir -p \$dldir~
19569 $install_prog $dir/$dlname \$dldir/$dlname~
19570 chmod a+x \$dldir/$dlname'
19571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19572 dlpath=$dir/\$dldll~
19573 $rm \$dlpath'
19574 shlibpath_overrides_runpath=yes
19575
19576 case $host_os in
19577 cygwin*)
19578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19580 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19581 ;;
19582 mingw*)
19583 # MinGW DLLs use traditional 'lib' prefix
19584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19586 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19587 # It is most probably a Windows format PATH printed by
19588 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19589 # path with ; separators, and with drive letters. We can handle the
19590 # drive letters (cygwin fileutils understands them), so leave them,
19591 # especially as we might pass files found there to a mingw objdump,
19592 # which wouldn't understand a cygwinified path. Ahh.
19593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19594 else
19595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19596 fi
19597 ;;
19598 pw32*)
19599 # pw32 DLLs use 'pw' prefix rather than 'lib'
19600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19601 ;;
19602 esac
19603 ;;
19604
19605 *)
19606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19607 ;;
19608 esac
19609 dynamic_linker='Win32 ld.exe'
19610 # FIXME: first we should search . and the directory the executable is in
19611 shlibpath_var=PATH
19612 ;;
19613
19614 darwin* | rhapsody*)
19615 dynamic_linker="$host_os dyld"
19616 version_type=darwin
19617 need_lib_prefix=no
19618 need_version=no
19619 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19620 soname_spec='${libname}${release}${major}$shared_ext'
19621 shlibpath_overrides_runpath=yes
19622 shlibpath_var=DYLD_LIBRARY_PATH
19623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19624
19625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19626 ;;
19627
19628 dgux*)
19629 version_type=linux
19630 need_lib_prefix=no
19631 need_version=no
19632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19633 soname_spec='${libname}${release}${shared_ext}$major'
19634 shlibpath_var=LD_LIBRARY_PATH
19635 ;;
19636
19637 freebsd1*)
19638 dynamic_linker=no
19639 ;;
19640
19641 freebsd* | dragonfly*)
19642 # DragonFly does not have aout. When/if they implement a new
19643 # versioning mechanism, adjust this.
19644 if test -x /usr/bin/objformat; then
19645 objformat=`/usr/bin/objformat`
19646 else
19647 case $host_os in
19648 freebsd[123]*) objformat=aout ;;
19649 *) objformat=elf ;;
19650 esac
19651 fi
19652 version_type=freebsd-$objformat
19653 case $version_type in
19654 freebsd-elf*)
19655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19656 need_version=no
19657 need_lib_prefix=no
19658 ;;
19659 freebsd-*)
19660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19661 need_version=yes
19662 ;;
19663 esac
19664 shlibpath_var=LD_LIBRARY_PATH
19665 case $host_os in
19666 freebsd2*)
19667 shlibpath_overrides_runpath=yes
19668 ;;
19669 freebsd3.[01]* | freebsdelf3.[01]*)
19670 shlibpath_overrides_runpath=yes
19671 hardcode_into_libs=yes
19672 ;;
19673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19675 shlibpath_overrides_runpath=no
19676 hardcode_into_libs=yes
19677 ;;
19678 *) # from 4.6 on, and DragonFly
19679 shlibpath_overrides_runpath=yes
19680 hardcode_into_libs=yes
19681 ;;
19682 esac
19683 ;;
19684
19685 gnu*)
19686 version_type=linux
19687 need_lib_prefix=no
19688 need_version=no
19689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19690 soname_spec='${libname}${release}${shared_ext}$major'
19691 shlibpath_var=LD_LIBRARY_PATH
19692 hardcode_into_libs=yes
19693 ;;
19694
19695 hpux9* | hpux10* | hpux11*)
19696 # Give a soname corresponding to the major version so that dld.sl refuses to
19697 # link against other versions.
19698 version_type=sunos
19699 need_lib_prefix=no
19700 need_version=no
19701 case $host_cpu in
19702 ia64*)
19703 shrext_cmds='.so'
19704 hardcode_into_libs=yes
19705 dynamic_linker="$host_os dld.so"
19706 shlibpath_var=LD_LIBRARY_PATH
19707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709 soname_spec='${libname}${release}${shared_ext}$major'
19710 if test "X$HPUX_IA64_MODE" = X32; then
19711 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19712 else
19713 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19714 fi
19715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19716 ;;
19717 hppa*64*)
19718 shrext_cmds='.sl'
19719 hardcode_into_libs=yes
19720 dynamic_linker="$host_os dld.sl"
19721 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724 soname_spec='${libname}${release}${shared_ext}$major'
19725 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19727 ;;
19728 *)
19729 shrext_cmds='.sl'
19730 dynamic_linker="$host_os dld.sl"
19731 shlibpath_var=SHLIB_PATH
19732 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734 soname_spec='${libname}${release}${shared_ext}$major'
19735 ;;
19736 esac
19737 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19738 postinstall_cmds='chmod 555 $lib'
19739 ;;
19740
19741 interix[3-9]*)
19742 version_type=linux
19743 need_lib_prefix=no
19744 need_version=no
19745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19746 soname_spec='${libname}${release}${shared_ext}$major'
19747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19748 shlibpath_var=LD_LIBRARY_PATH
19749 shlibpath_overrides_runpath=no
19750 hardcode_into_libs=yes
19751 ;;
19752
19753 irix5* | irix6* | nonstopux*)
19754 case $host_os in
19755 nonstopux*) version_type=nonstopux ;;
19756 *)
19757 if test "$lt_cv_prog_gnu_ld" = yes; then
19758 version_type=linux
19759 else
19760 version_type=irix
19761 fi ;;
19762 esac
19763 need_lib_prefix=no
19764 need_version=no
19765 soname_spec='${libname}${release}${shared_ext}$major'
19766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19767 case $host_os in
19768 irix5* | nonstopux*)
19769 libsuff= shlibsuff=
19770 ;;
19771 *)
19772 case $LD in # libtool.m4 will add one of these switches to LD
19773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19774 libsuff= shlibsuff= libmagic=32-bit;;
19775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19776 libsuff=32 shlibsuff=N32 libmagic=N32;;
19777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19779 *) libsuff= shlibsuff= libmagic=never-match;;
19780 esac
19781 ;;
19782 esac
19783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19784 shlibpath_overrides_runpath=no
19785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19787 hardcode_into_libs=yes
19788 ;;
19789
19790 # No shared lib support for Linux oldld, aout, or coff.
19791 linux*oldld* | linux*aout* | linux*coff*)
19792 dynamic_linker=no
19793 ;;
19794
19795 # This must be Linux ELF.
19796 linux* | k*bsd*-gnu)
19797 version_type=linux
19798 need_lib_prefix=no
19799 need_version=no
19800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801 soname_spec='${libname}${release}${shared_ext}$major'
19802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19803 shlibpath_var=LD_LIBRARY_PATH
19804 shlibpath_overrides_runpath=no
19805 # This implies no fast_install, which is unacceptable.
19806 # Some rework will be needed to allow for fast_install
19807 # before this can be enabled.
19808 hardcode_into_libs=yes
19809
19810 # Append ld.so.conf contents to the search path
19811 if test -f /etc/ld.so.conf; then
19812 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' ' '`
19813 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19814 fi
19815
19816 # We used to test for /lib/ld.so.1 and disable shared libraries on
19817 # powerpc, because MkLinux only supported shared libraries with the
19818 # GNU dynamic linker. Since this was broken with cross compilers,
19819 # most powerpc-linux boxes support dynamic linking these days and
19820 # people can always --disable-shared, the test was removed, and we
19821 # assume the GNU/Linux dynamic linker is in use.
19822 dynamic_linker='GNU/Linux ld.so'
19823 ;;
19824
19825 netbsdelf*-gnu)
19826 version_type=linux
19827 need_lib_prefix=no
19828 need_version=no
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19830 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LD_LIBRARY_PATH
19832 shlibpath_overrides_runpath=no
19833 hardcode_into_libs=yes
19834 dynamic_linker='NetBSD ld.elf_so'
19835 ;;
19836
19837 netbsd*)
19838 version_type=sunos
19839 need_lib_prefix=no
19840 need_version=no
19841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19844 dynamic_linker='NetBSD (a.out) ld.so'
19845 else
19846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19847 soname_spec='${libname}${release}${shared_ext}$major'
19848 dynamic_linker='NetBSD ld.elf_so'
19849 fi
19850 shlibpath_var=LD_LIBRARY_PATH
19851 shlibpath_overrides_runpath=yes
19852 hardcode_into_libs=yes
19853 ;;
19854
19855 newsos6)
19856 version_type=linux
19857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19858 shlibpath_var=LD_LIBRARY_PATH
19859 shlibpath_overrides_runpath=yes
19860 ;;
19861
19862 nto-qnx*)
19863 version_type=linux
19864 need_lib_prefix=no
19865 need_version=no
19866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19867 soname_spec='${libname}${release}${shared_ext}$major'
19868 shlibpath_var=LD_LIBRARY_PATH
19869 shlibpath_overrides_runpath=yes
19870 ;;
19871
19872 openbsd*)
19873 version_type=sunos
19874 sys_lib_dlsearch_path_spec="/usr/lib"
19875 need_lib_prefix=no
19876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19877 case $host_os in
19878 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19879 *) need_version=no ;;
19880 esac
19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19883 shlibpath_var=LD_LIBRARY_PATH
19884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19885 case $host_os in
19886 openbsd2.[89] | openbsd2.[89].*)
19887 shlibpath_overrides_runpath=no
19888 ;;
19889 *)
19890 shlibpath_overrides_runpath=yes
19891 ;;
19892 esac
19893 else
19894 shlibpath_overrides_runpath=yes
19895 fi
19896 ;;
19897
19898 os2*)
19899 libname_spec='$name'
19900 shrext_cmds=".dll"
19901 need_lib_prefix=no
19902 library_names_spec='$libname${shared_ext} $libname.a'
19903 dynamic_linker='OS/2 ld.exe'
19904 shlibpath_var=LIBPATH
19905 ;;
19906
19907 osf3* | osf4* | osf5*)
19908 version_type=osf
19909 need_lib_prefix=no
19910 need_version=no
19911 soname_spec='${libname}${release}${shared_ext}$major'
19912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19913 shlibpath_var=LD_LIBRARY_PATH
19914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19916 ;;
19917
19918 rdos*)
19919 dynamic_linker=no
19920 ;;
19921
19922 solaris*)
19923 version_type=linux
19924 need_lib_prefix=no
19925 need_version=no
19926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19927 soname_spec='${libname}${release}${shared_ext}$major'
19928 shlibpath_var=LD_LIBRARY_PATH
19929 shlibpath_overrides_runpath=yes
19930 hardcode_into_libs=yes
19931 # ldd complains unless libraries are executable
19932 postinstall_cmds='chmod +x $lib'
19933 ;;
19934
19935 sunos4*)
19936 version_type=sunos
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19939 shlibpath_var=LD_LIBRARY_PATH
19940 shlibpath_overrides_runpath=yes
19941 if test "$with_gnu_ld" = yes; then
19942 need_lib_prefix=no
19943 fi
19944 need_version=yes
19945 ;;
19946
19947 sysv4 | sysv4.3*)
19948 version_type=linux
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19950 soname_spec='${libname}${release}${shared_ext}$major'
19951 shlibpath_var=LD_LIBRARY_PATH
19952 case $host_vendor in
19953 sni)
19954 shlibpath_overrides_runpath=no
19955 need_lib_prefix=no
19956 export_dynamic_flag_spec='${wl}-Blargedynsym'
19957 runpath_var=LD_RUN_PATH
19958 ;;
19959 siemens)
19960 need_lib_prefix=no
19961 ;;
19962 motorola)
19963 need_lib_prefix=no
19964 need_version=no
19965 shlibpath_overrides_runpath=no
19966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19967 ;;
19968 esac
19969 ;;
19970
19971 sysv4*MP*)
19972 if test -d /usr/nec ;then
19973 version_type=linux
19974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19975 soname_spec='$libname${shared_ext}.$major'
19976 shlibpath_var=LD_LIBRARY_PATH
19977 fi
19978 ;;
19979
19980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19981 version_type=freebsd-elf
19982 need_lib_prefix=no
19983 need_version=no
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 shlibpath_var=LD_LIBRARY_PATH
19987 hardcode_into_libs=yes
19988 if test "$with_gnu_ld" = yes; then
19989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19990 shlibpath_overrides_runpath=no
19991 else
19992 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19993 shlibpath_overrides_runpath=yes
19994 case $host_os in
19995 sco3.2v5*)
19996 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19997 ;;
19998 esac
19999 fi
20000 sys_lib_dlsearch_path_spec='/usr/lib'
20001 ;;
20002
20003 uts4*)
20004 version_type=linux
20005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20006 soname_spec='${libname}${release}${shared_ext}$major'
20007 shlibpath_var=LD_LIBRARY_PATH
20008 ;;
20009
20010 *)
20011 dynamic_linker=no
20012 ;;
20013 esac
20014 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20015 echo "${ECHO_T}$dynamic_linker" >&6; }
20016 test "$dynamic_linker" = no && can_build_shared=no
20017
20018 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 else
20021 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20022 fi
20023
20024 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20025 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20029 fi
20030
20031 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20032
20033 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20034 if test "$GCC" = yes; then
20035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20036 fi
20037
20038 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20039 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20040 hardcode_action_GCJ=
20041 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20042 test -n "$runpath_var_GCJ" || \
20043 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20044
20045 # We can hardcode non-existant directories.
20046 if test "$hardcode_direct_GCJ" != no &&
20047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20048 # have to relink, otherwise we might link with an installed library
20049 # when we should be linking with a yet-to-be-installed one
20050 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20051 test "$hardcode_minus_L_GCJ" != no; then
20052 # Linking always hardcodes the temporary library directory.
20053 hardcode_action_GCJ=relink
20054 else
20055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20056 hardcode_action_GCJ=immediate
20057 fi
20058 else
20059 # We cannot hardcode anything, or else we can only hardcode existing
20060 # directories.
20061 hardcode_action_GCJ=unsupported
20062 fi
20063 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20064 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20065
20066 if test "$hardcode_action_GCJ" = relink; then
20067 # Fast installation is not supported
20068 enable_fast_install=no
20069 elif test "$shlibpath_overrides_runpath" = yes ||
20070 test "$enable_shared" = no; then
20071 # Fast installation is not necessary
20072 enable_fast_install=needless
20073 fi
20074
20075
20076 # The else clause should only fire when bootstrapping the
20077 # libtool distribution, otherwise you forgot to ship ltmain.sh
20078 # with your package, and you will get complaints that there are
20079 # no rules to generate ltmain.sh.
20080 if test -f "$ltmain"; then
20081 # See if we are running on zsh, and set the options which allow our commands through
20082 # without removal of \ escapes.
20083 if test -n "${ZSH_VERSION+set}" ; then
20084 setopt NO_GLOB_SUBST
20085 fi
20086 # Now quote all the things that may contain metacharacters while being
20087 # careful not to overquote the AC_SUBSTed values. We take copies of the
20088 # variables and quote the copies for generation of the libtool script.
20089 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20090 SED SHELL STRIP \
20091 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20092 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20093 deplibs_check_method reload_flag reload_cmds need_locks \
20094 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20095 lt_cv_sys_global_symbol_to_c_name_address \
20096 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20097 old_postinstall_cmds old_postuninstall_cmds \
20098 compiler_GCJ \
20099 CC_GCJ \
20100 LD_GCJ \
20101 lt_prog_compiler_wl_GCJ \
20102 lt_prog_compiler_pic_GCJ \
20103 lt_prog_compiler_static_GCJ \
20104 lt_prog_compiler_no_builtin_flag_GCJ \
20105 export_dynamic_flag_spec_GCJ \
20106 thread_safe_flag_spec_GCJ \
20107 whole_archive_flag_spec_GCJ \
20108 enable_shared_with_static_runtimes_GCJ \
20109 old_archive_cmds_GCJ \
20110 old_archive_from_new_cmds_GCJ \
20111 predep_objects_GCJ \
20112 postdep_objects_GCJ \
20113 predeps_GCJ \
20114 postdeps_GCJ \
20115 compiler_lib_search_path_GCJ \
20116 compiler_lib_search_dirs_GCJ \
20117 archive_cmds_GCJ \
20118 archive_expsym_cmds_GCJ \
20119 postinstall_cmds_GCJ \
20120 postuninstall_cmds_GCJ \
20121 old_archive_from_expsyms_cmds_GCJ \
20122 allow_undefined_flag_GCJ \
20123 no_undefined_flag_GCJ \
20124 export_symbols_cmds_GCJ \
20125 hardcode_libdir_flag_spec_GCJ \
20126 hardcode_libdir_flag_spec_ld_GCJ \
20127 hardcode_libdir_separator_GCJ \
20128 hardcode_automatic_GCJ \
20129 module_cmds_GCJ \
20130 module_expsym_cmds_GCJ \
20131 lt_cv_prog_compiler_c_o_GCJ \
20132 fix_srcfile_path_GCJ \
20133 exclude_expsyms_GCJ \
20134 include_expsyms_GCJ; do
20135
20136 case $var in
20137 old_archive_cmds_GCJ | \
20138 old_archive_from_new_cmds_GCJ | \
20139 archive_cmds_GCJ | \
20140 archive_expsym_cmds_GCJ | \
20141 module_cmds_GCJ | \
20142 module_expsym_cmds_GCJ | \
20143 old_archive_from_expsyms_cmds_GCJ | \
20144 export_symbols_cmds_GCJ | \
20145 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20146 postinstall_cmds | postuninstall_cmds | \
20147 old_postinstall_cmds | old_postuninstall_cmds | \
20148 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20149 # Double-quote double-evaled strings.
20150 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20151 ;;
20152 *)
20153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20154 ;;
20155 esac
20156 done
20157
20158 case $lt_echo in
20159 *'\$0 --fallback-echo"')
20160 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20161 ;;
20162 esac
20163
20164 cfgfile="$ofile"
20165
20166 cat <<__EOF__ >> "$cfgfile"
20167 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20168
20169 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20170
20171 # Shell to use when invoking shell scripts.
20172 SHELL=$lt_SHELL
20173
20174 # Whether or not to build shared libraries.
20175 build_libtool_libs=$enable_shared
20176
20177 # Whether or not to build static libraries.
20178 build_old_libs=$enable_static
20179
20180 # Whether or not to add -lc for building shared libraries.
20181 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20182
20183 # Whether or not to disallow shared libs when runtime libs are static
20184 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20185
20186 # Whether or not to optimize for fast installation.
20187 fast_install=$enable_fast_install
20188
20189 # The host system.
20190 host_alias=$host_alias
20191 host=$host
20192 host_os=$host_os
20193
20194 # The build system.
20195 build_alias=$build_alias
20196 build=$build
20197 build_os=$build_os
20198
20199 # An echo program that does not interpret backslashes.
20200 echo=$lt_echo
20201
20202 # The archiver.
20203 AR=$lt_AR
20204 AR_FLAGS=$lt_AR_FLAGS
20205
20206 # A C compiler.
20207 LTCC=$lt_LTCC
20208
20209 # LTCC compiler flags.
20210 LTCFLAGS=$lt_LTCFLAGS
20211
20212 # A language-specific compiler.
20213 CC=$lt_compiler_GCJ
20214
20215 # Is the compiler the GNU C compiler?
20216 with_gcc=$GCC_GCJ
20217
20218 # An ERE matcher.
20219 EGREP=$lt_EGREP
20220
20221 # The linker used to build libraries.
20222 LD=$lt_LD_GCJ
20223
20224 # Whether we need hard or soft links.
20225 LN_S=$lt_LN_S
20226
20227 # A BSD-compatible nm program.
20228 NM=$lt_NM
20229
20230 # A symbol stripping program
20231 STRIP=$lt_STRIP
20232
20233 # Used to examine libraries when file_magic_cmd begins "file"
20234 MAGIC_CMD=$MAGIC_CMD
20235
20236 # Used on cygwin: DLL creation program.
20237 DLLTOOL="$DLLTOOL"
20238
20239 # Used on cygwin: object dumper.
20240 OBJDUMP="$OBJDUMP"
20241
20242 # Used on cygwin: assembler.
20243 AS="$AS"
20244
20245 # The name of the directory that contains temporary libtool files.
20246 objdir=$objdir
20247
20248 # How to create reloadable object files.
20249 reload_flag=$lt_reload_flag
20250 reload_cmds=$lt_reload_cmds
20251
20252 # How to pass a linker flag through the compiler.
20253 wl=$lt_lt_prog_compiler_wl_GCJ
20254
20255 # Object file suffix (normally "o").
20256 objext="$ac_objext"
20257
20258 # Old archive suffix (normally "a").
20259 libext="$libext"
20260
20261 # Shared library suffix (normally ".so").
20262 shrext_cmds='$shrext_cmds'
20263
20264 # Executable file suffix (normally "").
20265 exeext="$exeext"
20266
20267 # Additional compiler flags for building library objects.
20268 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20269 pic_mode=$pic_mode
20270
20271 # What is the maximum length of a command?
20272 max_cmd_len=$lt_cv_sys_max_cmd_len
20273
20274 # Does compiler simultaneously support -c and -o options?
20275 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20276
20277 # Must we lock files when doing compilation?
20278 need_locks=$lt_need_locks
20279
20280 # Do we need the lib prefix for modules?
20281 need_lib_prefix=$need_lib_prefix
20282
20283 # Do we need a version for libraries?
20284 need_version=$need_version
20285
20286 # Whether dlopen is supported.
20287 dlopen_support=$enable_dlopen
20288
20289 # Whether dlopen of programs is supported.
20290 dlopen_self=$enable_dlopen_self
20291
20292 # Whether dlopen of statically linked programs is supported.
20293 dlopen_self_static=$enable_dlopen_self_static
20294
20295 # Compiler flag to prevent dynamic linking.
20296 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20297
20298 # Compiler flag to turn off builtin functions.
20299 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20300
20301 # Compiler flag to allow reflexive dlopens.
20302 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20303
20304 # Compiler flag to generate shared objects directly from archives.
20305 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20306
20307 # Compiler flag to generate thread-safe objects.
20308 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20309
20310 # Library versioning type.
20311 version_type=$version_type
20312
20313 # Format of library name prefix.
20314 libname_spec=$lt_libname_spec
20315
20316 # List of archive names. First name is the real one, the rest are links.
20317 # The last name is the one that the linker finds with -lNAME.
20318 library_names_spec=$lt_library_names_spec
20319
20320 # The coded name of the library, if different from the real name.
20321 soname_spec=$lt_soname_spec
20322
20323 # Commands used to build and install an old-style archive.
20324 RANLIB=$lt_RANLIB
20325 old_archive_cmds=$lt_old_archive_cmds_GCJ
20326 old_postinstall_cmds=$lt_old_postinstall_cmds
20327 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20328
20329 # Create an old-style archive from a shared archive.
20330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20331
20332 # Create a temporary old-style archive to link instead of a shared archive.
20333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20334
20335 # Commands used to build and install a shared archive.
20336 archive_cmds=$lt_archive_cmds_GCJ
20337 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20338 postinstall_cmds=$lt_postinstall_cmds
20339 postuninstall_cmds=$lt_postuninstall_cmds
20340
20341 # Commands used to build a loadable module (assumed same as above if empty)
20342 module_cmds=$lt_module_cmds_GCJ
20343 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20344
20345 # Commands to strip libraries.
20346 old_striplib=$lt_old_striplib
20347 striplib=$lt_striplib
20348
20349 # Dependencies to place before the objects being linked to create a
20350 # shared library.
20351 predep_objects=$lt_predep_objects_GCJ
20352
20353 # Dependencies to place after the objects being linked to create a
20354 # shared library.
20355 postdep_objects=$lt_postdep_objects_GCJ
20356
20357 # Dependencies to place before the objects being linked to create a
20358 # shared library.
20359 predeps=$lt_predeps_GCJ
20360
20361 # Dependencies to place after the objects being linked to create a
20362 # shared library.
20363 postdeps=$lt_postdeps_GCJ
20364
20365 # The directories searched by this compiler when creating a shared
20366 # library
20367 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20368
20369 # The library search path used internally by the compiler when linking
20370 # a shared library.
20371 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20372
20373 # Method to check whether dependent libraries are shared objects.
20374 deplibs_check_method=$lt_deplibs_check_method
20375
20376 # Command to use when deplibs_check_method == file_magic.
20377 file_magic_cmd=$lt_file_magic_cmd
20378
20379 # Flag that allows shared libraries with undefined symbols to be built.
20380 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20381
20382 # Flag that forces no undefined symbols.
20383 no_undefined_flag=$lt_no_undefined_flag_GCJ
20384
20385 # Commands used to finish a libtool library installation in a directory.
20386 finish_cmds=$lt_finish_cmds
20387
20388 # Same as above, but a single script fragment to be evaled but not shown.
20389 finish_eval=$lt_finish_eval
20390
20391 # Take the output of nm and produce a listing of raw symbols and C names.
20392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20393
20394 # Transform the output of nm in a proper C declaration
20395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20396
20397 # Transform the output of nm in a C name address pair
20398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20399
20400 # This is the shared library runtime path variable.
20401 runpath_var=$runpath_var
20402
20403 # This is the shared library path variable.
20404 shlibpath_var=$shlibpath_var
20405
20406 # Is shlibpath searched before the hard-coded library search path?
20407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20408
20409 # How to hardcode a shared library path into an executable.
20410 hardcode_action=$hardcode_action_GCJ
20411
20412 # Whether we should hardcode library paths into libraries.
20413 hardcode_into_libs=$hardcode_into_libs
20414
20415 # Flag to hardcode \$libdir into a binary during linking.
20416 # This must work even if \$libdir does not exist.
20417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20418
20419 # If ld is used when linking, flag to hardcode \$libdir into
20420 # a binary during linking. This must work even if \$libdir does
20421 # not exist.
20422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20423
20424 # Whether we need a single -rpath flag with a separated argument.
20425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20426
20427 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20428 # resulting binary.
20429 hardcode_direct=$hardcode_direct_GCJ
20430
20431 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20432 # resulting binary.
20433 hardcode_minus_L=$hardcode_minus_L_GCJ
20434
20435 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20436 # the resulting binary.
20437 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20438
20439 # Set to yes if building a shared library automatically hardcodes DIR into the library
20440 # and all subsequent libraries and executables linked against it.
20441 hardcode_automatic=$hardcode_automatic_GCJ
20442
20443 # Variables whose values should be saved in libtool wrapper scripts and
20444 # restored at relink time.
20445 variables_saved_for_relink="$variables_saved_for_relink"
20446
20447 # Whether libtool must link a program against all its dependency libraries.
20448 link_all_deplibs=$link_all_deplibs_GCJ
20449
20450 # Compile-time system search path for libraries
20451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20452
20453 # Run-time system search path for libraries
20454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20455
20456 # Fix the shell variable \$srcfile for the compiler.
20457 fix_srcfile_path=$lt_fix_srcfile_path
20458
20459 # Set to yes if exported symbols are required.
20460 always_export_symbols=$always_export_symbols_GCJ
20461
20462 # The commands to list exported symbols.
20463 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20464
20465 # The commands to extract the exported symbol list from a shared archive.
20466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20467
20468 # Symbols that should not be listed in the preloaded symbols.
20469 exclude_expsyms=$lt_exclude_expsyms_GCJ
20470
20471 # Symbols that must always be exported.
20472 include_expsyms=$lt_include_expsyms_GCJ
20473
20474 # ### END LIBTOOL TAG CONFIG: $tagname
20475
20476 __EOF__
20477
20478
20479 else
20480 # If there is no Makefile yet, we rely on a make rule to execute
20481 # `config.status --recheck' to rerun these tests and create the
20482 # libtool script then.
20483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20484 if test -f "$ltmain_in"; then
20485 test -f Makefile && make "$ltmain"
20486 fi
20487 fi
20488
20489
20490 ac_ext=c
20491 ac_cpp='$CPP $CPPFLAGS'
20492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495
20496 CC="$lt_save_CC"
20497
20498 else
20499 tagname=""
20500 fi
20501 ;;
20502
20503 RC)
20504
20505
20506 # Source file extension for RC test sources.
20507 ac_ext=rc
20508
20509 # Object file extension for compiled RC test sources.
20510 objext=o
20511 objext_RC=$objext
20512
20513 # Code to be used in simple compile tests
20514 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20515
20516 # Code to be used in simple link tests
20517 lt_simple_link_test_code="$lt_simple_compile_test_code"
20518
20519 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20520
20521 # If no C compiler was specified, use CC.
20522 LTCC=${LTCC-"$CC"}
20523
20524 # If no C compiler flags were specified, use CFLAGS.
20525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20526
20527 # Allow CC to be a program name with arguments.
20528 compiler=$CC
20529
20530
20531 # save warnings/boilerplate of simple test code
20532 ac_outfile=conftest.$ac_objext
20533 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20534 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20535 _lt_compiler_boilerplate=`cat conftest.err`
20536 $rm conftest*
20537
20538 ac_outfile=conftest.$ac_objext
20539 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20540 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20541 _lt_linker_boilerplate=`cat conftest.err`
20542 $rm -r conftest*
20543
20544
20545 # Allow CC to be a program name with arguments.
20546 lt_save_CC="$CC"
20547 CC=${RC-"windres"}
20548 compiler=$CC
20549 compiler_RC=$CC
20550 for cc_temp in $compiler""; do
20551 case $cc_temp in
20552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20554 \-*) ;;
20555 *) break;;
20556 esac
20557 done
20558 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20559
20560 lt_cv_prog_compiler_c_o_RC=yes
20561
20562 # The else clause should only fire when bootstrapping the
20563 # libtool distribution, otherwise you forgot to ship ltmain.sh
20564 # with your package, and you will get complaints that there are
20565 # no rules to generate ltmain.sh.
20566 if test -f "$ltmain"; then
20567 # See if we are running on zsh, and set the options which allow our commands through
20568 # without removal of \ escapes.
20569 if test -n "${ZSH_VERSION+set}" ; then
20570 setopt NO_GLOB_SUBST
20571 fi
20572 # Now quote all the things that may contain metacharacters while being
20573 # careful not to overquote the AC_SUBSTed values. We take copies of the
20574 # variables and quote the copies for generation of the libtool script.
20575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20576 SED SHELL STRIP \
20577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20579 deplibs_check_method reload_flag reload_cmds need_locks \
20580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20581 lt_cv_sys_global_symbol_to_c_name_address \
20582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20583 old_postinstall_cmds old_postuninstall_cmds \
20584 compiler_RC \
20585 CC_RC \
20586 LD_RC \
20587 lt_prog_compiler_wl_RC \
20588 lt_prog_compiler_pic_RC \
20589 lt_prog_compiler_static_RC \
20590 lt_prog_compiler_no_builtin_flag_RC \
20591 export_dynamic_flag_spec_RC \
20592 thread_safe_flag_spec_RC \
20593 whole_archive_flag_spec_RC \
20594 enable_shared_with_static_runtimes_RC \
20595 old_archive_cmds_RC \
20596 old_archive_from_new_cmds_RC \
20597 predep_objects_RC \
20598 postdep_objects_RC \
20599 predeps_RC \
20600 postdeps_RC \
20601 compiler_lib_search_path_RC \
20602 compiler_lib_search_dirs_RC \
20603 archive_cmds_RC \
20604 archive_expsym_cmds_RC \
20605 postinstall_cmds_RC \
20606 postuninstall_cmds_RC \
20607 old_archive_from_expsyms_cmds_RC \
20608 allow_undefined_flag_RC \
20609 no_undefined_flag_RC \
20610 export_symbols_cmds_RC \
20611 hardcode_libdir_flag_spec_RC \
20612 hardcode_libdir_flag_spec_ld_RC \
20613 hardcode_libdir_separator_RC \
20614 hardcode_automatic_RC \
20615 module_cmds_RC \
20616 module_expsym_cmds_RC \
20617 lt_cv_prog_compiler_c_o_RC \
20618 fix_srcfile_path_RC \
20619 exclude_expsyms_RC \
20620 include_expsyms_RC; do
20621
20622 case $var in
20623 old_archive_cmds_RC | \
20624 old_archive_from_new_cmds_RC | \
20625 archive_cmds_RC | \
20626 archive_expsym_cmds_RC | \
20627 module_cmds_RC | \
20628 module_expsym_cmds_RC | \
20629 old_archive_from_expsyms_cmds_RC | \
20630 export_symbols_cmds_RC | \
20631 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20632 postinstall_cmds | postuninstall_cmds | \
20633 old_postinstall_cmds | old_postuninstall_cmds | \
20634 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20635 # Double-quote double-evaled strings.
20636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20637 ;;
20638 *)
20639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20640 ;;
20641 esac
20642 done
20643
20644 case $lt_echo in
20645 *'\$0 --fallback-echo"')
20646 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20647 ;;
20648 esac
20649
20650 cfgfile="$ofile"
20651
20652 cat <<__EOF__ >> "$cfgfile"
20653 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20654
20655 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20656
20657 # Shell to use when invoking shell scripts.
20658 SHELL=$lt_SHELL
20659
20660 # Whether or not to build shared libraries.
20661 build_libtool_libs=$enable_shared
20662
20663 # Whether or not to build static libraries.
20664 build_old_libs=$enable_static
20665
20666 # Whether or not to add -lc for building shared libraries.
20667 build_libtool_need_lc=$archive_cmds_need_lc_RC
20668
20669 # Whether or not to disallow shared libs when runtime libs are static
20670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20671
20672 # Whether or not to optimize for fast installation.
20673 fast_install=$enable_fast_install
20674
20675 # The host system.
20676 host_alias=$host_alias
20677 host=$host
20678 host_os=$host_os
20679
20680 # The build system.
20681 build_alias=$build_alias
20682 build=$build
20683 build_os=$build_os
20684
20685 # An echo program that does not interpret backslashes.
20686 echo=$lt_echo
20687
20688 # The archiver.
20689 AR=$lt_AR
20690 AR_FLAGS=$lt_AR_FLAGS
20691
20692 # A C compiler.
20693 LTCC=$lt_LTCC
20694
20695 # LTCC compiler flags.
20696 LTCFLAGS=$lt_LTCFLAGS
20697
20698 # A language-specific compiler.
20699 CC=$lt_compiler_RC
20700
20701 # Is the compiler the GNU C compiler?
20702 with_gcc=$GCC_RC
20703
20704 # An ERE matcher.
20705 EGREP=$lt_EGREP
20706
20707 # The linker used to build libraries.
20708 LD=$lt_LD_RC
20709
20710 # Whether we need hard or soft links.
20711 LN_S=$lt_LN_S
20712
20713 # A BSD-compatible nm program.
20714 NM=$lt_NM
20715
20716 # A symbol stripping program
20717 STRIP=$lt_STRIP
20718
20719 # Used to examine libraries when file_magic_cmd begins "file"
20720 MAGIC_CMD=$MAGIC_CMD
20721
20722 # Used on cygwin: DLL creation program.
20723 DLLTOOL="$DLLTOOL"
20724
20725 # Used on cygwin: object dumper.
20726 OBJDUMP="$OBJDUMP"
20727
20728 # Used on cygwin: assembler.
20729 AS="$AS"
20730
20731 # The name of the directory that contains temporary libtool files.
20732 objdir=$objdir
20733
20734 # How to create reloadable object files.
20735 reload_flag=$lt_reload_flag
20736 reload_cmds=$lt_reload_cmds
20737
20738 # How to pass a linker flag through the compiler.
20739 wl=$lt_lt_prog_compiler_wl_RC
20740
20741 # Object file suffix (normally "o").
20742 objext="$ac_objext"
20743
20744 # Old archive suffix (normally "a").
20745 libext="$libext"
20746
20747 # Shared library suffix (normally ".so").
20748 shrext_cmds='$shrext_cmds'
20749
20750 # Executable file suffix (normally "").
20751 exeext="$exeext"
20752
20753 # Additional compiler flags for building library objects.
20754 pic_flag=$lt_lt_prog_compiler_pic_RC
20755 pic_mode=$pic_mode
20756
20757 # What is the maximum length of a command?
20758 max_cmd_len=$lt_cv_sys_max_cmd_len
20759
20760 # Does compiler simultaneously support -c and -o options?
20761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20762
20763 # Must we lock files when doing compilation?
20764 need_locks=$lt_need_locks
20765
20766 # Do we need the lib prefix for modules?
20767 need_lib_prefix=$need_lib_prefix
20768
20769 # Do we need a version for libraries?
20770 need_version=$need_version
20771
20772 # Whether dlopen is supported.
20773 dlopen_support=$enable_dlopen
20774
20775 # Whether dlopen of programs is supported.
20776 dlopen_self=$enable_dlopen_self
20777
20778 # Whether dlopen of statically linked programs is supported.
20779 dlopen_self_static=$enable_dlopen_self_static
20780
20781 # Compiler flag to prevent dynamic linking.
20782 link_static_flag=$lt_lt_prog_compiler_static_RC
20783
20784 # Compiler flag to turn off builtin functions.
20785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20786
20787 # Compiler flag to allow reflexive dlopens.
20788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20789
20790 # Compiler flag to generate shared objects directly from archives.
20791 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20792
20793 # Compiler flag to generate thread-safe objects.
20794 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20795
20796 # Library versioning type.
20797 version_type=$version_type
20798
20799 # Format of library name prefix.
20800 libname_spec=$lt_libname_spec
20801
20802 # List of archive names. First name is the real one, the rest are links.
20803 # The last name is the one that the linker finds with -lNAME.
20804 library_names_spec=$lt_library_names_spec
20805
20806 # The coded name of the library, if different from the real name.
20807 soname_spec=$lt_soname_spec
20808
20809 # Commands used to build and install an old-style archive.
20810 RANLIB=$lt_RANLIB
20811 old_archive_cmds=$lt_old_archive_cmds_RC
20812 old_postinstall_cmds=$lt_old_postinstall_cmds
20813 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20814
20815 # Create an old-style archive from a shared archive.
20816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20817
20818 # Create a temporary old-style archive to link instead of a shared archive.
20819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20820
20821 # Commands used to build and install a shared archive.
20822 archive_cmds=$lt_archive_cmds_RC
20823 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20824 postinstall_cmds=$lt_postinstall_cmds
20825 postuninstall_cmds=$lt_postuninstall_cmds
20826
20827 # Commands used to build a loadable module (assumed same as above if empty)
20828 module_cmds=$lt_module_cmds_RC
20829 module_expsym_cmds=$lt_module_expsym_cmds_RC
20830
20831 # Commands to strip libraries.
20832 old_striplib=$lt_old_striplib
20833 striplib=$lt_striplib
20834
20835 # Dependencies to place before the objects being linked to create a
20836 # shared library.
20837 predep_objects=$lt_predep_objects_RC
20838
20839 # Dependencies to place after the objects being linked to create a
20840 # shared library.
20841 postdep_objects=$lt_postdep_objects_RC
20842
20843 # Dependencies to place before the objects being linked to create a
20844 # shared library.
20845 predeps=$lt_predeps_RC
20846
20847 # Dependencies to place after the objects being linked to create a
20848 # shared library.
20849 postdeps=$lt_postdeps_RC
20850
20851 # The directories searched by this compiler when creating a shared
20852 # library
20853 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20854
20855 # The library search path used internally by the compiler when linking
20856 # a shared library.
20857 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20858
20859 # Method to check whether dependent libraries are shared objects.
20860 deplibs_check_method=$lt_deplibs_check_method
20861
20862 # Command to use when deplibs_check_method == file_magic.
20863 file_magic_cmd=$lt_file_magic_cmd
20864
20865 # Flag that allows shared libraries with undefined symbols to be built.
20866 allow_undefined_flag=$lt_allow_undefined_flag_RC
20867
20868 # Flag that forces no undefined symbols.
20869 no_undefined_flag=$lt_no_undefined_flag_RC
20870
20871 # Commands used to finish a libtool library installation in a directory.
20872 finish_cmds=$lt_finish_cmds
20873
20874 # Same as above, but a single script fragment to be evaled but not shown.
20875 finish_eval=$lt_finish_eval
20876
20877 # Take the output of nm and produce a listing of raw symbols and C names.
20878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20879
20880 # Transform the output of nm in a proper C declaration
20881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20882
20883 # Transform the output of nm in a C name address pair
20884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20885
20886 # This is the shared library runtime path variable.
20887 runpath_var=$runpath_var
20888
20889 # This is the shared library path variable.
20890 shlibpath_var=$shlibpath_var
20891
20892 # Is shlibpath searched before the hard-coded library search path?
20893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20894
20895 # How to hardcode a shared library path into an executable.
20896 hardcode_action=$hardcode_action_RC
20897
20898 # Whether we should hardcode library paths into libraries.
20899 hardcode_into_libs=$hardcode_into_libs
20900
20901 # Flag to hardcode \$libdir into a binary during linking.
20902 # This must work even if \$libdir does not exist.
20903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20904
20905 # If ld is used when linking, flag to hardcode \$libdir into
20906 # a binary during linking. This must work even if \$libdir does
20907 # not exist.
20908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20909
20910 # Whether we need a single -rpath flag with a separated argument.
20911 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20912
20913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20914 # resulting binary.
20915 hardcode_direct=$hardcode_direct_RC
20916
20917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20918 # resulting binary.
20919 hardcode_minus_L=$hardcode_minus_L_RC
20920
20921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20922 # the resulting binary.
20923 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20924
20925 # Set to yes if building a shared library automatically hardcodes DIR into the library
20926 # and all subsequent libraries and executables linked against it.
20927 hardcode_automatic=$hardcode_automatic_RC
20928
20929 # Variables whose values should be saved in libtool wrapper scripts and
20930 # restored at relink time.
20931 variables_saved_for_relink="$variables_saved_for_relink"
20932
20933 # Whether libtool must link a program against all its dependency libraries.
20934 link_all_deplibs=$link_all_deplibs_RC
20935
20936 # Compile-time system search path for libraries
20937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20938
20939 # Run-time system search path for libraries
20940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20941
20942 # Fix the shell variable \$srcfile for the compiler.
20943 fix_srcfile_path=$lt_fix_srcfile_path
20944
20945 # Set to yes if exported symbols are required.
20946 always_export_symbols=$always_export_symbols_RC
20947
20948 # The commands to list exported symbols.
20949 export_symbols_cmds=$lt_export_symbols_cmds_RC
20950
20951 # The commands to extract the exported symbol list from a shared archive.
20952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20953
20954 # Symbols that should not be listed in the preloaded symbols.
20955 exclude_expsyms=$lt_exclude_expsyms_RC
20956
20957 # Symbols that must always be exported.
20958 include_expsyms=$lt_include_expsyms_RC
20959
20960 # ### END LIBTOOL TAG CONFIG: $tagname
20961
20962 __EOF__
20963
20964
20965 else
20966 # If there is no Makefile yet, we rely on a make rule to execute
20967 # `config.status --recheck' to rerun these tests and create the
20968 # libtool script then.
20969 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20970 if test -f "$ltmain_in"; then
20971 test -f Makefile && make "$ltmain"
20972 fi
20973 fi
20974
20975
20976 ac_ext=c
20977 ac_cpp='$CPP $CPPFLAGS'
20978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20981
20982 CC="$lt_save_CC"
20983
20984 ;;
20985
20986 *)
20987 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20988 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20989 { (exit 1); exit 1; }; }
20990 ;;
20991 esac
20992
20993 # Append the new tag name to the list of available tags.
20994 if test -n "$tagname" ; then
20995 available_tags="$available_tags $tagname"
20996 fi
20997 fi
20998 done
20999 IFS="$lt_save_ifs"
21000
21001 # Now substitute the updated list of available tags.
21002 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21003 mv "${ofile}T" "$ofile"
21004 chmod +x "$ofile"
21005 else
21006 rm -f "${ofile}T"
21007 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21008 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21009 { (exit 1); exit 1; }; }
21010 fi
21011 fi
21012
21013
21014
21015 # This can be used to rebuild libtool when needed
21016 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21017
21018 # Always use our own libtool.
21019 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21020
21021 # Prevent multiple expansion
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043 LIBTOOL="$LIBTOOL --silent"
21044
21045 subdirs="$subdirs libltdl"
21046
21047
21048
21049 case "$host_os" in
21050 *cygwin*)
21051
21052 cat >>confdefs.h <<_ACEOF
21053 #define CYGWIN 1
21054 _ACEOF
21055
21056
21057 cat >>confdefs.h <<_ACEOF
21058 #define WINDOWS 1
21059 _ACEOF
21060
21061 ;;
21062 *mingw*)
21063
21064 cat >>confdefs.h <<_ACEOF
21065 #define MINGW 1
21066 _ACEOF
21067
21068
21069 cat >>confdefs.h <<_ACEOF
21070 #define WINDOWS 1
21071 _ACEOF
21072
21073 if test "${ac_cv_header_windows_h+set}" = set; then
21074 { echo "$as_me:$LINENO: checking for windows.h" >&5
21075 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21076 if test "${ac_cv_header_windows_h+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 fi
21079 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21080 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21081 else
21082 # Is the header compilable?
21083 { echo "$as_me:$LINENO: checking windows.h usability" >&5
21084 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h. */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 $ac_includes_default
21092 #include <windows.h>
21093 _ACEOF
21094 rm -f conftest.$ac_objext
21095 if { (ac_try="$ac_compile"
21096 case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_compile") 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } && {
21108 test -z "$ac_c_werror_flag" ||
21109 test ! -s conftest.err
21110 } && test -s conftest.$ac_objext; then
21111 ac_header_compiler=yes
21112 else
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 ac_header_compiler=no
21117 fi
21118
21119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21121 echo "${ECHO_T}$ac_header_compiler" >&6; }
21122
21123 # Is the header present?
21124 { echo "$as_me:$LINENO: checking windows.h presence" >&5
21125 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
21126 cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h. */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 #include <windows.h>
21133 _ACEOF
21134 if { (ac_try="$ac_cpp conftest.$ac_ext"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } >/dev/null && {
21147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 }; then
21150 ac_header_preproc=yes
21151 else
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_header_preproc=no
21156 fi
21157
21158 rm -f conftest.err conftest.$ac_ext
21159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21160 echo "${ECHO_T}$ac_header_preproc" >&6; }
21161
21162 # So? What about this header?
21163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21164 yes:no: )
21165 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21166 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21168 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21169 ac_header_preproc=yes
21170 ;;
21171 no:yes:* )
21172 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21173 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21175 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21177 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21179 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21181 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21183 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21184
21185 ;;
21186 esac
21187 { echo "$as_me:$LINENO: checking for windows.h" >&5
21188 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21189 if test "${ac_cv_header_windows_h+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192 ac_cv_header_windows_h=$ac_header_preproc
21193 fi
21194 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21195 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21196
21197 fi
21198 if test $ac_cv_header_windows_h = yes; then
21199 :
21200 else
21201 { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
21202 echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
21203 { (exit 1); exit 1; }; }
21204 fi
21205
21206
21207 if test "${ac_cv_header_winsock2_h+set}" = set; then
21208 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21209 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21210 if test "${ac_cv_header_winsock2_h+set}" = set; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 fi
21213 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21214 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21215 else
21216 # Is the header compilable?
21217 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
21218 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h. */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 $ac_includes_default
21226 #include <winsock2.h>
21227 _ACEOF
21228 rm -f conftest.$ac_objext
21229 if { (ac_try="$ac_compile"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21233 esac
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_compile") 2>conftest.er1
21236 ac_status=$?
21237 grep -v '^ *+' conftest.er1 >conftest.err
21238 rm -f conftest.er1
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest.$ac_objext; then
21245 ac_header_compiler=yes
21246 else
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 ac_header_compiler=no
21251 fi
21252
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21255 echo "${ECHO_T}$ac_header_compiler" >&6; }
21256
21257 # Is the header present?
21258 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
21259 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 #include <winsock2.h>
21267 _ACEOF
21268 if { (ac_try="$ac_cpp conftest.$ac_ext"
21269 case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21272 esac
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21275 ac_status=$?
21276 grep -v '^ *+' conftest.er1 >conftest.err
21277 rm -f conftest.er1
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } >/dev/null && {
21281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21282 test ! -s conftest.err
21283 }; then
21284 ac_header_preproc=yes
21285 else
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21288
21289 ac_header_preproc=no
21290 fi
21291
21292 rm -f conftest.err conftest.$ac_ext
21293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21294 echo "${ECHO_T}$ac_header_preproc" >&6; }
21295
21296 # So? What about this header?
21297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21298 yes:no: )
21299 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
21300 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
21302 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
21303 ac_header_preproc=yes
21304 ;;
21305 no:yes:* )
21306 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
21307 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
21309 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
21311 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
21313 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
21315 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
21317 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
21318
21319 ;;
21320 esac
21321 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21322 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21323 if test "${ac_cv_header_winsock2_h+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 else
21326 ac_cv_header_winsock2_h=$ac_header_preproc
21327 fi
21328 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21329 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21330
21331 fi
21332 if test $ac_cv_header_winsock2_h = yes; then
21333 :
21334 else
21335 { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
21336 echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
21337 { (exit 1); exit 1; }; }
21338 fi
21339
21340
21341 LIBS="$LIBS -lws2_32 -liphlpapi"
21342 is_mingw="yes"
21343 ;;
21344 *interix*)
21345 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
21346 ;;
21347 *solaris*)
21348 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
21349 ;;
21350 *)
21351 ;;
21352 esac
21353
21354 if test "$is_mingw" = "yes"; then
21355 MINGW_TRUE=
21356 MINGW_FALSE='#'
21357 else
21358 MINGW_TRUE='#'
21359 MINGW_FALSE=
21360 fi
21361
21362
21363
21364 # backwards support for IRC_CFLAGS
21365 CFLAGS="$IRC_CFLAGS $CFLAGS -O0 -Wall"
21366
21367 if test "$libexecdir" = '${exec_prefix}/libexec' &&
21368 test "$localstatedir" = '${prefix}/var'; then
21369 libexecdir='${bindir}'
21370 localstatedir='${prefix}'
21371 fi
21372
21373
21374 { echo "$as_me:$LINENO: checking for int8_t" >&5
21375 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
21376 if test "${ac_cv_c_int8_t+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379 ac_cv_c_int8_t=no
21380 for ac_type in 'int8_t' 'int' 'long int' \
21381 'long long int' 'short int' 'signed char'; do
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h. */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21389 int
21390 main ()
21391 {
21392 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
21393 test_array [0] = 0
21394
21395 ;
21396 return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest.$ac_objext
21400 if { (ac_try="$ac_compile"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_compile") 2>conftest.er1
21407 ac_status=$?
21408 grep -v '^ *+' conftest.er1 >conftest.err
21409 rm -f conftest.er1
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && {
21413 test -z "$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 } && test -s conftest.$ac_objext; then
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h. */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 $ac_includes_default
21423 int
21424 main ()
21425 {
21426 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
21427 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
21428 test_array [0] = 0
21429
21430 ;
21431 return 0;
21432 }
21433 _ACEOF
21434 rm -f conftest.$ac_objext
21435 if { (ac_try="$ac_compile"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21439 esac
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_compile") 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
21451 :
21452 else
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21455
21456 case $ac_type in
21457 int8_t) ac_cv_c_int8_t=yes ;;
21458 *) ac_cv_c_int8_t=$ac_type ;;
21459 esac
21460
21461 fi
21462
21463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 else
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468
21469 fi
21470
21471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 test "$ac_cv_c_int8_t" != no && break
21473 done
21474 fi
21475 { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
21476 echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
21477 case $ac_cv_c_int8_t in #(
21478 no|yes) ;; #(
21479 *)
21480
21481 cat >>confdefs.h <<_ACEOF
21482 #define int8_t $ac_cv_c_int8_t
21483 _ACEOF
21484 ;;
21485 esac
21486
21487
21488 { echo "$as_me:$LINENO: checking for int16_t" >&5
21489 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
21490 if test "${ac_cv_c_int16_t+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493 ac_cv_c_int16_t=no
21494 for ac_type in 'int16_t' 'int' 'long int' \
21495 'long long int' 'short int' 'signed char'; do
21496 cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h. */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 $ac_includes_default
21503 int
21504 main ()
21505 {
21506 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
21507 test_array [0] = 0
21508
21509 ;
21510 return 0;
21511 }
21512 _ACEOF
21513 rm -f conftest.$ac_objext
21514 if { (ac_try="$ac_compile"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_compile") 2>conftest.er1
21521 ac_status=$?
21522 grep -v '^ *+' conftest.er1 >conftest.err
21523 rm -f conftest.er1
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } && {
21527 test -z "$ac_c_werror_flag" ||
21528 test ! -s conftest.err
21529 } && test -s conftest.$ac_objext; then
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 $ac_includes_default
21537 int
21538 main ()
21539 {
21540 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
21541 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
21542 test_array [0] = 0
21543
21544 ;
21545 return 0;
21546 }
21547 _ACEOF
21548 rm -f conftest.$ac_objext
21549 if { (ac_try="$ac_compile"
21550 case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_compile") 2>conftest.er1
21556 ac_status=$?
21557 grep -v '^ *+' conftest.er1 >conftest.err
21558 rm -f conftest.er1
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && {
21562 test -z "$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21564 } && test -s conftest.$ac_objext; then
21565 :
21566 else
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 case $ac_type in
21571 int16_t) ac_cv_c_int16_t=yes ;;
21572 *) ac_cv_c_int16_t=$ac_type ;;
21573 esac
21574
21575 fi
21576
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 else
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582
21583 fi
21584
21585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 test "$ac_cv_c_int16_t" != no && break
21587 done
21588 fi
21589 { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
21590 echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
21591 case $ac_cv_c_int16_t in #(
21592 no|yes) ;; #(
21593 *)
21594
21595 cat >>confdefs.h <<_ACEOF
21596 #define int16_t $ac_cv_c_int16_t
21597 _ACEOF
21598 ;;
21599 esac
21600
21601
21602 { echo "$as_me:$LINENO: checking for int32_t" >&5
21603 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
21604 if test "${ac_cv_c_int32_t+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607 ac_cv_c_int32_t=no
21608 for ac_type in 'int32_t' 'int' 'long int' \
21609 'long long int' 'short int' 'signed char'; do
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h. */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 $ac_includes_default
21617 int
21618 main ()
21619 {
21620 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
21621 test_array [0] = 0
21622
21623 ;
21624 return 0;
21625 }
21626 _ACEOF
21627 rm -f conftest.$ac_objext
21628 if { (ac_try="$ac_compile"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_compile") 2>conftest.er1
21635 ac_status=$?
21636 grep -v '^ *+' conftest.er1 >conftest.err
21637 rm -f conftest.er1
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && {
21641 test -z "$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 } && test -s conftest.$ac_objext; then
21644 cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h. */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 $ac_includes_default
21651 int
21652 main ()
21653 {
21654 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
21655 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
21656 test_array [0] = 0
21657
21658 ;
21659 return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_compile") 2>conftest.er1
21670 ac_status=$?
21671 grep -v '^ *+' conftest.er1 >conftest.err
21672 rm -f conftest.er1
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest.$ac_objext; then
21679 :
21680 else
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 case $ac_type in
21685 int32_t) ac_cv_c_int32_t=yes ;;
21686 *) ac_cv_c_int32_t=$ac_type ;;
21687 esac
21688
21689 fi
21690
21691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692 else
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696
21697 fi
21698
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 test "$ac_cv_c_int32_t" != no && break
21701 done
21702 fi
21703 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
21704 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
21705 case $ac_cv_c_int32_t in #(
21706 no|yes) ;; #(
21707 *)
21708
21709 cat >>confdefs.h <<_ACEOF
21710 #define int32_t $ac_cv_c_int32_t
21711 _ACEOF
21712 ;;
21713 esac
21714
21715
21716 { echo "$as_me:$LINENO: checking for int64_t" >&5
21717 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
21718 if test "${ac_cv_c_int64_t+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21720 else
21721 ac_cv_c_int64_t=no
21722 for ac_type in 'int64_t' 'int' 'long int' \
21723 'long long int' 'short int' 'signed char'; do
21724 cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h. */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21730 $ac_includes_default
21731 int
21732 main ()
21733 {
21734 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
21735 test_array [0] = 0
21736
21737 ;
21738 return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest.$ac_objext
21742 if { (ac_try="$ac_compile"
21743 case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_compile") 2>conftest.er1
21749 ac_status=$?
21750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && {
21755 test -z "$ac_c_werror_flag" ||
21756 test ! -s conftest.err
21757 } && test -s conftest.$ac_objext; then
21758 cat >conftest.$ac_ext <<_ACEOF
21759 /* confdefs.h. */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21764 $ac_includes_default
21765 int
21766 main ()
21767 {
21768 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
21769 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
21770 test_array [0] = 0
21771
21772 ;
21773 return 0;
21774 }
21775 _ACEOF
21776 rm -f conftest.$ac_objext
21777 if { (ac_try="$ac_compile"
21778 case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21781 esac
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_compile") 2>conftest.er1
21784 ac_status=$?
21785 grep -v '^ *+' conftest.er1 >conftest.err
21786 rm -f conftest.er1
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest.$ac_objext; then
21793 :
21794 else
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798 case $ac_type in
21799 int64_t) ac_cv_c_int64_t=yes ;;
21800 *) ac_cv_c_int64_t=$ac_type ;;
21801 esac
21802
21803 fi
21804
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806 else
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810
21811 fi
21812
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 test "$ac_cv_c_int64_t" != no && break
21815 done
21816 fi
21817 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
21818 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
21819 case $ac_cv_c_int64_t in #(
21820 no|yes) ;; #(
21821 *)
21822
21823 cat >>confdefs.h <<_ACEOF
21824 #define int64_t $ac_cv_c_int64_t
21825 _ACEOF
21826 ;;
21827 esac
21828
21829
21830 { echo "$as_me:$LINENO: checking for uint8_t" >&5
21831 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
21832 if test "${ac_cv_c_uint8_t+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835 ac_cv_c_uint8_t=no
21836 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21837 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21838 cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h. */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 $ac_includes_default
21845 int
21846 main ()
21847 {
21848 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21849 test_array [0] = 0
21850
21851 ;
21852 return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (ac_try="$ac_compile"
21857 case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21860 esac
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862 (eval "$ac_compile") 2>conftest.er1
21863 ac_status=$?
21864 grep -v '^ *+' conftest.er1 >conftest.err
21865 rm -f conftest.er1
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } && {
21869 test -z "$ac_c_werror_flag" ||
21870 test ! -s conftest.err
21871 } && test -s conftest.$ac_objext; then
21872 case $ac_type in
21873 uint8_t) ac_cv_c_uint8_t=yes ;;
21874 *) ac_cv_c_uint8_t=$ac_type ;;
21875 esac
21876
21877 else
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881
21882 fi
21883
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 test "$ac_cv_c_uint8_t" != no && break
21886 done
21887 fi
21888 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21889 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
21890 case $ac_cv_c_uint8_t in #(
21891 no|yes) ;; #(
21892 *)
21893
21894 cat >>confdefs.h <<\_ACEOF
21895 #define _UINT8_T 1
21896 _ACEOF
21897
21898
21899 cat >>confdefs.h <<_ACEOF
21900 #define uint8_t $ac_cv_c_uint8_t
21901 _ACEOF
21902 ;;
21903 esac
21904
21905
21906 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21907 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21908 if test "${ac_cv_c_uint16_t+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21911 ac_cv_c_uint16_t=no
21912 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21913 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21914 cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h. */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 $ac_includes_default
21921 int
21922 main ()
21923 {
21924 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21925 test_array [0] = 0
21926
21927 ;
21928 return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21939 ac_status=$?
21940 grep -v '^ *+' conftest.er1 >conftest.err
21941 rm -f conftest.er1
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.$ac_objext; then
21948 case $ac_type in
21949 uint16_t) ac_cv_c_uint16_t=yes ;;
21950 *) ac_cv_c_uint16_t=$ac_type ;;
21951 esac
21952
21953 else
21954 echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21956
21957
21958 fi
21959
21960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21961 test "$ac_cv_c_uint16_t" != no && break
21962 done
21963 fi
21964 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21965 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
21966 case $ac_cv_c_uint16_t in #(
21967 no|yes) ;; #(
21968 *)
21969
21970
21971 cat >>confdefs.h <<_ACEOF
21972 #define uint16_t $ac_cv_c_uint16_t
21973 _ACEOF
21974 ;;
21975 esac
21976
21977
21978 { echo "$as_me:$LINENO: checking for uint32_t" >&5
21979 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
21980 if test "${ac_cv_c_uint32_t+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983 ac_cv_c_uint32_t=no
21984 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
21985 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21986 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h. */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 $ac_includes_default
21993 int
21994 main ()
21995 {
21996 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
21997 test_array [0] = 0
21998
21999 ;
22000 return 0;
22001 }
22002 _ACEOF
22003 rm -f conftest.$ac_objext
22004 if { (ac_try="$ac_compile"
22005 case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_compile") 2>conftest.er1
22011 ac_status=$?
22012 grep -v '^ *+' conftest.er1 >conftest.err
22013 rm -f conftest.er1
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } && {
22017 test -z "$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22019 } && test -s conftest.$ac_objext; then
22020 case $ac_type in
22021 uint32_t) ac_cv_c_uint32_t=yes ;;
22022 *) ac_cv_c_uint32_t=$ac_type ;;
22023 esac
22024
22025 else
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029
22030 fi
22031
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 test "$ac_cv_c_uint32_t" != no && break
22034 done
22035 fi
22036 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
22037 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
22038 case $ac_cv_c_uint32_t in #(
22039 no|yes) ;; #(
22040 *)
22041
22042 cat >>confdefs.h <<\_ACEOF
22043 #define _UINT32_T 1
22044 _ACEOF
22045
22046
22047 cat >>confdefs.h <<_ACEOF
22048 #define uint32_t $ac_cv_c_uint32_t
22049 _ACEOF
22050 ;;
22051 esac
22052
22053
22054 { echo "$as_me:$LINENO: checking for uint64_t" >&5
22055 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
22056 if test "${ac_cv_c_uint64_t+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059 ac_cv_c_uint64_t=no
22060 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
22061 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
22062 cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h. */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 $ac_includes_default
22069 int
22070 main ()
22071 {
22072 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
22073 test_array [0] = 0
22074
22075 ;
22076 return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22087 ac_status=$?
22088 grep -v '^ *+' conftest.er1 >conftest.err
22089 rm -f conftest.er1
22090 cat conftest.err >&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } && {
22093 test -z "$ac_c_werror_flag" ||
22094 test ! -s conftest.err
22095 } && test -s conftest.$ac_objext; then
22096 case $ac_type in
22097 uint64_t) ac_cv_c_uint64_t=yes ;;
22098 *) ac_cv_c_uint64_t=$ac_type ;;
22099 esac
22100
22101 else
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22104
22105
22106 fi
22107
22108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22109 test "$ac_cv_c_uint64_t" != no && break
22110 done
22111 fi
22112 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
22113 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
22114 case $ac_cv_c_uint64_t in #(
22115 no|yes) ;; #(
22116 *)
22117
22118 cat >>confdefs.h <<\_ACEOF
22119 #define _UINT64_T 1
22120 _ACEOF
22121
22122
22123 cat >>confdefs.h <<_ACEOF
22124 #define uint64_t $ac_cv_c_uint64_t
22125 _ACEOF
22126 ;;
22127 esac
22128
22129
22130
22131 { echo "$as_me:$LINENO: checking for intptr_t" >&5
22132 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
22133 if test "${ac_cv_type_intptr_t+set}" = set; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 else
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 $ac_includes_default
22143 typedef intptr_t ac__type_new_;
22144 int
22145 main ()
22146 {
22147 if ((ac__type_new_ *) 0)
22148 return 0;
22149 if (sizeof (ac__type_new_))
22150 return 0;
22151 ;
22152 return 0;
22153 }
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_compile") 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && {
22169 test -z "$ac_c_werror_flag" ||
22170 test ! -s conftest.err
22171 } && test -s conftest.$ac_objext; then
22172 ac_cv_type_intptr_t=yes
22173 else
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ac_cv_type_intptr_t=no
22178 fi
22179
22180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 fi
22182 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
22183 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
22184 if test $ac_cv_type_intptr_t = yes; then
22185
22186 cat >>confdefs.h <<\_ACEOF
22187 #define HAVE_INTPTR_T 1
22188 _ACEOF
22189 ac_cv_c_intptr_t=yes
22190 else
22191 for ac_type in 'int' 'long int' 'long long int'; do
22192 cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h. */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 $ac_includes_default
22199 int
22200 main ()
22201 {
22202 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22203 test_array [0] = 0
22204
22205 ;
22206 return 0;
22207 }
22208 _ACEOF
22209 rm -f conftest.$ac_objext
22210 if { (ac_try="$ac_compile"
22211 case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22214 esac
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_compile") 2>conftest.er1
22217 ac_status=$?
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } && {
22223 test -z "$ac_c_werror_flag" ||
22224 test ! -s conftest.err
22225 } && test -s conftest.$ac_objext; then
22226
22227 cat >>confdefs.h <<_ACEOF
22228 #define intptr_t $ac_type
22229 _ACEOF
22230 ac_cv_c_intptr_t="$ac_type"
22231 ac_type=
22232 else
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236
22237 fi
22238
22239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240 test -z "$ac_type" && break
22241 done
22242 fi
22243
22244
22245
22246 { echo "$as_me:$LINENO: checking for long long int" >&5
22247 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22248 if test "${ac_cv_type_long_long_int+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 else
22251 cat >conftest.$ac_ext <<_ACEOF
22252
22253 /* confdefs.h. */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 /* Test preprocessor. */
22259 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22260 error in preprocessor;
22261 #endif
22262 #if ! (18446744073709551615ULL <= -1ull)
22263 error in preprocessor;
22264 #endif
22265 /* Test literals. */
22266 long long int ll = 9223372036854775807ll;
22267 long long int nll = -9223372036854775807LL;
22268 unsigned long long int ull = 18446744073709551615ULL;
22269 /* Test constant expressions. */
22270 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22271 ? 1 : -1)];
22272 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22273 ? 1 : -1)];
22274 int i = 63;
22275 int
22276 main ()
22277 {
22278 /* Test availability of runtime routines for shift and division. */
22279 long long int llmax = 9223372036854775807ll;
22280 unsigned long long int ullmax = 18446744073709551615ull;
22281 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22282 | (llmax / ll) | (llmax % ll)
22283 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22284 | (ullmax / ull) | (ullmax % ull));
22285 ;
22286 return 0;
22287 }
22288
22289 _ACEOF
22290 rm -f conftest.$ac_objext conftest$ac_exeext
22291 if { (ac_try="$ac_link"
22292 case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297 (eval "$ac_link") 2>conftest.er1
22298 ac_status=$?
22299 grep -v '^ *+' conftest.er1 >conftest.err
22300 rm -f conftest.er1
22301 cat conftest.err >&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } && {
22304 test -z "$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22306 } && test -s conftest$ac_exeext &&
22307 $as_test_x conftest$ac_exeext; then
22308 if test "$cross_compiling" = yes; then
22309 ac_cv_type_long_long_int=yes
22310 else
22311 cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h. */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 #include <limits.h>
22318 #ifndef LLONG_MAX
22319 # define HALF \
22320 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22321 # define LLONG_MAX (HALF - 1 + HALF)
22322 #endif
22323 int
22324 main ()
22325 {
22326 long long int n = 1;
22327 int i;
22328 for (i = 0; ; i++)
22329 {
22330 long long int m = n << i;
22331 if (m >> i != n)
22332 return 1;
22333 if (LLONG_MAX / 2 < m)
22334 break;
22335 }
22336 return 0;
22337 ;
22338 return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest$ac_exeext
22342 if { (ac_try="$ac_link"
22343 case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_link") 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22352 { (case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_try") 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }; then
22361 ac_cv_type_long_long_int=yes
22362 else
22363 echo "$as_me: program exited with status $ac_status" >&5
22364 echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367 ( exit $ac_status )
22368 ac_cv_type_long_long_int=no
22369 fi
22370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22371 fi
22372
22373
22374 else
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 ac_cv_type_long_long_int=no
22379 fi
22380
22381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22382 conftest$ac_exeext conftest.$ac_ext
22383 fi
22384 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22385 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22386 if test $ac_cv_type_long_long_int = yes; then
22387
22388 cat >>confdefs.h <<\_ACEOF
22389 #define HAVE_LONG_LONG_INT 1
22390 _ACEOF
22391
22392 fi
22393
22394
22395
22396 { echo "$as_me:$LINENO: checking for intmax_t" >&5
22397 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
22398 if test "${ac_cv_type_intmax_t+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401 cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h. */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 $ac_includes_default
22408 typedef intmax_t ac__type_new_;
22409 int
22410 main ()
22411 {
22412 if ((ac__type_new_ *) 0)
22413 return 0;
22414 if (sizeof (ac__type_new_))
22415 return 0;
22416 ;
22417 return 0;
22418 }
22419 _ACEOF
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22425 esac
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
22437 ac_cv_type_intmax_t=yes
22438 else
22439 echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22441
22442 ac_cv_type_intmax_t=no
22443 fi
22444
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 fi
22447 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22448 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
22449 if test $ac_cv_type_intmax_t = yes; then
22450
22451 cat >>confdefs.h <<\_ACEOF
22452 #define HAVE_INTMAX_T 1
22453 _ACEOF
22454 ac_cv_c_intmax_t=yes
22455 else
22456 test $ac_cv_type_long_long_int = yes \
22457 && ac_type='long long int' \
22458 || ac_type='long int'
22459
22460 cat >>confdefs.h <<_ACEOF
22461 #define intmax_t $ac_type
22462 _ACEOF
22463 ac_cv_c_intmax_t="$ac_type"
22464 fi
22465
22466
22467
22468 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
22469 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
22470 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 else
22473 cat >conftest.$ac_ext <<_ACEOF
22474
22475 /* confdefs.h. */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 /* Test preprocessor. */
22481 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22482 error in preprocessor;
22483 #endif
22484 #if ! (18446744073709551615ULL <= -1ull)
22485 error in preprocessor;
22486 #endif
22487 /* Test literals. */
22488 long long int ll = 9223372036854775807ll;
22489 long long int nll = -9223372036854775807LL;
22490 unsigned long long int ull = 18446744073709551615ULL;
22491 /* Test constant expressions. */
22492 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22493 ? 1 : -1)];
22494 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22495 ? 1 : -1)];
22496 int i = 63;
22497 int
22498 main ()
22499 {
22500 /* Test availability of runtime routines for shift and division. */
22501 long long int llmax = 9223372036854775807ll;
22502 unsigned long long int ullmax = 18446744073709551615ull;
22503 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22504 | (llmax / ll) | (llmax % ll)
22505 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22506 | (ullmax / ull) | (ullmax % ull));
22507 ;
22508 return 0;
22509 }
22510
22511 _ACEOF
22512 rm -f conftest.$ac_objext conftest$ac_exeext
22513 if { (ac_try="$ac_link"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_link") 2>conftest.er1
22520 ac_status=$?
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && {
22526 test -z "$ac_c_werror_flag" ||
22527 test ! -s conftest.err
22528 } && test -s conftest$ac_exeext &&
22529 $as_test_x conftest$ac_exeext; then
22530 ac_cv_type_unsigned_long_long_int=yes
22531 else
22532 echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535 ac_cv_type_unsigned_long_long_int=no
22536 fi
22537
22538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22539 conftest$ac_exeext conftest.$ac_ext
22540 fi
22541 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
22542 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
22543 if test $ac_cv_type_unsigned_long_long_int = yes; then
22544
22545 cat >>confdefs.h <<\_ACEOF
22546 #define HAVE_UNSIGNED_LONG_LONG_INT 1
22547 _ACEOF
22548
22549 fi
22550
22551
22552
22553 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
22554 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
22555 if test "${ac_cv_type_uintmax_t+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558 cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h. */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h. */
22564 $ac_includes_default
22565 typedef uintmax_t ac__type_new_;
22566 int
22567 main ()
22568 {
22569 if ((ac__type_new_ *) 0)
22570 return 0;
22571 if (sizeof (ac__type_new_))
22572 return 0;
22573 ;
22574 return 0;
22575 }
22576 _ACEOF
22577 rm -f conftest.$ac_objext
22578 if { (ac_try="$ac_compile"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_compile") 2>conftest.er1
22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } && {
22591 test -z "$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22593 } && test -s conftest.$ac_objext; then
22594 ac_cv_type_uintmax_t=yes
22595 else
22596 echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22598
22599 ac_cv_type_uintmax_t=no
22600 fi
22601
22602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22603 fi
22604 { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
22605 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
22606 if test $ac_cv_type_uintmax_t = yes; then
22607
22608 cat >>confdefs.h <<\_ACEOF
22609 #define HAVE_UINTMAX_T 1
22610 _ACEOF
22611 ac_cv_c_uintmax_t=yes
22612 else
22613 test $ac_cv_type_unsigned_long_long_int = yes \
22614 && ac_type='unsigned long long int' \
22615 || ac_type='unsigned long int'
22616
22617 cat >>confdefs.h <<_ACEOF
22618 #define uintmax_t $ac_type
22619 _ACEOF
22620 ac_cv_c_uintmax_t="$ac_type"
22621 fi
22622
22623
22624
22625 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
22626 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
22627 if test "${ac_cv_type_uintptr_t+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630 cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h. */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 $ac_includes_default
22637 typedef uintptr_t ac__type_new_;
22638 int
22639 main ()
22640 {
22641 if ((ac__type_new_ *) 0)
22642 return 0;
22643 if (sizeof (ac__type_new_))
22644 return 0;
22645 ;
22646 return 0;
22647 }
22648 _ACEOF
22649 rm -f conftest.$ac_objext
22650 if { (ac_try="$ac_compile"
22651 case "(($ac_try" in
22652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22653 *) ac_try_echo=$ac_try;;
22654 esac
22655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22656 (eval "$ac_compile") 2>conftest.er1
22657 ac_status=$?
22658 grep -v '^ *+' conftest.er1 >conftest.err
22659 rm -f conftest.er1
22660 cat conftest.err >&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } && {
22663 test -z "$ac_c_werror_flag" ||
22664 test ! -s conftest.err
22665 } && test -s conftest.$ac_objext; then
22666 ac_cv_type_uintptr_t=yes
22667 else
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22670
22671 ac_cv_type_uintptr_t=no
22672 fi
22673
22674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22675 fi
22676 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
22677 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
22678 if test $ac_cv_type_uintptr_t = yes; then
22679
22680 cat >>confdefs.h <<\_ACEOF
22681 #define HAVE_UINTPTR_T 1
22682 _ACEOF
22683 ac_cv_c_uintptr_t=yes
22684 else
22685 for ac_type in 'unsigned int' 'unsigned long int' \
22686 'unsigned long long int'; do
22687 cat >conftest.$ac_ext <<_ACEOF
22688 /* confdefs.h. */
22689 _ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h. */
22693 $ac_includes_default
22694 int
22695 main ()
22696 {
22697 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22698 test_array [0] = 0
22699
22700 ;
22701 return 0;
22702 }
22703 _ACEOF
22704 rm -f conftest.$ac_objext
22705 if { (ac_try="$ac_compile"
22706 case "(($ac_try" in
22707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22708 *) ac_try_echo=$ac_try;;
22709 esac
22710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22711 (eval "$ac_compile") 2>conftest.er1
22712 ac_status=$?
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } && {
22718 test -z "$ac_c_werror_flag" ||
22719 test ! -s conftest.err
22720 } && test -s conftest.$ac_objext; then
22721
22722 cat >>confdefs.h <<_ACEOF
22723 #define uintptr_t $ac_type
22724 _ACEOF
22725 ac_cv_c_uintptr_t="$ac_type"
22726 ac_type=
22727 else
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22730
22731
22732 fi
22733
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 test -z "$ac_type" && break
22736 done
22737 fi
22738
22739
22740
22741 { echo "$as_me:$LINENO: checking for pid_t" >&5
22742 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22743 if test "${ac_cv_type_pid_t+set}" = set; then
22744 echo $ECHO_N "(cached) $ECHO_C" >&6
22745 else
22746 cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h. */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 $ac_includes_default
22753 typedef pid_t ac__type_new_;
22754 int
22755 main ()
22756 {
22757 if ((ac__type_new_ *) 0)
22758 return 0;
22759 if (sizeof (ac__type_new_))
22760 return 0;
22761 ;
22762 return 0;
22763 }
22764 _ACEOF
22765 rm -f conftest.$ac_objext
22766 if { (ac_try="$ac_compile"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_compile") 2>conftest.er1
22773 ac_status=$?
22774 grep -v '^ *+' conftest.er1 >conftest.err
22775 rm -f conftest.er1
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } && {
22779 test -z "$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 } && test -s conftest.$ac_objext; then
22782 ac_cv_type_pid_t=yes
22783 else
22784 echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22786
22787 ac_cv_type_pid_t=no
22788 fi
22789
22790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791 fi
22792 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22793 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22794 if test $ac_cv_type_pid_t = yes; then
22795 :
22796 else
22797
22798 cat >>confdefs.h <<_ACEOF
22799 #define pid_t int
22800 _ACEOF
22801
22802 fi
22803
22804 { echo "$as_me:$LINENO: checking for size_t" >&5
22805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22806 if test "${ac_cv_type_size_t+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h. */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 $ac_includes_default
22816 typedef size_t ac__type_new_;
22817 int
22818 main ()
22819 {
22820 if ((ac__type_new_ *) 0)
22821 return 0;
22822 if (sizeof (ac__type_new_))
22823 return 0;
22824 ;
22825 return 0;
22826 }
22827 _ACEOF
22828 rm -f conftest.$ac_objext
22829 if { (ac_try="$ac_compile"
22830 case "(($ac_try" in
22831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832 *) ac_try_echo=$ac_try;;
22833 esac
22834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22835 (eval "$ac_compile") 2>conftest.er1
22836 ac_status=$?
22837 grep -v '^ *+' conftest.er1 >conftest.err
22838 rm -f conftest.er1
22839 cat conftest.err >&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); } && {
22842 test -z "$ac_c_werror_flag" ||
22843 test ! -s conftest.err
22844 } && test -s conftest.$ac_objext; then
22845 ac_cv_type_size_t=yes
22846 else
22847 echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22849
22850 ac_cv_type_size_t=no
22851 fi
22852
22853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22854 fi
22855 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22856 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22857 if test $ac_cv_type_size_t = yes; then
22858 :
22859 else
22860
22861 cat >>confdefs.h <<_ACEOF
22862 #define size_t unsigned int
22863 _ACEOF
22864
22865 fi
22866
22867 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22868 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22869 if test "${ac_cv_type_ssize_t+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22871 else
22872 cat >conftest.$ac_ext <<_ACEOF
22873 /* confdefs.h. */
22874 _ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 $ac_includes_default
22879 typedef ssize_t ac__type_new_;
22880 int
22881 main ()
22882 {
22883 if ((ac__type_new_ *) 0)
22884 return 0;
22885 if (sizeof (ac__type_new_))
22886 return 0;
22887 ;
22888 return 0;
22889 }
22890 _ACEOF
22891 rm -f conftest.$ac_objext
22892 if { (ac_try="$ac_compile"
22893 case "(($ac_try" in
22894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22895 *) ac_try_echo=$ac_try;;
22896 esac
22897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22898 (eval "$ac_compile") 2>conftest.er1
22899 ac_status=$?
22900 grep -v '^ *+' conftest.er1 >conftest.err
22901 rm -f conftest.er1
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } && {
22905 test -z "$ac_c_werror_flag" ||
22906 test ! -s conftest.err
22907 } && test -s conftest.$ac_objext; then
22908 ac_cv_type_ssize_t=yes
22909 else
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913 ac_cv_type_ssize_t=no
22914 fi
22915
22916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 fi
22918 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22919 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22920 if test $ac_cv_type_ssize_t = yes; then
22921 :
22922 else
22923
22924 cat >>confdefs.h <<_ACEOF
22925 #define ssize_t int
22926 _ACEOF
22927
22928 fi
22929
22930 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22931 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22932 if test "${ac_cv_type_uid_t+set}" = set; then
22933 echo $ECHO_N "(cached) $ECHO_C" >&6
22934 else
22935 cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h. */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h. */
22941 #include <sys/types.h>
22942
22943 _ACEOF
22944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22945 $EGREP "uid_t" >/dev/null 2>&1; then
22946 ac_cv_type_uid_t=yes
22947 else
22948 ac_cv_type_uid_t=no
22949 fi
22950 rm -f conftest*
22951
22952 fi
22953 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22954 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22955 if test $ac_cv_type_uid_t = no; then
22956
22957 cat >>confdefs.h <<\_ACEOF
22958 #define uid_t int
22959 _ACEOF
22960
22961
22962 cat >>confdefs.h <<\_ACEOF
22963 #define gid_t int
22964 _ACEOF
22965
22966 fi
22967
22968
22969
22970 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22971 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22972 if test "${ac_cv_header_stdc+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 else
22975 cat >conftest.$ac_ext <<_ACEOF
22976 /* confdefs.h. */
22977 _ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h. */
22981 #include <stdlib.h>
22982 #include <stdarg.h>
22983 #include <string.h>
22984 #include <float.h>
22985
22986 int
22987 main ()
22988 {
22989
22990 ;
22991 return 0;
22992 }
22993 _ACEOF
22994 rm -f conftest.$ac_objext
22995 if { (ac_try="$ac_compile"
22996 case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
22999 esac
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_compile") 2>conftest.er1
23002 ac_status=$?
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } && {
23008 test -z "$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 } && test -s conftest.$ac_objext; then
23011 ac_cv_header_stdc=yes
23012 else
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016 ac_cv_header_stdc=no
23017 fi
23018
23019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020
23021 if test $ac_cv_header_stdc = yes; then
23022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23023 cat >conftest.$ac_ext <<_ACEOF
23024 /* confdefs.h. */
23025 _ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 #include <string.h>
23030
23031 _ACEOF
23032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23033 $EGREP "memchr" >/dev/null 2>&1; then
23034 :
23035 else
23036 ac_cv_header_stdc=no
23037 fi
23038 rm -f conftest*
23039
23040 fi
23041
23042 if test $ac_cv_header_stdc = yes; then
23043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23044 cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h. */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 #include <stdlib.h>
23051
23052 _ACEOF
23053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23054 $EGREP "free" >/dev/null 2>&1; then
23055 :
23056 else
23057 ac_cv_header_stdc=no
23058 fi
23059 rm -f conftest*
23060
23061 fi
23062
23063 if test $ac_cv_header_stdc = yes; then
23064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23065 if test "$cross_compiling" = yes; then
23066 :
23067 else
23068 cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h. */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23074 #include <ctype.h>
23075 #include <stdlib.h>
23076 #if ((' ' & 0x0FF) == 0x020)
23077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23079 #else
23080 # define ISLOWER(c) \
23081 (('a' <= (c) && (c) <= 'i') \
23082 || ('j' <= (c) && (c) <= 'r') \
23083 || ('s' <= (c) && (c) <= 'z'))
23084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23085 #endif
23086
23087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23088 int
23089 main ()
23090 {
23091 int i;
23092 for (i = 0; i < 256; i++)
23093 if (XOR (islower (i), ISLOWER (i))
23094 || toupper (i) != TOUPPER (i))
23095 return 2;
23096 return 0;
23097 }
23098 _ACEOF
23099 rm -f conftest$ac_exeext
23100 if { (ac_try="$ac_link"
23101 case "(($ac_try" in
23102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103 *) ac_try_echo=$ac_try;;
23104 esac
23105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23106 (eval "$ac_link") 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23110 { (case "(($ac_try" in
23111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112 *) ac_try_echo=$ac_try;;
23113 esac
23114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23115 (eval "$ac_try") 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 :
23120 else
23121 echo "$as_me: program exited with status $ac_status" >&5
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125 ( exit $ac_status )
23126 ac_cv_header_stdc=no
23127 fi
23128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23129 fi
23130
23131
23132 fi
23133 fi
23134 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23135 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23136 if test $ac_cv_header_stdc = yes; then
23137
23138 cat >>confdefs.h <<\_ACEOF
23139 #define STDC_HEADERS 1
23140 _ACEOF
23141
23142 fi
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164 for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h
23165 do
23166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23171 echo $ECHO_N "(cached) $ECHO_C" >&6
23172 fi
23173 ac_res=`eval echo '${'$as_ac_Header'}'`
23174 { echo "$as_me:$LINENO: result: $ac_res" >&5
23175 echo "${ECHO_T}$ac_res" >&6; }
23176 else
23177 # Is the header compilable?
23178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23180 cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h. */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 $ac_includes_default
23187 #include <$ac_header>
23188 _ACEOF
23189 rm -f conftest.$ac_objext
23190 if { (ac_try="$ac_compile"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_compile") 2>conftest.er1
23197 ac_status=$?
23198 grep -v '^ *+' conftest.er1 >conftest.err
23199 rm -f conftest.er1
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } && {
23203 test -z "$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 } && test -s conftest.$ac_objext; then
23206 ac_header_compiler=yes
23207 else
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23210
23211 ac_header_compiler=no
23212 fi
23213
23214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23216 echo "${ECHO_T}$ac_header_compiler" >&6; }
23217
23218 # Is the header present?
23219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23221 cat >conftest.$ac_ext <<_ACEOF
23222 /* confdefs.h. */
23223 _ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23227 #include <$ac_header>
23228 _ACEOF
23229 if { (ac_try="$ac_cpp conftest.$ac_ext"
23230 case "(($ac_try" in
23231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232 *) ac_try_echo=$ac_try;;
23233 esac
23234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } >/dev/null && {
23242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 }; then
23245 ac_header_preproc=yes
23246 else
23247 echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 ac_header_preproc=no
23251 fi
23252
23253 rm -f conftest.err conftest.$ac_ext
23254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23255 echo "${ECHO_T}$ac_header_preproc" >&6; }
23256
23257 # So? What about this header?
23258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23259 yes:no: )
23260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23264 ac_header_preproc=yes
23265 ;;
23266 no:yes:* )
23267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23279
23280 ;;
23281 esac
23282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23286 else
23287 eval "$as_ac_Header=\$ac_header_preproc"
23288 fi
23289 ac_res=`eval echo '${'$as_ac_Header'}'`
23290 { echo "$as_me:$LINENO: result: $ac_res" >&5
23291 echo "${ECHO_T}$ac_res" >&6; }
23292
23293 fi
23294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23295 cat >>confdefs.h <<_ACEOF
23296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23297 _ACEOF
23298
23299 fi
23300
23301 done
23302
23303 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23304 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23305 if test "${ac_cv_header_time+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 else
23308 cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h. */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 #include <sys/types.h>
23315 #include <sys/time.h>
23316 #include <time.h>
23317
23318 int
23319 main ()
23320 {
23321 if ((struct tm *) 0)
23322 return 0;
23323 ;
23324 return 0;
23325 }
23326 _ACEOF
23327 rm -f conftest.$ac_objext
23328 if { (ac_try="$ac_compile"
23329 case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23332 esac
23333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_header_time=yes
23345 else
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 ac_cv_header_time=no
23350 fi
23351
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 fi
23354 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23355 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23356 if test $ac_cv_header_time = yes; then
23357
23358 cat >>confdefs.h <<\_ACEOF
23359 #define TIME_WITH_SYS_TIME 1
23360 _ACEOF
23361
23362 fi
23363
23364
23365
23366 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23367 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23368 if test "${ac_cv_search_socket+set}" = set; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23370 else
23371 ac_func_search_save_LIBS=$LIBS
23372 cat >conftest.$ac_ext <<_ACEOF
23373 /* confdefs.h. */
23374 _ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h. */
23378
23379 /* Override any GCC internal prototype to avoid an error.
23380 Use char because int might match the return type of a GCC
23381 builtin and then its argument prototype would still apply. */
23382 #ifdef __cplusplus
23383 extern "C"
23384 #endif
23385 char socket ();
23386 int
23387 main ()
23388 {
23389 return socket ();
23390 ;
23391 return 0;
23392 }
23393 _ACEOF
23394 for ac_lib in '' socket; do
23395 if test -z "$ac_lib"; then
23396 ac_res="none required"
23397 else
23398 ac_res=-l$ac_lib
23399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23400 fi
23401 rm -f conftest.$ac_objext conftest$ac_exeext
23402 if { (ac_try="$ac_link"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_link") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest$ac_exeext &&
23418 $as_test_x conftest$ac_exeext; then
23419 ac_cv_search_socket=$ac_res
23420 else
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424
23425 fi
23426
23427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23428 conftest$ac_exeext
23429 if test "${ac_cv_search_socket+set}" = set; then
23430 break
23431 fi
23432 done
23433 if test "${ac_cv_search_socket+set}" = set; then
23434 :
23435 else
23436 ac_cv_search_socket=no
23437 fi
23438 rm conftest.$ac_ext
23439 LIBS=$ac_func_search_save_LIBS
23440 fi
23441 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23442 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23443 ac_res=$ac_cv_search_socket
23444 if test "$ac_res" != no; then
23445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23446
23447 fi
23448
23449
23450
23451 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
23452 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
23453 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23455 else
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h. */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23462
23463 #ifdef HAVE_SYS_TYPES_H
23464 #include <sys/types.h>
23465 #endif
23466 #ifdef HAVE_SYS_SOCKET_H
23467 #include <sys/socket.h>
23468 #endif
23469 #ifdef HAVE_WINSOCK2_H
23470 #include <winsock2.h>
23471 #endif
23472
23473
23474 int
23475 main ()
23476 {
23477 static struct sockaddr ac_aggr;
23478 if (ac_aggr.sa_len)
23479 return 0;
23480 ;
23481 return 0;
23482 }
23483 _ACEOF
23484 rm -f conftest.$ac_objext
23485 if { (ac_try="$ac_compile"
23486 case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491 (eval "$ac_compile") 2>conftest.er1
23492 ac_status=$?
23493 grep -v '^ *+' conftest.er1 >conftest.err
23494 rm -f conftest.er1
23495 cat conftest.err >&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } && {
23498 test -z "$ac_c_werror_flag" ||
23499 test ! -s conftest.err
23500 } && test -s conftest.$ac_objext; then
23501 ac_cv_member_struct_sockaddr_sa_len=yes
23502 else
23503 echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23505
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h. */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512
23513 #ifdef HAVE_SYS_TYPES_H
23514 #include <sys/types.h>
23515 #endif
23516 #ifdef HAVE_SYS_SOCKET_H
23517 #include <sys/socket.h>
23518 #endif
23519 #ifdef HAVE_WINSOCK2_H
23520 #include <winsock2.h>
23521 #endif
23522
23523
23524 int
23525 main ()
23526 {
23527 static struct sockaddr ac_aggr;
23528 if (sizeof ac_aggr.sa_len)
23529 return 0;
23530 ;
23531 return 0;
23532 }
23533 _ACEOF
23534 rm -f conftest.$ac_objext
23535 if { (ac_try="$ac_compile"
23536 case "(($ac_try" in
23537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538 *) ac_try_echo=$ac_try;;
23539 esac
23540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541 (eval "$ac_compile") 2>conftest.er1
23542 ac_status=$?
23543 grep -v '^ *+' conftest.er1 >conftest.err
23544 rm -f conftest.er1
23545 cat conftest.err >&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); } && {
23548 test -z "$ac_c_werror_flag" ||
23549 test ! -s conftest.err
23550 } && test -s conftest.$ac_objext; then
23551 ac_cv_member_struct_sockaddr_sa_len=yes
23552 else
23553 echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23555
23556 ac_cv_member_struct_sockaddr_sa_len=no
23557 fi
23558
23559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23560 fi
23561
23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563 fi
23564 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
23565 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
23566 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
23567
23568 cat >>confdefs.h <<\_ACEOF
23569 #define SOCKADDR_IN_HAS_LEN 1
23570 _ACEOF
23571
23572 fi
23573
23574
23575 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23576 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23577 if test "${ac_cv_type_socklen_t+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23579 else
23580 cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h. */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586
23587 #ifdef HAVE_SYS_TYPES_H
23588 #include <sys/types.h>
23589 #endif
23590 #ifdef HAVE_SYS_SOCKET_H
23591 #include <sys/socket.h>
23592 #endif
23593 #ifdef HAVE_WINSOCK2_H
23594 #include <winsock2.h>
23595 #endif
23596
23597
23598
23599 typedef socklen_t ac__type_new_;
23600 int
23601 main ()
23602 {
23603 if ((ac__type_new_ *) 0)
23604 return 0;
23605 if (sizeof (ac__type_new_))
23606 return 0;
23607 ;
23608 return 0;
23609 }
23610 _ACEOF
23611 rm -f conftest.$ac_objext
23612 if { (ac_try="$ac_compile"
23613 case "(($ac_try" in
23614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615 *) ac_try_echo=$ac_try;;
23616 esac
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_compile") 2>conftest.er1
23619 ac_status=$?
23620 grep -v '^ *+' conftest.er1 >conftest.err
23621 rm -f conftest.er1
23622 cat conftest.err >&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } && {
23625 test -z "$ac_c_werror_flag" ||
23626 test ! -s conftest.err
23627 } && test -s conftest.$ac_objext; then
23628 ac_cv_type_socklen_t=yes
23629 else
23630 echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633 ac_cv_type_socklen_t=no
23634 fi
23635
23636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23637 fi
23638 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23639 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23640 if test $ac_cv_type_socklen_t = yes; then
23641 :
23642 else
23643
23644 cat >>confdefs.h <<\_ACEOF
23645 #define socklen_t unsigned int
23646 _ACEOF
23647
23648 fi
23649
23650
23651 # Check whether --enable-ipv6 was given.
23652 if test "${enable_ipv6+set}" = set; then
23653 enableval=$enable_ipv6; ipv6=$enableval
23654 else
23655 ipv6=yes
23656 fi
23657
23658
23659 if test x$ipv6 != xyes; then
23660 have_v6="no"
23661 else
23662
23663 have_v6=yes
23664
23665 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
23666 echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
23667 if test "${rb_cv_proto_inet6+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 else
23670
23671 cat >conftest.$ac_ext <<_ACEOF
23672 /* confdefs.h. */
23673 _ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23677
23678 #include <sys/types.h>
23679 #include <sys/socket.h>
23680
23681 #ifndef PF_INET6
23682 #error Missing PF_INET6
23683 #endif
23684 #ifndef AF_INET6
23685 #error Mlssing AF_INET6
23686 #endif
23687
23688 _ACEOF
23689 if { (ac_try="$ac_cpp conftest.$ac_ext"
23690 case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23696 ac_status=$?
23697 grep -v '^ *+' conftest.er1 >conftest.err
23698 rm -f conftest.er1
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } >/dev/null && {
23702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 }; then
23705
23706 rb_cv_proto_inet6=yes
23707
23708 else
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23711
23712
23713 rb_cv_proto_inet6=no
23714
23715 fi
23716
23717 rm -f conftest.err conftest.$ac_ext
23718
23719 fi
23720 { echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
23721 echo "${ECHO_T}$rb_cv_proto_inet6" >&6; }
23722
23723 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
23724
23725 else :
23726
23727 { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
23728 echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
23729 have_v6=no
23730
23731 fi
23732
23733
23734 if test "X$have_v6" = "Xyes"; then
23735
23736 rb_have_sockaddr_in6=
23737 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23738 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23739 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23740 echo $ECHO_N "(cached) $ECHO_C" >&6
23741 else
23742 cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h. */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748
23749 #include <sys/types.h>
23750 #include <sys/socket.h>
23751 #include <netinet/in.h>
23752
23753
23754 typedef struct sockaddr_in6 ac__type_new_;
23755 int
23756 main ()
23757 {
23758 if ((ac__type_new_ *) 0)
23759 return 0;
23760 if (sizeof (ac__type_new_))
23761 return 0;
23762 ;
23763 return 0;
23764 }
23765 _ACEOF
23766 rm -f conftest.$ac_objext
23767 if { (ac_try="$ac_compile"
23768 case "(($ac_try" in
23769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23771 esac
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773 (eval "$ac_compile") 2>conftest.er1
23774 ac_status=$?
23775 grep -v '^ *+' conftest.er1 >conftest.err
23776 rm -f conftest.er1
23777 cat conftest.err >&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } && {
23780 test -z "$ac_c_werror_flag" ||
23781 test ! -s conftest.err
23782 } && test -s conftest.$ac_objext; then
23783 ac_cv_type_struct_sockaddr_in6=yes
23784 else
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23787
23788 ac_cv_type_struct_sockaddr_in6=no
23789 fi
23790
23791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23792 fi
23793 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23794 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23795 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23796
23797 cat >>confdefs.h <<_ACEOF
23798 #define HAVE_STRUCT_SOCKADDR_IN6 1
23799 _ACEOF
23800
23801
23802 rb_have_sockaddr_in6=yes
23803
23804 else
23805
23806 rb_have_sockaddr_in6=no
23807
23808 fi
23809
23810
23811 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
23812
23813 else :
23814
23815 { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
23816 echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
23817 have_v6=no
23818
23819 fi
23820
23821 fi
23822
23823 fi
23824
23825 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23826 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23827 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23828 echo $ECHO_N "(cached) $ECHO_C" >&6
23829 else
23830 cat >conftest.$ac_ext <<_ACEOF
23831 /* confdefs.h. */
23832 _ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h. */
23836
23837 #include <sys/types.h>
23838 #include <sys/socket.h>
23839
23840
23841 typedef struct sockaddr_storage ac__type_new_;
23842 int
23843 main ()
23844 {
23845 if ((ac__type_new_ *) 0)
23846 return 0;
23847 if (sizeof (ac__type_new_))
23848 return 0;
23849 ;
23850 return 0;
23851 }
23852 _ACEOF
23853 rm -f conftest.$ac_objext
23854 if { (ac_try="$ac_compile"
23855 case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23858 esac
23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_compile") 2>conftest.er1
23861 ac_status=$?
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } && {
23867 test -z "$ac_c_werror_flag" ||
23868 test ! -s conftest.err
23869 } && test -s conftest.$ac_objext; then
23870 ac_cv_type_struct_sockaddr_storage=yes
23871 else
23872 echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 ac_cv_type_struct_sockaddr_storage=no
23876 fi
23877
23878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23879 fi
23880 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23881 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23882 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23883
23884 cat >>confdefs.h <<_ACEOF
23885 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23886 _ACEOF
23887
23888
23889 rb_have_sockaddr_storage=yes
23890
23891 fi
23892
23893
23894
23895 save_LIBS=$LIBS
23896 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
23897 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
23898 if test "${ac_cv_search_crypt+set}" = set; then
23899 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 else
23901 ac_func_search_save_LIBS=$LIBS
23902 cat >conftest.$ac_ext <<_ACEOF
23903 /* confdefs.h. */
23904 _ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h. */
23908
23909 /* Override any GCC internal prototype to avoid an error.
23910 Use char because int might match the return type of a GCC
23911 builtin and then its argument prototype would still apply. */
23912 #ifdef __cplusplus
23913 extern "C"
23914 #endif
23915 char crypt ();
23916 int
23917 main ()
23918 {
23919 return crypt ();
23920 ;
23921 return 0;
23922 }
23923 _ACEOF
23924 for ac_lib in '' crypt descrypt; do
23925 if test -z "$ac_lib"; then
23926 ac_res="none required"
23927 else
23928 ac_res=-l$ac_lib
23929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23930 fi
23931 rm -f conftest.$ac_objext conftest$ac_exeext
23932 if { (ac_try="$ac_link"
23933 case "(($ac_try" in
23934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23935 *) ac_try_echo=$ac_try;;
23936 esac
23937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23938 (eval "$ac_link") 2>conftest.er1
23939 ac_status=$?
23940 grep -v '^ *+' conftest.er1 >conftest.err
23941 rm -f conftest.er1
23942 cat conftest.err >&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && {
23945 test -z "$ac_c_werror_flag" ||
23946 test ! -s conftest.err
23947 } && test -s conftest$ac_exeext &&
23948 $as_test_x conftest$ac_exeext; then
23949 ac_cv_search_crypt=$ac_res
23950 else
23951 echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23953
23954
23955 fi
23956
23957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23958 conftest$ac_exeext
23959 if test "${ac_cv_search_crypt+set}" = set; then
23960 break
23961 fi
23962 done
23963 if test "${ac_cv_search_crypt+set}" = set; then
23964 :
23965 else
23966 ac_cv_search_crypt=no
23967 fi
23968 rm conftest.$ac_ext
23969 LIBS=$ac_func_search_save_LIBS
23970 fi
23971 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
23972 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
23973 ac_res=$ac_cv_search_crypt
23974 if test "$ac_res" != no; then
23975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23976
23977 fi
23978
23979 LIBS=$save_LIBS
23980
23981 CRYPT_LIB=$ac_cv_search_crypt
23982
23983 if test "$CRYPT_LIB" = "none required"; then
23984 unset CRYPT_LIB
23985 elif test "$CRYPT_LIB" = no; then
23986 need_crypt=yes;
23987
23988 cat >>confdefs.h <<\_ACEOF
23989 #define NEED_CRYPT 1
23990 _ACEOF
23991
23992 unset CRYPT_LIB
23993 fi
23994
23995 if test x"$need_crypt" == "xyes"; then
23996 NEED_CRYPT_TRUE=
23997 NEED_CRYPT_FALSE='#'
23998 else
23999 NEED_CRYPT_TRUE='#'
24000 NEED_CRYPT_FALSE=
24001 fi
24002
24003
24004
24005
24006
24007 if test "${ac_cv_header_stdarg_h+set}" = set; then
24008 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
24009 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
24010 if test "${ac_cv_header_stdarg_h+set}" = set; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24012 fi
24013 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
24014 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
24015 else
24016 # Is the header compilable?
24017 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
24018 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
24019 cat >conftest.$ac_ext <<_ACEOF
24020 /* confdefs.h. */
24021 _ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h. */
24025 $ac_includes_default
24026 #include <stdarg.h>
24027 _ACEOF
24028 rm -f conftest.$ac_objext
24029 if { (ac_try="$ac_compile"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24033 esac
24034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035 (eval "$ac_compile") 2>conftest.er1
24036 ac_status=$?
24037 grep -v '^ *+' conftest.er1 >conftest.err
24038 rm -f conftest.er1
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } && {
24042 test -z "$ac_c_werror_flag" ||
24043 test ! -s conftest.err
24044 } && test -s conftest.$ac_objext; then
24045 ac_header_compiler=yes
24046 else
24047 echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24049
24050 ac_header_compiler=no
24051 fi
24052
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24055 echo "${ECHO_T}$ac_header_compiler" >&6; }
24056
24057 # Is the header present?
24058 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
24059 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
24060 cat >conftest.$ac_ext <<_ACEOF
24061 /* confdefs.h. */
24062 _ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 #include <stdarg.h>
24067 _ACEOF
24068 if { (ac_try="$ac_cpp conftest.$ac_ext"
24069 case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24072 esac
24073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24075 ac_status=$?
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } >/dev/null && {
24081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24082 test ! -s conftest.err
24083 }; then
24084 ac_header_preproc=yes
24085 else
24086 echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24088
24089 ac_header_preproc=no
24090 fi
24091
24092 rm -f conftest.err conftest.$ac_ext
24093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24094 echo "${ECHO_T}$ac_header_preproc" >&6; }
24095
24096 # So? What about this header?
24097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24098 yes:no: )
24099 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
24100 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24101 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
24102 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
24103 ac_header_preproc=yes
24104 ;;
24105 no:yes:* )
24106 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
24107 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
24108 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
24109 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
24110 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
24111 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
24112 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
24113 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
24114 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
24115 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
24116 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
24117 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
24118
24119 ;;
24120 esac
24121 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
24122 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
24123 if test "${ac_cv_header_stdarg_h+set}" = set; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24126 ac_cv_header_stdarg_h=$ac_header_preproc
24127 fi
24128 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
24129 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
24130
24131 fi
24132 if test $ac_cv_header_stdarg_h = yes; then
24133 :
24134 else
24135 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
24136 echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
24137 { (exit 1); exit 1; }; }
24138 fi
24139
24140
24141
24142 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
24143 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
24144 if test "${ac_cv_type_sa_family_t+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146 else
24147 cat >conftest.$ac_ext <<_ACEOF
24148 /* confdefs.h. */
24149 _ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h. */
24153 #include <sys/types.h>
24154 #include <sys/socket.h>
24155
24156 typedef sa_family_t ac__type_new_;
24157 int
24158 main ()
24159 {
24160 if ((ac__type_new_ *) 0)
24161 return 0;
24162 if (sizeof (ac__type_new_))
24163 return 0;
24164 ;
24165 return 0;
24166 }
24167 _ACEOF
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24173 esac
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175 (eval "$ac_compile") 2>conftest.er1
24176 ac_status=$?
24177 grep -v '^ *+' conftest.er1 >conftest.err
24178 rm -f conftest.er1
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } && {
24182 test -z "$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24184 } && test -s conftest.$ac_objext; then
24185 ac_cv_type_sa_family_t=yes
24186 else
24187 echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24189
24190 ac_cv_type_sa_family_t=no
24191 fi
24192
24193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24194 fi
24195 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
24196 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
24197 if test $ac_cv_type_sa_family_t = yes; then
24198 :
24199 else
24200
24201 cat >>confdefs.h <<\_ACEOF
24202 #define sa_family_t u_int16_t
24203 _ACEOF
24204
24205 fi
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227 for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl
24228 do
24229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24233 echo $ECHO_N "(cached) $ECHO_C" >&6
24234 else
24235 cat >conftest.$ac_ext <<_ACEOF
24236 /* confdefs.h. */
24237 _ACEOF
24238 cat confdefs.h >>conftest.$ac_ext
24239 cat >>conftest.$ac_ext <<_ACEOF
24240 /* end confdefs.h. */
24241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24243 #define $ac_func innocuous_$ac_func
24244
24245 /* System header to define __stub macros and hopefully few prototypes,
24246 which can conflict with char $ac_func (); below.
24247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24248 <limits.h> exists even on freestanding compilers. */
24249
24250 #ifdef __STDC__
24251 # include <limits.h>
24252 #else
24253 # include <assert.h>
24254 #endif
24255
24256 #undef $ac_func
24257
24258 /* Override any GCC internal prototype to avoid an error.
24259 Use char because int might match the return type of a GCC
24260 builtin and then its argument prototype would still apply. */
24261 #ifdef __cplusplus
24262 extern "C"
24263 #endif
24264 char $ac_func ();
24265 /* The GNU C library defines this for functions which it implements
24266 to always fail with ENOSYS. Some functions are actually named
24267 something starting with __ and the normal name is an alias. */
24268 #if defined __stub_$ac_func || defined __stub___$ac_func
24269 choke me
24270 #endif
24271
24272 int
24273 main ()
24274 {
24275 return $ac_func ();
24276 ;
24277 return 0;
24278 }
24279 _ACEOF
24280 rm -f conftest.$ac_objext conftest$ac_exeext
24281 if { (ac_try="$ac_link"
24282 case "(($ac_try" in
24283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284 *) ac_try_echo=$ac_try;;
24285 esac
24286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287 (eval "$ac_link") 2>conftest.er1
24288 ac_status=$?
24289 grep -v '^ *+' conftest.er1 >conftest.err
24290 rm -f conftest.er1
24291 cat conftest.err >&5
24292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); } && {
24294 test -z "$ac_c_werror_flag" ||
24295 test ! -s conftest.err
24296 } && test -s conftest$ac_exeext &&
24297 $as_test_x conftest$ac_exeext; then
24298 eval "$as_ac_var=yes"
24299 else
24300 echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24302
24303 eval "$as_ac_var=no"
24304 fi
24305
24306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24307 conftest$ac_exeext conftest.$ac_ext
24308 fi
24309 ac_res=`eval echo '${'$as_ac_var'}'`
24310 { echo "$as_me:$LINENO: result: $ac_res" >&5
24311 echo "${ECHO_T}$ac_res" >&6; }
24312 if test `eval echo '${'$as_ac_var'}'` = yes; then
24313 cat >>confdefs.h <<_ACEOF
24314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24315 _ACEOF
24316
24317 fi
24318 done
24319
24320
24321 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
24322 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
24323 if test "${ac_cv_search_nanosleep+set}" = set; then
24324 echo $ECHO_N "(cached) $ECHO_C" >&6
24325 else
24326 ac_func_search_save_LIBS=$LIBS
24327 cat >conftest.$ac_ext <<_ACEOF
24328 /* confdefs.h. */
24329 _ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h. */
24333
24334 /* Override any GCC internal prototype to avoid an error.
24335 Use char because int might match the return type of a GCC
24336 builtin and then its argument prototype would still apply. */
24337 #ifdef __cplusplus
24338 extern "C"
24339 #endif
24340 char nanosleep ();
24341 int
24342 main ()
24343 {
24344 return nanosleep ();
24345 ;
24346 return 0;
24347 }
24348 _ACEOF
24349 for ac_lib in '' rt posix4; do
24350 if test -z "$ac_lib"; then
24351 ac_res="none required"
24352 else
24353 ac_res=-l$ac_lib
24354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24355 fi
24356 rm -f conftest.$ac_objext conftest$ac_exeext
24357 if { (ac_try="$ac_link"
24358 case "(($ac_try" in
24359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360 *) ac_try_echo=$ac_try;;
24361 esac
24362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363 (eval "$ac_link") 2>conftest.er1
24364 ac_status=$?
24365 grep -v '^ *+' conftest.er1 >conftest.err
24366 rm -f conftest.er1
24367 cat conftest.err >&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } && {
24370 test -z "$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24372 } && test -s conftest$ac_exeext &&
24373 $as_test_x conftest$ac_exeext; then
24374 ac_cv_search_nanosleep=$ac_res
24375 else
24376 echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379
24380 fi
24381
24382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24383 conftest$ac_exeext
24384 if test "${ac_cv_search_nanosleep+set}" = set; then
24385 break
24386 fi
24387 done
24388 if test "${ac_cv_search_nanosleep+set}" = set; then
24389 :
24390 else
24391 ac_cv_search_nanosleep=no
24392 fi
24393 rm conftest.$ac_ext
24394 LIBS=$ac_func_search_save_LIBS
24395 fi
24396 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
24397 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
24398 ac_res=$ac_cv_search_nanosleep
24399 if test "$ac_res" != no; then
24400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24401
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_NANOSLEEP 1
24404 _ACEOF
24405
24406 fi
24407
24408 { echo "$as_me:$LINENO: checking for library containing timer_create" >&5
24409 echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; }
24410 if test "${ac_cv_search_timer_create+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24412 else
24413 ac_func_search_save_LIBS=$LIBS
24414 cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h. */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24420
24421 /* Override any GCC internal prototype to avoid an error.
24422 Use char because int might match the return type of a GCC
24423 builtin and then its argument prototype would still apply. */
24424 #ifdef __cplusplus
24425 extern "C"
24426 #endif
24427 char timer_create ();
24428 int
24429 main ()
24430 {
24431 return timer_create ();
24432 ;
24433 return 0;
24434 }
24435 _ACEOF
24436 for ac_lib in '' rt; do
24437 if test -z "$ac_lib"; then
24438 ac_res="none required"
24439 else
24440 ac_res=-l$ac_lib
24441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24442 fi
24443 rm -f conftest.$ac_objext conftest$ac_exeext
24444 if { (ac_try="$ac_link"
24445 case "(($ac_try" in
24446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447 *) ac_try_echo=$ac_try;;
24448 esac
24449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24450 (eval "$ac_link") 2>conftest.er1
24451 ac_status=$?
24452 grep -v '^ *+' conftest.er1 >conftest.err
24453 rm -f conftest.er1
24454 cat conftest.err >&5
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } && {
24457 test -z "$ac_c_werror_flag" ||
24458 test ! -s conftest.err
24459 } && test -s conftest$ac_exeext &&
24460 $as_test_x conftest$ac_exeext; then
24461 ac_cv_search_timer_create=$ac_res
24462 else
24463 echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24465
24466
24467 fi
24468
24469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24470 conftest$ac_exeext
24471 if test "${ac_cv_search_timer_create+set}" = set; then
24472 break
24473 fi
24474 done
24475 if test "${ac_cv_search_timer_create+set}" = set; then
24476 :
24477 else
24478 ac_cv_search_timer_create=no
24479 fi
24480 rm conftest.$ac_ext
24481 LIBS=$ac_func_search_save_LIBS
24482 fi
24483 { echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
24484 echo "${ECHO_T}$ac_cv_search_timer_create" >&6; }
24485 ac_res=$ac_cv_search_timer_create
24486 if test "$ac_res" != no; then
24487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24488
24489 cat >>confdefs.h <<\_ACEOF
24490 #define HAVE_TIMER_CREATE 1
24491 _ACEOF
24492
24493 fi
24494
24495 { echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
24496 echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
24497 if test "${rb__cv_timer_create_works+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24499 else
24500 if test "$cross_compiling" = yes; then
24501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24502 See \`config.log' for more details." >&5
24503 echo "$as_me: error: cannot run test program while cross compiling
24504 See \`config.log' for more details." >&2;}
24505 { (exit 1); exit 1; }; }
24506 else
24507 cat >conftest.$ac_ext <<_ACEOF
24508 /* confdefs.h. */
24509 _ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24513
24514 #ifdef HAVE_TIME_H
24515 #include <time.h>
24516 #endif
24517 #ifdef HAVE_SIGNAL_H
24518 #include <signal.h>
24519 #endif
24520 #ifdef HAVE_UNISTD_H
24521 #include <unistd.h>
24522 #endif
24523 int main(int argc, char *argv[])
24524 {
24525 #if HAVE_TIMER_CREATE
24526 struct sigevent ev;
24527 timer_t timer;
24528 ev.sigev_notify = SIGEV_SIGNAL;
24529 ev.sigev_signo = SIGVTALRM;
24530 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
24531 return 1;
24532 }
24533 #else
24534 return 1;
24535 #endif
24536 return 0;
24537 }
24538
24539 _ACEOF
24540 rm -f conftest$ac_exeext
24541 if { (ac_try="$ac_link"
24542 case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24545 esac
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547 (eval "$ac_link") 2>&5
24548 ac_status=$?
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24551 { (case "(($ac_try" in
24552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553 *) ac_try_echo=$ac_try;;
24554 esac
24555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556 (eval "$ac_try") 2>&5
24557 ac_status=$?
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; }; then
24560 rb__cv_timer_create_works=yes
24561 else
24562 echo "$as_me: program exited with status $ac_status" >&5
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 ( exit $ac_status )
24567 rb__cv_timer_create_works=no
24568 fi
24569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24570 fi
24571
24572
24573
24574 fi
24575 { echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
24576 echo "${ECHO_T}$rb__cv_timer_create_works" >&6; }
24577 case $rb__cv_timer_create_works in
24578 yes)
24579 cat >>confdefs.h <<\_ACEOF
24580 #define USE_TIMER_CREATE 1
24581 _ACEOF
24582 ;;
24583 esac
24584
24585
24586 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24587 # for constant arguments. Useless!
24588 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24589 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24590 if test "${ac_cv_working_alloca_h+set}" = set; then
24591 echo $ECHO_N "(cached) $ECHO_C" >&6
24592 else
24593 cat >conftest.$ac_ext <<_ACEOF
24594 /* confdefs.h. */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h. */
24599 #include <alloca.h>
24600 int
24601 main ()
24602 {
24603 char *p = (char *) alloca (2 * sizeof (int));
24604 if (p) return 0;
24605 ;
24606 return 0;
24607 }
24608 _ACEOF
24609 rm -f conftest.$ac_objext conftest$ac_exeext
24610 if { (ac_try="$ac_link"
24611 case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24614 esac
24615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_link") 2>conftest.er1
24617 ac_status=$?
24618 grep -v '^ *+' conftest.er1 >conftest.err
24619 rm -f conftest.er1
24620 cat conftest.err >&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && {
24623 test -z "$ac_c_werror_flag" ||
24624 test ! -s conftest.err
24625 } && test -s conftest$ac_exeext &&
24626 $as_test_x conftest$ac_exeext; then
24627 ac_cv_working_alloca_h=yes
24628 else
24629 echo "$as_me: failed program was:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24631
24632 ac_cv_working_alloca_h=no
24633 fi
24634
24635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24636 conftest$ac_exeext conftest.$ac_ext
24637 fi
24638 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24639 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24640 if test $ac_cv_working_alloca_h = yes; then
24641
24642 cat >>confdefs.h <<\_ACEOF
24643 #define HAVE_ALLOCA_H 1
24644 _ACEOF
24645
24646 fi
24647
24648 { echo "$as_me:$LINENO: checking for alloca" >&5
24649 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24650 if test "${ac_cv_func_alloca_works+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 else
24653 cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h. */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 #ifdef __GNUC__
24660 # define alloca __builtin_alloca
24661 #else
24662 # ifdef _MSC_VER
24663 # include <malloc.h>
24664 # define alloca _alloca
24665 # else
24666 # ifdef HAVE_ALLOCA_H
24667 # include <alloca.h>
24668 # else
24669 # ifdef _AIX
24670 #pragma alloca
24671 # else
24672 # ifndef alloca /* predefined by HP cc +Olibcalls */
24673 char *alloca ();
24674 # endif
24675 # endif
24676 # endif
24677 # endif
24678 #endif
24679
24680 int
24681 main ()
24682 {
24683 char *p = (char *) alloca (1);
24684 if (p) return 0;
24685 ;
24686 return 0;
24687 }
24688 _ACEOF
24689 rm -f conftest.$ac_objext conftest$ac_exeext
24690 if { (ac_try="$ac_link"
24691 case "(($ac_try" in
24692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693 *) ac_try_echo=$ac_try;;
24694 esac
24695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24696 (eval "$ac_link") 2>conftest.er1
24697 ac_status=$?
24698 grep -v '^ *+' conftest.er1 >conftest.err
24699 rm -f conftest.er1
24700 cat conftest.err >&5
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); } && {
24703 test -z "$ac_c_werror_flag" ||
24704 test ! -s conftest.err
24705 } && test -s conftest$ac_exeext &&
24706 $as_test_x conftest$ac_exeext; then
24707 ac_cv_func_alloca_works=yes
24708 else
24709 echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24711
24712 ac_cv_func_alloca_works=no
24713 fi
24714
24715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24716 conftest$ac_exeext conftest.$ac_ext
24717 fi
24718 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24719 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24720
24721 if test $ac_cv_func_alloca_works = yes; then
24722
24723 cat >>confdefs.h <<\_ACEOF
24724 #define HAVE_ALLOCA 1
24725 _ACEOF
24726
24727 else
24728 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24729 # that cause trouble. Some versions do not even contain alloca or
24730 # contain a buggy version. If you still want to use their alloca,
24731 # use ar to extract alloca.o from them instead of compiling alloca.c.
24732
24733 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24734
24735 cat >>confdefs.h <<\_ACEOF
24736 #define C_ALLOCA 1
24737 _ACEOF
24738
24739
24740 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24741 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24742 if test "${ac_cv_os_cray+set}" = set; then
24743 echo $ECHO_N "(cached) $ECHO_C" >&6
24744 else
24745 cat >conftest.$ac_ext <<_ACEOF
24746 /* confdefs.h. */
24747 _ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24751 #if defined CRAY && ! defined CRAY2
24752 webecray
24753 #else
24754 wenotbecray
24755 #endif
24756
24757 _ACEOF
24758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24759 $EGREP "webecray" >/dev/null 2>&1; then
24760 ac_cv_os_cray=yes
24761 else
24762 ac_cv_os_cray=no
24763 fi
24764 rm -f conftest*
24765
24766 fi
24767 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24768 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24769 if test $ac_cv_os_cray = yes; then
24770 for ac_func in _getb67 GETB67 getb67; do
24771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 else
24777 cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h. */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h. */
24783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24785 #define $ac_func innocuous_$ac_func
24786
24787 /* System header to define __stub macros and hopefully few prototypes,
24788 which can conflict with char $ac_func (); below.
24789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24790 <limits.h> exists even on freestanding compilers. */
24791
24792 #ifdef __STDC__
24793 # include <limits.h>
24794 #else
24795 # include <assert.h>
24796 #endif
24797
24798 #undef $ac_func
24799
24800 /* Override any GCC internal prototype to avoid an error.
24801 Use char because int might match the return type of a GCC
24802 builtin and then its argument prototype would still apply. */
24803 #ifdef __cplusplus
24804 extern "C"
24805 #endif
24806 char $ac_func ();
24807 /* The GNU C library defines this for functions which it implements
24808 to always fail with ENOSYS. Some functions are actually named
24809 something starting with __ and the normal name is an alias. */
24810 #if defined __stub_$ac_func || defined __stub___$ac_func
24811 choke me
24812 #endif
24813
24814 int
24815 main ()
24816 {
24817 return $ac_func ();
24818 ;
24819 return 0;
24820 }
24821 _ACEOF
24822 rm -f conftest.$ac_objext conftest$ac_exeext
24823 if { (ac_try="$ac_link"
24824 case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24827 esac
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_link") 2>conftest.er1
24830 ac_status=$?
24831 grep -v '^ *+' conftest.er1 >conftest.err
24832 rm -f conftest.er1
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && {
24836 test -z "$ac_c_werror_flag" ||
24837 test ! -s conftest.err
24838 } && test -s conftest$ac_exeext &&
24839 $as_test_x conftest$ac_exeext; then
24840 eval "$as_ac_var=yes"
24841 else
24842 echo "$as_me: failed program was:" >&5
24843 sed 's/^/| /' conftest.$ac_ext >&5
24844
24845 eval "$as_ac_var=no"
24846 fi
24847
24848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24849 conftest$ac_exeext conftest.$ac_ext
24850 fi
24851 ac_res=`eval echo '${'$as_ac_var'}'`
24852 { echo "$as_me:$LINENO: result: $ac_res" >&5
24853 echo "${ECHO_T}$ac_res" >&6; }
24854 if test `eval echo '${'$as_ac_var'}'` = yes; then
24855
24856 cat >>confdefs.h <<_ACEOF
24857 #define CRAY_STACKSEG_END $ac_func
24858 _ACEOF
24859
24860 break
24861 fi
24862
24863 done
24864 fi
24865
24866 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24867 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24868 if test "${ac_cv_c_stack_direction+set}" = set; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 else
24871 if test "$cross_compiling" = yes; then
24872 ac_cv_c_stack_direction=0
24873 else
24874 cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h. */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h. */
24880 $ac_includes_default
24881 int
24882 find_stack_direction ()
24883 {
24884 static char *addr = 0;
24885 auto char dummy;
24886 if (addr == 0)
24887 {
24888 addr = &dummy;
24889 return find_stack_direction ();
24890 }
24891 else
24892 return (&dummy > addr) ? 1 : -1;
24893 }
24894
24895 int
24896 main ()
24897 {
24898 return find_stack_direction () < 0;
24899 }
24900 _ACEOF
24901 rm -f conftest$ac_exeext
24902 if { (ac_try="$ac_link"
24903 case "(($ac_try" in
24904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24905 *) ac_try_echo=$ac_try;;
24906 esac
24907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24908 (eval "$ac_link") 2>&5
24909 ac_status=$?
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24912 { (case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24915 esac
24916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24917 (eval "$ac_try") 2>&5
24918 ac_status=$?
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; }; then
24921 ac_cv_c_stack_direction=1
24922 else
24923 echo "$as_me: program exited with status $ac_status" >&5
24924 echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24926
24927 ( exit $ac_status )
24928 ac_cv_c_stack_direction=-1
24929 fi
24930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24931 fi
24932
24933
24934 fi
24935 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24936 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24937
24938 cat >>confdefs.h <<_ACEOF
24939 #define STACK_DIRECTION $ac_cv_c_stack_direction
24940 _ACEOF
24941
24942
24943 fi
24944
24945
24946 for ac_header in vfork.h
24947 do
24948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24953 echo $ECHO_N "(cached) $ECHO_C" >&6
24954 fi
24955 ac_res=`eval echo '${'$as_ac_Header'}'`
24956 { echo "$as_me:$LINENO: result: $ac_res" >&5
24957 echo "${ECHO_T}$ac_res" >&6; }
24958 else
24959 # Is the header compilable?
24960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24962 cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h. */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24968 $ac_includes_default
24969 #include <$ac_header>
24970 _ACEOF
24971 rm -f conftest.$ac_objext
24972 if { (ac_try="$ac_compile"
24973 case "(($ac_try" in
24974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975 *) ac_try_echo=$ac_try;;
24976 esac
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978 (eval "$ac_compile") 2>conftest.er1
24979 ac_status=$?
24980 grep -v '^ *+' conftest.er1 >conftest.err
24981 rm -f conftest.er1
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest.$ac_objext; then
24988 ac_header_compiler=yes
24989 else
24990 echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24992
24993 ac_header_compiler=no
24994 fi
24995
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24998 echo "${ECHO_T}$ac_header_compiler" >&6; }
24999
25000 # Is the header present?
25001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25003 cat >conftest.$ac_ext <<_ACEOF
25004 /* confdefs.h. */
25005 _ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h. */
25009 #include <$ac_header>
25010 _ACEOF
25011 if { (ac_try="$ac_cpp conftest.$ac_ext"
25012 case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25015 esac
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25018 ac_status=$?
25019 grep -v '^ *+' conftest.er1 >conftest.err
25020 rm -f conftest.er1
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } >/dev/null && {
25024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25025 test ! -s conftest.err
25026 }; then
25027 ac_header_preproc=yes
25028 else
25029 echo "$as_me: failed program was:" >&5
25030 sed 's/^/| /' conftest.$ac_ext >&5
25031
25032 ac_header_preproc=no
25033 fi
25034
25035 rm -f conftest.err conftest.$ac_ext
25036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25037 echo "${ECHO_T}$ac_header_preproc" >&6; }
25038
25039 # So? What about this header?
25040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25041 yes:no: )
25042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25046 ac_header_preproc=yes
25047 ;;
25048 no:yes:* )
25049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25061
25062 ;;
25063 esac
25064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25068 else
25069 eval "$as_ac_Header=\$ac_header_preproc"
25070 fi
25071 ac_res=`eval echo '${'$as_ac_Header'}'`
25072 { echo "$as_me:$LINENO: result: $ac_res" >&5
25073 echo "${ECHO_T}$ac_res" >&6; }
25074
25075 fi
25076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25077 cat >>confdefs.h <<_ACEOF
25078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25079 _ACEOF
25080
25081 fi
25082
25083 done
25084
25085
25086
25087 for ac_func in fork vfork
25088 do
25089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25094 else
25095 cat >conftest.$ac_ext <<_ACEOF
25096 /* confdefs.h. */
25097 _ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h. */
25101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25103 #define $ac_func innocuous_$ac_func
25104
25105 /* System header to define __stub macros and hopefully few prototypes,
25106 which can conflict with char $ac_func (); below.
25107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25108 <limits.h> exists even on freestanding compilers. */
25109
25110 #ifdef __STDC__
25111 # include <limits.h>
25112 #else
25113 # include <assert.h>
25114 #endif
25115
25116 #undef $ac_func
25117
25118 /* Override any GCC internal prototype to avoid an error.
25119 Use char because int might match the return type of a GCC
25120 builtin and then its argument prototype would still apply. */
25121 #ifdef __cplusplus
25122 extern "C"
25123 #endif
25124 char $ac_func ();
25125 /* The GNU C library defines this for functions which it implements
25126 to always fail with ENOSYS. Some functions are actually named
25127 something starting with __ and the normal name is an alias. */
25128 #if defined __stub_$ac_func || defined __stub___$ac_func
25129 choke me
25130 #endif
25131
25132 int
25133 main ()
25134 {
25135 return $ac_func ();
25136 ;
25137 return 0;
25138 }
25139 _ACEOF
25140 rm -f conftest.$ac_objext conftest$ac_exeext
25141 if { (ac_try="$ac_link"
25142 case "(($ac_try" in
25143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144 *) ac_try_echo=$ac_try;;
25145 esac
25146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147 (eval "$ac_link") 2>conftest.er1
25148 ac_status=$?
25149 grep -v '^ *+' conftest.er1 >conftest.err
25150 rm -f conftest.er1
25151 cat conftest.err >&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } && {
25154 test -z "$ac_c_werror_flag" ||
25155 test ! -s conftest.err
25156 } && test -s conftest$ac_exeext &&
25157 $as_test_x conftest$ac_exeext; then
25158 eval "$as_ac_var=yes"
25159 else
25160 echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163 eval "$as_ac_var=no"
25164 fi
25165
25166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25167 conftest$ac_exeext conftest.$ac_ext
25168 fi
25169 ac_res=`eval echo '${'$as_ac_var'}'`
25170 { echo "$as_me:$LINENO: result: $ac_res" >&5
25171 echo "${ECHO_T}$ac_res" >&6; }
25172 if test `eval echo '${'$as_ac_var'}'` = yes; then
25173 cat >>confdefs.h <<_ACEOF
25174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25175 _ACEOF
25176
25177 fi
25178 done
25179
25180 if test "x$ac_cv_func_fork" = xyes; then
25181 { echo "$as_me:$LINENO: checking for working fork" >&5
25182 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25183 if test "${ac_cv_func_fork_works+set}" = set; then
25184 echo $ECHO_N "(cached) $ECHO_C" >&6
25185 else
25186 if test "$cross_compiling" = yes; then
25187 ac_cv_func_fork_works=cross
25188 else
25189 cat >conftest.$ac_ext <<_ACEOF
25190 /* confdefs.h. */
25191 _ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h. */
25195 $ac_includes_default
25196 int
25197 main ()
25198 {
25199
25200 /* By Ruediger Kuhlmann. */
25201 return fork () < 0;
25202
25203 ;
25204 return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest$ac_exeext
25208 if { (ac_try="$ac_link"
25209 case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212 esac
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_link") 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25218 { (case "(($ac_try" in
25219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220 *) ac_try_echo=$ac_try;;
25221 esac
25222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223 (eval "$ac_try") 2>&5
25224 ac_status=$?
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); }; }; then
25227 ac_cv_func_fork_works=yes
25228 else
25229 echo "$as_me: program exited with status $ac_status" >&5
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25232
25233 ( exit $ac_status )
25234 ac_cv_func_fork_works=no
25235 fi
25236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25237 fi
25238
25239
25240 fi
25241 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25242 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25243
25244 else
25245 ac_cv_func_fork_works=$ac_cv_func_fork
25246 fi
25247 if test "x$ac_cv_func_fork_works" = xcross; then
25248 case $host in
25249 *-*-amigaos* | *-*-msdosdjgpp*)
25250 # Override, as these systems have only a dummy fork() stub
25251 ac_cv_func_fork_works=no
25252 ;;
25253 *)
25254 ac_cv_func_fork_works=yes
25255 ;;
25256 esac
25257 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25258 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25259 fi
25260 ac_cv_func_vfork_works=$ac_cv_func_vfork
25261 if test "x$ac_cv_func_vfork" = xyes; then
25262 { echo "$as_me:$LINENO: checking for working vfork" >&5
25263 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25264 if test "${ac_cv_func_vfork_works+set}" = set; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25266 else
25267 if test "$cross_compiling" = yes; then
25268 ac_cv_func_vfork_works=cross
25269 else
25270 cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h. */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25276 /* Thanks to Paul Eggert for this test. */
25277 $ac_includes_default
25278 #include <sys/wait.h>
25279 #ifdef HAVE_VFORK_H
25280 # include <vfork.h>
25281 #endif
25282 /* On some sparc systems, changes by the child to local and incoming
25283 argument registers are propagated back to the parent. The compiler
25284 is told about this with #include <vfork.h>, but some compilers
25285 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25286 static variable whose address is put into a register that is
25287 clobbered by the vfork. */
25288 static void
25289 #ifdef __cplusplus
25290 sparc_address_test (int arg)
25291 # else
25292 sparc_address_test (arg) int arg;
25293 #endif
25294 {
25295 static pid_t child;
25296 if (!child) {
25297 child = vfork ();
25298 if (child < 0) {
25299 perror ("vfork");
25300 _exit(2);
25301 }
25302 if (!child) {
25303 arg = getpid();
25304 write(-1, "", 0);
25305 _exit (arg);
25306 }
25307 }
25308 }
25309
25310 int
25311 main ()
25312 {
25313 pid_t parent = getpid ();
25314 pid_t child;
25315
25316 sparc_address_test (0);
25317
25318 child = vfork ();
25319
25320 if (child == 0) {
25321 /* Here is another test for sparc vfork register problems. This
25322 test uses lots of local variables, at least as many local
25323 variables as main has allocated so far including compiler
25324 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25325 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25326 reuse the register of parent for one of the local variables,
25327 since it will think that parent can't possibly be used any more
25328 in this routine. Assigning to the local variable will thus
25329 munge parent in the parent process. */
25330 pid_t
25331 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25332 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25333 /* Convince the compiler that p..p7 are live; otherwise, it might
25334 use the same hardware register for all 8 local variables. */
25335 if (p != p1 || p != p2 || p != p3 || p != p4
25336 || p != p5 || p != p6 || p != p7)
25337 _exit(1);
25338
25339 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25340 from child file descriptors. If the child closes a descriptor
25341 before it execs or exits, this munges the parent's descriptor
25342 as well. Test for this by closing stdout in the child. */
25343 _exit(close(fileno(stdout)) != 0);
25344 } else {
25345 int status;
25346 struct stat st;
25347
25348 while (wait(&status) != child)
25349 ;
25350 return (
25351 /* Was there some problem with vforking? */
25352 child < 0
25353
25354 /* Did the child fail? (This shouldn't happen.) */
25355 || status
25356
25357 /* Did the vfork/compiler bug occur? */
25358 || parent != getpid()
25359
25360 /* Did the file descriptor bug occur? */
25361 || fstat(fileno(stdout), &st) != 0
25362 );
25363 }
25364 }
25365 _ACEOF
25366 rm -f conftest$ac_exeext
25367 if { (ac_try="$ac_link"
25368 case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25371 esac
25372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373 (eval "$ac_link") 2>&5
25374 ac_status=$?
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25377 { (case "(($ac_try" in
25378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25379 *) ac_try_echo=$ac_try;;
25380 esac
25381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25382 (eval "$ac_try") 2>&5
25383 ac_status=$?
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; }; then
25386 ac_cv_func_vfork_works=yes
25387 else
25388 echo "$as_me: program exited with status $ac_status" >&5
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25391
25392 ( exit $ac_status )
25393 ac_cv_func_vfork_works=no
25394 fi
25395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25396 fi
25397
25398
25399 fi
25400 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25401 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25402
25403 fi;
25404 if test "x$ac_cv_func_fork_works" = xcross; then
25405 ac_cv_func_vfork_works=$ac_cv_func_vfork
25406 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25407 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25408 fi
25409
25410 if test "x$ac_cv_func_vfork_works" = xyes; then
25411
25412 cat >>confdefs.h <<\_ACEOF
25413 #define HAVE_WORKING_VFORK 1
25414 _ACEOF
25415
25416 else
25417
25418 cat >>confdefs.h <<\_ACEOF
25419 #define vfork fork
25420 _ACEOF
25421
25422 fi
25423 if test "x$ac_cv_func_fork_works" = xyes; then
25424
25425 cat >>confdefs.h <<\_ACEOF
25426 #define HAVE_WORKING_FORK 1
25427 _ACEOF
25428
25429 fi
25430
25431
25432
25433 for ac_header in stdlib.h unistd.h
25434 do
25435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 fi
25442 ac_res=`eval echo '${'$as_ac_Header'}'`
25443 { echo "$as_me:$LINENO: result: $ac_res" >&5
25444 echo "${ECHO_T}$ac_res" >&6; }
25445 else
25446 # Is the header compilable?
25447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25449 cat >conftest.$ac_ext <<_ACEOF
25450 /* confdefs.h. */
25451 _ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25455 $ac_includes_default
25456 #include <$ac_header>
25457 _ACEOF
25458 rm -f conftest.$ac_objext
25459 if { (ac_try="$ac_compile"
25460 case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25463 esac
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_compile") 2>conftest.er1
25466 ac_status=$?
25467 grep -v '^ *+' conftest.er1 >conftest.err
25468 rm -f conftest.er1
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } && {
25472 test -z "$ac_c_werror_flag" ||
25473 test ! -s conftest.err
25474 } && test -s conftest.$ac_objext; then
25475 ac_header_compiler=yes
25476 else
25477 echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25479
25480 ac_header_compiler=no
25481 fi
25482
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25485 echo "${ECHO_T}$ac_header_compiler" >&6; }
25486
25487 # Is the header present?
25488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25490 cat >conftest.$ac_ext <<_ACEOF
25491 /* confdefs.h. */
25492 _ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h. */
25496 #include <$ac_header>
25497 _ACEOF
25498 if { (ac_try="$ac_cpp conftest.$ac_ext"
25499 case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25505 ac_status=$?
25506 grep -v '^ *+' conftest.er1 >conftest.err
25507 rm -f conftest.er1
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } >/dev/null && {
25511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25512 test ! -s conftest.err
25513 }; then
25514 ac_header_preproc=yes
25515 else
25516 echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25518
25519 ac_header_preproc=no
25520 fi
25521
25522 rm -f conftest.err conftest.$ac_ext
25523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25524 echo "${ECHO_T}$ac_header_preproc" >&6; }
25525
25526 # So? What about this header?
25527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25528 yes:no: )
25529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25533 ac_header_preproc=yes
25534 ;;
25535 no:yes:* )
25536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25548
25549 ;;
25550 esac
25551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
25555 else
25556 eval "$as_ac_Header=\$ac_header_preproc"
25557 fi
25558 ac_res=`eval echo '${'$as_ac_Header'}'`
25559 { echo "$as_me:$LINENO: result: $ac_res" >&5
25560 echo "${ECHO_T}$ac_res" >&6; }
25561
25562 fi
25563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25564 cat >>confdefs.h <<_ACEOF
25565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25566 _ACEOF
25567
25568 fi
25569
25570 done
25571
25572
25573 for ac_func in getpagesize
25574 do
25575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25579 echo $ECHO_N "(cached) $ECHO_C" >&6
25580 else
25581 cat >conftest.$ac_ext <<_ACEOF
25582 /* confdefs.h. */
25583 _ACEOF
25584 cat confdefs.h >>conftest.$ac_ext
25585 cat >>conftest.$ac_ext <<_ACEOF
25586 /* end confdefs.h. */
25587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25589 #define $ac_func innocuous_$ac_func
25590
25591 /* System header to define __stub macros and hopefully few prototypes,
25592 which can conflict with char $ac_func (); below.
25593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25594 <limits.h> exists even on freestanding compilers. */
25595
25596 #ifdef __STDC__
25597 # include <limits.h>
25598 #else
25599 # include <assert.h>
25600 #endif
25601
25602 #undef $ac_func
25603
25604 /* Override any GCC internal prototype to avoid an error.
25605 Use char because int might match the return type of a GCC
25606 builtin and then its argument prototype would still apply. */
25607 #ifdef __cplusplus
25608 extern "C"
25609 #endif
25610 char $ac_func ();
25611 /* The GNU C library defines this for functions which it implements
25612 to always fail with ENOSYS. Some functions are actually named
25613 something starting with __ and the normal name is an alias. */
25614 #if defined __stub_$ac_func || defined __stub___$ac_func
25615 choke me
25616 #endif
25617
25618 int
25619 main ()
25620 {
25621 return $ac_func ();
25622 ;
25623 return 0;
25624 }
25625 _ACEOF
25626 rm -f conftest.$ac_objext conftest$ac_exeext
25627 if { (ac_try="$ac_link"
25628 case "(($ac_try" in
25629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25630 *) ac_try_echo=$ac_try;;
25631 esac
25632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25633 (eval "$ac_link") 2>conftest.er1
25634 ac_status=$?
25635 grep -v '^ *+' conftest.er1 >conftest.err
25636 rm -f conftest.er1
25637 cat conftest.err >&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && {
25640 test -z "$ac_c_werror_flag" ||
25641 test ! -s conftest.err
25642 } && test -s conftest$ac_exeext &&
25643 $as_test_x conftest$ac_exeext; then
25644 eval "$as_ac_var=yes"
25645 else
25646 echo "$as_me: failed program was:" >&5
25647 sed 's/^/| /' conftest.$ac_ext >&5
25648
25649 eval "$as_ac_var=no"
25650 fi
25651
25652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25653 conftest$ac_exeext conftest.$ac_ext
25654 fi
25655 ac_res=`eval echo '${'$as_ac_var'}'`
25656 { echo "$as_me:$LINENO: result: $ac_res" >&5
25657 echo "${ECHO_T}$ac_res" >&6; }
25658 if test `eval echo '${'$as_ac_var'}'` = yes; then
25659 cat >>confdefs.h <<_ACEOF
25660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25661 _ACEOF
25662
25663 fi
25664 done
25665
25666 { echo "$as_me:$LINENO: checking for working mmap" >&5
25667 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
25668 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25670 else
25671 if test "$cross_compiling" = yes; then
25672 ac_cv_func_mmap_fixed_mapped=no
25673 else
25674 cat >conftest.$ac_ext <<_ACEOF
25675 /* confdefs.h. */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h. */
25680 $ac_includes_default
25681 /* malloc might have been renamed as rpl_malloc. */
25682 #undef malloc
25683
25684 /* Thanks to Mike Haertel and Jim Avera for this test.
25685 Here is a matrix of mmap possibilities:
25686 mmap private not fixed
25687 mmap private fixed at somewhere currently unmapped
25688 mmap private fixed at somewhere already mapped
25689 mmap shared not fixed
25690 mmap shared fixed at somewhere currently unmapped
25691 mmap shared fixed at somewhere already mapped
25692 For private mappings, we should verify that changes cannot be read()
25693 back from the file, nor mmap's back from the file at a different
25694 address. (There have been systems where private was not correctly
25695 implemented like the infamous i386 svr4.0, and systems where the
25696 VM page cache was not coherent with the file system buffer cache
25697 like early versions of FreeBSD and possibly contemporary NetBSD.)
25698 For shared mappings, we should conversely verify that changes get
25699 propagated back to all the places they're supposed to be.
25700
25701 Grep wants private fixed already mapped.
25702 The main things grep needs to know about mmap are:
25703 * does it exist and is it safe to write into the mmap'd area
25704 * how to use it (BSD variants) */
25705
25706 #include <fcntl.h>
25707 #include <sys/mman.h>
25708
25709 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25710 char *malloc ();
25711 #endif
25712
25713 /* This mess was copied from the GNU getpagesize.h. */
25714 #ifndef HAVE_GETPAGESIZE
25715 /* Assume that all systems that can run configure have sys/param.h. */
25716 # ifndef HAVE_SYS_PARAM_H
25717 # define HAVE_SYS_PARAM_H 1
25718 # endif
25719
25720 # ifdef _SC_PAGESIZE
25721 # define getpagesize() sysconf(_SC_PAGESIZE)
25722 # else /* no _SC_PAGESIZE */
25723 # ifdef HAVE_SYS_PARAM_H
25724 # include <sys/param.h>
25725 # ifdef EXEC_PAGESIZE
25726 # define getpagesize() EXEC_PAGESIZE
25727 # else /* no EXEC_PAGESIZE */
25728 # ifdef NBPG
25729 # define getpagesize() NBPG * CLSIZE
25730 # ifndef CLSIZE
25731 # define CLSIZE 1
25732 # endif /* no CLSIZE */
25733 # else /* no NBPG */
25734 # ifdef NBPC
25735 # define getpagesize() NBPC
25736 # else /* no NBPC */
25737 # ifdef PAGESIZE
25738 # define getpagesize() PAGESIZE
25739 # endif /* PAGESIZE */
25740 # endif /* no NBPC */
25741 # endif /* no NBPG */
25742 # endif /* no EXEC_PAGESIZE */
25743 # else /* no HAVE_SYS_PARAM_H */
25744 # define getpagesize() 8192 /* punt totally */
25745 # endif /* no HAVE_SYS_PARAM_H */
25746 # endif /* no _SC_PAGESIZE */
25747
25748 #endif /* no HAVE_GETPAGESIZE */
25749
25750 int
25751 main ()
25752 {
25753 char *data, *data2, *data3;
25754 int i, pagesize;
25755 int fd;
25756
25757 pagesize = getpagesize ();
25758
25759 /* First, make a file with some known garbage in it. */
25760 data = (char *) malloc (pagesize);
25761 if (!data)
25762 return 1;
25763 for (i = 0; i < pagesize; ++i)
25764 *(data + i) = rand ();
25765 umask (0);
25766 fd = creat ("conftest.mmap", 0600);
25767 if (fd < 0)
25768 return 1;
25769 if (write (fd, data, pagesize) != pagesize)
25770 return 1;
25771 close (fd);
25772
25773 /* Next, try to mmap the file at a fixed address which already has
25774 something else allocated at it. If we can, also make sure that
25775 we see the same garbage. */
25776 fd = open ("conftest.mmap", O_RDWR);
25777 if (fd < 0)
25778 return 1;
25779 data2 = (char *) malloc (2 * pagesize);
25780 if (!data2)
25781 return 1;
25782 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25783 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25784 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25785 return 1;
25786 for (i = 0; i < pagesize; ++i)
25787 if (*(data + i) != *(data2 + i))
25788 return 1;
25789
25790 /* Finally, make sure that changes to the mapped area do not
25791 percolate back to the file as seen by read(). (This is a bug on
25792 some variants of i386 svr4.0.) */
25793 for (i = 0; i < pagesize; ++i)
25794 *(data2 + i) = *(data2 + i) + 1;
25795 data3 = (char *) malloc (pagesize);
25796 if (!data3)
25797 return 1;
25798 if (read (fd, data3, pagesize) != pagesize)
25799 return 1;
25800 for (i = 0; i < pagesize; ++i)
25801 if (*(data + i) != *(data3 + i))
25802 return 1;
25803 close (fd);
25804 return 0;
25805 }
25806 _ACEOF
25807 rm -f conftest$ac_exeext
25808 if { (ac_try="$ac_link"
25809 case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25812 esac
25813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814 (eval "$ac_link") 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25818 { (case "(($ac_try" in
25819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25820 *) ac_try_echo=$ac_try;;
25821 esac
25822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25823 (eval "$ac_try") 2>&5
25824 ac_status=$?
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); }; }; then
25827 ac_cv_func_mmap_fixed_mapped=yes
25828 else
25829 echo "$as_me: program exited with status $ac_status" >&5
25830 echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833 ( exit $ac_status )
25834 ac_cv_func_mmap_fixed_mapped=no
25835 fi
25836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25837 fi
25838
25839
25840 fi
25841 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25842 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
25843 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25844
25845 cat >>confdefs.h <<\_ACEOF
25846 #define HAVE_MMAP 1
25847 _ACEOF
25848
25849 fi
25850 rm -f conftest.mmap
25851
25852
25853 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
25854 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
25855 if test -c "/dev/poll"; then
25856 { echo "$as_me:$LINENO: result: yes" >&5
25857 echo "${ECHO_T}yes" >&6; }
25858
25859 cat >>confdefs.h <<\_ACEOF
25860 #define HAVE_DEVPOLL 1
25861 _ACEOF
25862
25863 else
25864 { echo "$as_me:$LINENO: result: no" >&5
25865 echo "${ECHO_T}no" >&6; }
25866 fi
25867
25868
25869 if test "$is_mingw" = "yes"; then
25870
25871 cat >>confdefs.h <<\_ACEOF
25872 #define HAVE_WIN32 1
25873 _ACEOF
25874
25875 fi
25876
25877
25878 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
25879 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
25880 # Check whether --enable-openssl was given.
25881 if test "${enable_openssl+set}" = set; then
25882 enableval=$enable_openssl; cf_enable_openssl=$enableval
25883 else
25884 cf_enable_openssl="auto"
25885 fi
25886
25887
25888 if test "$cf_enable_openssl" != "no" ; then
25889 cf_openssl_basedir=""
25890 if test "$cf_enable_openssl" != "auto" &&
25891 test "$cf_enable_openssl" != "yes" ; then
25892 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
25893 else
25894 for dirs in /usr/local/ssl /usr/pkg /usr/local \
25895 /usr/local/openssl ; do
25896 if test -f "${dirs}/include/openssl/opensslv.h" ; then
25897 cf_openssl_basedir="${dirs}"
25898 break
25899 fi
25900 done
25901 unset dirs
25902 fi
25903 if test ! -z "$cf_openssl_basedir"; then
25904 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
25905 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
25906 SSL_LIBS="-L${cf_openssl_basedir}/lib"
25907 else
25908 cf_openssl_basedir=""
25909 fi
25910 else
25911 if test -f "/usr/include/openssl/opensslv.h" ; then
25912 cf_openssl_basedir="/usr"
25913 fi
25914 fi
25915
25916 if test ! -z "$cf_openssl_basedir"; then
25917 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
25918 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
25919 cf_enable_openssl="yes"
25920 else
25921 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
25922 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
25923 cf_enable_openssl="no"
25924 fi
25925 unset cf_openssl_basedir
25926 else
25927 { echo "$as_me:$LINENO: result: disabled" >&5
25928 echo "${ECHO_T}disabled" >&6; }
25929 fi
25930
25931 save_CPPFLAGS="$CPPFLAGS"
25932 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
25933 save_LIBS="$LIBS"
25934 LIBS="$LIBS $SSL_LIBS"
25935 if test "$cf_enable_openssl" != no; then
25936 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
25937 echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; }
25938 if test "$cross_compiling" = yes; then
25939 cf_enable_openssl=no
25940 else
25941 cat >conftest.$ac_ext <<_ACEOF
25942 /* confdefs.h. */
25943 _ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h. */
25947 #include <openssl/opensslv.h>
25948 #include <stdlib.h>
25949 int
25950 main ()
25951 {
25952 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
25953 exit(0); else exit(1);
25954 ;
25955 return 0;
25956 }
25957 _ACEOF
25958 rm -f conftest$ac_exeext
25959 if { (ac_try="$ac_link"
25960 case "(($ac_try" in
25961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962 *) ac_try_echo=$ac_try;;
25963 esac
25964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965 (eval "$ac_link") 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25969 { (case "(($ac_try" in
25970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25971 *) ac_try_echo=$ac_try;;
25972 esac
25973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25974 (eval "$ac_try") 2>&5
25975 ac_status=$?
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; }; then
25978 cf_enable_openssl=yes
25979 else
25980 echo "$as_me: program exited with status $ac_status" >&5
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25983
25984 ( exit $ac_status )
25985 cf_enable_openssl=no
25986 fi
25987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25988 fi
25989
25990
25991
25992 if test "$cf_enable_openssl" != no; then
25993 { echo "$as_me:$LINENO: result: found" >&5
25994 echo "${ECHO_T}found" >&6; }
25995 else
25996 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
25997 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
25998 fi
25999
26000 fi
26001
26002
26003 if test "$cf_enable_openssl" != no; then
26004 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
26005 { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
26006 echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; }
26007 if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26009 else
26010 ac_check_lib_save_LIBS=$LIBS
26011 LIBS="-lcrypto $LIBS"
26012 cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h. */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26018
26019 /* Override any GCC internal prototype to avoid an error.
26020 Use char because int might match the return type of a GCC
26021 builtin and then its argument prototype would still apply. */
26022 #ifdef __cplusplus
26023 extern "C"
26024 #endif
26025 char RAND_status ();
26026 int
26027 main ()
26028 {
26029 return RAND_status ();
26030 ;
26031 return 0;
26032 }
26033 _ACEOF
26034 rm -f conftest.$ac_objext conftest$ac_exeext
26035 if { (ac_try="$ac_link"
26036 case "(($ac_try" in
26037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26038 *) ac_try_echo=$ac_try;;
26039 esac
26040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26041 (eval "$ac_link") 2>conftest.er1
26042 ac_status=$?
26043 grep -v '^ *+' conftest.er1 >conftest.err
26044 rm -f conftest.er1
26045 cat conftest.err >&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } && {
26048 test -z "$ac_c_werror_flag" ||
26049 test ! -s conftest.err
26050 } && test -s conftest$ac_exeext &&
26051 $as_test_x conftest$ac_exeext; then
26052 ac_cv_lib_crypto_RAND_status=yes
26053 else
26054 echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26056
26057 ac_cv_lib_crypto_RAND_status=no
26058 fi
26059
26060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26061 conftest$ac_exeext conftest.$ac_ext
26062 LIBS=$ac_check_lib_save_LIBS
26063 fi
26064 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
26065 echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; }
26066 if test $ac_cv_lib_crypto_RAND_status = yes; then
26067 cf_enable_openssl=yes
26068 else
26069 cf_enable_openssl=no
26070 fi
26071
26072 fi
26073
26074
26075 if test "$cf_enable_openssl" != no; then
26076 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
26077 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
26078 echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
26079 if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
26081 else
26082 ac_check_lib_save_LIBS=$LIBS
26083 LIBS="-lssl -lcrypto $LIBS"
26084 cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h. */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h. */
26090
26091 /* Override any GCC internal prototype to avoid an error.
26092 Use char because int might match the return type of a GCC
26093 builtin and then its argument prototype would still apply. */
26094 #ifdef __cplusplus
26095 extern "C"
26096 #endif
26097 char SSL_read ();
26098 int
26099 main ()
26100 {
26101 return SSL_read ();
26102 ;
26103 return 0;
26104 }
26105 _ACEOF
26106 rm -f conftest.$ac_objext conftest$ac_exeext
26107 if { (ac_try="$ac_link"
26108 case "(($ac_try" in
26109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26110 *) ac_try_echo=$ac_try;;
26111 esac
26112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26113 (eval "$ac_link") 2>conftest.er1
26114 ac_status=$?
26115 grep -v '^ *+' conftest.er1 >conftest.err
26116 rm -f conftest.er1
26117 cat conftest.err >&5
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); } && {
26120 test -z "$ac_c_werror_flag" ||
26121 test ! -s conftest.err
26122 } && test -s conftest$ac_exeext &&
26123 $as_test_x conftest$ac_exeext; then
26124 ac_cv_lib_ssl_SSL_read=yes
26125 else
26126 echo "$as_me: failed program was:" >&5
26127 sed 's/^/| /' conftest.$ac_ext >&5
26128
26129 ac_cv_lib_ssl_SSL_read=no
26130 fi
26131
26132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26133 conftest$ac_exeext conftest.$ac_ext
26134 LIBS=$ac_check_lib_save_LIBS
26135 fi
26136 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
26137 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
26138 if test $ac_cv_lib_ssl_SSL_read = yes; then
26139 SSL_LIBS="-lssl -lcrypto"
26140 else
26141 cf_enable_openssl=no
26142 fi
26143
26144 fi
26145
26146 if test "$cf_enable_openssl" != no; then
26147
26148 cat >>confdefs.h <<\_ACEOF
26149 #define HAVE_OPENSSL 1
26150 _ACEOF
26151
26152 fi
26153
26154
26155 CPPFLAGS="$save_CPPFLAGS"
26156 LIBS="$save_LIBS"
26157
26158
26159
26160
26161
26162
26163 # Check whether --enable-assert was given.
26164 if test "${enable_assert+set}" = set; then
26165 enableval=$enable_assert; assert=$enableval
26166 else
26167 assert=no
26168 fi
26169
26170
26171 if test "$assert" = no; then
26172
26173 cat >>confdefs.h <<\_ACEOF
26174 #define NDEBUG 1
26175 _ACEOF
26176
26177 elif test "$assert" = soft; then
26178
26179 cat >>confdefs.h <<\_ACEOF
26180 #define SOFT_ASSERT 1
26181 _ACEOF
26182
26183
26184 cat >>confdefs.h <<\_ACEOF
26185 #define NDEBUG 1
26186 _ACEOF
26187
26188 elif test "$assert" = yes; then
26189 assert = "hard";
26190 fi
26191
26192 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
26193 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
26194 # Check whether --enable-profile was given.
26195 if test "${enable_profile+set}" = set; then
26196 enableval=$enable_profile; profile=$enableval
26197 else
26198 profile=no
26199 fi
26200
26201
26202 if test "$profile" = yes; then
26203 if test "$ac_cv_c_compiler_gnu" = yes; then
26204 CFLAGS="$CFLAGS -pg -static"
26205 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
26206 echo "${ECHO_T}yes, adding -pg -static" >&6; }
26207
26208 cat >>confdefs.h <<\_ACEOF
26209 #define RATBOX_PROFILE 1
26210 _ACEOF
26211
26212 else
26213 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
26214 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
26215 fi
26216 else
26217 { echo "$as_me:$LINENO: result: no" >&5
26218 echo "${ECHO_T}no" >&6; }
26219 fi
26220
26221 # Check whether --enable-balloc was given.
26222 if test "${enable_balloc+set}" = set; then
26223 enableval=$enable_balloc; balloc=$enableval
26224 else
26225 balloc=yes
26226 fi
26227
26228
26229 if test "$balloc" = no; then
26230
26231 cat >>confdefs.h <<\_ACEOF
26232 #define NOBALLOC 1
26233 _ACEOF
26234
26235 fi
26236
26237 # Check whether --enable-warnings was given.
26238 if test "${enable_warnings+set}" = set; then
26239 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
26240 fi
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251 if test "$prefix" = "NONE"; then
26252
26253 cat >>confdefs.h <<_ACEOF
26254 #define RB_PREFIX "$ac_default_prefix"
26255 _ACEOF
26256
26257
26258 else
26259
26260
26261 prefix=`echo $prefix | sed 's/\/$//'`
26262
26263 cat >>confdefs.h <<_ACEOF
26264 #define RB_PREFIX "$prefix"
26265 _ACEOF
26266
26267
26268 fi
26269
26270
26271
26272 for dtype in uint64_t uint32_t uint16_t uint8_t int64_t int32_t int16_t int8_t intmax_t intptr_t uintmax_t uintptr_t
26273 do
26274 var="\$ac_cv_c_${dtype}"
26275 t_type=$(eval echo $var);
26276 if test "x$t_type" = "xyes"; then
26277 eval rb_$dtype="\"$dtype\""
26278 else
26279 eval rb_$dtype="\"$t_type\""
26280 fi
26281 done
26282
26283 ac_config_commands="$ac_config_commands include/librb-config.h"
26284
26285
26286
26287 ac_config_files="$ac_config_files src/Makefile Makefile"
26288
26289
26290 cat >confcache <<\_ACEOF
26291 # This file is a shell script that caches the results of configure
26292 # tests run on this system so they can be shared between configure
26293 # scripts and configure runs, see configure's option --config-cache.
26294 # It is not useful on other systems. If it contains results you don't
26295 # want to keep, you may remove or edit it.
26296 #
26297 # config.status only pays attention to the cache file if you give it
26298 # the --recheck option to rerun configure.
26299 #
26300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26302 # following values.
26303
26304 _ACEOF
26305
26306 # The following way of writing the cache mishandles newlines in values,
26307 # but we know of no workaround that is simple, portable, and efficient.
26308 # So, we kill variables containing newlines.
26309 # Ultrix sh set writes to stderr and can't be redirected directly,
26310 # and sets the high bit in the cache file unless we assign to the vars.
26311 (
26312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26313 eval ac_val=\$$ac_var
26314 case $ac_val in #(
26315 *${as_nl}*)
26316 case $ac_var in #(
26317 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26318 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26319 esac
26320 case $ac_var in #(
26321 _ | IFS | as_nl) ;; #(
26322 *) $as_unset $ac_var ;;
26323 esac ;;
26324 esac
26325 done
26326
26327 (set) 2>&1 |
26328 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26329 *${as_nl}ac_space=\ *)
26330 # `set' does not quote correctly, so add quotes (double-quote
26331 # substitution turns \\\\ into \\, and sed turns \\ into \).
26332 sed -n \
26333 "s/'/'\\\\''/g;
26334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26335 ;; #(
26336 *)
26337 # `set' quotes correctly as required by POSIX, so do not add quotes.
26338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26339 ;;
26340 esac |
26341 sort
26342 ) |
26343 sed '
26344 /^ac_cv_env_/b end
26345 t clear
26346 :clear
26347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26348 t end
26349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26350 :end' >>confcache
26351 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26352 if test -w "$cache_file"; then
26353 test "x$cache_file" != "x/dev/null" &&
26354 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26355 echo "$as_me: updating cache $cache_file" >&6;}
26356 cat confcache >$cache_file
26357 else
26358 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26359 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26360 fi
26361 fi
26362 rm -f confcache
26363
26364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26365 # Let make expand exec_prefix.
26366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26367
26368 DEFS=-DHAVE_CONFIG_H
26369
26370 ac_libobjs=
26371 ac_ltlibobjs=
26372 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26373 # 1. Remove the extension, and $U if already installed.
26374 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26375 ac_i=`echo "$ac_i" | sed "$ac_script"`
26376 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26377 # will be set to the directory where LIBOBJS objects are built.
26378 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26379 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26380 done
26381 LIBOBJS=$ac_libobjs
26382
26383 LTLIBOBJS=$ac_ltlibobjs
26384
26385
26386 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26387 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26388 Usually this means the macro was only invoked conditionally." >&5
26389 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26390 Usually this means the macro was only invoked conditionally." >&2;}
26391 { (exit 1); exit 1; }; }
26392 fi
26393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26394 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26395 Usually this means the macro was only invoked conditionally." >&5
26396 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26397 Usually this means the macro was only invoked conditionally." >&2;}
26398 { (exit 1); exit 1; }; }
26399 fi
26400 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26401 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26402 Usually this means the macro was only invoked conditionally." >&5
26403 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26404 Usually this means the macro was only invoked conditionally." >&2;}
26405 { (exit 1); exit 1; }; }
26406 fi
26407 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26408 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26409 Usually this means the macro was only invoked conditionally." >&5
26410 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26411 Usually this means the macro was only invoked conditionally." >&2;}
26412 { (exit 1); exit 1; }; }
26413 fi
26414 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
26415 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
26416 Usually this means the macro was only invoked conditionally." >&5
26417 echo "$as_me: error: conditional \"MINGW\" was never defined.
26418 Usually this means the macro was only invoked conditionally." >&2;}
26419 { (exit 1); exit 1; }; }
26420 fi
26421 if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
26422 { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
26423 Usually this means the macro was only invoked conditionally." >&5
26424 echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
26425 Usually this means the macro was only invoked conditionally." >&2;}
26426 { (exit 1); exit 1; }; }
26427 fi
26428
26429 : ${CONFIG_STATUS=./config.status}
26430 ac_clean_files_save=$ac_clean_files
26431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26432 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26433 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26434 cat >$CONFIG_STATUS <<_ACEOF
26435 #! $SHELL
26436 # Generated by $as_me.
26437 # Run this file to recreate the current configuration.
26438 # Compiler output produced by configure, useful for debugging
26439 # configure, is in config.log if it exists.
26440
26441 debug=false
26442 ac_cs_recheck=false
26443 ac_cs_silent=false
26444 SHELL=\${CONFIG_SHELL-$SHELL}
26445 _ACEOF
26446
26447 cat >>$CONFIG_STATUS <<\_ACEOF
26448 ## --------------------- ##
26449 ## M4sh Initialization. ##
26450 ## --------------------- ##
26451
26452 # Be more Bourne compatible
26453 DUALCASE=1; export DUALCASE # for MKS sh
26454 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26455 emulate sh
26456 NULLCMD=:
26457 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26458 # is contrary to our usage. Disable this feature.
26459 alias -g '${1+"$@"}'='"$@"'
26460 setopt NO_GLOB_SUBST
26461 else
26462 case `(set -o) 2>/dev/null` in
26463 *posix*) set -o posix ;;
26464 esac
26465
26466 fi
26467
26468
26469
26470
26471 # PATH needs CR
26472 # Avoid depending upon Character Ranges.
26473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26476 as_cr_digits='0123456789'
26477 as_cr_alnum=$as_cr_Letters$as_cr_digits
26478
26479 # The user is always right.
26480 if test "${PATH_SEPARATOR+set}" != set; then
26481 echo "#! /bin/sh" >conf$$.sh
26482 echo "exit 0" >>conf$$.sh
26483 chmod +x conf$$.sh
26484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26485 PATH_SEPARATOR=';'
26486 else
26487 PATH_SEPARATOR=:
26488 fi
26489 rm -f conf$$.sh
26490 fi
26491
26492 # Support unset when possible.
26493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26494 as_unset=unset
26495 else
26496 as_unset=false
26497 fi
26498
26499
26500 # IFS
26501 # We need space, tab and new line, in precisely that order. Quoting is
26502 # there to prevent editors from complaining about space-tab.
26503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26504 # splitting by setting IFS to empty value.)
26505 as_nl='
26506 '
26507 IFS=" "" $as_nl"
26508
26509 # Find who we are. Look in the path if we contain no directory separator.
26510 case $0 in
26511 *[\\/]* ) as_myself=$0 ;;
26512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26513 for as_dir in $PATH
26514 do
26515 IFS=$as_save_IFS
26516 test -z "$as_dir" && as_dir=.
26517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26518 done
26519 IFS=$as_save_IFS
26520
26521 ;;
26522 esac
26523 # We did not find ourselves, most probably we were run as `sh COMMAND'
26524 # in which case we are not to be found in the path.
26525 if test "x$as_myself" = x; then
26526 as_myself=$0
26527 fi
26528 if test ! -f "$as_myself"; then
26529 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26530 { (exit 1); exit 1; }
26531 fi
26532
26533 # Work around bugs in pre-3.0 UWIN ksh.
26534 for as_var in ENV MAIL MAILPATH
26535 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26536 done
26537 PS1='$ '
26538 PS2='> '
26539 PS4='+ '
26540
26541 # NLS nuisances.
26542 for as_var in \
26543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26545 LC_TELEPHONE LC_TIME
26546 do
26547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26548 eval $as_var=C; export $as_var
26549 else
26550 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26551 fi
26552 done
26553
26554 # Required to use basename.
26555 if expr a : '\(a\)' >/dev/null 2>&1 &&
26556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26557 as_expr=expr
26558 else
26559 as_expr=false
26560 fi
26561
26562 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26563 as_basename=basename
26564 else
26565 as_basename=false
26566 fi
26567
26568
26569 # Name of the executable.
26570 as_me=`$as_basename -- "$0" ||
26571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26572 X"$0" : 'X\(//\)$' \| \
26573 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26574 echo X/"$0" |
26575 sed '/^.*\/\([^/][^/]*\)\/*$/{
26576 s//\1/
26577 q
26578 }
26579 /^X\/\(\/\/\)$/{
26580 s//\1/
26581 q
26582 }
26583 /^X\/\(\/\).*/{
26584 s//\1/
26585 q
26586 }
26587 s/.*/./; q'`
26588
26589 # CDPATH.
26590 $as_unset CDPATH
26591
26592
26593
26594 as_lineno_1=$LINENO
26595 as_lineno_2=$LINENO
26596 test "x$as_lineno_1" != "x$as_lineno_2" &&
26597 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26598
26599 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26600 # uniformly replaced by the line number. The first 'sed' inserts a
26601 # line-number line after each line using $LINENO; the second 'sed'
26602 # does the real work. The second script uses 'N' to pair each
26603 # line-number line with the line containing $LINENO, and appends
26604 # trailing '-' during substitution so that $LINENO is not a special
26605 # case at line end.
26606 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26607 # scripts with optimization help from Paolo Bonzini. Blame Lee
26608 # E. McMahon (1931-1989) for sed's syntax. :-)
26609 sed -n '
26610 p
26611 /[$]LINENO/=
26612 ' <$as_myself |
26613 sed '
26614 s/[$]LINENO.*/&-/
26615 t lineno
26616 b
26617 :lineno
26618 N
26619 :loop
26620 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26621 t loop
26622 s/-\n.*//
26623 ' >$as_me.lineno &&
26624 chmod +x "$as_me.lineno" ||
26625 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26626 { (exit 1); exit 1; }; }
26627
26628 # Don't try to exec as it changes $[0], causing all sort of problems
26629 # (the dirname of $[0] is not the place where we might find the
26630 # original and so on. Autoconf is especially sensitive to this).
26631 . "./$as_me.lineno"
26632 # Exit status is that of the last command.
26633 exit
26634 }
26635
26636
26637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26638 as_dirname=dirname
26639 else
26640 as_dirname=false
26641 fi
26642
26643 ECHO_C= ECHO_N= ECHO_T=
26644 case `echo -n x` in
26645 -n*)
26646 case `echo 'x\c'` in
26647 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26648 *) ECHO_C='\c';;
26649 esac;;
26650 *)
26651 ECHO_N='-n';;
26652 esac
26653
26654 if expr a : '\(a\)' >/dev/null 2>&1 &&
26655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26656 as_expr=expr
26657 else
26658 as_expr=false
26659 fi
26660
26661 rm -f conf$$ conf$$.exe conf$$.file
26662 if test -d conf$$.dir; then
26663 rm -f conf$$.dir/conf$$.file
26664 else
26665 rm -f conf$$.dir
26666 mkdir conf$$.dir
26667 fi
26668 echo >conf$$.file
26669 if ln -s conf$$.file conf$$ 2>/dev/null; then
26670 as_ln_s='ln -s'
26671 # ... but there are two gotchas:
26672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26674 # In both cases, we have to default to `cp -p'.
26675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26676 as_ln_s='cp -p'
26677 elif ln conf$$.file conf$$ 2>/dev/null; then
26678 as_ln_s=ln
26679 else
26680 as_ln_s='cp -p'
26681 fi
26682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26683 rmdir conf$$.dir 2>/dev/null
26684
26685 if mkdir -p . 2>/dev/null; then
26686 as_mkdir_p=:
26687 else
26688 test -d ./-p && rmdir ./-p
26689 as_mkdir_p=false
26690 fi
26691
26692 if test -x / >/dev/null 2>&1; then
26693 as_test_x='test -x'
26694 else
26695 if ls -dL / >/dev/null 2>&1; then
26696 as_ls_L_option=L
26697 else
26698 as_ls_L_option=
26699 fi
26700 as_test_x='
26701 eval sh -c '\''
26702 if test -d "$1"; then
26703 test -d "$1/.";
26704 else
26705 case $1 in
26706 -*)set "./$1";;
26707 esac;
26708 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26709 ???[sx]*):;;*)false;;esac;fi
26710 '\'' sh
26711 '
26712 fi
26713 as_executable_p=$as_test_x
26714
26715 # Sed expression to map a string onto a valid CPP name.
26716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26717
26718 # Sed expression to map a string onto a valid variable name.
26719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26720
26721
26722 exec 6>&1
26723
26724 # Save the log message, to keep $[0] and so on meaningful, and to
26725 # report actual input values of CONFIG_FILES etc. instead of their
26726 # values after options handling.
26727 ac_log="
26728 This file was extended by libratbox $as_me devel, which was
26729 generated by GNU Autoconf 2.61. Invocation command line was
26730
26731 CONFIG_FILES = $CONFIG_FILES
26732 CONFIG_HEADERS = $CONFIG_HEADERS
26733 CONFIG_LINKS = $CONFIG_LINKS
26734 CONFIG_COMMANDS = $CONFIG_COMMANDS
26735 $ $0 $@
26736
26737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26738 "
26739
26740 _ACEOF
26741
26742 cat >>$CONFIG_STATUS <<_ACEOF
26743 # Files that config.status was made for.
26744 config_files="$ac_config_files"
26745 config_headers="$ac_config_headers"
26746 config_commands="$ac_config_commands"
26747
26748 _ACEOF
26749
26750 cat >>$CONFIG_STATUS <<\_ACEOF
26751 ac_cs_usage="\
26752 \`$as_me' instantiates files from templates according to the
26753 current configuration.
26754
26755 Usage: $0 [OPTIONS] [FILE]...
26756
26757 -h, --help print this help, then exit
26758 -V, --version print version number and configuration settings, then exit
26759 -q, --quiet do not print progress messages
26760 -d, --debug don't remove temporary files
26761 --recheck update $as_me by reconfiguring in the same conditions
26762 --file=FILE[:TEMPLATE]
26763 instantiate the configuration file FILE
26764 --header=FILE[:TEMPLATE]
26765 instantiate the configuration header FILE
26766
26767 Configuration files:
26768 $config_files
26769
26770 Configuration headers:
26771 $config_headers
26772
26773 Configuration commands:
26774 $config_commands
26775
26776 Report bugs to <bug-autoconf@gnu.org>."
26777
26778 _ACEOF
26779 cat >>$CONFIG_STATUS <<_ACEOF
26780 ac_cs_version="\\
26781 libratbox config.status devel
26782 configured by $0, generated by GNU Autoconf 2.61,
26783 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26784
26785 Copyright (C) 2006 Free Software Foundation, Inc.
26786 This config.status script is free software; the Free Software Foundation
26787 gives unlimited permission to copy, distribute and modify it."
26788
26789 ac_pwd='$ac_pwd'
26790 srcdir='$srcdir'
26791 INSTALL='$INSTALL'
26792 MKDIR_P='$MKDIR_P'
26793 _ACEOF
26794
26795 cat >>$CONFIG_STATUS <<\_ACEOF
26796 # If no file are specified by the user, then we need to provide default
26797 # value. By we need to know if files were specified by the user.
26798 ac_need_defaults=:
26799 while test $# != 0
26800 do
26801 case $1 in
26802 --*=*)
26803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26805 ac_shift=:
26806 ;;
26807 *)
26808 ac_option=$1
26809 ac_optarg=$2
26810 ac_shift=shift
26811 ;;
26812 esac
26813
26814 case $ac_option in
26815 # Handling of the options.
26816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26817 ac_cs_recheck=: ;;
26818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26819 echo "$ac_cs_version"; exit ;;
26820 --debug | --debu | --deb | --de | --d | -d )
26821 debug=: ;;
26822 --file | --fil | --fi | --f )
26823 $ac_shift
26824 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26825 ac_need_defaults=false;;
26826 --header | --heade | --head | --hea )
26827 $ac_shift
26828 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26829 ac_need_defaults=false;;
26830 --he | --h)
26831 # Conflict between --help and --header
26832 { echo "$as_me: error: ambiguous option: $1
26833 Try \`$0 --help' for more information." >&2
26834 { (exit 1); exit 1; }; };;
26835 --help | --hel | -h )
26836 echo "$ac_cs_usage"; exit ;;
26837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26839 ac_cs_silent=: ;;
26840
26841 # This is an error.
26842 -*) { echo "$as_me: error: unrecognized option: $1
26843 Try \`$0 --help' for more information." >&2
26844 { (exit 1); exit 1; }; } ;;
26845
26846 *) ac_config_targets="$ac_config_targets $1"
26847 ac_need_defaults=false ;;
26848
26849 esac
26850 shift
26851 done
26852
26853 ac_configure_extra_args=
26854
26855 if $ac_cs_silent; then
26856 exec 6>/dev/null
26857 ac_configure_extra_args="$ac_configure_extra_args --silent"
26858 fi
26859
26860 _ACEOF
26861 cat >>$CONFIG_STATUS <<_ACEOF
26862 if \$ac_cs_recheck; then
26863 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26864 CONFIG_SHELL=$SHELL
26865 export CONFIG_SHELL
26866 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26867 fi
26868
26869 _ACEOF
26870 cat >>$CONFIG_STATUS <<\_ACEOF
26871 exec 5>>config.log
26872 {
26873 echo
26874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26875 ## Running $as_me. ##
26876 _ASBOX
26877 echo "$ac_log"
26878 } >&5
26879
26880 _ACEOF
26881 cat >>$CONFIG_STATUS <<_ACEOF
26882 #
26883 # INIT-COMMANDS
26884 #
26885 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26886
26887 rb_uint64_t="$rb_uint64_t"
26888 rb_uint32_t="$rb_uint32_t"
26889 rb_uint16_t="$rb_uint16_t"
26890 rb_uint8_t="$rb_uint8_t"
26891 rb_int64_t="$rb_int64_t"
26892 rb_int32_t="$rb_int32_t"
26893 rb_int16_t="$rb_int16_t"
26894 rb_int8_t="$rb_int8_t"
26895 rb_intmax_t="$rb_intmax_t"
26896 rb_intptr_t="$rb_intptr_t"
26897 rb_uintmax_t="$rb_uintmax_t"
26898 rb_uintptr_t="$rb_uintptr_t"
26899 if test x$ac_cv_header_stdc = xyes; then
26900 rb_header_stdc=yes
26901 fi
26902 if test x$ac_cv_header_stdlib_h = xyes; then
26903 rb_header_stdlib_h=yes
26904 fi
26905 if test x$ac_cv_header_string_h = xyes; then
26906 rb_header_string_h=yes
26907 fi
26908 if test x$ac_cv_header_memory_h = xyes; then
26909 rb_header_memory_h=yes
26910 fi
26911 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
26912 rb_alloca_h="$ac_cv_working_alloca_h"
26913 else
26914 rb_alloc_h="$ac_cv_header_alloca_h"
26915 fi
26916 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
26917 rb_sockaddr_sa_len=yes
26918 fi
26919 if test x$ac_cv_header_sys_socket_h = xyes; then
26920 rb_sys_socket_h=yes
26921 fi
26922 if test x$ac_cv_header_sys_types_h = xyes; then
26923 rb_sys_types_h=yes
26924 fi
26925 if test x$ac_cv_header_sys_stat_h = xyes; then
26926 rb_sys_stat_h=yes
26927 fi
26928 if test x$ac_cv_header_sys_time_h = xyes; then
26929 rb_sys_time_h=yes
26930 fi
26931 if test x$ac_cv_header_time = xyes; then
26932 rb_time_h=yes
26933 fi
26934
26935 if test x$ac_cv_header_stdint_h = xyes; then
26936 rb_stdint_h=yes
26937 fi
26938 if test x$ac_cv_header_inttypes_h = xyes; then
26939 rb_inttypes_h=yes
26940 fi
26941 if test x$ac_cv_header_netinet_in_h = xyes; then
26942 rb_netinet_in_h=yes
26943 fi
26944
26945 if test x$ac_cv_header_crypt_h = xyes; then
26946 rb_crypt_h=yes
26947 fi
26948 if test x$ac_cv_header_errno_h = xyes; then
26949 rb_errno_h=yes
26950 fi
26951 if test x$ac_cv_header_unistd_h = xyes; then
26952 rb_unistd_h=yes
26953 fi
26954 if test x$ac_cv_header_windows_h = xyes; then
26955 rb_windows_h=yes
26956 fi
26957 if test x$ac_cv_header_winsock2_h = xyes; then
26958 rb_winsock2_h=yes
26959 fi
26960 if test x$ac_cv_type_socklen_t = xyes; then
26961 rb_socklen_t="socklen_t"
26962 else
26963 rb_socklen_t="unsigned int"
26964 fi
26965 if test "x$rb_have_sockaddr_storage" = "xyes"; then
26966 rb_sockaddr_storage="yes"
26967 else
26968 rb_sockaddr_storage="no"
26969 fi
26970
26971 rb_have_ipv6="$have_v6"
26972
26973 rb_mv="$MV"
26974 rb_rm="$RM"
26975
26976
26977
26978
26979
26980
26981 _ACEOF
26982
26983 cat >>$CONFIG_STATUS <<\_ACEOF
26984
26985 # Handling of arguments.
26986 for ac_config_target in $ac_config_targets
26987 do
26988 case $ac_config_target in
26989 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
26990 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26991 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
26992 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26993 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26994
26995 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26996 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26997 { (exit 1); exit 1; }; };;
26998 esac
26999 done
27000
27001
27002 # If the user did not use the arguments to specify the items to instantiate,
27003 # then the envvar interface is used. Set only those that are not.
27004 # We use the long form for the default assignment because of an extremely
27005 # bizarre bug on SunOS 4.1.3.
27006 if $ac_need_defaults; then
27007 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27008 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27010 fi
27011
27012 # Have a temporary directory for convenience. Make it in the build tree
27013 # simply because there is no reason against having it here, and in addition,
27014 # creating and moving files from /tmp can sometimes cause problems.
27015 # Hook for its removal unless debugging.
27016 # Note that there is a small window in which the directory will not be cleaned:
27017 # after its creation but before its name has been assigned to `$tmp'.
27018 $debug ||
27019 {
27020 tmp=
27021 trap 'exit_status=$?
27022 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27023 ' 0
27024 trap '{ (exit 1); exit 1; }' 1 2 13 15
27025 }
27026 # Create a (secure) tmp directory for tmp files.
27027
27028 {
27029 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27030 test -n "$tmp" && test -d "$tmp"
27031 } ||
27032 {
27033 tmp=./conf$$-$RANDOM
27034 (umask 077 && mkdir "$tmp")
27035 } ||
27036 {
27037 echo "$me: cannot create a temporary directory in ." >&2
27038 { (exit 1); exit 1; }
27039 }
27040
27041 #
27042 # Set up the sed scripts for CONFIG_FILES section.
27043 #
27044
27045 # No need to generate the scripts if there are no CONFIG_FILES.
27046 # This happens for instance when ./config.status config.h
27047 if test -n "$CONFIG_FILES"; then
27048
27049 _ACEOF
27050
27051
27052
27053 ac_delim='%!_!# '
27054 for ac_last_try in false false false false false :; do
27055 cat >conf$$subs.sed <<_ACEOF
27056 SHELL!$SHELL$ac_delim
27057 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27058 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27059 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27060 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27061 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27062 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27063 exec_prefix!$exec_prefix$ac_delim
27064 prefix!$prefix$ac_delim
27065 program_transform_name!$program_transform_name$ac_delim
27066 bindir!$bindir$ac_delim
27067 sbindir!$sbindir$ac_delim
27068 libexecdir!$libexecdir$ac_delim
27069 datarootdir!$datarootdir$ac_delim
27070 datadir!$datadir$ac_delim
27071 sysconfdir!$sysconfdir$ac_delim
27072 sharedstatedir!$sharedstatedir$ac_delim
27073 localstatedir!$localstatedir$ac_delim
27074 includedir!$includedir$ac_delim
27075 oldincludedir!$oldincludedir$ac_delim
27076 docdir!$docdir$ac_delim
27077 infodir!$infodir$ac_delim
27078 htmldir!$htmldir$ac_delim
27079 dvidir!$dvidir$ac_delim
27080 pdfdir!$pdfdir$ac_delim
27081 psdir!$psdir$ac_delim
27082 libdir!$libdir$ac_delim
27083 localedir!$localedir$ac_delim
27084 mandir!$mandir$ac_delim
27085 DEFS!$DEFS$ac_delim
27086 ECHO_C!$ECHO_C$ac_delim
27087 ECHO_N!$ECHO_N$ac_delim
27088 ECHO_T!$ECHO_T$ac_delim
27089 LIBS!$LIBS$ac_delim
27090 build_alias!$build_alias$ac_delim
27091 host_alias!$host_alias$ac_delim
27092 target_alias!$target_alias$ac_delim
27093 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27094 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27095 INSTALL_DATA!$INSTALL_DATA$ac_delim
27096 am__isrc!$am__isrc$ac_delim
27097 CYGPATH_W!$CYGPATH_W$ac_delim
27098 PACKAGE!$PACKAGE$ac_delim
27099 VERSION!$VERSION$ac_delim
27100 ACLOCAL!$ACLOCAL$ac_delim
27101 AUTOCONF!$AUTOCONF$ac_delim
27102 AUTOMAKE!$AUTOMAKE$ac_delim
27103 AUTOHEADER!$AUTOHEADER$ac_delim
27104 MAKEINFO!$MAKEINFO$ac_delim
27105 install_sh!$install_sh$ac_delim
27106 STRIP!$STRIP$ac_delim
27107 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27108 mkdir_p!$mkdir_p$ac_delim
27109 AWK!$AWK$ac_delim
27110 SET_MAKE!$SET_MAKE$ac_delim
27111 am__leading_dot!$am__leading_dot$ac_delim
27112 AMTAR!$AMTAR$ac_delim
27113 am__tar!$am__tar$ac_delim
27114 am__untar!$am__untar$ac_delim
27115 CC!$CC$ac_delim
27116 CFLAGS!$CFLAGS$ac_delim
27117 LDFLAGS!$LDFLAGS$ac_delim
27118 CPPFLAGS!$CPPFLAGS$ac_delim
27119 ac_ct_CC!$ac_ct_CC$ac_delim
27120 EXEEXT!$EXEEXT$ac_delim
27121 OBJEXT!$OBJEXT$ac_delim
27122 DEPDIR!$DEPDIR$ac_delim
27123 am__include!$am__include$ac_delim
27124 am__quote!$am__quote$ac_delim
27125 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27126 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27127 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27128 CCDEPMODE!$CCDEPMODE$ac_delim
27129 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27130 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27131 GREP!$GREP$ac_delim
27132 EGREP!$EGREP$ac_delim
27133 SED!$SED$ac_delim
27134 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27135 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27136 MAINT!$MAINT$ac_delim
27137 AS!$AS$ac_delim
27138 RM!$RM$ac_delim
27139 CP!$CP$ac_delim
27140 MV!$MV$ac_delim
27141 LN!$LN$ac_delim
27142 AR!$AR$ac_delim
27143 LD!$LD$ac_delim
27144 RANLIB!$RANLIB$ac_delim
27145 TOUCH!$TOUCH$ac_delim
27146 build!$build$ac_delim
27147 build_cpu!$build_cpu$ac_delim
27148 build_vendor!$build_vendor$ac_delim
27149 build_os!$build_os$ac_delim
27150 host!$host$ac_delim
27151 host_cpu!$host_cpu$ac_delim
27152 host_vendor!$host_vendor$ac_delim
27153 _ACEOF
27154
27155 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27156 break
27157 elif $ac_last_try; then
27158 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27159 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27160 { (exit 1); exit 1; }; }
27161 else
27162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27163 fi
27164 done
27165
27166 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27167 if test -n "$ac_eof"; then
27168 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27169 ac_eof=`expr $ac_eof + 1`
27170 fi
27171
27172 cat >>$CONFIG_STATUS <<_ACEOF
27173 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27175 _ACEOF
27176 sed '
27177 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27178 s/^/s,@/; s/!/@,|#_!!_#|/
27179 :n
27180 t n
27181 s/'"$ac_delim"'$/,g/; t
27182 s/$/\\/; p
27183 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27184 ' >>$CONFIG_STATUS <conf$$subs.sed
27185 rm -f conf$$subs.sed
27186 cat >>$CONFIG_STATUS <<_ACEOF
27187 CEOF$ac_eof
27188 _ACEOF
27189
27190
27191 ac_delim='%!_!# '
27192 for ac_last_try in false false false false false :; do
27193 cat >conf$$subs.sed <<_ACEOF
27194 host_os!$host_os$ac_delim
27195 LN_S!$LN_S$ac_delim
27196 ECHO!$ECHO$ac_delim
27197 DSYMUTIL!$DSYMUTIL$ac_delim
27198 NMEDIT!$NMEDIT$ac_delim
27199 CPP!$CPP$ac_delim
27200 CXX!$CXX$ac_delim
27201 CXXFLAGS!$CXXFLAGS$ac_delim
27202 ac_ct_CXX!$ac_ct_CXX$ac_delim
27203 CXXDEPMODE!$CXXDEPMODE$ac_delim
27204 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27205 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27206 CXXCPP!$CXXCPP$ac_delim
27207 F77!$F77$ac_delim
27208 FFLAGS!$FFLAGS$ac_delim
27209 ac_ct_F77!$ac_ct_F77$ac_delim
27210 LIBTOOL!$LIBTOOL$ac_delim
27211 subdirs!$subdirs$ac_delim
27212 MINGW_TRUE!$MINGW_TRUE$ac_delim
27213 MINGW_FALSE!$MINGW_FALSE$ac_delim
27214 NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim
27215 NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim
27216 CRYPT_LIB!$CRYPT_LIB$ac_delim
27217 ALLOCA!$ALLOCA$ac_delim
27218 PICFLAGS!$PICFLAGS$ac_delim
27219 SEDOBJ!$SEDOBJ$ac_delim
27220 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
27221 SSL_LIBS!$SSL_LIBS$ac_delim
27222 RB_PREFIX!$RB_PREFIX$ac_delim
27223 LIBOBJS!$LIBOBJS$ac_delim
27224 LTLIBOBJS!$LTLIBOBJS$ac_delim
27225 _ACEOF
27226
27227 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
27228 break
27229 elif $ac_last_try; then
27230 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27231 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27232 { (exit 1); exit 1; }; }
27233 else
27234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27235 fi
27236 done
27237
27238 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27239 if test -n "$ac_eof"; then
27240 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27241 ac_eof=`expr $ac_eof + 1`
27242 fi
27243
27244 cat >>$CONFIG_STATUS <<_ACEOF
27245 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27247 _ACEOF
27248 sed '
27249 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27250 s/^/s,@/; s/!/@,|#_!!_#|/
27251 :n
27252 t n
27253 s/'"$ac_delim"'$/,g/; t
27254 s/$/\\/; p
27255 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27256 ' >>$CONFIG_STATUS <conf$$subs.sed
27257 rm -f conf$$subs.sed
27258 cat >>$CONFIG_STATUS <<_ACEOF
27259 :end
27260 s/|#_!!_#|//g
27261 CEOF$ac_eof
27262 _ACEOF
27263
27264
27265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27267 # trailing colons and then remove the whole line if VPATH becomes empty
27268 # (actually we leave an empty line to preserve line numbers).
27269 if test "x$srcdir" = x.; then
27270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27271 s/:*\$(srcdir):*/:/
27272 s/:*\${srcdir}:*/:/
27273 s/:*@srcdir@:*/:/
27274 s/^\([^=]*=[ ]*\):*/\1/
27275 s/:*$//
27276 s/^[^=]*=[ ]*$//
27277 }'
27278 fi
27279
27280 cat >>$CONFIG_STATUS <<\_ACEOF
27281 fi # test -n "$CONFIG_FILES"
27282
27283
27284 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27285 do
27286 case $ac_tag in
27287 :[FHLC]) ac_mode=$ac_tag; continue;;
27288 esac
27289 case $ac_mode$ac_tag in
27290 :[FHL]*:*);;
27291 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27292 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27293 { (exit 1); exit 1; }; };;
27294 :[FH]-) ac_tag=-:-;;
27295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27296 esac
27297 ac_save_IFS=$IFS
27298 IFS=:
27299 set x $ac_tag
27300 IFS=$ac_save_IFS
27301 shift
27302 ac_file=$1
27303 shift
27304
27305 case $ac_mode in
27306 :L) ac_source=$1;;
27307 :[FH])
27308 ac_file_inputs=
27309 for ac_f
27310 do
27311 case $ac_f in
27312 -) ac_f="$tmp/stdin";;
27313 *) # Look for the file first in the build tree, then in the source tree
27314 # (if the path is not absolute). The absolute path cannot be DOS-style,
27315 # because $ac_f cannot contain `:'.
27316 test -f "$ac_f" ||
27317 case $ac_f in
27318 [\\/$]*) false;;
27319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27320 esac ||
27321 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27322 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27323 { (exit 1); exit 1; }; };;
27324 esac
27325 ac_file_inputs="$ac_file_inputs $ac_f"
27326 done
27327
27328 # Let's still pretend it is `configure' which instantiates (i.e., don't
27329 # use $as_me), people would be surprised to read:
27330 # /* config.h. Generated by config.status. */
27331 configure_input="Generated from "`IFS=:
27332 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27333 if test x"$ac_file" != x-; then
27334 configure_input="$ac_file. $configure_input"
27335 { echo "$as_me:$LINENO: creating $ac_file" >&5
27336 echo "$as_me: creating $ac_file" >&6;}
27337 fi
27338
27339 case $ac_tag in
27340 *:-:* | *:-) cat >"$tmp/stdin";;
27341 esac
27342 ;;
27343 esac
27344
27345 ac_dir=`$as_dirname -- "$ac_file" ||
27346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27347 X"$ac_file" : 'X\(//\)[^/]' \| \
27348 X"$ac_file" : 'X\(//\)$' \| \
27349 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27350 echo X"$ac_file" |
27351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27352 s//\1/
27353 q
27354 }
27355 /^X\(\/\/\)[^/].*/{
27356 s//\1/
27357 q
27358 }
27359 /^X\(\/\/\)$/{
27360 s//\1/
27361 q
27362 }
27363 /^X\(\/\).*/{
27364 s//\1/
27365 q
27366 }
27367 s/.*/./; q'`
27368 { as_dir="$ac_dir"
27369 case $as_dir in #(
27370 -*) as_dir=./$as_dir;;
27371 esac
27372 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27373 as_dirs=
27374 while :; do
27375 case $as_dir in #(
27376 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27377 *) as_qdir=$as_dir;;
27378 esac
27379 as_dirs="'$as_qdir' $as_dirs"
27380 as_dir=`$as_dirname -- "$as_dir" ||
27381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27382 X"$as_dir" : 'X\(//\)[^/]' \| \
27383 X"$as_dir" : 'X\(//\)$' \| \
27384 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27385 echo X"$as_dir" |
27386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27387 s//\1/
27388 q
27389 }
27390 /^X\(\/\/\)[^/].*/{
27391 s//\1/
27392 q
27393 }
27394 /^X\(\/\/\)$/{
27395 s//\1/
27396 q
27397 }
27398 /^X\(\/\).*/{
27399 s//\1/
27400 q
27401 }
27402 s/.*/./; q'`
27403 test -d "$as_dir" && break
27404 done
27405 test -z "$as_dirs" || eval "mkdir $as_dirs"
27406 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27407 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27408 { (exit 1); exit 1; }; }; }
27409 ac_builddir=.
27410
27411 case "$ac_dir" in
27412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27413 *)
27414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27415 # A ".." for each directory in $ac_dir_suffix.
27416 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27417 case $ac_top_builddir_sub in
27418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27420 esac ;;
27421 esac
27422 ac_abs_top_builddir=$ac_pwd
27423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27424 # for backward compatibility:
27425 ac_top_builddir=$ac_top_build_prefix
27426
27427 case $srcdir in
27428 .) # We are building in place.
27429 ac_srcdir=.
27430 ac_top_srcdir=$ac_top_builddir_sub
27431 ac_abs_top_srcdir=$ac_pwd ;;
27432 [\\/]* | ?:[\\/]* ) # Absolute name.
27433 ac_srcdir=$srcdir$ac_dir_suffix;
27434 ac_top_srcdir=$srcdir
27435 ac_abs_top_srcdir=$srcdir ;;
27436 *) # Relative name.
27437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27438 ac_top_srcdir=$ac_top_build_prefix$srcdir
27439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27440 esac
27441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27442
27443
27444 case $ac_mode in
27445 :F)
27446 #
27447 # CONFIG_FILE
27448 #
27449
27450 case $INSTALL in
27451 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27452 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27453 esac
27454 ac_MKDIR_P=$MKDIR_P
27455 case $MKDIR_P in
27456 [\\/$]* | ?:[\\/]* ) ;;
27457 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27458 esac
27459 _ACEOF
27460
27461 cat >>$CONFIG_STATUS <<\_ACEOF
27462 # If the template does not know about datarootdir, expand it.
27463 # FIXME: This hack should be removed a few years after 2.60.
27464 ac_datarootdir_hack=; ac_datarootdir_seen=
27465
27466 case `sed -n '/datarootdir/ {
27467 p
27468 q
27469 }
27470 /@datadir@/p
27471 /@docdir@/p
27472 /@infodir@/p
27473 /@localedir@/p
27474 /@mandir@/p
27475 ' $ac_file_inputs` in
27476 *datarootdir*) ac_datarootdir_seen=yes;;
27477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27478 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27479 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27480 _ACEOF
27481 cat >>$CONFIG_STATUS <<_ACEOF
27482 ac_datarootdir_hack='
27483 s&@datadir@&$datadir&g
27484 s&@docdir@&$docdir&g
27485 s&@infodir@&$infodir&g
27486 s&@localedir@&$localedir&g
27487 s&@mandir@&$mandir&g
27488 s&\\\${datarootdir}&$datarootdir&g' ;;
27489 esac
27490 _ACEOF
27491
27492 # Neutralize VPATH when `$srcdir' = `.'.
27493 # Shell code in configure.ac might set extrasub.
27494 # FIXME: do we really want to maintain this feature?
27495 cat >>$CONFIG_STATUS <<_ACEOF
27496 sed "$ac_vpsub
27497 $extrasub
27498 _ACEOF
27499 cat >>$CONFIG_STATUS <<\_ACEOF
27500 :t
27501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27502 s&@configure_input@&$configure_input&;t t
27503 s&@top_builddir@&$ac_top_builddir_sub&;t t
27504 s&@srcdir@&$ac_srcdir&;t t
27505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27506 s&@top_srcdir@&$ac_top_srcdir&;t t
27507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27508 s&@builddir@&$ac_builddir&;t t
27509 s&@abs_builddir@&$ac_abs_builddir&;t t
27510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27511 s&@INSTALL@&$ac_INSTALL&;t t
27512 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27513 $ac_datarootdir_hack
27514 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27515
27516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27519 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27520 which seems to be undefined. Please make sure it is defined." >&5
27521 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27522 which seems to be undefined. Please make sure it is defined." >&2;}
27523
27524 rm -f "$tmp/stdin"
27525 case $ac_file in
27526 -) cat "$tmp/out"; rm -f "$tmp/out";;
27527 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27528 esac
27529 ;;
27530 :H)
27531 #
27532 # CONFIG_HEADER
27533 #
27534 _ACEOF
27535
27536 # Transform confdefs.h into a sed script `conftest.defines', that
27537 # substitutes the proper values into config.h.in to produce config.h.
27538 rm -f conftest.defines conftest.tail
27539 # First, append a space to every undef/define line, to ease matching.
27540 echo 's/$/ /' >conftest.defines
27541 # Then, protect against being on the right side of a sed subst, or in
27542 # an unquoted here document, in config.status. If some macros were
27543 # called several times there might be several #defines for the same
27544 # symbol, which is useless. But do not sort them, since the last
27545 # AC_DEFINE must be honored.
27546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27547 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27548 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27549 # PARAMS is the parameter list in the macro definition--in most cases, it's
27550 # just an empty string.
27551 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27552 ac_dB='\\)[ (].*,\\1define\\2'
27553 ac_dC=' '
27554 ac_dD=' ,'
27555
27556 uniq confdefs.h |
27557 sed -n '
27558 t rset
27559 :rset
27560 s/^[ ]*#[ ]*define[ ][ ]*//
27561 t ok
27562 d
27563 :ok
27564 s/[\\&,]/\\&/g
27565 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27566 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27567 ' >>conftest.defines
27568
27569 # Remove the space that was appended to ease matching.
27570 # Then replace #undef with comments. This is necessary, for
27571 # example, in the case of _POSIX_SOURCE, which is predefined and required
27572 # on some systems where configure will not decide to define it.
27573 # (The regexp can be short, since the line contains either #define or #undef.)
27574 echo 's/ $//
27575 s,^[ #]*u.*,/* & */,' >>conftest.defines
27576
27577 # Break up conftest.defines:
27578 ac_max_sed_lines=50
27579
27580 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27581 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27582 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27583 # et cetera.
27584 ac_in='$ac_file_inputs'
27585 ac_out='"$tmp/out1"'
27586 ac_nxt='"$tmp/out2"'
27587
27588 while :
27589 do
27590 # Write a here document:
27591 cat >>$CONFIG_STATUS <<_ACEOF
27592 # First, check the format of the line:
27593 cat >"\$tmp/defines.sed" <<\\CEOF
27594 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27595 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27596 b
27597 :def
27598 _ACEOF
27599 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27600 echo 'CEOF
27601 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27602 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27603 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27604 grep . conftest.tail >/dev/null || break
27605 rm -f conftest.defines
27606 mv conftest.tail conftest.defines
27607 done
27608 rm -f conftest.defines conftest.tail
27609
27610 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27611 cat >>$CONFIG_STATUS <<\_ACEOF
27612 if test x"$ac_file" != x-; then
27613 echo "/* $configure_input */" >"$tmp/config.h"
27614 cat "$ac_result" >>"$tmp/config.h"
27615 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27616 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27617 echo "$as_me: $ac_file is unchanged" >&6;}
27618 else
27619 rm -f $ac_file
27620 mv "$tmp/config.h" $ac_file
27621 fi
27622 else
27623 echo "/* $configure_input */"
27624 cat "$ac_result"
27625 fi
27626 rm -f "$tmp/out12"
27627 # Compute $ac_file's index in $config_headers.
27628 _am_arg=$ac_file
27629 _am_stamp_count=1
27630 for _am_header in $config_headers :; do
27631 case $_am_header in
27632 $_am_arg | $_am_arg:* )
27633 break ;;
27634 * )
27635 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27636 esac
27637 done
27638 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27639 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27640 X"$_am_arg" : 'X\(//\)[^/]' \| \
27641 X"$_am_arg" : 'X\(//\)$' \| \
27642 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27643 echo X"$_am_arg" |
27644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27645 s//\1/
27646 q
27647 }
27648 /^X\(\/\/\)[^/].*/{
27649 s//\1/
27650 q
27651 }
27652 /^X\(\/\/\)$/{
27653 s//\1/
27654 q
27655 }
27656 /^X\(\/\).*/{
27657 s//\1/
27658 q
27659 }
27660 s/.*/./; q'`/stamp-h$_am_stamp_count
27661 ;;
27662
27663 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27664 echo "$as_me: executing $ac_file commands" >&6;}
27665 ;;
27666 esac
27667
27668
27669 case $ac_file$ac_mode in
27670 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27671 # Strip MF so we end up with the name of the file.
27672 mf=`echo "$mf" | sed -e 's/:.*$//'`
27673 # Check whether this is an Automake generated Makefile or not.
27674 # We used to match only the files named `Makefile.in', but
27675 # some people rename them; so instead we look at the file content.
27676 # Grep'ing the first line is not enough: some people post-process
27677 # each Makefile.in and add a new line on top of each file to say so.
27678 # Grep'ing the whole file is not good either: AIX grep has a line
27679 # limit of 2048, but all sed's we know have understand at least 4000.
27680 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27681 dirpart=`$as_dirname -- "$mf" ||
27682 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27683 X"$mf" : 'X\(//\)[^/]' \| \
27684 X"$mf" : 'X\(//\)$' \| \
27685 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27686 echo X"$mf" |
27687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27688 s//\1/
27689 q
27690 }
27691 /^X\(\/\/\)[^/].*/{
27692 s//\1/
27693 q
27694 }
27695 /^X\(\/\/\)$/{
27696 s//\1/
27697 q
27698 }
27699 /^X\(\/\).*/{
27700 s//\1/
27701 q
27702 }
27703 s/.*/./; q'`
27704 else
27705 continue
27706 fi
27707 # Extract the definition of DEPDIR, am__include, and am__quote
27708 # from the Makefile without running `make'.
27709 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27710 test -z "$DEPDIR" && continue
27711 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27712 test -z "am__include" && continue
27713 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27714 # When using ansi2knr, U may be empty or an underscore; expand it
27715 U=`sed -n 's/^U = //p' < "$mf"`
27716 # Find all dependency output files, they are included files with
27717 # $(DEPDIR) in their names. We invoke sed twice because it is the
27718 # simplest approach to changing $(DEPDIR) to its actual value in the
27719 # expansion.
27720 for file in `sed -n "
27721 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27722 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27723 # Make sure the directory exists.
27724 test -f "$dirpart/$file" && continue
27725 fdir=`$as_dirname -- "$file" ||
27726 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27727 X"$file" : 'X\(//\)[^/]' \| \
27728 X"$file" : 'X\(//\)$' \| \
27729 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27730 echo X"$file" |
27731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27732 s//\1/
27733 q
27734 }
27735 /^X\(\/\/\)[^/].*/{
27736 s//\1/
27737 q
27738 }
27739 /^X\(\/\/\)$/{
27740 s//\1/
27741 q
27742 }
27743 /^X\(\/\).*/{
27744 s//\1/
27745 q
27746 }
27747 s/.*/./; q'`
27748 { as_dir=$dirpart/$fdir
27749 case $as_dir in #(
27750 -*) as_dir=./$as_dir;;
27751 esac
27752 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27753 as_dirs=
27754 while :; do
27755 case $as_dir in #(
27756 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27757 *) as_qdir=$as_dir;;
27758 esac
27759 as_dirs="'$as_qdir' $as_dirs"
27760 as_dir=`$as_dirname -- "$as_dir" ||
27761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27762 X"$as_dir" : 'X\(//\)[^/]' \| \
27763 X"$as_dir" : 'X\(//\)$' \| \
27764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27765 echo X"$as_dir" |
27766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27767 s//\1/
27768 q
27769 }
27770 /^X\(\/\/\)[^/].*/{
27771 s//\1/
27772 q
27773 }
27774 /^X\(\/\/\)$/{
27775 s//\1/
27776 q
27777 }
27778 /^X\(\/\).*/{
27779 s//\1/
27780 q
27781 }
27782 s/.*/./; q'`
27783 test -d "$as_dir" && break
27784 done
27785 test -z "$as_dirs" || eval "mkdir $as_dirs"
27786 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27787 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27788 { (exit 1); exit 1; }; }; }
27789 # echo "creating $dirpart/$file"
27790 echo '# dummy' > "$dirpart/$file"
27791 done
27792 done
27793 ;;
27794 "include/librb-config.h":C)
27795 outfile=include/librb-config.h.tmp
27796 cat > $outfile <<\_______EOF
27797 /*
27798 * librb-config.h: libratbox config file. Please modify configure.ac
27799 */
27800
27801 #ifndef __LIBRB_CONFIG_H
27802 #define __LIBRB_CONFIG_H
27803
27804 _______EOF
27805
27806 if test "x$rb_have_ipv6" = "xyes"; then
27807 echo "#define RB_IPV6 1" >> $outfile
27808 fi
27809
27810 if test "x$rb_windows_h" = "xyes"; then
27811 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
27812 echo '#include <windows.h>' >> $outfile
27813 echo '#include <winsock2.h>' >> $outfile
27814 echo '#include <iphlpapi.h>' >> $outfile
27815 fi
27816
27817 if test "x$rb_alloca_h" = "xyes"; then
27818 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
27819 fi
27820
27821 if test "x$rb_header_stdc" = "xyes"; then
27822 echo '#include <stdlib.h>' >> $outfile
27823 echo '#include <stddef.h>' >> $outfile
27824 elif test "x$rb_header_stdlib" = "xyes"; then
27825 echo '#include <stdlib.h>' >> $outfile
27826 fi
27827
27828 if test "x$rb_header_string_h" = "xyes"; then
27829 echo '#include <string.h>' >> $outfile
27830 fi
27831
27832 if test "x$rb_stdint_h" = "xyes"; then
27833 echo '#include <stdint.h>' >> $outfile
27834 fi
27835
27836 if test "x$rb_inttypes_h" = "xyes"; then
27837 echo '#include <inttypes.h>' >> $outfile
27838 fi
27839
27840 if test "x$rb_sys_types_h" = "xyes"; then
27841 echo '#include <sys/types.h>' >> $outfile
27842 fi
27843 if test "x$rb_sys_time_h" = "xyes"; then
27844 echo '#include <sys/time.h>' >> $outfile
27845 fi
27846 if test "x$rb_sys_stat_h" = "xyes"; then
27847 echo '#include <sys/stat.h>' >> $outfile
27848 fi
27849 if test "x$rb_time_h" = "xyes"; then
27850 echo '#include <time.h>' >> $outfile
27851 fi
27852
27853 if test "x$rb_sys_socket_h" = "xyes"; then
27854 echo '#include <sys/socket.h>' >> $outfile
27855 fi
27856
27857 if test "x$rb_netinet_in_h" = "xyes"; then
27858 echo '#include <netinet/in.h>' >> $outfile
27859 fi
27860
27861 if test "x$rb_arpa_inet_h" = "xyes"; then
27862 echo '#include <arpa/inet.h>' >> $outfile
27863 fi
27864
27865 if test "x$rb_unistd_h" = "xyes"; then
27866 echo '#include <unistd.h>' >> $outfile
27867 fi
27868
27869 if test "x$rb_crypt_h" = "xyes"; then
27870 echo '#include <crypt.h>' >> $outfile
27871 fi
27872
27873 if test "x$rb_errno_h" = "xyes"; then
27874 echo '#include <errno.h>' >> $outfile
27875 fi
27876
27877 if test "x$rb_sockaddr_sa_len" = "xyes"; then
27878 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
27879 fi
27880
27881 echo "typedef $rb_uint64_t rb_uint64_t;" >> $outfile
27882 echo "typedef $rb_uint32_t rb_uint32_t;" >> $outfile
27883 echo "typedef $rb_uint16_t rb_uint16_t;" >> $outfile
27884 echo "typedef $rb_uint8_t rb_uint8_t;" >> $outfile
27885 echo "typedef $rb_int64_t rb_int64_t;" >> $outfile
27886 echo "typedef $rb_int32_t rb_int32_t;" >> $outfile
27887 echo "typedef $rb_int16_t rb_int16_t;" >> $outfile
27888 echo "typedef $rb_int8_t rb_int8_t;" >> $outfile
27889 echo "typedef $rb_intmax_t rb_intmax_t;" >> $outfile
27890 echo "typedef $rb_intptr_t rb_intptr_t;" >> $outfile
27891 echo "typedef $rb_uintmax_t rb_uintmax_t;" >> $outfile
27892 echo "typedef $rb_uintptr_t rb_uintptr_t;" >> $outfile
27893 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
27894
27895 if test "x$rb_sockaddr_storage" = "xyes"; then
27896 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
27897 else
27898 echo 'struct rb_sockaddr_storage { rb_uint8_t _padding128; };' >> $outfile
27899 fi
27900
27901 cat >> $outfile <<\_______EOF
27902 #endif /* __LIBRB_CONFIG_H */
27903 _______EOF
27904
27905 if cmp -s $outfile include/librb-config.h; then
27906 { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
27907 echo "$as_me: include/librb-config.h is unchanged" >&6;}
27908 ${rb_rm} -f $outfile
27909 else
27910 ${rb_mv} $outfile include/librb-config.h
27911 fi
27912
27913 ;;
27914
27915 esac
27916 done # for ac_tag
27917
27918
27919 { (exit 0); exit 0; }
27920 _ACEOF
27921 chmod +x $CONFIG_STATUS
27922 ac_clean_files=$ac_clean_files_save
27923
27924
27925 # configure is writing to config.log, and then calls config.status.
27926 # config.status does its own redirection, appending to config.log.
27927 # Unfortunately, on DOS this fails, as config.log is still kept open
27928 # by configure, so config.status won't be able to write to it; its
27929 # output is simply discarded. So we exec the FD to /dev/null,
27930 # effectively closing config.log, so it can be properly (re)opened and
27931 # appended to by config.status. When coming back to configure, we
27932 # need to make the FD available again.
27933 if test "$no_create" != yes; then
27934 ac_cs_success=:
27935 ac_config_status_args=
27936 test "$silent" = yes &&
27937 ac_config_status_args="$ac_config_status_args --quiet"
27938 exec 5>/dev/null
27939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27940 exec 5>>config.log
27941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27942 # would make configure fail if this is the last instruction.
27943 $ac_cs_success || { (exit 1); exit 1; }
27944 fi
27945
27946 #
27947 # CONFIG_SUBDIRS section.
27948 #
27949 if test "$no_recursion" != yes; then
27950
27951 # Remove --cache-file and --srcdir arguments so they do not pile up.
27952 ac_sub_configure_args=
27953 ac_prev=
27954 eval "set x $ac_configure_args"
27955 shift
27956 for ac_arg
27957 do
27958 if test -n "$ac_prev"; then
27959 ac_prev=
27960 continue
27961 fi
27962 case $ac_arg in
27963 -cache-file | --cache-file | --cache-fil | --cache-fi \
27964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27965 ac_prev=cache_file ;;
27966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27968 | --c=*)
27969 ;;
27970 --config-cache | -C)
27971 ;;
27972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27973 ac_prev=srcdir ;;
27974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27975 ;;
27976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27977 ac_prev=prefix ;;
27978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27979 ;;
27980 *)
27981 case $ac_arg in
27982 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27983 esac
27984 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27985 esac
27986 done
27987
27988 # Always prepend --prefix to ensure using the same prefix
27989 # in subdir configurations.
27990 ac_arg="--prefix=$prefix"
27991 case $ac_arg in
27992 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27993 esac
27994 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27995
27996 # Pass --silent
27997 if test "$silent" = yes; then
27998 ac_sub_configure_args="--silent $ac_sub_configure_args"
27999 fi
28000
28001 ac_popdir=`pwd`
28002 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28003
28004 # Do not complain, so a configure script can configure whichever
28005 # parts of a large source tree are present.
28006 test -d "$srcdir/$ac_dir" || continue
28007
28008 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28009 echo "$as_me:$LINENO: $ac_msg" >&5
28010 echo "$ac_msg" >&6
28011 { as_dir="$ac_dir"
28012 case $as_dir in #(
28013 -*) as_dir=./$as_dir;;
28014 esac
28015 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28016 as_dirs=
28017 while :; do
28018 case $as_dir in #(
28019 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28020 *) as_qdir=$as_dir;;
28021 esac
28022 as_dirs="'$as_qdir' $as_dirs"
28023 as_dir=`$as_dirname -- "$as_dir" ||
28024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28025 X"$as_dir" : 'X\(//\)[^/]' \| \
28026 X"$as_dir" : 'X\(//\)$' \| \
28027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28028 echo X"$as_dir" |
28029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28030 s//\1/
28031 q
28032 }
28033 /^X\(\/\/\)[^/].*/{
28034 s//\1/
28035 q
28036 }
28037 /^X\(\/\/\)$/{
28038 s//\1/
28039 q
28040 }
28041 /^X\(\/\).*/{
28042 s//\1/
28043 q
28044 }
28045 s/.*/./; q'`
28046 test -d "$as_dir" && break
28047 done
28048 test -z "$as_dirs" || eval "mkdir $as_dirs"
28049 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28050 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28051 { (exit 1); exit 1; }; }; }
28052 ac_builddir=.
28053
28054 case "$ac_dir" in
28055 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28056 *)
28057 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28058 # A ".." for each directory in $ac_dir_suffix.
28059 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28060 case $ac_top_builddir_sub in
28061 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28062 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28063 esac ;;
28064 esac
28065 ac_abs_top_builddir=$ac_pwd
28066 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28067 # for backward compatibility:
28068 ac_top_builddir=$ac_top_build_prefix
28069
28070 case $srcdir in
28071 .) # We are building in place.
28072 ac_srcdir=.
28073 ac_top_srcdir=$ac_top_builddir_sub
28074 ac_abs_top_srcdir=$ac_pwd ;;
28075 [\\/]* | ?:[\\/]* ) # Absolute name.
28076 ac_srcdir=$srcdir$ac_dir_suffix;
28077 ac_top_srcdir=$srcdir
28078 ac_abs_top_srcdir=$srcdir ;;
28079 *) # Relative name.
28080 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28081 ac_top_srcdir=$ac_top_build_prefix$srcdir
28082 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28083 esac
28084 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28085
28086
28087 cd "$ac_dir"
28088
28089 # Check for guested configure; otherwise get Cygnus style configure.
28090 if test -f "$ac_srcdir/configure.gnu"; then
28091 ac_sub_configure=$ac_srcdir/configure.gnu
28092 elif test -f "$ac_srcdir/configure"; then
28093 ac_sub_configure=$ac_srcdir/configure
28094 elif test -f "$ac_srcdir/configure.in"; then
28095 # This should be Cygnus configure.
28096 ac_sub_configure=$ac_aux_dir/configure
28097 else
28098 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28099 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28100 ac_sub_configure=
28101 fi
28102
28103 # The recursion is here.
28104 if test -n "$ac_sub_configure"; then
28105 # Make the cache file name correct relative to the subdirectory.
28106 case $cache_file in
28107 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28108 *) # Relative name.
28109 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28110 esac
28111
28112 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28113 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28114 # The eval makes quoting arguments work.
28115 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28116 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28117 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28118 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28119 { (exit 1); exit 1; }; }
28120 fi
28121
28122 cd "$ac_popdir"
28123 done
28124 fi
28125
28126
28127
28128 echo
28129 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
28130 echo
28131
28132 echo "Installing into: $prefix"
28133
28134 echo "IPv6 support ................... $have_v6"
28135 echo "Assert debugging ............... $assert"
28136 echo "Block allocator ................ $balloc"
28137 echo "OpenSSL ........................ $cf_enable_openssl"
28138 echo
28139