]> jfr.im git - solanum.git/blob - libratbox/configure
Pull in libratbox from ircd-ratbox-3.0.0beta1 and integrate into the build system.
[solanum.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 CPP
873 CXX
874 CXXFLAGS
875 ac_ct_CXX
876 CXXDEPMODE
877 am__fastdepCXX_TRUE
878 am__fastdepCXX_FALSE
879 CXXCPP
880 F77
881 FFLAGS
882 ac_ct_F77
883 LIBTOOL
884 subdirs
885 MINGW_TRUE
886 MINGW_FALSE
887 NEED_CRYPT_TRUE
888 NEED_CRYPT_FALSE
889 CRYPT_LIB
890 ALLOCA
891 PICFLAGS
892 SEDOBJ
893 SSL_INCLUDES
894 SSL_LIBS
895 RB_PREFIX
896 LIBOBJS
897 LTLIBOBJS'
898 ac_subst_files=''
899 ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 CXX
909 CXXFLAGS
910 CCC
911 CXXCPP
912 F77
913 FFLAGS'
914 ac_subdirs_all='libltdl'
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
935
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
961
962 ac_prev=
963 ac_dashdash=
964 for ac_option
965 do
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
971 fi
972
973 case $ac_option in
974 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *) ac_optarg=yes ;;
976 esac
977
978 # Accept the important Cygnus configure options, so we can diagnose typos.
979
980 case $ac_dashdash$ac_option in
981 --)
982 ac_dashdash=yes ;;
983
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 bindir=$ac_optarg ;;
988
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
993
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1000
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1003
1004 -datadir | --datadir | --datadi | --datad)
1005 ac_prev=datadir ;;
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1008
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1015
1016 -disable-* | --disable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=no ;;
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1034
1035 -enable-* | --enable-*)
1036 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042 eval enable_$ac_feature=\$ac_optarg ;;
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
1233 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_$ac_package=\$ac_optarg ;;
1240
1241 -without-* | --without-*)
1242 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 { echo "$as_me: error: invalid package name: $ac_package" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248 eval with_$ac_package=no ;;
1249
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1253
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1260
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1267
1268 -*) { echo "$as_me: error: unrecognized option: $ac_option
1269 Try \`$0 --help' for more information." >&2
1270 { (exit 1); exit 1; }; }
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278 { (exit 1); exit 1; }; }
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1281
1282 *)
1283 # FIXME: should be removed in autoconf 3.0.
1284 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 ;;
1289
1290 esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 { echo "$as_me: error: missing argument to $ac_option" >&2
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 # Be sure to have absolute directory names.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1304 do
1305 eval ac_val=\$$ac_var
1306 case $ac_val in
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 esac
1310 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 { echo "$as_me: error: Working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$0" ||
1353 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$0" : 'X\(//\)[^/]' \| \
1355 X"$0" : 'X\(//\)$' \| \
1356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357 echo X"$0" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1378 fi
1379 else
1380 ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 \`configure' configures libratbox devel to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1469 _ACEOF
1470
1471 cat <<\_ACEOF
1472
1473 Program names:
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1477
1478 System types:
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short | recursive ) echo "Configuration of libratbox devel:";;
1487 esac
1488 cat <<\_ACEOF
1489
1490 Optional Features:
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --disable-dependency-tracking speeds up one-time build
1494 --enable-dependency-tracking do not reject slow dependency extractors
1495 --enable-static[=PKGS] build static libraries [default=no]
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-maintainer-mode enable make rules and dependencies not useful
1498 (and sometimes confusing) to the casual installer
1499 --enable-fast-install[=PKGS]
1500 optimize for fast installation [default=yes]
1501 --disable-libtool-lock avoid locking (might break parallel builds)
1502 --disable-ipv6 Disable IPv6 support
1503 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1504 --disable-openssl Disable OpenSSL support.
1505 --enable-assert Enable assert(). Choose between soft(warnings) and
1506 hard(aborts the daemon)
1507 --enable-profile Enable profiling
1508 --disable-balloc Disable the block allocator.
1509 --enable-warnings Enable all sorts of warnings for debugging.
1510
1511 Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1515 --with-pic try to use only PIC/non-PIC objects [default=use
1516 both]
1517 --with-tags[=TAGS] include additional configurations [automatic]
1518
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CPP C preprocessor
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1530 CXXCPP C++ preprocessor
1531 F77 Fortran 77 compiler command
1532 FFLAGS Fortran 77 compiler flags
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" || continue
1545 ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 libratbox configure devel
1598 generated by GNU Autoconf 2.61
1599
1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604
1605 $Id: configure.ac 23020 2006-09-01 18:20:19Z androsyn $
1606 _ACEOF
1607 exit
1608 fi
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1612
1613 It was created by libratbox $as_me devel, which was
1614 generated by GNU Autoconf 2.61. Invocation command line was
1615
1616 $ $0 $@
1617
1618 _ACEOF
1619 exec 5>>config.log
1620 {
1621 cat <<_ASUNAME
1622 ## --------- ##
1623 ## Platform. ##
1624 ## --------- ##
1625
1626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631
1632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1634
1635 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1636 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1639 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1640 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1641 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1642
1643 _ASUNAME
1644
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 echo "PATH: $as_dir"
1651 done
1652 IFS=$as_save_IFS
1653
1654 } >&5
1655
1656 cat >&5 <<_ACEOF
1657
1658
1659 ## ----------- ##
1660 ## Core tests. ##
1661 ## ----------- ##
1662
1663 _ACEOF
1664
1665
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1671 ac_configure_args=
1672 ac_configure_args0=
1673 ac_configure_args1=
1674 ac_must_keep_next=false
1675 for ac_pass in 1 2
1676 do
1677 for ac_arg
1678 do
1679 case $ac_arg in
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1683 continue ;;
1684 *\'*)
1685 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1686 esac
1687 case $ac_pass in
1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689 2)
1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1693 else
1694 case $ac_arg in
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701 esac
1702 ;;
1703 -* ) ac_must_keep_next=true ;;
1704 esac
1705 fi
1706 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 ;;
1708 esac
1709 done
1710 done
1711 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log. We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1721 {
1722 echo
1723
1724 cat <<\_ASBOX
1725 ## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##
1728 _ASBOX
1729 echo
1730 # The following way of writing the cache mishandles newlines in values,
1731 (
1732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733 eval ac_val=\$$ac_var
1734 case $ac_val in #(
1735 *${as_nl}*)
1736 case $ac_var in #(
1737 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1738 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1739 esac
1740 case $ac_var in #(
1741 _ | IFS | as_nl) ;; #(
1742 *) $as_unset $ac_var ;;
1743 esac ;;
1744 esac
1745 done
1746 (set) 2>&1 |
1747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1749 sed -n \
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 ;; #(
1753 *)
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ;;
1756 esac |
1757 sort
1758 )
1759 echo
1760
1761 cat <<\_ASBOX
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1765 _ASBOX
1766 echo
1767 for ac_var in $ac_subst_vars
1768 do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1776
1777 if test -n "$ac_subst_files"; then
1778 cat <<\_ASBOX
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1782 _ASBOX
1783 echo
1784 for ac_var in $ac_subst_files
1785 do
1786 eval ac_val=\$$ac_var
1787 case $ac_val in
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 esac
1790 echo "$ac_var='\''$ac_val'\''"
1791 done | sort
1792 echo
1793 fi
1794
1795 if test -s confdefs.h; then
1796 cat <<\_ASBOX
1797 ## ----------- ##
1798 ## confdefs.h. ##
1799 ## ----------- ##
1800 _ASBOX
1801 echo
1802 cat confdefs.h
1803 echo
1804 fi
1805 test "$ac_signal" != 0 &&
1806 echo "$as_me: caught signal $ac_signal"
1807 echo "$as_me: exit $exit_status"
1808 } >&5
1809 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 exit $exit_status
1812 ' 0
1813 for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815 done
1816 ac_signal=0
1817
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1820
1821 # Predefined preprocessor variables.
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845 _ACEOF
1846
1847
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer explicitly selected file to automatically selected ones.
1850 if test -n "$CONFIG_SITE"; then
1851 set x "$CONFIG_SITE"
1852 elif test "x$prefix" != xNONE; then
1853 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1854 else
1855 set x "$ac_default_prefix/share/config.site" \
1856 "$ac_default_prefix/etc/config.site"
1857 fi
1858 shift
1859 for ac_site_file
1860 do
1861 if test -r "$ac_site_file"; then
1862 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1863 echo "$as_me: loading site script $ac_site_file" >&6;}
1864 sed 's/^/| /' "$ac_site_file" >&5
1865 . "$ac_site_file"
1866 fi
1867 done
1868
1869 if test -r "$cache_file"; then
1870 # Some versions of bash will fail to source /dev/null (special
1871 # files actually), so we avoid doing that.
1872 if test -f "$cache_file"; then
1873 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874 echo "$as_me: loading cache $cache_file" >&6;}
1875 case $cache_file in
1876 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877 *) . "./$cache_file";;
1878 esac
1879 fi
1880 else
1881 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882 echo "$as_me: creating cache $cache_file" >&6;}
1883 >$cache_file
1884 fi
1885
1886 # Check that the precious variables saved in the cache have kept the same
1887 # value.
1888 ac_cache_corrupted=false
1889 for ac_var in $ac_precious_vars; do
1890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1891 eval ac_new_set=\$ac_env_${ac_var}_set
1892 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1893 eval ac_new_val=\$ac_env_${ac_var}_value
1894 case $ac_old_set,$ac_new_set in
1895 set,)
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1899 ,set)
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1903 ,);;
1904 *)
1905 if test "x$ac_old_val" != "x$ac_new_val"; then
1906 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1909 echo "$as_me: former value: $ac_old_val" >&2;}
1910 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1911 echo "$as_me: current value: $ac_new_val" >&2;}
1912 ac_cache_corrupted=:
1913 fi;;
1914 esac
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1917 case $ac_new_val in
1918 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1920 esac
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1924 esac
1925 fi
1926 done
1927 if $ac_cache_corrupted; then
1928 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1933 fi
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964
1965
1966 am__api_version='1.10'
1967
1968 ac_aux_dir=
1969 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1970 if test -f "$ac_dir/install-sh"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/install-sh -c"
1973 break
1974 elif test -f "$ac_dir/install.sh"; then
1975 ac_aux_dir=$ac_dir
1976 ac_install_sh="$ac_aux_dir/install.sh -c"
1977 break
1978 elif test -f "$ac_dir/shtool"; then
1979 ac_aux_dir=$ac_dir
1980 ac_install_sh="$ac_aux_dir/shtool install -c"
1981 break
1982 fi
1983 done
1984 if test -z "$ac_aux_dir"; then
1985 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1986 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1987 { (exit 1); exit 1; }; }
1988 fi
1989
1990 # These three variables are undocumented and unsupported,
1991 # and are intended to be withdrawn in a future Autoconf release.
1992 # They can cause serious problems if a builder's source tree is in a directory
1993 # whose full name contains unusual characters.
1994 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1995 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1996 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1997
1998
1999 # Find a good install program. We prefer a C program (faster),
2000 # so one script is as good as another. But avoid the broken or
2001 # incompatible versions:
2002 # SysV /etc/install, /usr/sbin/install
2003 # SunOS /usr/etc/install
2004 # IRIX /sbin/install
2005 # AIX /bin/install
2006 # AmigaOS /C/install, which installs bootblocks on floppy discs
2007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2010 # OS/2's system install, which has a completely different semantic
2011 # ./install, which can be erroneously created by make from ./install.sh.
2012 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2013 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2014 if test -z "$INSTALL"; then
2015 if test "${ac_cv_path_install+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 # Account for people who put trailing slashes in PATH elements.
2024 case $as_dir/ in
2025 ./ | .// | /cC/* | \
2026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2027 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2028 /usr/ucb/* ) ;;
2029 *)
2030 # OSF1 and SCO ODT 3.0 have their own names for install.
2031 # Don't use installbsd from OSF since it installs stuff as root
2032 # by default.
2033 for ac_prog in ginstall scoinst install; do
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2036 if test $ac_prog = install &&
2037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2038 # AIX install. It has an incompatible calling convention.
2039 :
2040 elif test $ac_prog = install &&
2041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2042 # program-specific install script used by HP pwplus--don't use.
2043 :
2044 else
2045 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2046 break 3
2047 fi
2048 fi
2049 done
2050 done
2051 ;;
2052 esac
2053 done
2054 IFS=$as_save_IFS
2055
2056
2057 fi
2058 if test "${ac_cv_path_install+set}" = set; then
2059 INSTALL=$ac_cv_path_install
2060 else
2061 # As a last resort, use the slow shell script. Don't cache a
2062 # value for INSTALL within a source directory, because that will
2063 # break other packages using the cache if that directory is
2064 # removed, or if the value is a relative name.
2065 INSTALL=$ac_install_sh
2066 fi
2067 fi
2068 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2069 echo "${ECHO_T}$INSTALL" >&6; }
2070
2071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2072 # It thinks the first close brace ends the variable substitution.
2073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2074
2075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2076
2077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2078
2079 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2080 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2081 # Just in case
2082 sleep 1
2083 echo timestamp > conftest.file
2084 # Do `set' in a subshell so we don't clobber the current shell's
2085 # arguments. Must try -L first in case configure is actually a
2086 # symlink; some systems play weird games with the mod time of symlinks
2087 # (eg FreeBSD returns the mod time of the symlink's containing
2088 # directory).
2089 if (
2090 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2091 if test "$*" = "X"; then
2092 # -L didn't work.
2093 set X `ls -t $srcdir/configure conftest.file`
2094 fi
2095 rm -f conftest.file
2096 if test "$*" != "X $srcdir/configure conftest.file" \
2097 && test "$*" != "X conftest.file $srcdir/configure"; then
2098
2099 # If neither matched, then we have a broken ls. This can happen
2100 # if, for instance, CONFIG_SHELL is bash and it inherits a
2101 # broken ls alias from the environment. This has actually
2102 # happened. Such a system could not be considered "sane".
2103 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2104 alias in your environment" >&5
2105 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2106 alias in your environment" >&2;}
2107 { (exit 1); exit 1; }; }
2108 fi
2109
2110 test "$2" = conftest.file
2111 )
2112 then
2113 # Ok.
2114 :
2115 else
2116 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2117 Check your system clock" >&5
2118 echo "$as_me: error: newly created file is older than distributed files!
2119 Check your system clock" >&2;}
2120 { (exit 1); exit 1; }; }
2121 fi
2122 { echo "$as_me:$LINENO: result: yes" >&5
2123 echo "${ECHO_T}yes" >&6; }
2124 test "$program_prefix" != NONE &&
2125 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2126 # Use a double $ so make ignores it.
2127 test "$program_suffix" != NONE &&
2128 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2129 # Double any \ or $. echo might interpret backslashes.
2130 # By default was `s,x,x', remove it if useless.
2131 cat <<\_ACEOF >conftest.sed
2132 s/[\\$]/&&/g;s/;s,x,x,$//
2133 _ACEOF
2134 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2135 rm -f conftest.sed
2136
2137 # expand $ac_aux_dir to an absolute path
2138 am_aux_dir=`cd $ac_aux_dir && pwd`
2139
2140 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2141 # Use eval to expand $SHELL
2142 if eval "$MISSING --run true"; then
2143 am_missing_run="$MISSING --run "
2144 else
2145 am_missing_run=
2146 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2147 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2148 fi
2149
2150 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2151 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2152 if test -z "$MKDIR_P"; then
2153 if test "${ac_cv_path_mkdir+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2158 do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_prog in mkdir gmkdir; do
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2164 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2165 'mkdir (GNU coreutils) '* | \
2166 'mkdir (coreutils) '* | \
2167 'mkdir (fileutils) '4.1*)
2168 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2169 break 3;;
2170 esac
2171 done
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177
2178 if test "${ac_cv_path_mkdir+set}" = set; then
2179 MKDIR_P="$ac_cv_path_mkdir -p"
2180 else
2181 # As a last resort, use the slow shell script. Don't cache a
2182 # value for MKDIR_P within a source directory, because that will
2183 # break other packages using the cache if that directory is
2184 # removed, or if the value is a relative name.
2185 test -d ./--version && rmdir ./--version
2186 MKDIR_P="$ac_install_sh -d"
2187 fi
2188 fi
2189 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2190 echo "${ECHO_T}$MKDIR_P" >&6; }
2191
2192 mkdir_p="$MKDIR_P"
2193 case $mkdir_p in
2194 [\\/$]* | ?:[\\/]*) ;;
2195 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2196 esac
2197
2198 for ac_prog in gawk mawk nawk awk
2199 do
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy $ac_prog; ac_word=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK="$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2220 fi
2221 done
2222 done
2223 IFS=$as_save_IFS
2224
2225 fi
2226 fi
2227 AWK=$ac_cv_prog_AWK
2228 if test -n "$AWK"; then
2229 { echo "$as_me:$LINENO: result: $AWK" >&5
2230 echo "${ECHO_T}$AWK" >&6; }
2231 else
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2234 fi
2235
2236
2237 test -n "$AWK" && break
2238 done
2239
2240 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2242 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2243 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 cat >conftest.make <<\_ACEOF
2247 SHELL = /bin/sh
2248 all:
2249 @echo '@@@%%%=$(MAKE)=@@@%%%'
2250 _ACEOF
2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2253 *@@@%%%=?*=@@@%%%*)
2254 eval ac_cv_prog_make_${ac_make}_set=yes;;
2255 *)
2256 eval ac_cv_prog_make_${ac_make}_set=no;;
2257 esac
2258 rm -f conftest.make
2259 fi
2260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2263 SET_MAKE=
2264 else
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 SET_MAKE="MAKE=${MAKE-make}"
2268 fi
2269
2270 rm -rf .tst 2>/dev/null
2271 mkdir .tst 2>/dev/null
2272 if test -d .tst; then
2273 am__leading_dot=.
2274 else
2275 am__leading_dot=_
2276 fi
2277 rmdir .tst 2>/dev/null
2278
2279 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2280 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2281 # is not polluted with repeated "-I."
2282 am__isrc=' -I$(srcdir)'
2283 # test to see if srcdir already configured
2284 if test -f $srcdir/config.status; then
2285 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2287 { (exit 1); exit 1; }; }
2288 fi
2289 fi
2290
2291 # test whether we have cygpath
2292 if test -z "$CYGPATH_W"; then
2293 if (cygpath --version) >/dev/null 2>/dev/null; then
2294 CYGPATH_W='cygpath -w'
2295 else
2296 CYGPATH_W=echo
2297 fi
2298 fi
2299
2300
2301 # Define the identity of the package.
2302 PACKAGE=libratbox
2303 VERSION=devel
2304
2305
2306 # Some tools Automake needs.
2307
2308 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2309
2310
2311 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2312
2313
2314 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2315
2316
2317 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2318
2319
2320 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2321
2322 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2323
2324 # Installed binaries are usually stripped using `strip' when the user
2325 # run `make install-strip'. However `strip' might not be the right
2326 # tool to use in cross-compilation environments, therefore Automake
2327 # will honor the `STRIP' environment variable to overrule this program.
2328 if test "$cross_compiling" != no; then
2329 if test -n "$ac_tool_prefix"; then
2330 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2331 set dummy ${ac_tool_prefix}strip; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_STRIP+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$STRIP"; then
2338 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2350 fi
2351 done
2352 done
2353 IFS=$as_save_IFS
2354
2355 fi
2356 fi
2357 STRIP=$ac_cv_prog_STRIP
2358 if test -n "$STRIP"; then
2359 { echo "$as_me:$LINENO: result: $STRIP" >&5
2360 echo "${ECHO_T}$STRIP" >&6; }
2361 else
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2364 fi
2365
2366
2367 fi
2368 if test -z "$ac_cv_prog_STRIP"; then
2369 ac_ct_STRIP=$STRIP
2370 # Extract the first word of "strip", so it can be a program name with args.
2371 set dummy strip; ac_word=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 if test -n "$ac_ct_STRIP"; then
2378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_ac_ct_STRIP="strip"
2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 break 2
2390 fi
2391 done
2392 done
2393 IFS=$as_save_IFS
2394
2395 fi
2396 fi
2397 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2398 if test -n "$ac_ct_STRIP"; then
2399 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2400 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2401 else
2402 { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2404 fi
2405
2406 if test "x$ac_ct_STRIP" = x; then
2407 STRIP=":"
2408 else
2409 case $cross_compiling:$ac_tool_warned in
2410 yes:)
2411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2412 whose name does not start with the host triplet. If you think this
2413 configuration is useful to you, please write to autoconf@gnu.org." >&5
2414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2417 ac_tool_warned=yes ;;
2418 esac
2419 STRIP=$ac_ct_STRIP
2420 fi
2421 else
2422 STRIP="$ac_cv_prog_STRIP"
2423 fi
2424
2425 fi
2426 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2427
2428 # We need awk for the "check" target. The system "awk" is bad on
2429 # some platforms.
2430 # Always define AMTAR for backward compatibility.
2431
2432 AMTAR=${AMTAR-"${am_missing_run}tar"}
2433
2434 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2435
2436
2437
2438
2439
2440
2441 ac_config_headers="$ac_config_headers include/libratbox_config.h"
2442
2443
2444
2445
2446 cat >>confdefs.h <<\_ACEOF
2447 #define _GNU_SOURCE 1
2448 _ACEOF
2449
2450
2451
2452 DEPDIR="${am__leading_dot}deps"
2453
2454 ac_config_commands="$ac_config_commands depfiles"
2455
2456
2457 am_make=${MAKE-make}
2458 cat > confinc << 'END'
2459 am__doit:
2460 @echo done
2461 .PHONY: am__doit
2462 END
2463 # If we don't find an include directive, just comment out the code.
2464 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2465 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2466 am__include="#"
2467 am__quote=
2468 _am_result=none
2469 # First try GNU make style include.
2470 echo "include confinc" > confmf
2471 # We grep out `Entering directory' and `Leaving directory'
2472 # messages which can occur if `w' ends up in MAKEFLAGS.
2473 # In particular we don't look at `^make:' because GNU make might
2474 # be invoked under some other name (usually "gmake"), in which
2475 # case it prints its new name instead of `make'.
2476 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2477 am__include=include
2478 am__quote=
2479 _am_result=GNU
2480 fi
2481 # Now try BSD make style include.
2482 if test "$am__include" = "#"; then
2483 echo '.include "confinc"' > confmf
2484 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2485 am__include=.include
2486 am__quote="\""
2487 _am_result=BSD
2488 fi
2489 fi
2490
2491
2492 { echo "$as_me:$LINENO: result: $_am_result" >&5
2493 echo "${ECHO_T}$_am_result" >&6; }
2494 rm -f confinc confmf
2495
2496 # Check whether --enable-dependency-tracking was given.
2497 if test "${enable_dependency_tracking+set}" = set; then
2498 enableval=$enable_dependency_tracking;
2499 fi
2500
2501 if test "x$enable_dependency_tracking" != xno; then
2502 am_depcomp="$ac_aux_dir/depcomp"
2503 AMDEPBACKSLASH='\'
2504 fi
2505 if test "x$enable_dependency_tracking" != xno; then
2506 AMDEP_TRUE=
2507 AMDEP_FALSE='#'
2508 else
2509 AMDEP_TRUE='#'
2510 AMDEP_FALSE=
2511 fi
2512
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2551 else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556
2557 fi
2558 if test -z "$ac_cv_prog_CC"; then
2559 ac_ct_CC=$CC
2560 # Extract the first word of "gcc", so it can be a program name with args.
2561 set dummy gcc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="gcc"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6; }
2591 else
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2594 fi
2595
2596 if test "x$ac_ct_CC" = x; then
2597 CC=""
2598 else
2599 case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet. If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet. If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609 CC=$ac_ct_CC
2610 fi
2611 else
2612 CC="$ac_cv_prog_CC"
2613 fi
2614
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2618 set dummy ${ac_tool_prefix}cc; ac_word=$2
2619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621 if test "${ac_cv_prog_CC+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_CC="${ac_tool_prefix}cc"
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 CC=$ac_cv_prog_CC
2645 if test -n "$CC"; then
2646 { echo "$as_me:$LINENO: result: $CC" >&5
2647 echo "${ECHO_T}$CC" >&6; }
2648 else
2649 { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2651 fi
2652
2653
2654 fi
2655 fi
2656 if test -z "$CC"; then
2657 # Extract the first word of "cc", so it can be a program name with args.
2658 set dummy cc; ac_word=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 ac_prog_rejected=no
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2676 ac_prog_rejected=yes
2677 continue
2678 fi
2679 ac_cv_prog_CC="cc"
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 if test $ac_prog_rejected = yes; then
2688 # We found a bogon in the path, so make sure we never use it.
2689 set dummy $ac_cv_prog_CC
2690 shift
2691 if test $# != 0; then
2692 # We chose a different compiler from the bogus one.
2693 # However, it has the same basename, so the bogon will be chosen
2694 # first if we set CC to just the basename; use the full file name.
2695 shift
2696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2697 fi
2698 fi
2699 fi
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { echo "$as_me:$LINENO: result: $CC" >&5
2704 echo "${ECHO_T}$CC" >&6; }
2705 else
2706 { echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6; }
2708 fi
2709
2710
2711 fi
2712 if test -z "$CC"; then
2713 if test -n "$ac_tool_prefix"; then
2714 for ac_prog in cl.exe
2715 do
2716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 { echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6; }
2747 else
2748 { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2750 fi
2751
2752
2753 test -n "$CC" && break
2754 done
2755 fi
2756 if test -z "$CC"; then
2757 ac_ct_CC=$CC
2758 for ac_prog in cl.exe
2759 do
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_CC="$ac_prog"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6; }
2791 else
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2794 fi
2795
2796
2797 test -n "$ac_ct_CC" && break
2798 done
2799
2800 if test "x$ac_ct_CC" = x; then
2801 CC=""
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2806 whose name does not start with the host triplet. If you think this
2807 configuration is useful to you, please write to autoconf@gnu.org." >&5
2808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet. If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2811 ac_tool_warned=yes ;;
2812 esac
2813 CC=$ac_ct_CC
2814 fi
2815 fi
2816
2817 fi
2818
2819
2820 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: no acceptable C compiler found in \$PATH
2823 See \`config.log' for more details." >&2;}
2824 { (exit 1); exit 1; }; }
2825
2826 # Provide some information about the compiler.
2827 echo "$as_me:$LINENO: checking for C compiler version" >&5
2828 ac_compiler=`set X $ac_compile; echo $2`
2829 { (ac_try="$ac_compiler --version >&5"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compiler --version >&5") 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2839 { (ac_try="$ac_compiler -v >&5"
2840 case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compiler -v >&5") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849 { (ac_try="$ac_compiler -V >&5"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compiler -V >&5") 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }
2859
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866
2867 int
2868 main ()
2869 {
2870
2871 ;
2872 return 0;
2873 }
2874 _ACEOF
2875 ac_clean_files_save=$ac_clean_files
2876 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2877 # Try to create an executable without -o first, disregard a.out.
2878 # It will help us diagnose broken compilers, and finding out an intuition
2879 # of exeext.
2880 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2881 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2882 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2883 #
2884 # List of possible output files, starting from the most likely.
2885 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2886 # only as a last resort. b.out is created by i960 compilers.
2887 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2888 #
2889 # The IRIX 6 linker writes into existing files which may not be
2890 # executable, retaining their permissions. Remove them first so a
2891 # subsequent execution test works.
2892 ac_rmfiles=
2893 for ac_file in $ac_files
2894 do
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2898 esac
2899 done
2900 rm -f $ac_rmfiles
2901
2902 if { (ac_try="$ac_link_default"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_link_default") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2913 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2914 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2915 # so that the user can short-circuit this test for compilers unknown to
2916 # Autoconf.
2917 for ac_file in $ac_files ''
2918 do
2919 test -f "$ac_file" || continue
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2922 ;;
2923 [ab].out )
2924 # We found the default executable, but exeext='' is most
2925 # certainly right.
2926 break;;
2927 *.* )
2928 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929 then :; else
2930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 fi
2932 # We set ac_cv_exeext here because the later test for it is not
2933 # safe: cross compilers may not add the suffix if given an `-o'
2934 # argument, so we may need to know it at that point already.
2935 # Even if this section looks crufty: it has the advantage of
2936 # actually working.
2937 break;;
2938 * )
2939 break;;
2940 esac
2941 done
2942 test "$ac_cv_exeext" = no && ac_cv_exeext=
2943
2944 else
2945 ac_file=''
2946 fi
2947
2948 { echo "$as_me:$LINENO: result: $ac_file" >&5
2949 echo "${ECHO_T}$ac_file" >&6; }
2950 if test -z "$ac_file"; then
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2955 See \`config.log' for more details." >&5
2956 echo "$as_me: error: C compiler cannot create executables
2957 See \`config.log' for more details." >&2;}
2958 { (exit 77); exit 77; }; }
2959 fi
2960
2961 ac_exeext=$ac_cv_exeext
2962
2963 # Check that the compiler produces executables we can run. If not, either
2964 # the compiler is broken, or we cross compile.
2965 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2966 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2967 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2968 # If not cross compiling, check that we can run a simple program.
2969 if test "$cross_compiling" != yes; then
2970 if { ac_try='./$ac_file'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 cross_compiling=no
2981 else
2982 if test "$cross_compiling" = maybe; then
2983 cross_compiling=yes
2984 else
2985 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'.
2987 See \`config.log' for more details." >&5
2988 echo "$as_me: error: cannot run C compiled programs.
2989 If you meant to cross compile, use \`--host'.
2990 See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2992 fi
2993 fi
2994 fi
2995 { echo "$as_me:$LINENO: result: yes" >&5
2996 echo "${ECHO_T}yes" >&6; }
2997
2998 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3003 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3004 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3005 echo "${ECHO_T}$cross_compiling" >&6; }
3006
3007 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3008 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3009 if { (ac_try="$ac_link"
3010 case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_link") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3020 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3021 # work properly (i.e., refer to `conftest.exe'), while it won't with
3022 # `rm'.
3023 for ac_file in conftest.exe conftest conftest.*; do
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3027 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 break;;
3029 * ) break;;
3030 esac
3031 done
3032 else
3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3038 fi
3039
3040 rm -f conftest$ac_cv_exeext
3041 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3042 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3043
3044 rm -f conftest.$ac_ext
3045 EXEEXT=$ac_cv_exeext
3046 ac_exeext=$EXEEXT
3047 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3048 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3049 if test "${ac_cv_objext+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 rm -f conftest.o conftest.obj
3068 if { (ac_try="$ac_compile"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; then
3078 for ac_file in conftest.o conftest.obj conftest.*; do
3079 test -f "$ac_file" || continue;
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3083 break;;
3084 esac
3085 done
3086 else
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3091 See \`config.log' for more details." >&5
3092 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3093 See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }
3095 fi
3096
3097 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098 fi
3099 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3100 echo "${ECHO_T}$ac_cv_objext" >&6; }
3101 OBJEXT=$ac_cv_objext
3102 ac_objext=$OBJEXT
3103 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3104 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3105 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118 #ifndef __GNUC__
3119 choke me
3120 #endif
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_compiler_gnu=yes
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 ac_compiler_gnu=no
3149 fi
3150
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3153
3154 fi
3155 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3156 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3157 GCC=`test $ac_compiler_gnu = yes && echo yes`
3158 ac_test_CFLAGS=${CFLAGS+set}
3159 ac_save_CFLAGS=$CFLAGS
3160 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3161 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3162 if test "${ac_cv_prog_cc_g+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 ac_save_c_werror_flag=$ac_c_werror_flag
3166 ac_c_werror_flag=yes
3167 ac_cv_prog_cc_g=no
3168 CFLAGS="-g"
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175
3176 int
3177 main ()
3178 {
3179
3180 ;
3181 return 0;
3182 }
3183 _ACEOF
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3201 ac_cv_prog_cc_g=yes
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 CFLAGS=""
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213
3214 int
3215 main ()
3216 {
3217
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
3239 :
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 ac_c_werror_flag=$ac_save_c_werror_flag
3245 CFLAGS="-g"
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3252
3253 int
3254 main ()
3255 {
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3278 ac_cv_prog_cc_g=yes
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283
3284 fi
3285
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 fi
3288
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 fi
3291
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3294 fi
3295 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3296 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3297 if test "$ac_test_CFLAGS" = set; then
3298 CFLAGS=$ac_save_CFLAGS
3299 elif test $ac_cv_prog_cc_g = yes; then
3300 if test "$GCC" = yes; then
3301 CFLAGS="-g -O2"
3302 else
3303 CFLAGS="-g"
3304 fi
3305 else
3306 if test "$GCC" = yes; then
3307 CFLAGS="-O2"
3308 else
3309 CFLAGS=
3310 fi
3311 fi
3312 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3313 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_cc_c89+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 ac_cv_prog_cc_c89=no
3318 ac_save_CC=$CC
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 #include <stdarg.h>
3326 #include <stdio.h>
3327 #include <sys/types.h>
3328 #include <sys/stat.h>
3329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3330 struct buf { int x; };
3331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3332 static char *e (p, i)
3333 char **p;
3334 int i;
3335 {
3336 return p[i];
3337 }
3338 static char *f (char * (*g) (char **, int), char **p, ...)
3339 {
3340 char *s;
3341 va_list v;
3342 va_start (v,p);
3343 s = g (p, va_arg (v,int));
3344 va_end (v);
3345 return s;
3346 }
3347
3348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3349 function prototypes and stuff, but not '\xHH' hex character constants.
3350 These don't provoke an error unfortunately, instead are silently treated
3351 as 'x'. The following induces an error, until -std is added to get
3352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3353 array size at least. It's necessary to write '\x00'==0 to get something
3354 that's true only with -std. */
3355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3356
3357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3358 inside strings and character constants. */
3359 #define FOO(x) 'x'
3360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3361
3362 int test (int i, double x);
3363 struct s1 {int (*f) (int a);};
3364 struct s2 {int (*f) (double a);};
3365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3366 int argc;
3367 char **argv;
3368 int
3369 main ()
3370 {
3371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3378 do
3379 CC="$ac_save_CC $ac_arg"
3380 rm -f conftest.$ac_objext
3381 if { (ac_try="$ac_compile"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
3388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } && {
3394 test -z "$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 } && test -s conftest.$ac_objext; then
3397 ac_cv_prog_cc_c89=$ac_arg
3398 else
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402
3403 fi
3404
3405 rm -f core conftest.err conftest.$ac_objext
3406 test "x$ac_cv_prog_cc_c89" != "xno" && break
3407 done
3408 rm -f conftest.$ac_ext
3409 CC=$ac_save_CC
3410
3411 fi
3412 # AC_CACHE_VAL
3413 case "x$ac_cv_prog_cc_c89" in
3414 x)
3415 { echo "$as_me:$LINENO: result: none needed" >&5
3416 echo "${ECHO_T}none needed" >&6; } ;;
3417 xno)
3418 { echo "$as_me:$LINENO: result: unsupported" >&5
3419 echo "${ECHO_T}unsupported" >&6; } ;;
3420 *)
3421 CC="$CC $ac_cv_prog_cc_c89"
3422 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3423 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3424 esac
3425
3426
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
3433 depcc="$CC" am_compiler_list=
3434
3435 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3436 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3437 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3441 # We make a subdir and do the tests there. Otherwise we can end up
3442 # making bogus files that we don't know about and never remove. For
3443 # instance it was reported that on HP-UX the gcc test will end up
3444 # making a dummy file named `D' -- because `-MD' means `put the output
3445 # in D'.
3446 mkdir conftest.dir
3447 # Copy depcomp to subdir because otherwise we won't find it if we're
3448 # using a relative directory.
3449 cp "$am_depcomp" conftest.dir
3450 cd conftest.dir
3451 # We will build objects and dependencies in a subdirectory because
3452 # it helps to detect inapplicable dependency modes. For instance
3453 # both Tru64's cc and ICC support -MD to output dependencies as a
3454 # side effect of compilation, but ICC will put the dependencies in
3455 # the current directory while Tru64 will put them in the object
3456 # directory.
3457 mkdir sub
3458
3459 am_cv_CC_dependencies_compiler_type=none
3460 if test "$am_compiler_list" = ""; then
3461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3462 fi
3463 for depmode in $am_compiler_list; do
3464 # Setup a source with many dependencies, because some compilers
3465 # like to wrap large dependency lists on column 80 (with \), and
3466 # we should not choose a depcomp mode which is confused by this.
3467 #
3468 # We need to recreate these files for each test, as the compiler may
3469 # overwrite some of them when testing with obscure command lines.
3470 # This happens at least with the AIX C compiler.
3471 : > sub/conftest.c
3472 for i in 1 2 3 4 5 6; do
3473 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3474 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3475 # Solaris 8's {/usr,}/bin/sh.
3476 touch sub/conftst$i.h
3477 done
3478 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3479
3480 case $depmode in
3481 nosideeffect)
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x$enable_dependency_tracking" = xyes; then
3485 continue
3486 else
3487 break
3488 fi
3489 ;;
3490 none) break ;;
3491 esac
3492 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3493 # mode. It turns out that the SunPro C++ compiler does not properly
3494 # handle `-M -o', and we need to detect this.
3495 if depmode=$depmode \
3496 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3497 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3498 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3499 >/dev/null 2>conftest.err &&
3500 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type=$depmode
3514 break
3515 fi
3516 fi
3517 done
3518
3519 cd ..
3520 rm -rf conftest.dir
3521 else
3522 am_cv_CC_dependencies_compiler_type=none
3523 fi
3524
3525 fi
3526 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529
3530 if
3531 test "x$enable_dependency_tracking" != xno \
3532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_TRUE=
3534 am__fastdepCC_FALSE='#'
3535 else
3536 am__fastdepCC_TRUE='#'
3537 am__fastdepCC_FALSE=
3538 fi
3539
3540
3541 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3542 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3543 if test "${ac_cv_prog_cc_c99+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 ac_cv_prog_cc_c99=no
3547 ac_save_CC=$CC
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <stdarg.h>
3555 #include <stdbool.h>
3556 #include <stdlib.h>
3557 #include <wchar.h>
3558 #include <stdio.h>
3559
3560 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3561 #define debug(...) fprintf (stderr, __VA_ARGS__)
3562 #define showlist(...) puts (#__VA_ARGS__)
3563 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3564 static void
3565 test_varargs_macros (void)
3566 {
3567 int x = 1234;
3568 int y = 5678;
3569 debug ("Flag");
3570 debug ("X = %d\n", x);
3571 showlist (The first, second, and third items.);
3572 report (x>y, "x is %d but y is %d", x, y);
3573 }
3574
3575 // Check long long types.
3576 #define BIG64 18446744073709551615ull
3577 #define BIG32 4294967295ul
3578 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3579 #if !BIG_OK
3580 your preprocessor is broken;
3581 #endif
3582 #if BIG_OK
3583 #else
3584 your preprocessor is broken;
3585 #endif
3586 static long long int bignum = -9223372036854775807LL;
3587 static unsigned long long int ubignum = BIG64;
3588
3589 struct incomplete_array
3590 {
3591 int datasize;
3592 double data[];
3593 };
3594
3595 struct named_init {
3596 int number;
3597 const wchar_t *name;
3598 double average;
3599 };
3600
3601 typedef const char *ccp;
3602
3603 static inline int
3604 test_restrict (ccp restrict text)
3605 {
3606 // See if C++-style comments work.
3607 // Iterate through items via the restricted pointer.
3608 // Also check for declarations in for loops.
3609 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3610 continue;
3611 return 0;
3612 }
3613
3614 // Check varargs and va_copy.
3615 static void
3616 test_varargs (const char *format, ...)
3617 {
3618 va_list args;
3619 va_start (args, format);
3620 va_list args_copy;
3621 va_copy (args_copy, args);
3622
3623 const char *str;
3624 int number;
3625 float fnumber;
3626
3627 while (*format)
3628 {
3629 switch (*format++)
3630 {
3631 case 's': // string
3632 str = va_arg (args_copy, const char *);
3633 break;
3634 case 'd': // int
3635 number = va_arg (args_copy, int);
3636 break;
3637 case 'f': // float
3638 fnumber = va_arg (args_copy, double);
3639 break;
3640 default:
3641 break;
3642 }
3643 }
3644 va_end (args_copy);
3645 va_end (args);
3646 }
3647
3648 int
3649 main ()
3650 {
3651
3652 // Check bool.
3653 _Bool success = false;
3654
3655 // Check restrict.
3656 if (test_restrict ("String literal") == 0)
3657 success = true;
3658 char *restrict newvar = "Another string";
3659
3660 // Check varargs.
3661 test_varargs ("s, d' f .", "string", 65, 34.234);
3662 test_varargs_macros ();
3663
3664 // Check flexible array members.
3665 struct incomplete_array *ia =
3666 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3667 ia->datasize = 10;
3668 for (int i = 0; i < ia->datasize; ++i)
3669 ia->data[i] = i * 1.234;
3670
3671 // Check named initializers.
3672 struct named_init ni = {
3673 .number = 34,
3674 .name = L"Test wide string",
3675 .average = 543.34343,
3676 };
3677
3678 ni.number = 58;
3679
3680 int dynamic_array[ni.number];
3681 dynamic_array[ni.number - 1] = 543;
3682
3683 // work around unused variable warnings
3684 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3685 || dynamic_array[ni.number - 1] != 543);
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3692 do
3693 CC="$ac_save_CC $ac_arg"
3694 rm -f conftest.$ac_objext
3695 if { (ac_try="$ac_compile"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3711 ac_cv_prog_cc_c99=$ac_arg
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716
3717 fi
3718
3719 rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c99" != "xno" && break
3721 done
3722 rm -f conftest.$ac_ext
3723 CC=$ac_save_CC
3724
3725 fi
3726 # AC_CACHE_VAL
3727 case "x$ac_cv_prog_cc_c99" in
3728 x)
3729 { echo "$as_me:$LINENO: result: none needed" >&5
3730 echo "${ECHO_T}none needed" >&6; } ;;
3731 xno)
3732 { echo "$as_me:$LINENO: result: unsupported" >&5
3733 echo "${ECHO_T}unsupported" >&6; } ;;
3734 *)
3735 CC="$CC $ac_cv_prog_cc_c99"
3736 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3737 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3738 esac
3739
3740
3741
3742
3743 if test x"$ac_cv_prog_cc_c99" = "xno"; then
3744 { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
3745 echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
3746 { (exit 1); exit 1; }; }
3747 fi
3748
3749
3750 # Find a good install program. We prefer a C program (faster),
3751 # so one script is as good as another. But avoid the broken or
3752 # incompatible versions:
3753 # SysV /etc/install, /usr/sbin/install
3754 # SunOS /usr/etc/install
3755 # IRIX /sbin/install
3756 # AIX /bin/install
3757 # AmigaOS /C/install, which installs bootblocks on floppy discs
3758 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3761 # OS/2's system install, which has a completely different semantic
3762 # ./install, which can be erroneously created by make from ./install.sh.
3763 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3764 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3765 if test -z "$INSTALL"; then
3766 if test "${ac_cv_path_install+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 # Account for people who put trailing slashes in PATH elements.
3775 case $as_dir/ in
3776 ./ | .// | /cC/* | \
3777 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3778 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3779 /usr/ucb/* ) ;;
3780 *)
3781 # OSF1 and SCO ODT 3.0 have their own names for install.
3782 # Don't use installbsd from OSF since it installs stuff as root
3783 # by default.
3784 for ac_prog in ginstall scoinst install; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3787 if test $ac_prog = install &&
3788 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3789 # AIX install. It has an incompatible calling convention.
3790 :
3791 elif test $ac_prog = install &&
3792 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3793 # program-specific install script used by HP pwplus--don't use.
3794 :
3795 else
3796 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3797 break 3
3798 fi
3799 fi
3800 done
3801 done
3802 ;;
3803 esac
3804 done
3805 IFS=$as_save_IFS
3806
3807
3808 fi
3809 if test "${ac_cv_path_install+set}" = set; then
3810 INSTALL=$ac_cv_path_install
3811 else
3812 # As a last resort, use the slow shell script. Don't cache a
3813 # value for INSTALL within a source directory, because that will
3814 # break other packages using the cache if that directory is
3815 # removed, or if the value is a relative name.
3816 INSTALL=$ac_install_sh
3817 fi
3818 fi
3819 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3820 echo "${ECHO_T}$INSTALL" >&6; }
3821
3822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3823 # It thinks the first close brace ends the variable substitution.
3824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3825
3826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3827
3828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3829
3830 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3831 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3832 if test "${ac_cv_path_GREP+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 # Extract the first word of "grep ggrep" to use in msg output
3836 if test -z "$GREP"; then
3837 set dummy grep ggrep; ac_prog_name=$2
3838 if test "${ac_cv_path_GREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 ac_path_GREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in grep ggrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3851 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3852 # Check for GNU ac_path_GREP and select it if it is found.
3853 # Check for GNU $ac_path_GREP
3854 case `"$ac_path_GREP" --version 2>&1` in
3855 *GNU*)
3856 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3857 *)
3858 ac_count=0
3859 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860 while :
3861 do
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 echo 'GREP' >> "conftest.nl"
3866 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 ac_count=`expr $ac_count + 1`
3869 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_GREP="$ac_path_GREP"
3872 ac_path_GREP_max=$ac_count
3873 fi
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3879
3880
3881 $ac_path_GREP_found && break 3
3882 done
3883 done
3884
3885 done
3886 IFS=$as_save_IFS
3887
3888
3889 fi
3890
3891 GREP="$ac_cv_path_GREP"
3892 if test -z "$GREP"; then
3893 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895 { (exit 1); exit 1; }; }
3896 fi
3897
3898 else
3899 ac_cv_path_GREP=$GREP
3900 fi
3901
3902
3903 fi
3904 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3905 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3906 GREP="$ac_cv_path_GREP"
3907
3908
3909 { echo "$as_me:$LINENO: checking for egrep" >&5
3910 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3911 if test "${ac_cv_path_EGREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3915 then ac_cv_path_EGREP="$GREP -E"
3916 else
3917 # Extract the first word of "egrep" to use in msg output
3918 if test -z "$EGREP"; then
3919 set dummy egrep; ac_prog_name=$2
3920 if test "${ac_cv_path_EGREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 ac_path_EGREP_found=false
3924 # Loop through the user's path and test for each of PROGNAME-LIST
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_prog in egrep; do
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3933 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3934 # Check for GNU ac_path_EGREP and select it if it is found.
3935 # Check for GNU $ac_path_EGREP
3936 case `"$ac_path_EGREP" --version 2>&1` in
3937 *GNU*)
3938 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3939 *)
3940 ac_count=0
3941 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3942 while :
3943 do
3944 cat "conftest.in" "conftest.in" >"conftest.tmp"
3945 mv "conftest.tmp" "conftest.in"
3946 cp "conftest.in" "conftest.nl"
3947 echo 'EGREP' >> "conftest.nl"
3948 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3950 ac_count=`expr $ac_count + 1`
3951 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3952 # Best one so far, save it but keep looking for a better one
3953 ac_cv_path_EGREP="$ac_path_EGREP"
3954 ac_path_EGREP_max=$ac_count
3955 fi
3956 # 10*(2^10) chars as input seems more than enough
3957 test $ac_count -gt 10 && break
3958 done
3959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960 esac
3961
3962
3963 $ac_path_EGREP_found && break 3
3964 done
3965 done
3966
3967 done
3968 IFS=$as_save_IFS
3969
3970
3971 fi
3972
3973 EGREP="$ac_cv_path_EGREP"
3974 if test -z "$EGREP"; then
3975 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3976 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3977 { (exit 1); exit 1; }; }
3978 fi
3979
3980 else
3981 ac_cv_path_EGREP=$EGREP
3982 fi
3983
3984
3985 fi
3986 fi
3987 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3988 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3989 EGREP="$ac_cv_path_EGREP"
3990
3991
3992 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3993 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3994 if test "${ac_cv_path_SED+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3998 for ac_i in 1 2 3 4 5 6 7; do
3999 ac_script="$ac_script$as_nl$ac_script"
4000 done
4001 echo "$ac_script" | sed 99q >conftest.sed
4002 $as_unset ac_script || ac_script=
4003 # Extract the first word of "sed gsed" to use in msg output
4004 if test -z "$SED"; then
4005 set dummy sed gsed; ac_prog_name=$2
4006 if test "${ac_cv_path_SED+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 ac_path_SED_found=false
4010 # Loop through the user's path and test for each of PROGNAME-LIST
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
4016 for ac_prog in sed gsed; do
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4019 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4020 # Check for GNU ac_path_SED and select it if it is found.
4021 # Check for GNU $ac_path_SED
4022 case `"$ac_path_SED" --version 2>&1` in
4023 *GNU*)
4024 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4025 *)
4026 ac_count=0
4027 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4028 while :
4029 do
4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
4031 mv "conftest.tmp" "conftest.in"
4032 cp "conftest.in" "conftest.nl"
4033 echo '' >> "conftest.nl"
4034 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036 ac_count=`expr $ac_count + 1`
4037 if test $ac_count -gt ${ac_path_SED_max-0}; then
4038 # Best one so far, save it but keep looking for a better one
4039 ac_cv_path_SED="$ac_path_SED"
4040 ac_path_SED_max=$ac_count
4041 fi
4042 # 10*(2^10) chars as input seems more than enough
4043 test $ac_count -gt 10 && break
4044 done
4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046 esac
4047
4048
4049 $ac_path_SED_found && break 3
4050 done
4051 done
4052
4053 done
4054 IFS=$as_save_IFS
4055
4056
4057 fi
4058
4059 SED="$ac_cv_path_SED"
4060 if test -z "$SED"; then
4061 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4062 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4063 { (exit 1); exit 1; }; }
4064 fi
4065
4066 else
4067 ac_cv_path_SED=$SED
4068 fi
4069
4070 fi
4071 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4072 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4073 SED="$ac_cv_path_SED"
4074 rm -f conftest.sed
4075
4076
4077 F77=no
4078 CXX=no
4079 GCJ=no
4080
4081 # Check whether --enable-static was given.
4082 if test "${enable_static+set}" = set; then
4083 enableval=$enable_static; p=${PACKAGE-default}
4084 case $enableval in
4085 yes) enable_static=yes ;;
4086 no) enable_static=no ;;
4087 *)
4088 enable_static=no
4089 # Look at the argument we got. We use all the common list separators.
4090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4091 for pkg in $enableval; do
4092 IFS="$lt_save_ifs"
4093 if test "X$pkg" = "X$p"; then
4094 enable_static=yes
4095 fi
4096 done
4097 IFS="$lt_save_ifs"
4098 ;;
4099 esac
4100 else
4101 enable_static=no
4102 fi
4103
4104
4105
4106 # Check whether --enable-shared was given.
4107 if test "${enable_shared+set}" = set; then
4108 enableval=$enable_shared; p=${PACKAGE-default}
4109 case $enableval in
4110 yes) enable_shared=yes ;;
4111 no) enable_shared=no ;;
4112 *)
4113 enable_shared=no
4114 # Look at the argument we got. We use all the common list separators.
4115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4116 for pkg in $enableval; do
4117 IFS="$lt_save_ifs"
4118 if test "X$pkg" = "X$p"; then
4119 enable_shared=yes
4120 fi
4121 done
4122 IFS="$lt_save_ifs"
4123 ;;
4124 esac
4125 else
4126 enable_shared=yes
4127 fi
4128
4129
4130 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4131 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4132 # Check whether --enable-maintainer-mode was given.
4133 if test "${enable_maintainer_mode+set}" = set; then
4134 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4135 else
4136 USE_MAINTAINER_MODE=no
4137 fi
4138
4139 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4140 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4141 if test $USE_MAINTAINER_MODE = yes; then
4142 MAINTAINER_MODE_TRUE=
4143 MAINTAINER_MODE_FALSE='#'
4144 else
4145 MAINTAINER_MODE_TRUE='#'
4146 MAINTAINER_MODE_FALSE=
4147 fi
4148
4149 MAINT=$MAINTAINER_MODE_TRUE
4150
4151
4152
4153
4154 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4155 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4156 if test "${ac_cv_search_strerror+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 ac_func_search_save_LIBS=$LIBS
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h. */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166
4167 /* Override any GCC internal prototype to avoid an error.
4168 Use char because int might match the return type of a GCC
4169 builtin and then its argument prototype would still apply. */
4170 #ifdef __cplusplus
4171 extern "C"
4172 #endif
4173 char strerror ();
4174 int
4175 main ()
4176 {
4177 return strerror ();
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 for ac_lib in '' cposix; do
4183 if test -z "$ac_lib"; then
4184 ac_res="none required"
4185 else
4186 ac_res=-l$ac_lib
4187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4188 fi
4189 rm -f conftest.$ac_objext conftest$ac_exeext
4190 if { (ac_try="$ac_link"
4191 case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_link") 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && {
4203 test -z "$ac_c_werror_flag" ||
4204 test ! -s conftest.err
4205 } && test -s conftest$ac_exeext &&
4206 $as_test_x conftest$ac_exeext; then
4207 ac_cv_search_strerror=$ac_res
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212
4213 fi
4214
4215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4216 conftest$ac_exeext
4217 if test "${ac_cv_search_strerror+set}" = set; then
4218 break
4219 fi
4220 done
4221 if test "${ac_cv_search_strerror+set}" = set; then
4222 :
4223 else
4224 ac_cv_search_strerror=no
4225 fi
4226 rm conftest.$ac_ext
4227 LIBS=$ac_func_search_save_LIBS
4228 fi
4229 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4230 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4231 ac_res=$ac_cv_search_strerror
4232 if test "$ac_res" != no; then
4233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4234
4235 fi
4236
4237 { echo "$as_me:$LINENO: checking for inline" >&5
4238 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4239 if test "${ac_cv_c_inline+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 ac_cv_c_inline=no
4243 for ac_kw in inline __inline__ __inline; do
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #ifndef __cplusplus
4251 typedef int foo_t;
4252 static $ac_kw foo_t static_foo () {return 0; }
4253 $ac_kw foo_t foo () {return 0; }
4254 #endif
4255
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4274 ac_cv_c_inline=$ac_kw
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279
4280 fi
4281
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 test "$ac_cv_c_inline" != no && break
4284 done
4285
4286 fi
4287 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4288 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4289
4290
4291 case $ac_cv_c_inline in
4292 inline | yes) ;;
4293 *)
4294 case $ac_cv_c_inline in
4295 no) ac_val=;;
4296 *) ac_val=$ac_cv_c_inline;;
4297 esac
4298 cat >>confdefs.h <<_ACEOF
4299 #ifndef __cplusplus
4300 #define inline $ac_val
4301 #endif
4302 _ACEOF
4303 ;;
4304 esac
4305
4306 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4307 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4308 if test "${ac_cv_c_const+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317
4318 int
4319 main ()
4320 {
4321 /* FIXME: Include the comments suggested by Paul. */
4322 #ifndef __cplusplus
4323 /* Ultrix mips cc rejects this. */
4324 typedef int charset[2];
4325 const charset cs;
4326 /* SunOS 4.1.1 cc rejects this. */
4327 char const *const *pcpcc;
4328 char **ppc;
4329 /* NEC SVR4.0.2 mips cc rejects this. */
4330 struct point {int x, y;};
4331 static struct point const zero = {0,0};
4332 /* AIX XL C 1.02.0.0 rejects this.
4333 It does not let you subtract one const X* pointer from another in
4334 an arm of an if-expression whose if-part is not a constant
4335 expression */
4336 const char *g = "string";
4337 pcpcc = &g + (g ? g-g : 0);
4338 /* HPUX 7.0 cc rejects these. */
4339 ++pcpcc;
4340 ppc = (char**) pcpcc;
4341 pcpcc = (char const *const *) ppc;
4342 { /* SCO 3.2v4 cc rejects this. */
4343 char *t;
4344 char const *s = 0 ? (char *) 0 : (char const *) 0;
4345
4346 *t++ = 0;
4347 if (s) return 0;
4348 }
4349 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4350 int x[] = {25, 17};
4351 const int *foo = &x[0];
4352 ++foo;
4353 }
4354 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4355 typedef const int *iptr;
4356 iptr p = 0;
4357 ++p;
4358 }
4359 { /* AIX XL C 1.02.0.0 rejects this saying
4360 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4361 struct s { int j; const int *ap[3]; };
4362 struct s *b; b->j = 5;
4363 }
4364 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4365 const int foo = 10;
4366 if (!foo) return 0;
4367 }
4368 return !cs[0] && !zero.x;
4369 #endif
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } && {
4389 test -z "$ac_c_werror_flag" ||
4390 test ! -s conftest.err
4391 } && test -s conftest.$ac_objext; then
4392 ac_cv_c_const=yes
4393 else
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397 ac_cv_c_const=no
4398 fi
4399
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 fi
4402 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4403 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4404 if test $ac_cv_c_const = no; then
4405
4406 cat >>confdefs.h <<\_ACEOF
4407 #define const
4408 _ACEOF
4409
4410 fi
4411
4412 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4413 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4414 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4415 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 cat >conftest.make <<\_ACEOF
4419 SHELL = /bin/sh
4420 all:
4421 @echo '@@@%%%=$(MAKE)=@@@%%%'
4422 _ACEOF
4423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4424 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4425 *@@@%%%=?*=@@@%%%*)
4426 eval ac_cv_prog_make_${ac_make}_set=yes;;
4427 *)
4428 eval ac_cv_prog_make_${ac_make}_set=no;;
4429 esac
4430 rm -f conftest.make
4431 fi
4432 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4433 { echo "$as_me:$LINENO: result: yes" >&5
4434 echo "${ECHO_T}yes" >&6; }
4435 SET_MAKE=
4436 else
4437 { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4439 SET_MAKE="MAKE=${MAKE-make}"
4440 fi
4441
4442 # Find a good install program. We prefer a C program (faster),
4443 # so one script is as good as another. But avoid the broken or
4444 # incompatible versions:
4445 # SysV /etc/install, /usr/sbin/install
4446 # SunOS /usr/etc/install
4447 # IRIX /sbin/install
4448 # AIX /bin/install
4449 # AmigaOS /C/install, which installs bootblocks on floppy discs
4450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4453 # OS/2's system install, which has a completely different semantic
4454 # ./install, which can be erroneously created by make from ./install.sh.
4455 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4456 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4457 if test -z "$INSTALL"; then
4458 if test "${ac_cv_path_install+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 # Account for people who put trailing slashes in PATH elements.
4467 case $as_dir/ in
4468 ./ | .// | /cC/* | \
4469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4470 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4471 /usr/ucb/* ) ;;
4472 *)
4473 # OSF1 and SCO ODT 3.0 have their own names for install.
4474 # Don't use installbsd from OSF since it installs stuff as root
4475 # by default.
4476 for ac_prog in ginstall scoinst install; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4479 if test $ac_prog = install &&
4480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4481 # AIX install. It has an incompatible calling convention.
4482 :
4483 elif test $ac_prog = install &&
4484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4485 # program-specific install script used by HP pwplus--don't use.
4486 :
4487 else
4488 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4489 break 3
4490 fi
4491 fi
4492 done
4493 done
4494 ;;
4495 esac
4496 done
4497 IFS=$as_save_IFS
4498
4499
4500 fi
4501 if test "${ac_cv_path_install+set}" = set; then
4502 INSTALL=$ac_cv_path_install
4503 else
4504 # As a last resort, use the slow shell script. Don't cache a
4505 # value for INSTALL within a source directory, because that will
4506 # break other packages using the cache if that directory is
4507 # removed, or if the value is a relative name.
4508 INSTALL=$ac_install_sh
4509 fi
4510 fi
4511 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4512 echo "${ECHO_T}$INSTALL" >&6; }
4513
4514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4515 # It thinks the first close brace ends the variable substitution.
4516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4517
4518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4519
4520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4521
4522 # Extract the first word of "automake", so it can be a program name with args.
4523 set dummy automake; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_path_AUTOMAKE+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 case $AUTOMAKE in
4530 [\\/]* | ?:[\\/]*)
4531 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
4532 ;;
4533 *)
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545 done
4546 done
4547 IFS=$as_save_IFS
4548
4549 ;;
4550 esac
4551 fi
4552 AUTOMAKE=$ac_cv_path_AUTOMAKE
4553 if test -n "$AUTOMAKE"; then
4554 { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
4555 echo "${ECHO_T}$AUTOMAKE" >&6; }
4556 else
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4559 fi
4560
4561
4562 # Extract the first word of "aclocal", so it can be a program name with args.
4563 set dummy aclocal; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_path_ACLOCAL+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 case $ACLOCAL in
4570 [\\/]* | ?:[\\/]*)
4571 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
4572 ;;
4573 *)
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587 IFS=$as_save_IFS
4588
4589 ;;
4590 esac
4591 fi
4592 ACLOCAL=$ac_cv_path_ACLOCAL
4593 if test -n "$ACLOCAL"; then
4594 { echo "$as_me:$LINENO: result: $ACLOCAL" >&5
4595 echo "${ECHO_T}$ACLOCAL" >&6; }
4596 else
4597 { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4599 fi
4600
4601
4602 # Extract the first word of "autoheader", so it can be a program name with args.
4603 set dummy autoheader; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_path_AUTOHEADER+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 case $AUTOHEADER in
4610 [\\/]* | ?:[\\/]*)
4611 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
4612 ;;
4613 *)
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 ;;
4630 esac
4631 fi
4632 AUTOHEADER=$ac_cv_path_AUTOHEADER
4633 if test -n "$AUTOHEADER"; then
4634 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
4635 echo "${ECHO_T}$AUTOHEADER" >&6; }
4636 else
4637 { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4639 fi
4640
4641
4642 # Extract the first word of "as", so it can be a program name with args.
4643 set dummy as; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_path_AS+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 case $AS in
4650 [\\/]* | ?:[\\/]*)
4651 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4652 ;;
4653 *)
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 ;;
4670 esac
4671 fi
4672 AS=$ac_cv_path_AS
4673 if test -n "$AS"; then
4674 { echo "$as_me:$LINENO: result: $AS" >&5
4675 echo "${ECHO_T}$AS" >&6; }
4676 else
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4679 fi
4680
4681
4682 # Extract the first word of "rm", so it can be a program name with args.
4683 set dummy rm; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_path_RM+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 case $RM in
4690 [\\/]* | ?:[\\/]*)
4691 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4692 ;;
4693 *)
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 ;;
4710 esac
4711 fi
4712 RM=$ac_cv_path_RM
4713 if test -n "$RM"; then
4714 { echo "$as_me:$LINENO: result: $RM" >&5
4715 echo "${ECHO_T}$RM" >&6; }
4716 else
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722 # Extract the first word of "cp", so it can be a program name with args.
4723 set dummy cp; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_path_CP+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729 case $CP in
4730 [\\/]* | ?:[\\/]*)
4731 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4732 ;;
4733 *)
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4744 fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 ;;
4750 esac
4751 fi
4752 CP=$ac_cv_path_CP
4753 if test -n "$CP"; then
4754 { echo "$as_me:$LINENO: result: $CP" >&5
4755 echo "${ECHO_T}$CP" >&6; }
4756 else
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4759 fi
4760
4761
4762 # Extract the first word of "mv", so it can be a program name with args.
4763 set dummy mv; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_path_MV+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 case $MV in
4770 [\\/]* | ?:[\\/]*)
4771 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4772 ;;
4773 *)
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4784 fi
4785 done
4786 done
4787 IFS=$as_save_IFS
4788
4789 ;;
4790 esac
4791 fi
4792 MV=$ac_cv_path_MV
4793 if test -n "$MV"; then
4794 { echo "$as_me:$LINENO: result: $MV" >&5
4795 echo "${ECHO_T}$MV" >&6; }
4796 else
4797 { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4799 fi
4800
4801
4802 # Extract the first word of "ln", so it can be a program name with args.
4803 set dummy ln; ac_word=$2
4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4806 if test "${ac_cv_path_LN+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 case $LN in
4810 [\\/]* | ?:[\\/]*)
4811 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4812 ;;
4813 *)
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825 done
4826 done
4827 IFS=$as_save_IFS
4828
4829 ;;
4830 esac
4831 fi
4832 LN=$ac_cv_path_LN
4833 if test -n "$LN"; then
4834 { echo "$as_me:$LINENO: result: $LN" >&5
4835 echo "${ECHO_T}$LN" >&6; }
4836 else
4837 { echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6; }
4839 fi
4840
4841
4842 # Extract the first word of "ar", so it can be a program name with args.
4843 set dummy ar; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_path_AR+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849 case $AR in
4850 [\\/]* | ?:[\\/]*)
4851 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4852 ;;
4853 *)
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4864 fi
4865 done
4866 done
4867 IFS=$as_save_IFS
4868
4869 ;;
4870 esac
4871 fi
4872 AR=$ac_cv_path_AR
4873 if test -n "$AR"; then
4874 { echo "$as_me:$LINENO: result: $AR" >&5
4875 echo "${ECHO_T}$AR" >&6; }
4876 else
4877 { echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6; }
4879 fi
4880
4881
4882 # Extract the first word of "ld", so it can be a program name with args.
4883 set dummy ld; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_path_LD+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 case $LD in
4890 [\\/]* | ?:[\\/]*)
4891 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4892 ;;
4893 *)
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 ;;
4910 esac
4911 fi
4912 LD=$ac_cv_path_LD
4913 if test -n "$LD"; then
4914 { echo "$as_me:$LINENO: result: $LD" >&5
4915 echo "${ECHO_T}$LD" >&6; }
4916 else
4917 { echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6; }
4919 fi
4920
4921
4922 # Extract the first word of "ranlib", so it can be a program name with args.
4923 set dummy ranlib; ac_word=$2
4924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4926 if test "${ac_cv_path_RANLIB+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929 case $RANLIB in
4930 [\\/]* | ?:[\\/]*)
4931 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4932 ;;
4933 *)
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4947 IFS=$as_save_IFS
4948
4949 ;;
4950 esac
4951 fi
4952 RANLIB=$ac_cv_path_RANLIB
4953 if test -n "$RANLIB"; then
4954 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4955 echo "${ECHO_T}$RANLIB" >&6; }
4956 else
4957 { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4959 fi
4960
4961
4962 # Extract the first word of "touch", so it can be a program name with args.
4963 set dummy touch; ac_word=$2
4964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4966 if test "${ac_cv_path_TOUCH+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
4969 case $TOUCH in
4970 [\\/]* | ?:[\\/]*)
4971 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4972 ;;
4973 *)
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989 ;;
4990 esac
4991 fi
4992 TOUCH=$ac_cv_path_TOUCH
4993 if test -n "$TOUCH"; then
4994 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4995 echo "${ECHO_T}$TOUCH" >&6; }
4996 else
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002 ac_ext=c
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008
5009 # Check whether --enable-fast-install was given.
5010 if test "${enable_fast_install+set}" = set; then
5011 enableval=$enable_fast_install; p=${PACKAGE-default}
5012 case $enableval in
5013 yes) enable_fast_install=yes ;;
5014 no) enable_fast_install=no ;;
5015 *)
5016 enable_fast_install=no
5017 # Look at the argument we got. We use all the common list separators.
5018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5019 for pkg in $enableval; do
5020 IFS="$lt_save_ifs"
5021 if test "X$pkg" = "X$p"; then
5022 enable_fast_install=yes
5023 fi
5024 done
5025 IFS="$lt_save_ifs"
5026 ;;
5027 esac
5028 else
5029 enable_fast_install=yes
5030 fi
5031
5032
5033 # Make sure we can run config.sub.
5034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5035 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5036 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5037 { (exit 1); exit 1; }; }
5038
5039 { echo "$as_me:$LINENO: checking build system type" >&5
5040 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5041 if test "${ac_cv_build+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 ac_build_alias=$build_alias
5045 test "x$ac_build_alias" = x &&
5046 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5047 test "x$ac_build_alias" = x &&
5048 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5050 { (exit 1); exit 1; }; }
5051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5054 { (exit 1); exit 1; }; }
5055
5056 fi
5057 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5058 echo "${ECHO_T}$ac_cv_build" >&6; }
5059 case $ac_cv_build in
5060 *-*-*) ;;
5061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5062 echo "$as_me: error: invalid value of canonical build" >&2;}
5063 { (exit 1); exit 1; }; };;
5064 esac
5065 build=$ac_cv_build
5066 ac_save_IFS=$IFS; IFS='-'
5067 set x $ac_cv_build
5068 shift
5069 build_cpu=$1
5070 build_vendor=$2
5071 shift; shift
5072 # Remember, the first character of IFS is used to create $*,
5073 # except with old shells:
5074 build_os=$*
5075 IFS=$ac_save_IFS
5076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5077
5078
5079 { echo "$as_me:$LINENO: checking host system type" >&5
5080 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5081 if test "${ac_cv_host+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 if test "x$host_alias" = x; then
5085 ac_cv_host=$ac_cv_build
5086 else
5087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5088 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5090 { (exit 1); exit 1; }; }
5091 fi
5092
5093 fi
5094 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5095 echo "${ECHO_T}$ac_cv_host" >&6; }
5096 case $ac_cv_host in
5097 *-*-*) ;;
5098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5099 echo "$as_me: error: invalid value of canonical host" >&2;}
5100 { (exit 1); exit 1; }; };;
5101 esac
5102 host=$ac_cv_host
5103 ac_save_IFS=$IFS; IFS='-'
5104 set x $ac_cv_host
5105 shift
5106 host_cpu=$1
5107 host_vendor=$2
5108 shift; shift
5109 # Remember, the first character of IFS is used to create $*,
5110 # except with old shells:
5111 host_os=$*
5112 IFS=$ac_save_IFS
5113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5114
5115
5116 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5117 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5118 if test "${lt_cv_path_SED+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 # Loop through the user's path and test for sed and gsed.
5122 # Then use that list of sed's as ones to test for truncation.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for lt_ac_prog in sed gsed; do
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5131 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5132 fi
5133 done
5134 done
5135 done
5136 IFS=$as_save_IFS
5137 lt_ac_max=0
5138 lt_ac_count=0
5139 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5140 # along with /bin/sed that truncates output.
5141 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5142 test ! -f $lt_ac_sed && continue
5143 cat /dev/null > conftest.in
5144 lt_ac_count=0
5145 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5146 # Check for GNU sed and select it if it is found.
5147 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5148 lt_cv_path_SED=$lt_ac_sed
5149 break
5150 fi
5151 while true; do
5152 cat conftest.in conftest.in >conftest.tmp
5153 mv conftest.tmp conftest.in
5154 cp conftest.in conftest.nl
5155 echo >>conftest.nl
5156 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5157 cmp -s conftest.out conftest.nl || break
5158 # 10000 chars as input seems more than enough
5159 test $lt_ac_count -gt 10 && break
5160 lt_ac_count=`expr $lt_ac_count + 1`
5161 if test $lt_ac_count -gt $lt_ac_max; then
5162 lt_ac_max=$lt_ac_count
5163 lt_cv_path_SED=$lt_ac_sed
5164 fi
5165 done
5166 done
5167
5168 fi
5169
5170 SED=$lt_cv_path_SED
5171
5172 { echo "$as_me:$LINENO: result: $SED" >&5
5173 echo "${ECHO_T}$SED" >&6; }
5174
5175
5176 # Check whether --with-gnu-ld was given.
5177 if test "${with_gnu_ld+set}" = set; then
5178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5179 else
5180 with_gnu_ld=no
5181 fi
5182
5183 ac_prog=ld
5184 if test "$GCC" = yes; then
5185 # Check if gcc -print-prog-name=ld gives a path.
5186 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5187 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5188 case $host in
5189 *-*-mingw*)
5190 # gcc leaves a trailing carriage return which upsets mingw
5191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5192 *)
5193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5194 esac
5195 case $ac_prog in
5196 # Accept absolute paths.
5197 [\\/]* | ?:[\\/]*)
5198 re_direlt='/[^/][^/]*/\.\./'
5199 # Canonicalize the pathname of ld
5200 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5201 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5202 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5203 done
5204 test -z "$LD" && LD="$ac_prog"
5205 ;;
5206 "")
5207 # If it fails, then pretend we aren't using GCC.
5208 ac_prog=ld
5209 ;;
5210 *)
5211 # If it is relative, then search for the first ld in PATH.
5212 with_gnu_ld=unknown
5213 ;;
5214 esac
5215 elif test "$with_gnu_ld" = yes; then
5216 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5217 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5218 else
5219 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5220 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5221 fi
5222 if test "${lt_cv_path_LD+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 if test -z "$LD"; then
5226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5227 for ac_dir in $PATH; do
5228 IFS="$lt_save_ifs"
5229 test -z "$ac_dir" && ac_dir=.
5230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5231 lt_cv_path_LD="$ac_dir/$ac_prog"
5232 # Check to see if the program is GNU ld. I'd rather use --version,
5233 # but apparently some variants of GNU ld only accept -v.
5234 # Break only if it was the GNU/non-GNU ld that we prefer.
5235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5236 *GNU* | *'with BFD'*)
5237 test "$with_gnu_ld" != no && break
5238 ;;
5239 *)
5240 test "$with_gnu_ld" != yes && break
5241 ;;
5242 esac
5243 fi
5244 done
5245 IFS="$lt_save_ifs"
5246 else
5247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5248 fi
5249 fi
5250
5251 LD="$lt_cv_path_LD"
5252 if test -n "$LD"; then
5253 { echo "$as_me:$LINENO: result: $LD" >&5
5254 echo "${ECHO_T}$LD" >&6; }
5255 else
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5258 fi
5259 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5260 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5261 { (exit 1); exit 1; }; }
5262 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5263 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5264 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5268 case `$LD -v 2>&1 </dev/null` in
5269 *GNU* | *'with BFD'*)
5270 lt_cv_prog_gnu_ld=yes
5271 ;;
5272 *)
5273 lt_cv_prog_gnu_ld=no
5274 ;;
5275 esac
5276 fi
5277 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5278 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5279 with_gnu_ld=$lt_cv_prog_gnu_ld
5280
5281
5282 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5283 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5284 if test "${lt_cv_ld_reload_flag+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 lt_cv_ld_reload_flag='-r'
5288 fi
5289 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5290 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5291 reload_flag=$lt_cv_ld_reload_flag
5292 case $reload_flag in
5293 "" | " "*) ;;
5294 *) reload_flag=" $reload_flag" ;;
5295 esac
5296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5297 case $host_os in
5298 darwin*)
5299 if test "$GCC" = yes; then
5300 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5301 else
5302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5303 fi
5304 ;;
5305 esac
5306
5307 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5308 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5309 if test "${lt_cv_path_NM+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 if test -n "$NM"; then
5313 # Let the user override the test.
5314 lt_cv_path_NM="$NM"
5315 else
5316 lt_nm_to_check="${ac_tool_prefix}nm"
5317 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5318 lt_nm_to_check="$lt_nm_to_check nm"
5319 fi
5320 for lt_tmp_nm in $lt_nm_to_check; do
5321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5322 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5323 IFS="$lt_save_ifs"
5324 test -z "$ac_dir" && ac_dir=.
5325 tmp_nm="$ac_dir/$lt_tmp_nm"
5326 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5327 # Check to see if the nm accepts a BSD-compat flag.
5328 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5329 # nm: unknown option "B" ignored
5330 # Tru64's nm complains that /dev/null is an invalid object file
5331 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5332 */dev/null* | *'Invalid file or object type'*)
5333 lt_cv_path_NM="$tmp_nm -B"
5334 break
5335 ;;
5336 *)
5337 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5338 */dev/null*)
5339 lt_cv_path_NM="$tmp_nm -p"
5340 break
5341 ;;
5342 *)
5343 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5344 continue # so that we can try to find one that supports BSD flags
5345 ;;
5346 esac
5347 ;;
5348 esac
5349 fi
5350 done
5351 IFS="$lt_save_ifs"
5352 done
5353 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5354 fi
5355 fi
5356 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5357 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5358 NM="$lt_cv_path_NM"
5359
5360 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5362 LN_S=$as_ln_s
5363 if test "$LN_S" = "ln -s"; then
5364 { echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6; }
5366 else
5367 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5368 echo "${ECHO_T}no, using $LN_S" >&6; }
5369 fi
5370
5371 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5372 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5373 if test "${lt_cv_deplibs_check_method+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 lt_cv_file_magic_cmd='$MAGIC_CMD'
5377 lt_cv_file_magic_test_file=
5378 lt_cv_deplibs_check_method='unknown'
5379 # Need to set the preceding variable on all platforms that support
5380 # interlibrary dependencies.
5381 # 'none' -- dependencies not supported.
5382 # `unknown' -- same as none, but documents that we really don't know.
5383 # 'pass_all' -- all dependencies passed with no checks.
5384 # 'test_compile' -- check by making test program.
5385 # 'file_magic [[regex]]' -- check by looking for files in library path
5386 # which responds to the $file_magic_cmd with a given extended regex.
5387 # If you have `file' or equivalent on your system and you're not sure
5388 # whether `pass_all' will *always* work, you probably want this one.
5389
5390 case $host_os in
5391 aix4* | aix5*)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394
5395 beos*)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398
5399 bsdi[45]*)
5400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5401 lt_cv_file_magic_cmd='/usr/bin/file -L'
5402 lt_cv_file_magic_test_file=/shlib/libc.so
5403 ;;
5404
5405 cygwin*)
5406 # func_win32_libid is a shell function defined in ltmain.sh
5407 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5408 lt_cv_file_magic_cmd='func_win32_libid'
5409 ;;
5410
5411 mingw* | pw32*)
5412 # Base MSYS/MinGW do not provide the 'file' command needed by
5413 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5414 # unless we find 'file', for example because we are cross-compiling.
5415 if ( file / ) >/dev/null 2>&1; then
5416 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5417 lt_cv_file_magic_cmd='func_win32_libid'
5418 else
5419 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5420 lt_cv_file_magic_cmd='$OBJDUMP -f'
5421 fi
5422 ;;
5423
5424 darwin* | rhapsody*)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427
5428 freebsd* | dragonfly*)
5429 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5430 case $host_cpu in
5431 i*86 )
5432 # Not sure whether the presence of OpenBSD here was a mistake.
5433 # Let's accept both of them until this is cleared up.
5434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5435 lt_cv_file_magic_cmd=/usr/bin/file
5436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5437 ;;
5438 esac
5439 else
5440 lt_cv_deplibs_check_method=pass_all
5441 fi
5442 ;;
5443
5444 gnu*)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447
5448 hpux10.20* | hpux11*)
5449 lt_cv_file_magic_cmd=/usr/bin/file
5450 case $host_cpu in
5451 ia64*)
5452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5454 ;;
5455 hppa*64*)
5456 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]'
5457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5458 ;;
5459 *)
5460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5462 ;;
5463 esac
5464 ;;
5465
5466 interix[3-9]*)
5467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5469 ;;
5470
5471 irix5* | irix6* | nonstopux*)
5472 case $LD in
5473 *-32|*"-32 ") libmagic=32-bit;;
5474 *-n32|*"-n32 ") libmagic=N32;;
5475 *-64|*"-64 ") libmagic=64-bit;;
5476 *) libmagic=never-match;;
5477 esac
5478 lt_cv_deplibs_check_method=pass_all
5479 ;;
5480
5481 # This must be Linux ELF.
5482 linux* | k*bsd*-gnu)
5483 lt_cv_deplibs_check_method=pass_all
5484 ;;
5485
5486 netbsd* | netbsdelf*-gnu)
5487 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5489 else
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5491 fi
5492 ;;
5493
5494 newos6*)
5495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5496 lt_cv_file_magic_cmd=/usr/bin/file
5497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5498 ;;
5499
5500 nto-qnx*)
5501 lt_cv_deplibs_check_method=unknown
5502 ;;
5503
5504 openbsd*)
5505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5507 else
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5509 fi
5510 ;;
5511
5512 osf3* | osf4* | osf5*)
5513 lt_cv_deplibs_check_method=pass_all
5514 ;;
5515
5516 rdos*)
5517 lt_cv_deplibs_check_method=pass_all
5518 ;;
5519
5520 solaris*)
5521 lt_cv_deplibs_check_method=pass_all
5522 ;;
5523
5524 sysv4 | sysv4.3*)
5525 case $host_vendor in
5526 motorola)
5527 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]'
5528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5529 ;;
5530 ncr)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533 sequent)
5534 lt_cv_file_magic_cmd='/bin/file'
5535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5536 ;;
5537 sni)
5538 lt_cv_file_magic_cmd='/bin/file'
5539 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5540 lt_cv_file_magic_test_file=/lib/libc.so
5541 ;;
5542 siemens)
5543 lt_cv_deplibs_check_method=pass_all
5544 ;;
5545 pc)
5546 lt_cv_deplibs_check_method=pass_all
5547 ;;
5548 esac
5549 ;;
5550
5551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5552 lt_cv_deplibs_check_method=pass_all
5553 ;;
5554 esac
5555
5556 fi
5557 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5558 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5559 file_magic_cmd=$lt_cv_file_magic_cmd
5560 deplibs_check_method=$lt_cv_deplibs_check_method
5561 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5562
5563
5564
5565
5566 # If no C compiler was specified, use CC.
5567 LTCC=${LTCC-"$CC"}
5568
5569 # If no C compiler flags were specified, use CFLAGS.
5570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5571
5572 # Allow CC to be a program name with arguments.
5573 compiler=$CC
5574
5575 # Check whether --enable-libtool-lock was given.
5576 if test "${enable_libtool_lock+set}" = set; then
5577 enableval=$enable_libtool_lock;
5578 fi
5579
5580 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5581
5582 # Some flags need to be propagated to the compiler or linker for good
5583 # libtool support.
5584 case $host in
5585 ia64-*-hpux*)
5586 # Find out which ABI we are using.
5587 echo 'int i;' > conftest.$ac_ext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; then
5593 case `/usr/bin/file conftest.$ac_objext` in
5594 *ELF-32*)
5595 HPUX_IA64_MODE="32"
5596 ;;
5597 *ELF-64*)
5598 HPUX_IA64_MODE="64"
5599 ;;
5600 esac
5601 fi
5602 rm -rf conftest*
5603 ;;
5604 *-*-irix6*)
5605 # Find out which ABI we are using.
5606 echo '#line 5606 "configure"' > conftest.$ac_ext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; then
5612 if test "$lt_cv_prog_gnu_ld" = yes; then
5613 case `/usr/bin/file conftest.$ac_objext` in
5614 *32-bit*)
5615 LD="${LD-ld} -melf32bsmip"
5616 ;;
5617 *N32*)
5618 LD="${LD-ld} -melf32bmipn32"
5619 ;;
5620 *64-bit*)
5621 LD="${LD-ld} -melf64bmip"
5622 ;;
5623 esac
5624 else
5625 case `/usr/bin/file conftest.$ac_objext` in
5626 *32-bit*)
5627 LD="${LD-ld} -32"
5628 ;;
5629 *N32*)
5630 LD="${LD-ld} -n32"
5631 ;;
5632 *64-bit*)
5633 LD="${LD-ld} -64"
5634 ;;
5635 esac
5636 fi
5637 fi
5638 rm -rf conftest*
5639 ;;
5640
5641 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5642 s390*-*linux*|sparc*-*linux*)
5643 # Find out which ABI we are using.
5644 echo 'int i;' > conftest.$ac_ext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; then
5650 case `/usr/bin/file conftest.o` in
5651 *32-bit*)
5652 case $host in
5653 x86_64-*kfreebsd*-gnu)
5654 LD="${LD-ld} -m elf_i386_fbsd"
5655 ;;
5656 x86_64-*linux*)
5657 LD="${LD-ld} -m elf_i386"
5658 ;;
5659 ppc64-*linux*|powerpc64-*linux*)
5660 LD="${LD-ld} -m elf32ppclinux"
5661 ;;
5662 s390x-*linux*)
5663 LD="${LD-ld} -m elf_s390"
5664 ;;
5665 sparc64-*linux*)
5666 LD="${LD-ld} -m elf32_sparc"
5667 ;;
5668 esac
5669 ;;
5670 *64-bit*)
5671 case $host in
5672 x86_64-*kfreebsd*-gnu)
5673 LD="${LD-ld} -m elf_x86_64_fbsd"
5674 ;;
5675 x86_64-*linux*)
5676 LD="${LD-ld} -m elf_x86_64"
5677 ;;
5678 ppc*-*linux*|powerpc*-*linux*)
5679 LD="${LD-ld} -m elf64ppc"
5680 ;;
5681 s390*-*linux*)
5682 LD="${LD-ld} -m elf64_s390"
5683 ;;
5684 sparc*-*linux*)
5685 LD="${LD-ld} -m elf64_sparc"
5686 ;;
5687 esac
5688 ;;
5689 esac
5690 fi
5691 rm -rf conftest*
5692 ;;
5693
5694 *-*-sco3.2v5*)
5695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5696 SAVE_CFLAGS="$CFLAGS"
5697 CFLAGS="$CFLAGS -belf"
5698 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5699 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5700 if test "${lt_cv_cc_needs_belf+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 ac_ext=c
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5708
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715
5716 int
5717 main ()
5718 {
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (ac_try="$ac_link"
5726 case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_link") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest$ac_exeext &&
5741 $as_test_x conftest$ac_exeext; then
5742 lt_cv_cc_needs_belf=yes
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 lt_cv_cc_needs_belf=no
5748 fi
5749
5750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5751 conftest$ac_exeext conftest.$ac_ext
5752 ac_ext=c
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5757
5758 fi
5759 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5760 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5763 CFLAGS="$SAVE_CFLAGS"
5764 fi
5765 ;;
5766 sparc*-*solaris*)
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; then
5774 case `/usr/bin/file conftest.o` in
5775 *64-bit*)
5776 case $lt_cv_prog_gnu_ld in
5777 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5778 *) LD="${LD-ld} -64" ;;
5779 esac
5780 ;;
5781 esac
5782 fi
5783 rm -rf conftest*
5784 ;;
5785
5786
5787 esac
5788
5789 need_locks="$enable_libtool_lock"
5790
5791
5792 ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5799 # On Suns, sometimes $CPP names a directory.
5800 if test -n "$CPP" && test -d "$CPP"; then
5801 CPP=
5802 fi
5803 if test -z "$CPP"; then
5804 if test "${ac_cv_prog_CPP+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 # Double quotes because CPP needs to be expanded
5808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5809 do
5810 ac_preproc_ok=false
5811 for ac_c_preproc_warn_flag in '' yes
5812 do
5813 # Use a header file that comes with gcc, so configuring glibc
5814 # with a fresh cross-compiler works.
5815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816 # <limits.h> exists even on freestanding compilers.
5817 # On the NeXT, cc -E runs the code through the compiler's parser,
5818 # not just through cpp. "Syntax error" is here to catch this case.
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #ifdef __STDC__
5826 # include <limits.h>
5827 #else
5828 # include <assert.h>
5829 #endif
5830 Syntax error
5831 _ACEOF
5832 if { (ac_try="$ac_cpp conftest.$ac_ext"
5833 case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } >/dev/null && {
5845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 }; then
5848 :
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 # Broken: fails on valid input.
5854 continue
5855 fi
5856
5857 rm -f conftest.err conftest.$ac_ext
5858
5859 # OK, works on sane cases. Now check whether nonexistent headers
5860 # can be detected and how.
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #include <ac_nonexistent.h>
5868 _ACEOF
5869 if { (ac_try="$ac_cpp conftest.$ac_ext"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev/null && {
5882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 }; then
5885 # Broken: success on invalid input.
5886 continue
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 # Passes both tests.
5892 ac_preproc_ok=:
5893 break
5894 fi
5895
5896 rm -f conftest.err conftest.$ac_ext
5897
5898 done
5899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900 rm -f conftest.err conftest.$ac_ext
5901 if $ac_preproc_ok; then
5902 break
5903 fi
5904
5905 done
5906 ac_cv_prog_CPP=$CPP
5907
5908 fi
5909 CPP=$ac_cv_prog_CPP
5910 else
5911 ac_cv_prog_CPP=$CPP
5912 fi
5913 { echo "$as_me:$LINENO: result: $CPP" >&5
5914 echo "${ECHO_T}$CPP" >&6; }
5915 ac_preproc_ok=false
5916 for ac_c_preproc_warn_flag in '' yes
5917 do
5918 # Use a header file that comes with gcc, so configuring glibc
5919 # with a fresh cross-compiler works.
5920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921 # <limits.h> exists even on freestanding compilers.
5922 # On the NeXT, cc -E runs the code through the compiler's parser,
5923 # not just through cpp. "Syntax error" is here to catch this case.
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #ifdef __STDC__
5931 # include <limits.h>
5932 #else
5933 # include <assert.h>
5934 #endif
5935 Syntax error
5936 _ACEOF
5937 if { (ac_try="$ac_cpp conftest.$ac_ext"
5938 case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null && {
5950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 }; then
5953 :
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 # Broken: fails on valid input.
5959 continue
5960 fi
5961
5962 rm -f conftest.err conftest.$ac_ext
5963
5964 # OK, works on sane cases. Now check whether nonexistent headers
5965 # can be detected and how.
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <ac_nonexistent.h>
5973 _ACEOF
5974 if { (ac_try="$ac_cpp conftest.$ac_ext"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev/null && {
5987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 }; then
5990 # Broken: success on invalid input.
5991 continue
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 # Passes both tests.
5997 ac_preproc_ok=:
5998 break
5999 fi
6000
6001 rm -f conftest.err conftest.$ac_ext
6002
6003 done
6004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6005 rm -f conftest.err conftest.$ac_ext
6006 if $ac_preproc_ok; then
6007 :
6008 else
6009 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6010 See \`config.log' for more details." >&5
6011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6012 See \`config.log' for more details." >&2;}
6013 { (exit 1); exit 1; }; }
6014 fi
6015
6016 ac_ext=c
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022
6023 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6024 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6025 if test "${ac_cv_header_stdc+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #include <stdlib.h>
6035 #include <stdarg.h>
6036 #include <string.h>
6037 #include <float.h>
6038
6039 int
6040 main ()
6041 {
6042
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6049 case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compile") 2>conftest.er1
6055 ac_status=$?
6056 grep -v '^ *+' conftest.er1 >conftest.err
6057 rm -f conftest.er1
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_c_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest.$ac_objext; then
6064 ac_cv_header_stdc=yes
6065 else
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 ac_cv_header_stdc=no
6070 fi
6071
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073
6074 if test $ac_cv_header_stdc = yes; then
6075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <string.h>
6083
6084 _ACEOF
6085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6086 $EGREP "memchr" >/dev/null 2>&1; then
6087 :
6088 else
6089 ac_cv_header_stdc=no
6090 fi
6091 rm -f conftest*
6092
6093 fi
6094
6095 if test $ac_cv_header_stdc = yes; then
6096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 #include <stdlib.h>
6104
6105 _ACEOF
6106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107 $EGREP "free" >/dev/null 2>&1; then
6108 :
6109 else
6110 ac_cv_header_stdc=no
6111 fi
6112 rm -f conftest*
6113
6114 fi
6115
6116 if test $ac_cv_header_stdc = yes; then
6117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6118 if test "$cross_compiling" = yes; then
6119 :
6120 else
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 #include <ctype.h>
6128 #include <stdlib.h>
6129 #if ((' ' & 0x0FF) == 0x020)
6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6132 #else
6133 # define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6138 #endif
6139
6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6141 int
6142 main ()
6143 {
6144 int i;
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6148 return 2;
6149 return 0;
6150 }
6151 _ACEOF
6152 rm -f conftest$ac_exeext
6153 if { (ac_try="$ac_link"
6154 case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_link") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6163 { (case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_try") 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 :
6173 else
6174 echo "$as_me: program exited with status $ac_status" >&5
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 ( exit $ac_status )
6179 ac_cv_header_stdc=no
6180 fi
6181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6182 fi
6183
6184
6185 fi
6186 fi
6187 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6188 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6189 if test $ac_cv_header_stdc = yes; then
6190
6191 cat >>confdefs.h <<\_ACEOF
6192 #define STDC_HEADERS 1
6193 _ACEOF
6194
6195 fi
6196
6197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6208 inttypes.h stdint.h unistd.h
6209 do
6210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h. */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 $ac_includes_default
6223
6224 #include <$ac_header>
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (ac_try="$ac_compile"
6228 case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 eval "$as_ac_Header=yes"
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 eval "$as_ac_Header=no"
6249 fi
6250
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 fi
6253 ac_res=`eval echo '${'$as_ac_Header'}'`
6254 { echo "$as_me:$LINENO: result: $ac_res" >&5
6255 echo "${ECHO_T}$ac_res" >&6; }
6256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6257 cat >>confdefs.h <<_ACEOF
6258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6259 _ACEOF
6260
6261 fi
6262
6263 done
6264
6265
6266
6267 for ac_header in dlfcn.h
6268 do
6269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 fi
6276 ac_res=`eval echo '${'$as_ac_Header'}'`
6277 { echo "$as_me:$LINENO: result: $ac_res" >&5
6278 echo "${ECHO_T}$ac_res" >&6; }
6279 else
6280 # Is the header compilable?
6281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6290 #include <$ac_header>
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6294 case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297 esac
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compile") 2>conftest.er1
6300 ac_status=$?
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && {
6306 test -z "$ac_c_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest.$ac_objext; then
6309 ac_header_compiler=yes
6310 else
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314 ac_header_compiler=no
6315 fi
6316
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6319 echo "${ECHO_T}$ac_header_compiler" >&6; }
6320
6321 # Is the header present?
6322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 #include <$ac_header>
6331 _ACEOF
6332 if { (ac_try="$ac_cpp conftest.$ac_ext"
6333 case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } >/dev/null && {
6345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 }; then
6348 ac_header_preproc=yes
6349 else
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353 ac_header_preproc=no
6354 fi
6355
6356 rm -f conftest.err conftest.$ac_ext
6357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6358 echo "${ECHO_T}$ac_header_preproc" >&6; }
6359
6360 # So? What about this header?
6361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6362 yes:no: )
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6367 ac_header_preproc=yes
6368 ;;
6369 no:yes:* )
6370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6382
6383 ;;
6384 esac
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 eval "$as_ac_Header=\$ac_header_preproc"
6391 fi
6392 ac_res=`eval echo '${'$as_ac_Header'}'`
6393 { echo "$as_me:$LINENO: result: $ac_res" >&5
6394 echo "${ECHO_T}$ac_res" >&6; }
6395
6396 fi
6397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6398 cat >>confdefs.h <<_ACEOF
6399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6400 _ACEOF
6401
6402 fi
6403
6404 done
6405
6406 ac_ext=cpp
6407 ac_cpp='$CXXCPP $CPPFLAGS'
6408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6411 if test -z "$CXX"; then
6412 if test -n "$CCC"; then
6413 CXX=$CCC
6414 else
6415 if test -n "$ac_tool_prefix"; then
6416 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6417 do
6418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_prog_CXX+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 if test -n "$CXX"; then
6426 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439 done
6440 done
6441 IFS=$as_save_IFS
6442
6443 fi
6444 fi
6445 CXX=$ac_cv_prog_CXX
6446 if test -n "$CXX"; then
6447 { echo "$as_me:$LINENO: result: $CXX" >&5
6448 echo "${ECHO_T}$CXX" >&6; }
6449 else
6450 { echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6; }
6452 fi
6453
6454
6455 test -n "$CXX" && break
6456 done
6457 fi
6458 if test -z "$CXX"; then
6459 ac_ct_CXX=$CXX
6460 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6461 do
6462 # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy $ac_prog; ac_word=$2
6464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6466 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 if test -n "$ac_ct_CXX"; then
6470 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_ac_ct_CXX="$ac_prog"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6490 if test -n "$ac_ct_CXX"; then
6491 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6492 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6493 else
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6496 fi
6497
6498
6499 test -n "$ac_ct_CXX" && break
6500 done
6501
6502 if test "x$ac_ct_CXX" = x; then
6503 CXX="g++"
6504 else
6505 case $cross_compiling:$ac_tool_warned in
6506 yes:)
6507 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6508 whose name does not start with the host triplet. If you think this
6509 configuration is useful to you, please write to autoconf@gnu.org." >&5
6510 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6511 whose name does not start with the host triplet. If you think this
6512 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515 CXX=$ac_ct_CXX
6516 fi
6517 fi
6518
6519 fi
6520 fi
6521 # Provide some information about the compiler.
6522 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6523 ac_compiler=`set X $ac_compile; echo $2`
6524 { (ac_try="$ac_compiler --version >&5"
6525 case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528 esac
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_compiler --version >&5") 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }
6534 { (ac_try="$ac_compiler -v >&5"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compiler -v >&5") 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }
6544 { (ac_try="$ac_compiler -V >&5"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_compiler -V >&5") 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }
6554
6555 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566
6567 int
6568 main ()
6569 {
6570 #ifndef __GNUC__
6571 choke me
6572 #endif
6573
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (ac_try="$ac_compile"
6580 case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_compile") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_cxx_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest.$ac_objext; then
6595 ac_compiler_gnu=yes
6596 else
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_compiler_gnu=no
6601 fi
6602
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6605
6606 fi
6607 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6608 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6609 GXX=`test $ac_compiler_gnu = yes && echo yes`
6610 ac_test_CXXFLAGS=${CXXFLAGS+set}
6611 ac_save_CXXFLAGS=$CXXFLAGS
6612 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6613 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_cxx_g+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6618 ac_cxx_werror_flag=yes
6619 ac_cv_prog_cxx_g=no
6620 CXXFLAGS="-g"
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627
6628 int
6629 main ()
6630 {
6631
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (ac_try="$ac_compile"
6638 case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641 esac
6642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_cxx_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 ac_cv_prog_cxx_g=yes
6654 else
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 CXXFLAGS=""
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665
6666 int
6667 main ()
6668 {
6669
6670 ;
6671 return 0;
6672 }
6673 _ACEOF
6674 rm -f conftest.$ac_objext
6675 if { (ac_try="$ac_compile"
6676 case "(($ac_try" in
6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678 *) ac_try_echo=$ac_try;;
6679 esac
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681 (eval "$ac_compile") 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_cxx_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest.$ac_objext; then
6691 :
6692 else
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6697 CXXFLAGS="-g"
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704
6705 int
6706 main ()
6707 {
6708
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_cxx_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 ac_cv_prog_cxx_g=yes
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735
6736 fi
6737
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 fi
6740
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 fi
6743
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6746 fi
6747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6748 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6749 if test "$ac_test_CXXFLAGS" = set; then
6750 CXXFLAGS=$ac_save_CXXFLAGS
6751 elif test $ac_cv_prog_cxx_g = yes; then
6752 if test "$GXX" = yes; then
6753 CXXFLAGS="-g -O2"
6754 else
6755 CXXFLAGS="-g"
6756 fi
6757 else
6758 if test "$GXX" = yes; then
6759 CXXFLAGS="-O2"
6760 else
6761 CXXFLAGS=
6762 fi
6763 fi
6764 ac_ext=cpp
6765 ac_cpp='$CXXCPP $CPPFLAGS'
6766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6769
6770 depcc="$CXX" am_compiler_list=
6771
6772 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6773 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6774 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6778 # We make a subdir and do the tests there. Otherwise we can end up
6779 # making bogus files that we don't know about and never remove. For
6780 # instance it was reported that on HP-UX the gcc test will end up
6781 # making a dummy file named `D' -- because `-MD' means `put the output
6782 # in D'.
6783 mkdir conftest.dir
6784 # Copy depcomp to subdir because otherwise we won't find it if we're
6785 # using a relative directory.
6786 cp "$am_depcomp" conftest.dir
6787 cd conftest.dir
6788 # We will build objects and dependencies in a subdirectory because
6789 # it helps to detect inapplicable dependency modes. For instance
6790 # both Tru64's cc and ICC support -MD to output dependencies as a
6791 # side effect of compilation, but ICC will put the dependencies in
6792 # the current directory while Tru64 will put them in the object
6793 # directory.
6794 mkdir sub
6795
6796 am_cv_CXX_dependencies_compiler_type=none
6797 if test "$am_compiler_list" = ""; then
6798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6799 fi
6800 for depmode in $am_compiler_list; do
6801 # Setup a source with many dependencies, because some compilers
6802 # like to wrap large dependency lists on column 80 (with \), and
6803 # we should not choose a depcomp mode which is confused by this.
6804 #
6805 # We need to recreate these files for each test, as the compiler may
6806 # overwrite some of them when testing with obscure command lines.
6807 # This happens at least with the AIX C compiler.
6808 : > sub/conftest.c
6809 for i in 1 2 3 4 5 6; do
6810 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6811 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6812 # Solaris 8's {/usr,}/bin/sh.
6813 touch sub/conftst$i.h
6814 done
6815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6816
6817 case $depmode in
6818 nosideeffect)
6819 # after this tag, mechanisms are not by side-effect, so they'll
6820 # only be used when explicitly requested
6821 if test "x$enable_dependency_tracking" = xyes; then
6822 continue
6823 else
6824 break
6825 fi
6826 ;;
6827 none) break ;;
6828 esac
6829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6830 # mode. It turns out that the SunPro C++ compiler does not properly
6831 # handle `-M -o', and we need to detect this.
6832 if depmode=$depmode \
6833 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6834 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6835 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6836 >/dev/null 2>conftest.err &&
6837 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6839 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6841 # icc doesn't choke on unknown options, it will just issue warnings
6842 # or remarks (even with -Werror). So we grep stderr for any message
6843 # that says an option was ignored or not supported.
6844 # When given -MP, icc 7.0 and 7.1 complain thusly:
6845 # icc: Command line warning: ignoring option '-M'; no argument required
6846 # The diagnosis changed in icc 8.0:
6847 # icc: Command line remark: option '-MP' not supported
6848 if (grep 'ignoring option' conftest.err ||
6849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6850 am_cv_CXX_dependencies_compiler_type=$depmode
6851 break
6852 fi
6853 fi
6854 done
6855
6856 cd ..
6857 rm -rf conftest.dir
6858 else
6859 am_cv_CXX_dependencies_compiler_type=none
6860 fi
6861
6862 fi
6863 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6864 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6865 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6866
6867 if
6868 test "x$enable_dependency_tracking" != xno \
6869 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6870 am__fastdepCXX_TRUE=
6871 am__fastdepCXX_FALSE='#'
6872 else
6873 am__fastdepCXX_TRUE='#'
6874 am__fastdepCXX_FALSE=
6875 fi
6876
6877
6878
6879
6880 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6881 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6882 (test "X$CXX" != "Xg++"))) ; then
6883 ac_ext=cpp
6884 ac_cpp='$CXXCPP $CPPFLAGS'
6885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6888 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6889 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6890 if test -z "$CXXCPP"; then
6891 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894 # Double quotes because CXXCPP needs to be expanded
6895 for CXXCPP in "$CXX -E" "/lib/cpp"
6896 do
6897 ac_preproc_ok=false
6898 for ac_cxx_preproc_warn_flag in '' yes
6899 do
6900 # Use a header file that comes with gcc, so configuring glibc
6901 # with a fresh cross-compiler works.
6902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6903 # <limits.h> exists even on freestanding compilers.
6904 # On the NeXT, cc -E runs the code through the compiler's parser,
6905 # not just through cpp. "Syntax error" is here to catch this case.
6906 cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h. */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 #ifdef __STDC__
6913 # include <limits.h>
6914 #else
6915 # include <assert.h>
6916 #endif
6917 Syntax error
6918 _ACEOF
6919 if { (ac_try="$ac_cpp conftest.$ac_ext"
6920 case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6926 ac_status=$?
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } >/dev/null && {
6932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6933 test ! -s conftest.err
6934 }; then
6935 :
6936 else
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 # Broken: fails on valid input.
6941 continue
6942 fi
6943
6944 rm -f conftest.err conftest.$ac_ext
6945
6946 # OK, works on sane cases. Now check whether nonexistent headers
6947 # can be detected and how.
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h. */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 #include <ac_nonexistent.h>
6955 _ACEOF
6956 if { (ac_try="$ac_cpp conftest.$ac_ext"
6957 case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } >/dev/null && {
6969 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6970 test ! -s conftest.err
6971 }; then
6972 # Broken: success on invalid input.
6973 continue
6974 else
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6977
6978 # Passes both tests.
6979 ac_preproc_ok=:
6980 break
6981 fi
6982
6983 rm -f conftest.err conftest.$ac_ext
6984
6985 done
6986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6987 rm -f conftest.err conftest.$ac_ext
6988 if $ac_preproc_ok; then
6989 break
6990 fi
6991
6992 done
6993 ac_cv_prog_CXXCPP=$CXXCPP
6994
6995 fi
6996 CXXCPP=$ac_cv_prog_CXXCPP
6997 else
6998 ac_cv_prog_CXXCPP=$CXXCPP
6999 fi
7000 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7001 echo "${ECHO_T}$CXXCPP" >&6; }
7002 ac_preproc_ok=false
7003 for ac_cxx_preproc_warn_flag in '' yes
7004 do
7005 # Use a header file that comes with gcc, so configuring glibc
7006 # with a fresh cross-compiler works.
7007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7008 # <limits.h> exists even on freestanding compilers.
7009 # On the NeXT, cc -E runs the code through the compiler's parser,
7010 # not just through cpp. "Syntax error" is here to catch this case.
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h. */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 #ifdef __STDC__
7018 # include <limits.h>
7019 #else
7020 # include <assert.h>
7021 #endif
7022 Syntax error
7023 _ACEOF
7024 if { (ac_try="$ac_cpp conftest.$ac_ext"
7025 case "(($ac_try" in
7026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027 *) ac_try_echo=$ac_try;;
7028 esac
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7031 ac_status=$?
7032 grep -v '^ *+' conftest.er1 >conftest.err
7033 rm -f conftest.er1
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } >/dev/null && {
7037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7038 test ! -s conftest.err
7039 }; then
7040 :
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045 # Broken: fails on valid input.
7046 continue
7047 fi
7048
7049 rm -f conftest.err conftest.$ac_ext
7050
7051 # OK, works on sane cases. Now check whether nonexistent headers
7052 # can be detected and how.
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #include <ac_nonexistent.h>
7060 _ACEOF
7061 if { (ac_try="$ac_cpp conftest.$ac_ext"
7062 case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } >/dev/null && {
7074 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7075 test ! -s conftest.err
7076 }; then
7077 # Broken: success on invalid input.
7078 continue
7079 else
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 # Passes both tests.
7084 ac_preproc_ok=:
7085 break
7086 fi
7087
7088 rm -f conftest.err conftest.$ac_ext
7089
7090 done
7091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7092 rm -f conftest.err conftest.$ac_ext
7093 if $ac_preproc_ok; then
7094 :
7095 else
7096 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7097 See \`config.log' for more details." >&5
7098 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7099 See \`config.log' for more details." >&2;}
7100 { (exit 1); exit 1; }; }
7101 fi
7102
7103 ac_ext=cpp
7104 ac_cpp='$CXXCPP $CPPFLAGS'
7105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7108
7109 fi
7110
7111
7112 ac_ext=f
7113 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7114 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7116 if test -n "$ac_tool_prefix"; then
7117 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
7118 do
7119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_F77+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 if test -n "$F77"; then
7127 ac_cv_prog_F77="$F77" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 F77=$ac_cv_prog_F77
7147 if test -n "$F77"; then
7148 { echo "$as_me:$LINENO: result: $F77" >&5
7149 echo "${ECHO_T}$F77" >&6; }
7150 else
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 fi
7154
7155
7156 test -n "$F77" && break
7157 done
7158 fi
7159 if test -z "$F77"; then
7160 ac_ct_F77=$F77
7161 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
7162 do
7163 # Extract the first word of "$ac_prog", so it can be a program name with args.
7164 set dummy $ac_prog; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 if test -n "$ac_ct_F77"; then
7171 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_ac_ct_F77="$ac_prog"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7191 if test -n "$ac_ct_F77"; then
7192 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7193 echo "${ECHO_T}$ac_ct_F77" >&6; }
7194 else
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 test -n "$ac_ct_F77" && break
7201 done
7202
7203 if test "x$ac_ct_F77" = x; then
7204 F77=""
7205 else
7206 case $cross_compiling:$ac_tool_warned in
7207 yes:)
7208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet. If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&5
7211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet. If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216 F77=$ac_ct_F77
7217 fi
7218 fi
7219
7220
7221 # Provide some information about the compiler.
7222 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7223 ac_compiler=`set X $ac_compile; echo $2`
7224 { (ac_try="$ac_compiler --version >&5"
7225 case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_compiler --version >&5") 2>&5
7231 ac_status=$?
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }
7234 { (ac_try="$ac_compiler -v >&5"
7235 case "(($ac_try" in
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7238 esac
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compiler -v >&5") 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }
7244 { (ac_try="$ac_compiler -V >&5"
7245 case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compiler -V >&5") 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }
7254 rm -f a.out
7255
7256 # If we don't use `.F' as extension, the preprocessor is not run on the
7257 # input file. (Note that this only needs to work for GNU compilers.)
7258 ac_save_ext=$ac_ext
7259 ac_ext=F
7260 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7261 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7262 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 program main
7267 #ifndef __GNUC__
7268 choke me
7269 #endif
7270
7271 end
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (ac_try="$ac_compile"
7275 case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278 esac
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_f77_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7290 ac_compiler_gnu=yes
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295 ac_compiler_gnu=no
7296 fi
7297
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7300
7301 fi
7302 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7303 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7304 ac_ext=$ac_save_ext
7305 ac_test_FFLAGS=${FFLAGS+set}
7306 ac_save_FFLAGS=$FFLAGS
7307 FFLAGS=
7308 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7309 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7310 if test "${ac_cv_prog_f77_g+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 FFLAGS=-g
7314 cat >conftest.$ac_ext <<_ACEOF
7315 program main
7316
7317 end
7318 _ACEOF
7319 rm -f conftest.$ac_objext
7320 if { (ac_try="$ac_compile"
7321 case "(($ac_try" in
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7324 esac
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_f77_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.$ac_objext; then
7336 ac_cv_prog_f77_g=yes
7337 else
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7340
7341 ac_cv_prog_f77_g=no
7342 fi
7343
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345
7346 fi
7347 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7349 if test "$ac_test_FFLAGS" = set; then
7350 FFLAGS=$ac_save_FFLAGS
7351 elif test $ac_cv_prog_f77_g = yes; then
7352 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7353 FFLAGS="-g -O2"
7354 else
7355 FFLAGS="-g"
7356 fi
7357 else
7358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7359 FFLAGS="-O2"
7360 else
7361 FFLAGS=
7362 fi
7363 fi
7364
7365 G77=`test $ac_compiler_gnu = yes && echo yes`
7366 ac_ext=c
7367 ac_cpp='$CPP $CPPFLAGS'
7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7371
7372
7373
7374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7375
7376 # find the maximum length of command line arguments
7377 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 i=0
7383 teststring="ABCD"
7384
7385 case $build_os in
7386 msdosdjgpp*)
7387 # On DJGPP, this test can blow up pretty badly due to problems in libc
7388 # (any single argument exceeding 2000 bytes causes a buffer overrun
7389 # during glob expansion). Even if it were fixed, the result of this
7390 # check would be larger than it should be.
7391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7392 ;;
7393
7394 gnu*)
7395 # Under GNU Hurd, this test is not required because there is
7396 # no limit to the length of command line arguments.
7397 # Libtool will interpret -1 as no limit whatsoever
7398 lt_cv_sys_max_cmd_len=-1;
7399 ;;
7400
7401 cygwin* | mingw*)
7402 # On Win9x/ME, this test blows up -- it succeeds, but takes
7403 # about 5 minutes as the teststring grows exponentially.
7404 # Worse, since 9x/ME are not pre-emptively multitasking,
7405 # you end up with a "frozen" computer, even though with patience
7406 # the test eventually succeeds (with a max line length of 256k).
7407 # Instead, let's just punt: use the minimum linelength reported by
7408 # all of the supported platforms: 8192 (on NT/2K/XP).
7409 lt_cv_sys_max_cmd_len=8192;
7410 ;;
7411
7412 amigaos*)
7413 # On AmigaOS with pdksh, this test takes hours, literally.
7414 # So we just punt and use a minimum line length of 8192.
7415 lt_cv_sys_max_cmd_len=8192;
7416 ;;
7417
7418 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7419 # This has been around since 386BSD, at least. Likely further.
7420 if test -x /sbin/sysctl; then
7421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7422 elif test -x /usr/sbin/sysctl; then
7423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7424 else
7425 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7426 fi
7427 # And add a safety zone
7428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7430 ;;
7431
7432 interix*)
7433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7434 lt_cv_sys_max_cmd_len=196608
7435 ;;
7436
7437 osf*)
7438 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7439 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7440 # nice to cause kernel panics so lets avoid the loop below.
7441 # First set a reasonable default.
7442 lt_cv_sys_max_cmd_len=16384
7443 #
7444 if test -x /sbin/sysconfig; then
7445 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7446 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7447 esac
7448 fi
7449 ;;
7450 sco3.2v5*)
7451 lt_cv_sys_max_cmd_len=102400
7452 ;;
7453 sysv5* | sco5v6* | sysv4.2uw2*)
7454 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7455 if test -n "$kargmax"; then
7456 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7457 else
7458 lt_cv_sys_max_cmd_len=32768
7459 fi
7460 ;;
7461 *)
7462 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7463 if test -n "$lt_cv_sys_max_cmd_len"; then
7464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7466 else
7467 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7468 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7469 = "XX$teststring") >/dev/null 2>&1 &&
7470 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7471 lt_cv_sys_max_cmd_len=$new_result &&
7472 test $i != 17 # 1/2 MB should be enough
7473 do
7474 i=`expr $i + 1`
7475 teststring=$teststring$teststring
7476 done
7477 teststring=
7478 # Add a significant safety factor because C++ compilers can tack on massive
7479 # amounts of additional arguments before passing them to the linker.
7480 # It appears as though 1/2 is a usable value.
7481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7482 fi
7483 ;;
7484 esac
7485
7486 fi
7487
7488 if test -n $lt_cv_sys_max_cmd_len ; then
7489 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7490 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7491 else
7492 { echo "$as_me:$LINENO: result: none" >&5
7493 echo "${ECHO_T}none" >&6; }
7494 fi
7495
7496
7497
7498
7499
7500 # Check for command to grab the raw symbol name followed by C symbol from nm.
7501 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7502 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7503 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506
7507 # These are sane defaults that work on at least a few old systems.
7508 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7509
7510 # Character class describing NM global symbol codes.
7511 symcode='[BCDEGRST]'
7512
7513 # Regexp to match symbols that can be accessed directly from C.
7514 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7515
7516 # Transform an extracted symbol line into a proper C declaration
7517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7518
7519 # Transform an extracted symbol line into symbol name and symbol address
7520 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'"
7521
7522 # Define system-specific variables.
7523 case $host_os in
7524 aix*)
7525 symcode='[BCDT]'
7526 ;;
7527 cygwin* | mingw* | pw32*)
7528 symcode='[ABCDGISTW]'
7529 ;;
7530 hpux*) # Its linker distinguishes data from code symbols
7531 if test "$host_cpu" = ia64; then
7532 symcode='[ABCDEGRST]'
7533 fi
7534 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7535 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'"
7536 ;;
7537 linux* | k*bsd*-gnu)
7538 if test "$host_cpu" = ia64; then
7539 symcode='[ABCDGIRSTW]'
7540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7541 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'"
7542 fi
7543 ;;
7544 irix* | nonstopux*)
7545 symcode='[BCDEGRST]'
7546 ;;
7547 osf*)
7548 symcode='[BCDEGQRST]'
7549 ;;
7550 solaris*)
7551 symcode='[BDRT]'
7552 ;;
7553 sco3.2v5*)
7554 symcode='[DT]'
7555 ;;
7556 sysv4.2uw2*)
7557 symcode='[DT]'
7558 ;;
7559 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7560 symcode='[ABDT]'
7561 ;;
7562 sysv4)
7563 symcode='[DFNSTU]'
7564 ;;
7565 esac
7566
7567 # Handle CRLF in mingw tool chain
7568 opt_cr=
7569 case $build_os in
7570 mingw*)
7571 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7572 ;;
7573 esac
7574
7575 # If we're using GNU nm, then use its standard symbol codes.
7576 case `$NM -V 2>&1` in
7577 *GNU* | *'with BFD'*)
7578 symcode='[ABCDGIRSTW]' ;;
7579 esac
7580
7581 # Try without a prefix undercore, then with it.
7582 for ac_symprfx in "" "_"; do
7583
7584 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7585 symxfrm="\\1 $ac_symprfx\\2 \\2"
7586
7587 # Write the raw and C identifiers.
7588 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7589
7590 # Check to see that the pipe works correctly.
7591 pipe_works=no
7592
7593 rm -f conftest*
7594 cat > conftest.$ac_ext <<EOF
7595 #ifdef __cplusplus
7596 extern "C" {
7597 #endif
7598 char nm_test_var;
7599 void nm_test_func(){}
7600 #ifdef __cplusplus
7601 }
7602 #endif
7603 int main(){nm_test_var='a';nm_test_func();return(0);}
7604 EOF
7605
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607 (eval $ac_compile) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; then
7611 # Now try to grab the symbols.
7612 nlist=conftest.nm
7613 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7614 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && test -s "$nlist"; then
7618 # Try sorting and uniquifying the output.
7619 if sort "$nlist" | uniq > "$nlist"T; then
7620 mv -f "$nlist"T "$nlist"
7621 else
7622 rm -f "$nlist"T
7623 fi
7624
7625 # Make sure that we snagged all the symbols we need.
7626 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7627 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7628 cat <<EOF > conftest.$ac_ext
7629 #ifdef __cplusplus
7630 extern "C" {
7631 #endif
7632
7633 EOF
7634 # Now generate the symbol file.
7635 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7636
7637 cat <<EOF >> conftest.$ac_ext
7638 #if defined (__STDC__) && __STDC__
7639 # define lt_ptr_t void *
7640 #else
7641 # define lt_ptr_t char *
7642 # define const
7643 #endif
7644
7645 /* The mapping between symbol names and symbols. */
7646 const struct {
7647 const char *name;
7648 lt_ptr_t address;
7649 }
7650 lt_preloaded_symbols[] =
7651 {
7652 EOF
7653 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7654 cat <<\EOF >> conftest.$ac_ext
7655 {0, (lt_ptr_t) 0}
7656 };
7657
7658 #ifdef __cplusplus
7659 }
7660 #endif
7661 EOF
7662 # Now try linking the two files.
7663 mv conftest.$ac_objext conftstm.$ac_objext
7664 lt_save_LIBS="$LIBS"
7665 lt_save_CFLAGS="$CFLAGS"
7666 LIBS="conftstm.$ac_objext"
7667 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7673 pipe_works=yes
7674 fi
7675 LIBS="$lt_save_LIBS"
7676 CFLAGS="$lt_save_CFLAGS"
7677 else
7678 echo "cannot find nm_test_func in $nlist" >&5
7679 fi
7680 else
7681 echo "cannot find nm_test_var in $nlist" >&5
7682 fi
7683 else
7684 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7685 fi
7686 else
7687 echo "$progname: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7689 fi
7690 rm -f conftest* conftst*
7691
7692 # Do not use the global_symbol_pipe unless it works.
7693 if test "$pipe_works" = yes; then
7694 break
7695 else
7696 lt_cv_sys_global_symbol_pipe=
7697 fi
7698 done
7699
7700 fi
7701
7702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7703 lt_cv_sys_global_symbol_to_cdecl=
7704 fi
7705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7706 { echo "$as_me:$LINENO: result: failed" >&5
7707 echo "${ECHO_T}failed" >&6; }
7708 else
7709 { echo "$as_me:$LINENO: result: ok" >&5
7710 echo "${ECHO_T}ok" >&6; }
7711 fi
7712
7713 { echo "$as_me:$LINENO: checking for objdir" >&5
7714 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7715 if test "${lt_cv_objdir+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 rm -f .libs 2>/dev/null
7719 mkdir .libs 2>/dev/null
7720 if test -d .libs; then
7721 lt_cv_objdir=.libs
7722 else
7723 # MS-DOS does not allow filenames that begin with a dot.
7724 lt_cv_objdir=_libs
7725 fi
7726 rmdir .libs 2>/dev/null
7727 fi
7728 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7729 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7730 objdir=$lt_cv_objdir
7731
7732
7733
7734
7735
7736 case $host_os in
7737 aix3*)
7738 # AIX sometimes has problems with the GCC collect2 program. For some
7739 # reason, if we set the COLLECT_NAMES environment variable, the problems
7740 # vanish in a puff of smoke.
7741 if test "X${COLLECT_NAMES+set}" != Xset; then
7742 COLLECT_NAMES=
7743 export COLLECT_NAMES
7744 fi
7745 ;;
7746 esac
7747
7748 # Sed substitution that helps us do robust quoting. It backslashifies
7749 # metacharacters that are still active within double-quoted strings.
7750 Xsed='sed -e 1s/^X//'
7751 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7752
7753 # Same as above, but do not quote variable references.
7754 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7755
7756 # Sed substitution to delay expansion of an escaped shell variable in a
7757 # double_quote_subst'ed string.
7758 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7759
7760 # Sed substitution to avoid accidental globbing in evaled expressions
7761 no_glob_subst='s/\*/\\\*/g'
7762
7763 # Constants:
7764 rm="rm -f"
7765
7766 # Global variables:
7767 default_ofile=libtool
7768 can_build_shared=yes
7769
7770 # All known linkers require a `.a' archive for static linking (except MSVC,
7771 # which needs '.lib').
7772 libext=a
7773 ltmain="$ac_aux_dir/ltmain.sh"
7774 ofile="$default_ofile"
7775 with_gnu_ld="$lt_cv_prog_gnu_ld"
7776
7777 if test -n "$ac_tool_prefix"; then
7778 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7779 set dummy ${ac_tool_prefix}ar; ac_word=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_prog_AR+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785 if test -n "$AR"; then
7786 ac_cv_prog_AR="$AR" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_AR="${ac_tool_prefix}ar"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 AR=$ac_cv_prog_AR
7806 if test -n "$AR"; then
7807 { echo "$as_me:$LINENO: result: $AR" >&5
7808 echo "${ECHO_T}$AR" >&6; }
7809 else
7810 { echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6; }
7812 fi
7813
7814
7815 fi
7816 if test -z "$ac_cv_prog_AR"; then
7817 ac_ct_AR=$AR
7818 # Extract the first word of "ar", so it can be a program name with args.
7819 set dummy ar; ac_word=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 if test -n "$ac_ct_AR"; then
7826 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835 ac_cv_prog_ac_ct_AR="ar"
7836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839 done
7840 done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7846 if test -n "$ac_ct_AR"; then
7847 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7848 echo "${ECHO_T}$ac_ct_AR" >&6; }
7849 else
7850 { echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6; }
7852 fi
7853
7854 if test "x$ac_ct_AR" = x; then
7855 AR="false"
7856 else
7857 case $cross_compiling:$ac_tool_warned in
7858 yes:)
7859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7860 whose name does not start with the host triplet. If you think this
7861 configuration is useful to you, please write to autoconf@gnu.org." >&5
7862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7863 whose name does not start with the host triplet. If you think this
7864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7865 ac_tool_warned=yes ;;
7866 esac
7867 AR=$ac_ct_AR
7868 fi
7869 else
7870 AR="$ac_cv_prog_AR"
7871 fi
7872
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7878 if test "${ac_cv_prog_RANLIB+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881 if test -n "$RANLIB"; then
7882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 RANLIB=$ac_cv_prog_RANLIB
7902 if test -n "$RANLIB"; then
7903 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7904 echo "${ECHO_T}$RANLIB" >&6; }
7905 else
7906 { echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6; }
7908 fi
7909
7910
7911 fi
7912 if test -z "$ac_cv_prog_RANLIB"; then
7913 ac_ct_RANLIB=$RANLIB
7914 # Extract the first word of "ranlib", so it can be a program name with args.
7915 set dummy ranlib; ac_word=$2
7916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 if test -n "$ac_ct_RANLIB"; then
7922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_ac_ct_RANLIB="ranlib"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7942 if test -n "$ac_ct_RANLIB"; then
7943 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7944 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7945 else
7946 { echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6; }
7948 fi
7949
7950 if test "x$ac_ct_RANLIB" = x; then
7951 RANLIB=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954 yes:)
7955 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7956 whose name does not start with the host triplet. If you think this
7957 configuration is useful to you, please write to autoconf@gnu.org." >&5
7958 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7959 whose name does not start with the host triplet. If you think this
7960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7961 ac_tool_warned=yes ;;
7962 esac
7963 RANLIB=$ac_ct_RANLIB
7964 fi
7965 else
7966 RANLIB="$ac_cv_prog_RANLIB"
7967 fi
7968
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7971 set dummy ${ac_tool_prefix}strip; ac_word=$2
7972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974 if test "${ac_cv_prog_STRIP+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 if test -n "$STRIP"; then
7978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995 fi
7996 fi
7997 STRIP=$ac_cv_prog_STRIP
7998 if test -n "$STRIP"; then
7999 { echo "$as_me:$LINENO: result: $STRIP" >&5
8000 echo "${ECHO_T}$STRIP" >&6; }
8001 else
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8004 fi
8005
8006
8007 fi
8008 if test -z "$ac_cv_prog_STRIP"; then
8009 ac_ct_STRIP=$STRIP
8010 # Extract the first word of "strip", so it can be a program name with args.
8011 set dummy strip; ac_word=$2
8012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017 if test -n "$ac_ct_STRIP"; then
8018 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_prog_ac_ct_STRIP="strip"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031 done
8032 done
8033 IFS=$as_save_IFS
8034
8035 fi
8036 fi
8037 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8038 if test -n "$ac_ct_STRIP"; then
8039 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8040 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8041 else
8042 { echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6; }
8044 fi
8045
8046 if test "x$ac_ct_STRIP" = x; then
8047 STRIP=":"
8048 else
8049 case $cross_compiling:$ac_tool_warned in
8050 yes:)
8051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8052 whose name does not start with the host triplet. If you think this
8053 configuration is useful to you, please write to autoconf@gnu.org." >&5
8054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8055 whose name does not start with the host triplet. If you think this
8056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8057 ac_tool_warned=yes ;;
8058 esac
8059 STRIP=$ac_ct_STRIP
8060 fi
8061 else
8062 STRIP="$ac_cv_prog_STRIP"
8063 fi
8064
8065
8066 old_CC="$CC"
8067 old_CFLAGS="$CFLAGS"
8068
8069 # Set sane defaults for various variables
8070 test -z "$AR" && AR=ar
8071 test -z "$AR_FLAGS" && AR_FLAGS=cru
8072 test -z "$AS" && AS=as
8073 test -z "$CC" && CC=cc
8074 test -z "$LTCC" && LTCC=$CC
8075 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8076 test -z "$DLLTOOL" && DLLTOOL=dlltool
8077 test -z "$LD" && LD=ld
8078 test -z "$LN_S" && LN_S="ln -s"
8079 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8080 test -z "$NM" && NM=nm
8081 test -z "$SED" && SED=sed
8082 test -z "$OBJDUMP" && OBJDUMP=objdump
8083 test -z "$RANLIB" && RANLIB=:
8084 test -z "$STRIP" && STRIP=:
8085 test -z "$ac_objext" && ac_objext=o
8086
8087 # Determine commands to create old-style static archives.
8088 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8089 old_postinstall_cmds='chmod 644 $oldlib'
8090 old_postuninstall_cmds=
8091
8092 if test -n "$RANLIB"; then
8093 case $host_os in
8094 openbsd*)
8095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8096 ;;
8097 *)
8098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8099 ;;
8100 esac
8101 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8102 fi
8103
8104 for cc_temp in $compiler""; do
8105 case $cc_temp in
8106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8108 \-*) ;;
8109 *) break;;
8110 esac
8111 done
8112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8113
8114
8115 # Only perform the check for file, if the check method requires it
8116 case $deplibs_check_method in
8117 file_magic*)
8118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8119 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8120 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 case $MAGIC_CMD in
8125 [\\/*] | ?:[\\/]*)
8126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8127 ;;
8128 *)
8129 lt_save_MAGIC_CMD="$MAGIC_CMD"
8130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8132 for ac_dir in $ac_dummy; do
8133 IFS="$lt_save_ifs"
8134 test -z "$ac_dir" && ac_dir=.
8135 if test -f $ac_dir/${ac_tool_prefix}file; then
8136 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8137 if test -n "$file_magic_test_file"; then
8138 case $deplibs_check_method in
8139 "file_magic "*)
8140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8143 $EGREP "$file_magic_regex" > /dev/null; then
8144 :
8145 else
8146 cat <<EOF 1>&2
8147
8148 *** Warning: the command libtool uses to detect shared libraries,
8149 *** $file_magic_cmd, produces output that libtool cannot recognize.
8150 *** The result is that libtool may fail to recognize shared libraries
8151 *** as such. This will affect the creation of libtool libraries that
8152 *** depend on shared libraries, but programs linked with such libtool
8153 *** libraries will work regardless of this problem. Nevertheless, you
8154 *** may want to report the problem to your system manager and/or to
8155 *** bug-libtool@gnu.org
8156
8157 EOF
8158 fi ;;
8159 esac
8160 fi
8161 break
8162 fi
8163 done
8164 IFS="$lt_save_ifs"
8165 MAGIC_CMD="$lt_save_MAGIC_CMD"
8166 ;;
8167 esac
8168 fi
8169
8170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8171 if test -n "$MAGIC_CMD"; then
8172 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8173 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8174 else
8175 { echo "$as_me:$LINENO: result: no" >&5
8176 echo "${ECHO_T}no" >&6; }
8177 fi
8178
8179 if test -z "$lt_cv_path_MAGIC_CMD"; then
8180 if test -n "$ac_tool_prefix"; then
8181 { echo "$as_me:$LINENO: checking for file" >&5
8182 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8183 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 case $MAGIC_CMD in
8187 [\\/*] | ?:[\\/]*)
8188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8189 ;;
8190 *)
8191 lt_save_MAGIC_CMD="$MAGIC_CMD"
8192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8194 for ac_dir in $ac_dummy; do
8195 IFS="$lt_save_ifs"
8196 test -z "$ac_dir" && ac_dir=.
8197 if test -f $ac_dir/file; then
8198 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8199 if test -n "$file_magic_test_file"; then
8200 case $deplibs_check_method in
8201 "file_magic "*)
8202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8205 $EGREP "$file_magic_regex" > /dev/null; then
8206 :
8207 else
8208 cat <<EOF 1>&2
8209
8210 *** Warning: the command libtool uses to detect shared libraries,
8211 *** $file_magic_cmd, produces output that libtool cannot recognize.
8212 *** The result is that libtool may fail to recognize shared libraries
8213 *** as such. This will affect the creation of libtool libraries that
8214 *** depend on shared libraries, but programs linked with such libtool
8215 *** libraries will work regardless of this problem. Nevertheless, you
8216 *** may want to report the problem to your system manager and/or to
8217 *** bug-libtool@gnu.org
8218
8219 EOF
8220 fi ;;
8221 esac
8222 fi
8223 break
8224 fi
8225 done
8226 IFS="$lt_save_ifs"
8227 MAGIC_CMD="$lt_save_MAGIC_CMD"
8228 ;;
8229 esac
8230 fi
8231
8232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8233 if test -n "$MAGIC_CMD"; then
8234 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8235 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8236 else
8237 { echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6; }
8239 fi
8240
8241 else
8242 MAGIC_CMD=:
8243 fi
8244 fi
8245
8246 fi
8247 ;;
8248 esac
8249
8250 enable_dlopen=no
8251 enable_win32_dll=no
8252
8253 # Check whether --enable-libtool-lock was given.
8254 if test "${enable_libtool_lock+set}" = set; then
8255 enableval=$enable_libtool_lock;
8256 fi
8257
8258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8259
8260
8261 # Check whether --with-pic was given.
8262 if test "${with_pic+set}" = set; then
8263 withval=$with_pic; pic_mode="$withval"
8264 else
8265 pic_mode=default
8266 fi
8267
8268 test -z "$pic_mode" && pic_mode=default
8269
8270 # Use C for the default configuration in the libtool script
8271 tagname=
8272 lt_save_CC="$CC"
8273 ac_ext=c
8274 ac_cpp='$CPP $CPPFLAGS'
8275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8278
8279
8280 # Source file extension for C test sources.
8281 ac_ext=c
8282
8283 # Object file extension for compiled C test sources.
8284 objext=o
8285 objext=$objext
8286
8287 # Code to be used in simple compile tests
8288 lt_simple_compile_test_code="int some_variable = 0;"
8289
8290 # Code to be used in simple link tests
8291 lt_simple_link_test_code='int main(){return(0);}'
8292
8293
8294 # If no C compiler was specified, use CC.
8295 LTCC=${LTCC-"$CC"}
8296
8297 # If no C compiler flags were specified, use CFLAGS.
8298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8299
8300 # Allow CC to be a program name with arguments.
8301 compiler=$CC
8302
8303
8304 # save warnings/boilerplate of simple test code
8305 ac_outfile=conftest.$ac_objext
8306 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8308 _lt_compiler_boilerplate=`cat conftest.err`
8309 $rm conftest*
8310
8311 ac_outfile=conftest.$ac_objext
8312 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8313 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8314 _lt_linker_boilerplate=`cat conftest.err`
8315 $rm conftest*
8316
8317
8318
8319 lt_prog_compiler_no_builtin_flag=
8320
8321 if test "$GCC" = yes; then
8322 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8323
8324
8325 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8326 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330 lt_cv_prog_compiler_rtti_exceptions=no
8331 ac_outfile=conftest.$ac_objext
8332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8333 lt_compiler_flag="-fno-rtti -fno-exceptions"
8334 # Insert the option either (1) after the last *FLAGS variable, or
8335 # (2) before a word containing "conftest.", or (3) at the end.
8336 # Note that $ac_compile itself does not contain backslashes and begins
8337 # with a dollar sign (not a hyphen), so the echo should work correctly.
8338 # The option is referenced via a variable to avoid confusing sed.
8339 lt_compile=`echo "$ac_compile" | $SED \
8340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8342 -e 's:$: $lt_compiler_flag:'`
8343 (eval echo "\"\$as_me:8343: $lt_compile\"" >&5)
8344 (eval "$lt_compile" 2>conftest.err)
8345 ac_status=$?
8346 cat conftest.err >&5
8347 echo "$as_me:8347: \$? = $ac_status" >&5
8348 if (exit $ac_status) && test -s "$ac_outfile"; then
8349 # The compiler can only warn and ignore the option if not recognized
8350 # So say no if there are warnings other than the usual output.
8351 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8354 lt_cv_prog_compiler_rtti_exceptions=yes
8355 fi
8356 fi
8357 $rm conftest*
8358
8359 fi
8360 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8361 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8362
8363 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8364 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8365 else
8366 :
8367 fi
8368
8369 fi
8370
8371 lt_prog_compiler_wl=
8372 lt_prog_compiler_pic=
8373 lt_prog_compiler_static=
8374
8375 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8377
8378 if test "$GCC" = yes; then
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_static='-static'
8381
8382 case $host_os in
8383 aix*)
8384 # All AIX code is PIC.
8385 if test "$host_cpu" = ia64; then
8386 # AIX 5 now supports IA64 processor
8387 lt_prog_compiler_static='-Bstatic'
8388 fi
8389 ;;
8390
8391 amigaos*)
8392 # FIXME: we need at least 68020 code to build shared libraries, but
8393 # adding the `-m68020' flag to GCC prevents building anything better,
8394 # like `-m68040'.
8395 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8396 ;;
8397
8398 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8399 # PIC is the default for these OSes.
8400 ;;
8401
8402 mingw* | cygwin* | pw32* | os2*)
8403 # This hack is so that the source file can tell whether it is being
8404 # built for inclusion in a dll (and should export symbols for example).
8405 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8406 # (--disable-auto-import) libraries
8407 lt_prog_compiler_pic='-DDLL_EXPORT'
8408 ;;
8409
8410 darwin* | rhapsody*)
8411 # PIC is the default on this platform
8412 # Common symbols not allowed in MH_DYLIB files
8413 lt_prog_compiler_pic='-fno-common'
8414 ;;
8415
8416 interix[3-9]*)
8417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8418 # Instead, we relocate shared libraries at runtime.
8419 ;;
8420
8421 msdosdjgpp*)
8422 # Just because we use GCC doesn't mean we suddenly get shared libraries
8423 # on systems that don't support them.
8424 lt_prog_compiler_can_build_shared=no
8425 enable_shared=no
8426 ;;
8427
8428 sysv4*MP*)
8429 if test -d /usr/nec; then
8430 lt_prog_compiler_pic=-Kconform_pic
8431 fi
8432 ;;
8433
8434 hpux*)
8435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8436 # not for PA HP-UX.
8437 case $host_cpu in
8438 hppa*64*|ia64*)
8439 # +Z the default
8440 ;;
8441 *)
8442 lt_prog_compiler_pic='-fPIC'
8443 ;;
8444 esac
8445 ;;
8446
8447 *)
8448 lt_prog_compiler_pic='-fPIC'
8449 ;;
8450 esac
8451 else
8452 # PORTME Check for flag to pass linker flags through the system compiler.
8453 case $host_os in
8454 aix*)
8455 lt_prog_compiler_wl='-Wl,'
8456 if test "$host_cpu" = ia64; then
8457 # AIX 5 now supports IA64 processor
8458 lt_prog_compiler_static='-Bstatic'
8459 else
8460 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8461 fi
8462 ;;
8463 darwin*)
8464 # PIC is the default on this platform
8465 # Common symbols not allowed in MH_DYLIB files
8466 case $cc_basename in
8467 xlc*)
8468 lt_prog_compiler_pic='-qnocommon'
8469 lt_prog_compiler_wl='-Wl,'
8470 ;;
8471 esac
8472 ;;
8473
8474 mingw* | cygwin* | pw32* | os2*)
8475 # This hack is so that the source file can tell whether it is being
8476 # built for inclusion in a dll (and should export symbols for example).
8477 lt_prog_compiler_pic='-DDLL_EXPORT'
8478 ;;
8479
8480 hpux9* | hpux10* | hpux11*)
8481 lt_prog_compiler_wl='-Wl,'
8482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8483 # not for PA HP-UX.
8484 case $host_cpu in
8485 hppa*64*|ia64*)
8486 # +Z the default
8487 ;;
8488 *)
8489 lt_prog_compiler_pic='+Z'
8490 ;;
8491 esac
8492 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8493 lt_prog_compiler_static='${wl}-a ${wl}archive'
8494 ;;
8495
8496 irix5* | irix6* | nonstopux*)
8497 lt_prog_compiler_wl='-Wl,'
8498 # PIC (with -KPIC) is the default.
8499 lt_prog_compiler_static='-non_shared'
8500 ;;
8501
8502 newsos6)
8503 lt_prog_compiler_pic='-KPIC'
8504 lt_prog_compiler_static='-Bstatic'
8505 ;;
8506
8507 linux* | k*bsd*-gnu)
8508 case $cc_basename in
8509 icc* | ecc*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-static'
8513 ;;
8514 pgcc* | pgf77* | pgf90* | pgf95*)
8515 # Portland Group compilers (*not* the Pentium gcc compiler,
8516 # which looks to be a dead project)
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-fpic'
8519 lt_prog_compiler_static='-Bstatic'
8520 ;;
8521 ccc*)
8522 lt_prog_compiler_wl='-Wl,'
8523 # All Alpha code is PIC.
8524 lt_prog_compiler_static='-non_shared'
8525 ;;
8526 *)
8527 case `$CC -V 2>&1 | sed 5q` in
8528 *Sun\ C*)
8529 # Sun C 5.9
8530 lt_prog_compiler_pic='-KPIC'
8531 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_wl='-Wl,'
8533 ;;
8534 *Sun\ F*)
8535 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 lt_prog_compiler_wl=''
8539 ;;
8540 esac
8541 ;;
8542 esac
8543 ;;
8544
8545 osf3* | osf4* | osf5*)
8546 lt_prog_compiler_wl='-Wl,'
8547 # All OSF/1 code is PIC.
8548 lt_prog_compiler_static='-non_shared'
8549 ;;
8550
8551 rdos*)
8552 lt_prog_compiler_static='-non_shared'
8553 ;;
8554
8555 solaris*)
8556 lt_prog_compiler_pic='-KPIC'
8557 lt_prog_compiler_static='-Bstatic'
8558 case $cc_basename in
8559 f77* | f90* | f95*)
8560 lt_prog_compiler_wl='-Qoption ld ';;
8561 *)
8562 lt_prog_compiler_wl='-Wl,';;
8563 esac
8564 ;;
8565
8566 sunos4*)
8567 lt_prog_compiler_wl='-Qoption ld '
8568 lt_prog_compiler_pic='-PIC'
8569 lt_prog_compiler_static='-Bstatic'
8570 ;;
8571
8572 sysv4 | sysv4.2uw2* | sysv4.3*)
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_pic='-KPIC'
8575 lt_prog_compiler_static='-Bstatic'
8576 ;;
8577
8578 sysv4*MP*)
8579 if test -d /usr/nec ;then
8580 lt_prog_compiler_pic='-Kconform_pic'
8581 lt_prog_compiler_static='-Bstatic'
8582 fi
8583 ;;
8584
8585 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
8589 ;;
8590
8591 unicos*)
8592 lt_prog_compiler_wl='-Wl,'
8593 lt_prog_compiler_can_build_shared=no
8594 ;;
8595
8596 uts4*)
8597 lt_prog_compiler_pic='-pic'
8598 lt_prog_compiler_static='-Bstatic'
8599 ;;
8600
8601 *)
8602 lt_prog_compiler_can_build_shared=no
8603 ;;
8604 esac
8605 fi
8606
8607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8608 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8609
8610 #
8611 # Check to make sure the PIC flag actually works.
8612 #
8613 if test -n "$lt_prog_compiler_pic"; then
8614
8615 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8617 if test "${lt_prog_compiler_pic_works+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 lt_prog_compiler_pic_works=no
8621 ac_outfile=conftest.$ac_objext
8622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8623 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 # The option is referenced via a variable to avoid confusing sed.
8629 lt_compile=`echo "$ac_compile" | $SED \
8630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632 -e 's:$: $lt_compiler_flag:'`
8633 (eval echo "\"\$as_me:8633: $lt_compile\"" >&5)
8634 (eval "$lt_compile" 2>conftest.err)
8635 ac_status=$?
8636 cat conftest.err >&5
8637 echo "$as_me:8637: \$? = $ac_status" >&5
8638 if (exit $ac_status) && test -s "$ac_outfile"; then
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings other than the usual output.
8641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8644 lt_prog_compiler_pic_works=yes
8645 fi
8646 fi
8647 $rm conftest*
8648
8649 fi
8650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8651 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8652
8653 if test x"$lt_prog_compiler_pic_works" = xyes; then
8654 case $lt_prog_compiler_pic in
8655 "" | " "*) ;;
8656 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8657 esac
8658 else
8659 lt_prog_compiler_pic=
8660 lt_prog_compiler_can_build_shared=no
8661 fi
8662
8663 fi
8664 case $host_os in
8665 # For platforms which do not support PIC, -DPIC is meaningless:
8666 *djgpp*)
8667 lt_prog_compiler_pic=
8668 ;;
8669 *)
8670 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8671 ;;
8672 esac
8673
8674 #
8675 # Check to make sure the static flag actually works.
8676 #
8677 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8679 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8680 if test "${lt_prog_compiler_static_works+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683 lt_prog_compiler_static_works=no
8684 save_LDFLAGS="$LDFLAGS"
8685 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8686 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8687 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8688 # The linker can only warn and ignore the option if not recognized
8689 # So say no if there are warnings
8690 if test -s conftest.err; then
8691 # Append any errors to the config.log.
8692 cat conftest.err 1>&5
8693 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8695 if diff conftest.exp conftest.er2 >/dev/null; then
8696 lt_prog_compiler_static_works=yes
8697 fi
8698 else
8699 lt_prog_compiler_static_works=yes
8700 fi
8701 fi
8702 $rm conftest*
8703 LDFLAGS="$save_LDFLAGS"
8704
8705 fi
8706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8707 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8708
8709 if test x"$lt_prog_compiler_static_works" = xyes; then
8710 :
8711 else
8712 lt_prog_compiler_static=
8713 fi
8714
8715
8716 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8718 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721 lt_cv_prog_compiler_c_o=no
8722 $rm -r conftest 2>/dev/null
8723 mkdir conftest
8724 cd conftest
8725 mkdir out
8726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8727
8728 lt_compiler_flag="-o out/conftest2.$ac_objext"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 lt_compile=`echo "$ac_compile" | $SED \
8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736 -e 's:$: $lt_compiler_flag:'`
8737 (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
8738 (eval "$lt_compile" 2>out/conftest.err)
8739 ac_status=$?
8740 cat out/conftest.err >&5
8741 echo "$as_me:8741: \$? = $ac_status" >&5
8742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8743 then
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings
8746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_c_o=yes
8750 fi
8751 fi
8752 chmod u+w . 2>&5
8753 $rm conftest*
8754 # SGI C++ compiler will create directory out/ii_files/ for
8755 # template instantiation
8756 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8757 $rm out/* && rmdir out
8758 cd ..
8759 rmdir conftest
8760 $rm conftest*
8761
8762 fi
8763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8765
8766
8767 hard_links="nottested"
8768 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8769 # do not overwrite the value of need_locks provided by the user
8770 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8772 hard_links=yes
8773 $rm conftest*
8774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8775 touch conftest.a
8776 ln conftest.a conftest.b 2>&5 || hard_links=no
8777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8778 { echo "$as_me:$LINENO: result: $hard_links" >&5
8779 echo "${ECHO_T}$hard_links" >&6; }
8780 if test "$hard_links" = no; then
8781 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8783 need_locks=warn
8784 fi
8785 else
8786 need_locks=no
8787 fi
8788
8789 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8791
8792 runpath_var=
8793 allow_undefined_flag=
8794 enable_shared_with_static_runtimes=no
8795 archive_cmds=
8796 archive_expsym_cmds=
8797 old_archive_From_new_cmds=
8798 old_archive_from_expsyms_cmds=
8799 export_dynamic_flag_spec=
8800 whole_archive_flag_spec=
8801 thread_safe_flag_spec=
8802 hardcode_libdir_flag_spec=
8803 hardcode_libdir_flag_spec_ld=
8804 hardcode_libdir_separator=
8805 hardcode_direct=no
8806 hardcode_minus_L=no
8807 hardcode_shlibpath_var=unsupported
8808 link_all_deplibs=unknown
8809 hardcode_automatic=no
8810 module_cmds=
8811 module_expsym_cmds=
8812 always_export_symbols=no
8813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8814 # include_expsyms should be a list of space-separated symbols to be *always*
8815 # included in the symbol list
8816 include_expsyms=
8817 # exclude_expsyms can be an extended regexp of symbols to exclude
8818 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8820 # as well as any symbol that contains `d'.
8821 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8823 # platforms (ab)use it in PIC code, but their linkers get confused if
8824 # the symbol is explicitly referenced. Since portable code cannot
8825 # rely on this symbol name, it's probably fine to never include it in
8826 # preloaded symbol tables.
8827 extract_expsyms_cmds=
8828 # Just being paranoid about ensuring that cc_basename is set.
8829 for cc_temp in $compiler""; do
8830 case $cc_temp in
8831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8833 \-*) ;;
8834 *) break;;
8835 esac
8836 done
8837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8838
8839 case $host_os in
8840 cygwin* | mingw* | pw32*)
8841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8842 # When not using gcc, we currently assume that we are using
8843 # Microsoft Visual C++.
8844 if test "$GCC" != yes; then
8845 with_gnu_ld=no
8846 fi
8847 ;;
8848 interix*)
8849 # we just hope/assume this is gcc and not c89 (= MSVC++)
8850 with_gnu_ld=yes
8851 ;;
8852 openbsd*)
8853 with_gnu_ld=no
8854 ;;
8855 esac
8856
8857 ld_shlibs=yes
8858 if test "$with_gnu_ld" = yes; then
8859 # If archive_cmds runs LD, not CC, wlarc should be empty
8860 wlarc='${wl}'
8861
8862 # Set some defaults for GNU ld with shared library support. These
8863 # are reset later if shared libraries are not supported. Putting them
8864 # here allows them to be overridden if necessary.
8865 runpath_var=LD_RUN_PATH
8866 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8867 export_dynamic_flag_spec='${wl}--export-dynamic'
8868 # ancient GNU ld didn't support --whole-archive et. al.
8869 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8871 else
8872 whole_archive_flag_spec=
8873 fi
8874 supports_anon_versioning=no
8875 case `$LD -v 2>/dev/null` in
8876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8879 *\ 2.11.*) ;; # other 2.11 versions
8880 *) supports_anon_versioning=yes ;;
8881 esac
8882
8883 # See if GNU ld supports shared libraries.
8884 case $host_os in
8885 aix3* | aix4* | aix5*)
8886 # On AIX/PPC, the GNU linker is very broken
8887 if test "$host_cpu" != ia64; then
8888 ld_shlibs=no
8889 cat <<EOF 1>&2
8890
8891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8892 *** to be unable to reliably create shared libraries on AIX.
8893 *** Therefore, libtool is disabling shared libraries support. If you
8894 *** really care for shared libraries, you may want to modify your PATH
8895 *** so that a non-GNU linker is found, and then restart.
8896
8897 EOF
8898 fi
8899 ;;
8900
8901 amigaos*)
8902 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)'
8903 hardcode_libdir_flag_spec='-L$libdir'
8904 hardcode_minus_L=yes
8905
8906 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8907 # that the semantics of dynamic libraries on AmigaOS, at least up
8908 # to version 4, is to share data among multiple programs linked
8909 # with the same dynamic library. Since this doesn't match the
8910 # behavior of shared libraries on other platforms, we can't use
8911 # them.
8912 ld_shlibs=no
8913 ;;
8914
8915 beos*)
8916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8917 allow_undefined_flag=unsupported
8918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8919 # support --undefined. This deserves some investigation. FIXME
8920 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 else
8922 ld_shlibs=no
8923 fi
8924 ;;
8925
8926 cygwin* | mingw* | pw32*)
8927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8928 # as there is no search path for DLLs.
8929 hardcode_libdir_flag_spec='-L$libdir'
8930 allow_undefined_flag=unsupported
8931 always_export_symbols=no
8932 enable_shared_with_static_runtimes=yes
8933 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8934
8935 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8937 # If the export-symbols file already is a .def file (1st line
8938 # is EXPORTS), use it as is; otherwise, prepend...
8939 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8940 cp $export_symbols $output_objdir/$soname.def;
8941 else
8942 echo EXPORTS > $output_objdir/$soname.def;
8943 cat $export_symbols >> $output_objdir/$soname.def;
8944 fi~
8945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8946 else
8947 ld_shlibs=no
8948 fi
8949 ;;
8950
8951 interix[3-9]*)
8952 hardcode_direct=no
8953 hardcode_shlibpath_var=no
8954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8955 export_dynamic_flag_spec='${wl}-E'
8956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8957 # Instead, shared libraries are loaded at an image base (0x10000000 by
8958 # default) and relocated if they conflict, which is a slow very memory
8959 # consuming and fragmenting process. To avoid this, we pick a random,
8960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8963 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'
8964 ;;
8965
8966 gnu* | linux* | k*bsd*-gnu)
8967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8968 tmp_addflag=
8969 case $cc_basename,$host_cpu in
8970 pgcc*) # Portland Group C compiler
8971 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'
8972 tmp_addflag=' $pic_flag'
8973 ;;
8974 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8975 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'
8976 tmp_addflag=' $pic_flag -Mnomain' ;;
8977 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8978 tmp_addflag=' -i_dynamic' ;;
8979 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8980 tmp_addflag=' -i_dynamic -nofor_main' ;;
8981 ifc* | ifort*) # Intel Fortran compiler
8982 tmp_addflag=' -nofor_main' ;;
8983 esac
8984 case `$CC -V 2>&1 | sed 5q` in
8985 *Sun\ C*) # Sun C 5.9
8986 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'
8987 tmp_sharedflag='-G' ;;
8988 *Sun\ F*) # Sun Fortran 8.3
8989 tmp_sharedflag='-G' ;;
8990 *)
8991 tmp_sharedflag='-shared' ;;
8992 esac
8993 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994
8995 if test $supports_anon_versioning = yes; then
8996 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8997 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8998 $echo "local: *; };" >> $output_objdir/$libname.ver~
8999 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9000 fi
9001 link_all_deplibs=no
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006
9007 netbsd* | netbsdelf*-gnu)
9008 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9009 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9010 wlarc=
9011 else
9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 fi
9015 ;;
9016
9017 solaris*)
9018 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9019 ld_shlibs=no
9020 cat <<EOF 1>&2
9021
9022 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9023 *** create shared libraries on Solaris systems. Therefore, libtool
9024 *** is disabling shared libraries support. We urge you to upgrade GNU
9025 *** binutils to release 2.9.1 or newer. Another option is to modify
9026 *** your PATH or compiler configuration so that the native linker is
9027 *** used, and then restart.
9028
9029 EOF
9030 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9033 else
9034 ld_shlibs=no
9035 fi
9036 ;;
9037
9038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9039 case `$LD -v 2>&1` in
9040 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9041 ld_shlibs=no
9042 cat <<_LT_EOF 1>&2
9043
9044 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9045 *** reliably create shared libraries on SCO systems. Therefore, libtool
9046 *** is disabling shared libraries support. We urge you to upgrade GNU
9047 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9048 *** your PATH or compiler configuration so that the native linker is
9049 *** used, and then restart.
9050
9051 _LT_EOF
9052 ;;
9053 *)
9054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9055 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9058 else
9059 ld_shlibs=no
9060 fi
9061 ;;
9062 esac
9063 ;;
9064
9065 sunos4*)
9066 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067 wlarc=
9068 hardcode_direct=yes
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 *)
9073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080 esac
9081
9082 if test "$ld_shlibs" = no; then
9083 runpath_var=
9084 hardcode_libdir_flag_spec=
9085 export_dynamic_flag_spec=
9086 whole_archive_flag_spec=
9087 fi
9088 else
9089 # PORTME fill in a description of your system's linker (not GNU ld)
9090 case $host_os in
9091 aix3*)
9092 allow_undefined_flag=unsupported
9093 always_export_symbols=yes
9094 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'
9095 # Note: this linker hardcodes the directories in LIBPATH if there
9096 # are no directories specified by -L.
9097 hardcode_minus_L=yes
9098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099 # Neither direct hardcoding nor static linking is supported with a
9100 # broken collect2.
9101 hardcode_direct=unsupported
9102 fi
9103 ;;
9104
9105 aix4* | aix5*)
9106 if test "$host_cpu" = ia64; then
9107 # On IA64, the linker does run time linking by default, so we don't
9108 # have to do anything special.
9109 aix_use_runtimelinking=no
9110 exp_sym_flag='-Bexport'
9111 no_entry_flag=""
9112 else
9113 # If we're using GNU nm, then we don't want the "-C" option.
9114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9115 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9116 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'
9117 else
9118 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'
9119 fi
9120 aix_use_runtimelinking=no
9121
9122 # Test if we are trying to use run time linking or normal
9123 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9124 # need to do runtime linking.
9125 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9126 for ld_flag in $LDFLAGS; do
9127 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9128 aix_use_runtimelinking=yes
9129 break
9130 fi
9131 done
9132 ;;
9133 esac
9134
9135 exp_sym_flag='-bexport'
9136 no_entry_flag='-bnoentry'
9137 fi
9138
9139 # When large executables or shared objects are built, AIX ld can
9140 # have problems creating the table of contents. If linking a library
9141 # or program results in "error TOC overflow" add -mminimal-toc to
9142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9144
9145 archive_cmds=''
9146 hardcode_direct=yes
9147 hardcode_libdir_separator=':'
9148 link_all_deplibs=yes
9149
9150 if test "$GCC" = yes; then
9151 case $host_os in aix4.[012]|aix4.[012].*)
9152 # We only want to do this on AIX 4.2 and lower, the check
9153 # below for broken collect2 doesn't work under 4.3+
9154 collect2name=`${CC} -print-prog-name=collect2`
9155 if test -f "$collect2name" && \
9156 strings "$collect2name" | grep resolve_lib_name >/dev/null
9157 then
9158 # We have reworked collect2
9159 :
9160 else
9161 # We have old collect2
9162 hardcode_direct=unsupported
9163 # It fails to find uninstalled libraries when the uninstalled
9164 # path is not listed in the libpath. Setting hardcode_minus_L
9165 # to unsupported forces relinking
9166 hardcode_minus_L=yes
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 hardcode_libdir_separator=
9169 fi
9170 ;;
9171 esac
9172 shared_flag='-shared'
9173 if test "$aix_use_runtimelinking" = yes; then
9174 shared_flag="$shared_flag "'${wl}-G'
9175 fi
9176 else
9177 # not using gcc
9178 if test "$host_cpu" = ia64; then
9179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9180 # chokes on -Wl,-G. The following line is correct:
9181 shared_flag='-G'
9182 else
9183 if test "$aix_use_runtimelinking" = yes; then
9184 shared_flag='${wl}-G'
9185 else
9186 shared_flag='${wl}-bM:SRE'
9187 fi
9188 fi
9189 fi
9190
9191 # It seems that -bexpall does not export symbols beginning with
9192 # underscore (_), so it is better to generate a list of symbols to export.
9193 always_export_symbols=yes
9194 if test "$aix_use_runtimelinking" = yes; then
9195 # Warning - without using the other runtime loading flags (-brtl),
9196 # -berok will link without error, but may produce a broken library.
9197 allow_undefined_flag='-berok'
9198 # Determine the default libpath from the value encoded in an empty executable.
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205
9206 int
9207 main ()
9208 {
9209
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (ac_try="$ac_link"
9216 case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_link") 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest$ac_exeext &&
9231 $as_test_x conftest$ac_exeext; then
9232
9233 lt_aix_libpath_sed='
9234 /Import File Strings/,/^$/ {
9235 /^0/ {
9236 s/^0 *\(.*\)$/\1/
9237 p
9238 }
9239 }'
9240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241 # Check for a 64-bit object if we didn't find anything.
9242 if test -z "$aix_libpath"; then
9243 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9244 fi
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249
9250 fi
9251
9252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9253 conftest$ac_exeext conftest.$ac_ext
9254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9255
9256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9257 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"
9258 else
9259 if test "$host_cpu" = ia64; then
9260 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9261 allow_undefined_flag="-z nodefs"
9262 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"
9263 else
9264 # Determine the default libpath from the value encoded in an empty executable.
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h. */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9271
9272 int
9273 main ()
9274 {
9275
9276 ;
9277 return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (ac_try="$ac_link"
9282 case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285 esac
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_link") 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest$ac_exeext &&
9297 $as_test_x conftest$ac_exeext; then
9298
9299 lt_aix_libpath_sed='
9300 /Import File Strings/,/^$/ {
9301 /^0/ {
9302 s/^0 *\(.*\)$/\1/
9303 p
9304 }
9305 }'
9306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9307 # Check for a 64-bit object if we didn't find anything.
9308 if test -z "$aix_libpath"; then
9309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9310 fi
9311 else
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315
9316 fi
9317
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319 conftest$ac_exeext conftest.$ac_ext
9320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9321
9322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323 # Warning - without using the other run time loading flags,
9324 # -berok will link without error, but may produce a broken library.
9325 no_undefined_flag=' ${wl}-bernotok'
9326 allow_undefined_flag=' ${wl}-berok'
9327 # Exported symbols can be pulled into shared objects from archives
9328 whole_archive_flag_spec='$convenience'
9329 archive_cmds_need_lc=yes
9330 # This is similar to how AIX traditionally builds its shared libraries.
9331 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'
9332 fi
9333 fi
9334 ;;
9335
9336 amigaos*)
9337 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)'
9338 hardcode_libdir_flag_spec='-L$libdir'
9339 hardcode_minus_L=yes
9340 # see comment about different semantics on the GNU ld section
9341 ld_shlibs=no
9342 ;;
9343
9344 bsdi[45]*)
9345 export_dynamic_flag_spec=-rdynamic
9346 ;;
9347
9348 cygwin* | mingw* | pw32*)
9349 # When not using gcc, we currently assume that we are using
9350 # Microsoft Visual C++.
9351 # hardcode_libdir_flag_spec is actually meaningless, as there is
9352 # no search path for DLLs.
9353 hardcode_libdir_flag_spec=' '
9354 allow_undefined_flag=unsupported
9355 # Tell ltmain to make .lib files, not .a files.
9356 libext=lib
9357 # Tell ltmain to make .dll files, not .so files.
9358 shrext_cmds=".dll"
9359 # FIXME: Setting linknames here is a bad hack.
9360 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9361 # The linker will automatically build a .lib file if we build a DLL.
9362 old_archive_From_new_cmds='true'
9363 # FIXME: Should let the user specify the lib program.
9364 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9365 fix_srcfile_path='`cygpath -w "$srcfile"`'
9366 enable_shared_with_static_runtimes=yes
9367 ;;
9368
9369 darwin* | rhapsody*)
9370 case $host_os in
9371 rhapsody* | darwin1.[012])
9372 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9373 ;;
9374 *) # Darwin 1.3 on
9375 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9376 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9377 else
9378 case ${MACOSX_DEPLOYMENT_TARGET} in
9379 10.[012])
9380 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9381 ;;
9382 10.*)
9383 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9384 ;;
9385 esac
9386 fi
9387 ;;
9388 esac
9389 archive_cmds_need_lc=no
9390 hardcode_direct=no
9391 hardcode_automatic=yes
9392 hardcode_shlibpath_var=unsupported
9393 whole_archive_flag_spec=''
9394 link_all_deplibs=yes
9395 if test "$GCC" = yes ; then
9396 output_verbose_link_cmd='echo'
9397 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9398 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9400 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9401 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}'
9402 else
9403 case $cc_basename in
9404 xlc*)
9405 output_verbose_link_cmd='echo'
9406 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9407 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9408 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9409 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}'
9410 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}'
9411 ;;
9412 *)
9413 ld_shlibs=no
9414 ;;
9415 esac
9416 fi
9417 ;;
9418
9419 dgux*)
9420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 hardcode_libdir_flag_spec='-L$libdir'
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 freebsd1*)
9426 ld_shlibs=no
9427 ;;
9428
9429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9430 # support. Future versions do this automatically, but an explicit c++rt0.o
9431 # does not break anything, and helps significantly (at the cost of a little
9432 # extra space).
9433 freebsd2.2*)
9434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9435 hardcode_libdir_flag_spec='-R$libdir'
9436 hardcode_direct=yes
9437 hardcode_shlibpath_var=no
9438 ;;
9439
9440 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9441 freebsd2*)
9442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_direct=yes
9444 hardcode_minus_L=yes
9445 hardcode_shlibpath_var=no
9446 ;;
9447
9448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9449 freebsd* | dragonfly*)
9450 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9451 hardcode_libdir_flag_spec='-R$libdir'
9452 hardcode_direct=yes
9453 hardcode_shlibpath_var=no
9454 ;;
9455
9456 hpux9*)
9457 if test "$GCC" = yes; then
9458 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'
9459 else
9460 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'
9461 fi
9462 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9463 hardcode_libdir_separator=:
9464 hardcode_direct=yes
9465
9466 # hardcode_minus_L: Not really in the search PATH,
9467 # but as the default location of the library.
9468 hardcode_minus_L=yes
9469 export_dynamic_flag_spec='${wl}-E'
9470 ;;
9471
9472 hpux10*)
9473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9474 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475 else
9476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9477 fi
9478 if test "$with_gnu_ld" = no; then
9479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9480 hardcode_libdir_separator=:
9481
9482 hardcode_direct=yes
9483 export_dynamic_flag_spec='${wl}-E'
9484
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L=yes
9488 fi
9489 ;;
9490
9491 hpux11*)
9492 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9493 case $host_cpu in
9494 hppa*64*)
9495 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 ;;
9497 ia64*)
9498 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9499 ;;
9500 *)
9501 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9502 ;;
9503 esac
9504 else
9505 case $host_cpu in
9506 hppa*64*)
9507 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 ;;
9509 ia64*)
9510 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9511 ;;
9512 *)
9513 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9514 ;;
9515 esac
9516 fi
9517 if test "$with_gnu_ld" = no; then
9518 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9519 hardcode_libdir_separator=:
9520
9521 case $host_cpu in
9522 hppa*64*|ia64*)
9523 hardcode_libdir_flag_spec_ld='+b $libdir'
9524 hardcode_direct=no
9525 hardcode_shlibpath_var=no
9526 ;;
9527 *)
9528 hardcode_direct=yes
9529 export_dynamic_flag_spec='${wl}-E'
9530
9531 # hardcode_minus_L: Not really in the search PATH,
9532 # but as the default location of the library.
9533 hardcode_minus_L=yes
9534 ;;
9535 esac
9536 fi
9537 ;;
9538
9539 irix5* | irix6* | nonstopux*)
9540 if test "$GCC" = yes; then
9541 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'
9542 else
9543 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'
9544 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9545 fi
9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547 hardcode_libdir_separator=:
9548 link_all_deplibs=yes
9549 ;;
9550
9551 netbsd* | netbsdelf*-gnu)
9552 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9554 else
9555 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9556 fi
9557 hardcode_libdir_flag_spec='-R$libdir'
9558 hardcode_direct=yes
9559 hardcode_shlibpath_var=no
9560 ;;
9561
9562 newsos6)
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_direct=yes
9565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566 hardcode_libdir_separator=:
9567 hardcode_shlibpath_var=no
9568 ;;
9569
9570 openbsd*)
9571 if test -f /usr/libexec/ld.so; then
9572 hardcode_direct=yes
9573 hardcode_shlibpath_var=no
9574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9578 export_dynamic_flag_spec='${wl}-E'
9579 else
9580 case $host_os in
9581 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9583 hardcode_libdir_flag_spec='-R$libdir'
9584 ;;
9585 *)
9586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9588 ;;
9589 esac
9590 fi
9591 else
9592 ld_shlibs=no
9593 fi
9594 ;;
9595
9596 os2*)
9597 hardcode_libdir_flag_spec='-L$libdir'
9598 hardcode_minus_L=yes
9599 allow_undefined_flag=unsupported
9600 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'
9601 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9602 ;;
9603
9604 osf3*)
9605 if test "$GCC" = yes; then
9606 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9607 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'
9608 else
9609 allow_undefined_flag=' -expect_unresolved \*'
9610 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'
9611 fi
9612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613 hardcode_libdir_separator=:
9614 ;;
9615
9616 osf4* | osf5*) # as osf3* with the addition of -msym flag
9617 if test "$GCC" = yes; then
9618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9619 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'
9620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621 else
9622 allow_undefined_flag=' -expect_unresolved \*'
9623 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'
9624 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9625 $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'
9626
9627 # Both c and cxx compiler support -rpath directly
9628 hardcode_libdir_flag_spec='-rpath $libdir'
9629 fi
9630 hardcode_libdir_separator=:
9631 ;;
9632
9633 solaris*)
9634 no_undefined_flag=' -z text'
9635 if test "$GCC" = yes; then
9636 wlarc='${wl}'
9637 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9639 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9640 else
9641 wlarc=''
9642 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9645 fi
9646 hardcode_libdir_flag_spec='-R$libdir'
9647 hardcode_shlibpath_var=no
9648 case $host_os in
9649 solaris2.[0-5] | solaris2.[0-5].*) ;;
9650 *)
9651 # The compiler driver will combine and reorder linker options,
9652 # but understands `-z linker_flag'. GCC discards it without `$wl',
9653 # but is careful enough not to reorder.
9654 # Supported since Solaris 2.6 (maybe 2.5.1?)
9655 if test "$GCC" = yes; then
9656 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9657 else
9658 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9659 fi
9660 ;;
9661 esac
9662 link_all_deplibs=yes
9663 ;;
9664
9665 sunos4*)
9666 if test "x$host_vendor" = xsequent; then
9667 # Use $CC to link under sequent, because it throws in some extra .o
9668 # files that make .init and .fini sections work.
9669 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9670 else
9671 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9672 fi
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_direct=yes
9675 hardcode_minus_L=yes
9676 hardcode_shlibpath_var=no
9677 ;;
9678
9679 sysv4)
9680 case $host_vendor in
9681 sni)
9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_direct=yes # is this really true???
9684 ;;
9685 siemens)
9686 ## LD is ld it makes a PLAMLIB
9687 ## CC just makes a GrossModule.
9688 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9689 reload_cmds='$CC -r -o $output$reload_objs'
9690 hardcode_direct=no
9691 ;;
9692 motorola)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9695 ;;
9696 esac
9697 runpath_var='LD_RUN_PATH'
9698 hardcode_shlibpath_var=no
9699 ;;
9700
9701 sysv4.3*)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_shlibpath_var=no
9704 export_dynamic_flag_spec='-Bexport'
9705 ;;
9706
9707 sysv4*MP*)
9708 if test -d /usr/nec; then
9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_shlibpath_var=no
9711 runpath_var=LD_RUN_PATH
9712 hardcode_runpath_var=yes
9713 ld_shlibs=yes
9714 fi
9715 ;;
9716
9717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9718 no_undefined_flag='${wl}-z,text'
9719 archive_cmds_need_lc=no
9720 hardcode_shlibpath_var=no
9721 runpath_var='LD_RUN_PATH'
9722
9723 if test "$GCC" = yes; then
9724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 else
9727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 fi
9730 ;;
9731
9732 sysv5* | sco3.2v5* | sco5v6*)
9733 # Note: We can NOT use -z defs as we might desire, because we do not
9734 # link with -lc, and that would cause any symbols used from libc to
9735 # always be unresolved, which means just about no library would
9736 # ever link correctly. If we're not using GNU ld we use -z text
9737 # though, which does catch some bad symbols but isn't as heavy-handed
9738 # as -z defs.
9739 no_undefined_flag='${wl}-z,text'
9740 allow_undefined_flag='${wl}-z,nodefs'
9741 archive_cmds_need_lc=no
9742 hardcode_shlibpath_var=no
9743 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9744 hardcode_libdir_separator=':'
9745 link_all_deplibs=yes
9746 export_dynamic_flag_spec='${wl}-Bexport'
9747 runpath_var='LD_RUN_PATH'
9748
9749 if test "$GCC" = yes; then
9750 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 else
9753 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 fi
9756 ;;
9757
9758 uts4*)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_shlibpath_var=no
9762 ;;
9763
9764 *)
9765 ld_shlibs=no
9766 ;;
9767 esac
9768 fi
9769
9770 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9771 echo "${ECHO_T}$ld_shlibs" >&6; }
9772 test "$ld_shlibs" = no && can_build_shared=no
9773
9774 #
9775 # Do we need to explicitly link libc?
9776 #
9777 case "x$archive_cmds_need_lc" in
9778 x|xyes)
9779 # Assume -lc should be added
9780 archive_cmds_need_lc=yes
9781
9782 if test "$enable_shared" = yes && test "$GCC" = yes; then
9783 case $archive_cmds in
9784 *'~'*)
9785 # FIXME: we may have to deal with multi-command sequences.
9786 ;;
9787 '$CC '*)
9788 # Test whether the compiler implicitly links with -lc since on some
9789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9790 # to ld, don't add -lc before -lgcc.
9791 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9792 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9793 $rm conftest*
9794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9795
9796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9797 (eval $ac_compile) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } 2>conftest.err; then
9801 soname=conftest
9802 lib=conftest
9803 libobjs=conftest.$ac_objext
9804 deplibs=
9805 wl=$lt_prog_compiler_wl
9806 pic_flag=$lt_prog_compiler_pic
9807 compiler_flags=-v
9808 linker_flags=-v
9809 verstring=
9810 output_objdir=.
9811 libname=conftest
9812 lt_save_allow_undefined_flag=$allow_undefined_flag
9813 allow_undefined_flag=
9814 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9815 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }
9819 then
9820 archive_cmds_need_lc=no
9821 else
9822 archive_cmds_need_lc=yes
9823 fi
9824 allow_undefined_flag=$lt_save_allow_undefined_flag
9825 else
9826 cat conftest.err 1>&5
9827 fi
9828 $rm conftest*
9829 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9830 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9831 ;;
9832 esac
9833 fi
9834 ;;
9835 esac
9836
9837 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9838 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9839 library_names_spec=
9840 libname_spec='lib$name'
9841 soname_spec=
9842 shrext_cmds=".so"
9843 postinstall_cmds=
9844 postuninstall_cmds=
9845 finish_cmds=
9846 finish_eval=
9847 shlibpath_var=
9848 shlibpath_overrides_runpath=unknown
9849 version_type=none
9850 dynamic_linker="$host_os ld.so"
9851 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9852
9853 if test "$GCC" = yes; then
9854 case $host_os in
9855 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9856 *) lt_awk_arg="/^libraries:/" ;;
9857 esac
9858 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9859 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9860 # if the path contains ";" then we assume it to be the separator
9861 # otherwise default to the standard path separator (i.e. ":") - it is
9862 # assumed that no part of a normal pathname contains ";" but that should
9863 # okay in the real world where ";" in dirpaths is itself problematic.
9864 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9865 else
9866 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9867 fi
9868 # Ok, now we have the path, separated by spaces, we can step through it
9869 # and add multilib dir if necessary.
9870 lt_tmp_lt_search_path_spec=
9871 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9872 for lt_sys_path in $lt_search_path_spec; do
9873 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9875 else
9876 test -d "$lt_sys_path" && \
9877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9878 fi
9879 done
9880 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9881 BEGIN {RS=" "; FS="/|\n";} {
9882 lt_foo="";
9883 lt_count=0;
9884 for (lt_i = NF; lt_i > 0; lt_i--) {
9885 if ($lt_i != "" && $lt_i != ".") {
9886 if ($lt_i == "..") {
9887 lt_count++;
9888 } else {
9889 if (lt_count == 0) {
9890 lt_foo="/" $lt_i lt_foo;
9891 } else {
9892 lt_count--;
9893 }
9894 }
9895 }
9896 }
9897 if (lt_foo != "") { lt_freq[lt_foo]++; }
9898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9899 }'`
9900 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9901 else
9902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9903 fi
9904 need_lib_prefix=unknown
9905 hardcode_into_libs=no
9906
9907 # when you set need_version to no, make sure it does not cause -set_version
9908 # flags to be left without arguments
9909 need_version=unknown
9910
9911 case $host_os in
9912 aix3*)
9913 version_type=linux
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9915 shlibpath_var=LIBPATH
9916
9917 # AIX 3 has no versioning support, so we append a major version to the name.
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 ;;
9920
9921 aix4* | aix5*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 hardcode_into_libs=yes
9926 if test "$host_cpu" = ia64; then
9927 # AIX 5 supports IA64
9928 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 else
9931 # With GCC up to 2.95.x, collect2 would create an import file
9932 # for dependence libraries. The import file would start with
9933 # the line `#! .'. This would cause the generated library to
9934 # depend on `.', always an invalid library. This was fixed in
9935 # development snapshots of GCC prior to 3.0.
9936 case $host_os in
9937 aix4 | aix4.[01] | aix4.[01].*)
9938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9939 echo ' yes '
9940 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9941 :
9942 else
9943 can_build_shared=no
9944 fi
9945 ;;
9946 esac
9947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9948 # soname into executable. Probably we can add versioning support to
9949 # collect2, so additional links can be useful in future.
9950 if test "$aix_use_runtimelinking" = yes; then
9951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9952 # instead of lib<name>.a to let people know that these are not
9953 # typical AIX shared libraries.
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 else
9956 # We preserve .a as extension for shared libraries through AIX4.2
9957 # and later when we are not doing run time linking.
9958 library_names_spec='${libname}${release}.a $libname.a'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 fi
9961 shlibpath_var=LIBPATH
9962 fi
9963 ;;
9964
9965 amigaos*)
9966 library_names_spec='$libname.ixlibrary $libname.a'
9967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9968 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'
9969 ;;
9970
9971 beos*)
9972 library_names_spec='${libname}${shared_ext}'
9973 dynamic_linker="$host_os ld.so"
9974 shlibpath_var=LIBRARY_PATH
9975 ;;
9976
9977 bsdi[45]*)
9978 version_type=linux
9979 need_version=no
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9986 # the default ld.so.conf also contains /usr/contrib/lib and
9987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9988 # libtool to hard-code these into programs
9989 ;;
9990
9991 cygwin* | mingw* | pw32*)
9992 version_type=windows
9993 shrext_cmds=".dll"
9994 need_version=no
9995 need_lib_prefix=no
9996
9997 case $GCC,$host_os in
9998 yes,cygwin* | yes,mingw* | yes,pw32*)
9999 library_names_spec='$libname.dll.a'
10000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001 postinstall_cmds='base_file=`basename \${file}`~
10002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10003 dldir=$destdir/`dirname \$dlpath`~
10004 test -d \$dldir || mkdir -p \$dldir~
10005 $install_prog $dir/$dlname \$dldir/$dlname~
10006 chmod a+x \$dldir/$dlname'
10007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10008 dlpath=$dir/\$dldll~
10009 $rm \$dlpath'
10010 shlibpath_overrides_runpath=yes
10011
10012 case $host_os in
10013 cygwin*)
10014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10017 ;;
10018 mingw*)
10019 # MinGW DLLs use traditional 'lib' prefix
10020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10022 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10023 # It is most probably a Windows format PATH printed by
10024 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10025 # path with ; separators, and with drive letters. We can handle the
10026 # drive letters (cygwin fileutils understands them), so leave them,
10027 # especially as we might pass files found there to a mingw objdump,
10028 # which wouldn't understand a cygwinified path. Ahh.
10029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10030 else
10031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10032 fi
10033 ;;
10034 pw32*)
10035 # pw32 DLLs use 'pw' prefix rather than 'lib'
10036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037 ;;
10038 esac
10039 ;;
10040
10041 *)
10042 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10043 ;;
10044 esac
10045 dynamic_linker='Win32 ld.exe'
10046 # FIXME: first we should search . and the directory the executable is in
10047 shlibpath_var=PATH
10048 ;;
10049
10050 darwin* | rhapsody*)
10051 dynamic_linker="$host_os dyld"
10052 version_type=darwin
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10056 soname_spec='${libname}${release}${major}$shared_ext'
10057 shlibpath_overrides_runpath=yes
10058 shlibpath_var=DYLD_LIBRARY_PATH
10059 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10060
10061 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10062 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10063 ;;
10064
10065 dgux*)
10066 version_type=linux
10067 need_lib_prefix=no
10068 need_version=no
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 shlibpath_var=LD_LIBRARY_PATH
10072 ;;
10073
10074 freebsd1*)
10075 dynamic_linker=no
10076 ;;
10077
10078 freebsd* | dragonfly*)
10079 # DragonFly does not have aout. When/if they implement a new
10080 # versioning mechanism, adjust this.
10081 if test -x /usr/bin/objformat; then
10082 objformat=`/usr/bin/objformat`
10083 else
10084 case $host_os in
10085 freebsd[123]*) objformat=aout ;;
10086 *) objformat=elf ;;
10087 esac
10088 fi
10089 version_type=freebsd-$objformat
10090 case $version_type in
10091 freebsd-elf*)
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10093 need_version=no
10094 need_lib_prefix=no
10095 ;;
10096 freebsd-*)
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10098 need_version=yes
10099 ;;
10100 esac
10101 shlibpath_var=LD_LIBRARY_PATH
10102 case $host_os in
10103 freebsd2*)
10104 shlibpath_overrides_runpath=yes
10105 ;;
10106 freebsd3.[01]* | freebsdelf3.[01]*)
10107 shlibpath_overrides_runpath=yes
10108 hardcode_into_libs=yes
10109 ;;
10110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10112 shlibpath_overrides_runpath=no
10113 hardcode_into_libs=yes
10114 ;;
10115 *) # from 4.6 on, and DragonFly
10116 shlibpath_overrides_runpath=yes
10117 hardcode_into_libs=yes
10118 ;;
10119 esac
10120 ;;
10121
10122 gnu*)
10123 version_type=linux
10124 need_lib_prefix=no
10125 need_version=no
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 hardcode_into_libs=yes
10130 ;;
10131
10132 hpux9* | hpux10* | hpux11*)
10133 # Give a soname corresponding to the major version so that dld.sl refuses to
10134 # link against other versions.
10135 version_type=sunos
10136 need_lib_prefix=no
10137 need_version=no
10138 case $host_cpu in
10139 ia64*)
10140 shrext_cmds='.so'
10141 hardcode_into_libs=yes
10142 dynamic_linker="$host_os dld.so"
10143 shlibpath_var=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 if test "X$HPUX_IA64_MODE" = X32; then
10148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10149 else
10150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10151 fi
10152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10153 ;;
10154 hppa*64*)
10155 shrext_cmds='.sl'
10156 hardcode_into_libs=yes
10157 dynamic_linker="$host_os dld.sl"
10158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164 ;;
10165 *)
10166 shrext_cmds='.sl'
10167 dynamic_linker="$host_os dld.sl"
10168 shlibpath_var=SHLIB_PATH
10169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 ;;
10173 esac
10174 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10175 postinstall_cmds='chmod 555 $lib'
10176 ;;
10177
10178 interix[3-9]*)
10179 version_type=linux
10180 need_lib_prefix=no
10181 need_version=no
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 shlibpath_overrides_runpath=no
10187 hardcode_into_libs=yes
10188 ;;
10189
10190 irix5* | irix6* | nonstopux*)
10191 case $host_os in
10192 nonstopux*) version_type=nonstopux ;;
10193 *)
10194 if test "$lt_cv_prog_gnu_ld" = yes; then
10195 version_type=linux
10196 else
10197 version_type=irix
10198 fi ;;
10199 esac
10200 need_lib_prefix=no
10201 need_version=no
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10204 case $host_os in
10205 irix5* | nonstopux*)
10206 libsuff= shlibsuff=
10207 ;;
10208 *)
10209 case $LD in # libtool.m4 will add one of these switches to LD
10210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10211 libsuff= shlibsuff= libmagic=32-bit;;
10212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10213 libsuff=32 shlibsuff=N32 libmagic=N32;;
10214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10215 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10216 *) libsuff= shlibsuff= libmagic=never-match;;
10217 esac
10218 ;;
10219 esac
10220 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10221 shlibpath_overrides_runpath=no
10222 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10223 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10224 hardcode_into_libs=yes
10225 ;;
10226
10227 # No shared lib support for Linux oldld, aout, or coff.
10228 linux*oldld* | linux*aout* | linux*coff*)
10229 dynamic_linker=no
10230 ;;
10231
10232 # This must be Linux ELF.
10233 linux* | k*bsd*-gnu)
10234 version_type=linux
10235 need_lib_prefix=no
10236 need_version=no
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=no
10242 # This implies no fast_install, which is unacceptable.
10243 # Some rework will be needed to allow for fast_install
10244 # before this can be enabled.
10245 hardcode_into_libs=yes
10246
10247 # Append ld.so.conf contents to the search path
10248 if test -f /etc/ld.so.conf; then
10249 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' ' '`
10250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10251 fi
10252
10253 # We used to test for /lib/ld.so.1 and disable shared libraries on
10254 # powerpc, because MkLinux only supported shared libraries with the
10255 # GNU dynamic linker. Since this was broken with cross compilers,
10256 # most powerpc-linux boxes support dynamic linking these days and
10257 # people can always --disable-shared, the test was removed, and we
10258 # assume the GNU/Linux dynamic linker is in use.
10259 dynamic_linker='GNU/Linux ld.so'
10260 ;;
10261
10262 netbsdelf*-gnu)
10263 version_type=linux
10264 need_lib_prefix=no
10265 need_version=no
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=no
10270 hardcode_into_libs=yes
10271 dynamic_linker='NetBSD ld.elf_so'
10272 ;;
10273
10274 netbsd*)
10275 version_type=sunos
10276 need_lib_prefix=no
10277 need_version=no
10278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10281 dynamic_linker='NetBSD (a.out) ld.so'
10282 else
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 dynamic_linker='NetBSD ld.elf_so'
10286 fi
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10290 ;;
10291
10292 newsos6)
10293 version_type=linux
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10297 ;;
10298
10299 nto-qnx*)
10300 version_type=linux
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 ;;
10308
10309 openbsd*)
10310 version_type=sunos
10311 sys_lib_dlsearch_path_spec="/usr/lib"
10312 need_lib_prefix=no
10313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10314 case $host_os in
10315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316 *) need_version=no ;;
10317 esac
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10322 case $host_os in
10323 openbsd2.[89] | openbsd2.[89].*)
10324 shlibpath_overrides_runpath=no
10325 ;;
10326 *)
10327 shlibpath_overrides_runpath=yes
10328 ;;
10329 esac
10330 else
10331 shlibpath_overrides_runpath=yes
10332 fi
10333 ;;
10334
10335 os2*)
10336 libname_spec='$name'
10337 shrext_cmds=".dll"
10338 need_lib_prefix=no
10339 library_names_spec='$libname${shared_ext} $libname.a'
10340 dynamic_linker='OS/2 ld.exe'
10341 shlibpath_var=LIBPATH
10342 ;;
10343
10344 osf3* | osf4* | osf5*)
10345 version_type=osf
10346 need_lib_prefix=no
10347 need_version=no
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353 ;;
10354
10355 rdos*)
10356 dynamic_linker=no
10357 ;;
10358
10359 solaris*)
10360 version_type=linux
10361 need_lib_prefix=no
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10367 hardcode_into_libs=yes
10368 # ldd complains unless libraries are executable
10369 postinstall_cmds='chmod +x $lib'
10370 ;;
10371
10372 sunos4*)
10373 version_type=sunos
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 if test "$with_gnu_ld" = yes; then
10379 need_lib_prefix=no
10380 fi
10381 need_version=yes
10382 ;;
10383
10384 sysv4 | sysv4.3*)
10385 version_type=linux
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 case $host_vendor in
10390 sni)
10391 shlibpath_overrides_runpath=no
10392 need_lib_prefix=no
10393 export_dynamic_flag_spec='${wl}-Blargedynsym'
10394 runpath_var=LD_RUN_PATH
10395 ;;
10396 siemens)
10397 need_lib_prefix=no
10398 ;;
10399 motorola)
10400 need_lib_prefix=no
10401 need_version=no
10402 shlibpath_overrides_runpath=no
10403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10404 ;;
10405 esac
10406 ;;
10407
10408 sysv4*MP*)
10409 if test -d /usr/nec ;then
10410 version_type=linux
10411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10412 soname_spec='$libname${shared_ext}.$major'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 fi
10415 ;;
10416
10417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10418 version_type=freebsd-elf
10419 need_lib_prefix=no
10420 need_version=no
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 hardcode_into_libs=yes
10425 if test "$with_gnu_ld" = yes; then
10426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10427 shlibpath_overrides_runpath=no
10428 else
10429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10430 shlibpath_overrides_runpath=yes
10431 case $host_os in
10432 sco3.2v5*)
10433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10434 ;;
10435 esac
10436 fi
10437 sys_lib_dlsearch_path_spec='/usr/lib'
10438 ;;
10439
10440 uts4*)
10441 version_type=linux
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 ;;
10446
10447 *)
10448 dynamic_linker=no
10449 ;;
10450 esac
10451 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10452 echo "${ECHO_T}$dynamic_linker" >&6; }
10453 test "$dynamic_linker" = no && can_build_shared=no
10454
10455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10456 if test "$GCC" = yes; then
10457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10458 fi
10459
10460 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10462 hardcode_action=
10463 if test -n "$hardcode_libdir_flag_spec" || \
10464 test -n "$runpath_var" || \
10465 test "X$hardcode_automatic" = "Xyes" ; then
10466
10467 # We can hardcode non-existant directories.
10468 if test "$hardcode_direct" != no &&
10469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10470 # have to relink, otherwise we might link with an installed library
10471 # when we should be linking with a yet-to-be-installed one
10472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10473 test "$hardcode_minus_L" != no; then
10474 # Linking always hardcodes the temporary library directory.
10475 hardcode_action=relink
10476 else
10477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10478 hardcode_action=immediate
10479 fi
10480 else
10481 # We cannot hardcode anything, or else we can only hardcode existing
10482 # directories.
10483 hardcode_action=unsupported
10484 fi
10485 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10486 echo "${ECHO_T}$hardcode_action" >&6; }
10487
10488 if test "$hardcode_action" = relink; then
10489 # Fast installation is not supported
10490 enable_fast_install=no
10491 elif test "$shlibpath_overrides_runpath" = yes ||
10492 test "$enable_shared" = no; then
10493 # Fast installation is not necessary
10494 enable_fast_install=needless
10495 fi
10496
10497 striplib=
10498 old_striplib=
10499 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10500 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10501 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10502 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10503 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10504 { echo "$as_me:$LINENO: result: yes" >&5
10505 echo "${ECHO_T}yes" >&6; }
10506 else
10507 # FIXME - insert some real tests, host_os isn't really good enough
10508 case $host_os in
10509 darwin*)
10510 if test -n "$STRIP" ; then
10511 striplib="$STRIP -x"
10512 old_striplib="$STRIP -S"
10513 { echo "$as_me:$LINENO: result: yes" >&5
10514 echo "${ECHO_T}yes" >&6; }
10515 else
10516 { echo "$as_me:$LINENO: result: no" >&5
10517 echo "${ECHO_T}no" >&6; }
10518 fi
10519 ;;
10520 *)
10521 { echo "$as_me:$LINENO: result: no" >&5
10522 echo "${ECHO_T}no" >&6; }
10523 ;;
10524 esac
10525 fi
10526
10527 if test "x$enable_dlopen" != xyes; then
10528 enable_dlopen=unknown
10529 enable_dlopen_self=unknown
10530 enable_dlopen_self_static=unknown
10531 else
10532 lt_cv_dlopen=no
10533 lt_cv_dlopen_libs=
10534
10535 case $host_os in
10536 beos*)
10537 lt_cv_dlopen="load_add_on"
10538 lt_cv_dlopen_libs=
10539 lt_cv_dlopen_self=yes
10540 ;;
10541
10542 mingw* | pw32*)
10543 lt_cv_dlopen="LoadLibrary"
10544 lt_cv_dlopen_libs=
10545 ;;
10546
10547 cygwin*)
10548 lt_cv_dlopen="dlopen"
10549 lt_cv_dlopen_libs=
10550 ;;
10551
10552 darwin*)
10553 # if libdl is installed we need to link against it
10554 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10555 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-ldl $LIBS"
10561 cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h. */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10567
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10571 #ifdef __cplusplus
10572 extern "C"
10573 #endif
10574 char dlopen ();
10575 int
10576 main ()
10577 {
10578 return dlopen ();
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_link") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && {
10597 test -z "$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10599 } && test -s conftest$ac_exeext &&
10600 $as_test_x conftest$ac_exeext; then
10601 ac_cv_lib_dl_dlopen=yes
10602 else
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 ac_cv_lib_dl_dlopen=no
10607 fi
10608
10609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10612 fi
10613 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10615 if test $ac_cv_lib_dl_dlopen = yes; then
10616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10617 else
10618
10619 lt_cv_dlopen="dyld"
10620 lt_cv_dlopen_libs=
10621 lt_cv_dlopen_self=yes
10622
10623 fi
10624
10625 ;;
10626
10627 *)
10628 { echo "$as_me:$LINENO: checking for shl_load" >&5
10629 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10630 if test "${ac_cv_func_shl_load+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10641 #define shl_load innocuous_shl_load
10642
10643 /* System header to define __stub macros and hopefully few prototypes,
10644 which can conflict with char shl_load (); below.
10645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10646 <limits.h> exists even on freestanding compilers. */
10647
10648 #ifdef __STDC__
10649 # include <limits.h>
10650 #else
10651 # include <assert.h>
10652 #endif
10653
10654 #undef shl_load
10655
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char shl_load ();
10663 /* The GNU C library defines this for functions which it implements
10664 to always fail with ENOSYS. Some functions are actually named
10665 something starting with __ and the normal name is an alias. */
10666 #if defined __stub_shl_load || defined __stub___shl_load
10667 choke me
10668 #endif
10669
10670 int
10671 main ()
10672 {
10673 return shl_load ();
10674 ;
10675 return 0;
10676 }
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_link") 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest$ac_exeext &&
10695 $as_test_x conftest$ac_exeext; then
10696 ac_cv_func_shl_load=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701 ac_cv_func_shl_load=no
10702 fi
10703
10704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10705 conftest$ac_exeext conftest.$ac_ext
10706 fi
10707 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10708 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10709 if test $ac_cv_func_shl_load = yes; then
10710 lt_cv_dlopen="shl_load"
10711 else
10712 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10713 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10714 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717 ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-ldld $LIBS"
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char shl_load ();
10733 int
10734 main ()
10735 {
10736 return shl_load ();
10737 ;
10738 return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && {
10755 test -z "$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 } && test -s conftest$ac_exeext &&
10758 $as_test_x conftest$ac_exeext; then
10759 ac_cv_lib_dld_shl_load=yes
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_cv_lib_dld_shl_load=no
10765 fi
10766
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10770 fi
10771 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10772 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10773 if test $ac_cv_lib_dld_shl_load = yes; then
10774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10775 else
10776 { echo "$as_me:$LINENO: checking for dlopen" >&5
10777 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10778 if test "${ac_cv_func_dlopen+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h. */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10789 #define dlopen innocuous_dlopen
10790
10791 /* System header to define __stub macros and hopefully few prototypes,
10792 which can conflict with char dlopen (); below.
10793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10794 <limits.h> exists even on freestanding compilers. */
10795
10796 #ifdef __STDC__
10797 # include <limits.h>
10798 #else
10799 # include <assert.h>
10800 #endif
10801
10802 #undef dlopen
10803
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 char dlopen ();
10811 /* The GNU C library defines this for functions which it implements
10812 to always fail with ENOSYS. Some functions are actually named
10813 something starting with __ and the normal name is an alias. */
10814 #if defined __stub_dlopen || defined __stub___dlopen
10815 choke me
10816 #endif
10817
10818 int
10819 main ()
10820 {
10821 return dlopen ();
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext &&
10843 $as_test_x conftest$ac_exeext; then
10844 ac_cv_func_dlopen=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 ac_cv_func_dlopen=no
10850 fi
10851
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10854 fi
10855 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10856 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10857 if test $ac_cv_func_dlopen = yes; then
10858 lt_cv_dlopen="dlopen"
10859 else
10860 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10861 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10862 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865 ac_check_lib_save_LIBS=$LIBS
10866 LIBS="-ldl $LIBS"
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char dlopen ();
10881 int
10882 main ()
10883 {
10884 return dlopen ();
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_link") 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest$ac_exeext &&
10906 $as_test_x conftest$ac_exeext; then
10907 ac_cv_lib_dl_dlopen=yes
10908 else
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ac_cv_lib_dl_dlopen=no
10913 fi
10914
10915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10918 fi
10919 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10920 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10921 if test $ac_cv_lib_dl_dlopen = yes; then
10922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10923 else
10924 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10925 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10926 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929 ac_check_lib_save_LIBS=$LIBS
10930 LIBS="-lsvld $LIBS"
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h. */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char dlopen ();
10945 int
10946 main ()
10947 {
10948 return dlopen ();
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (ac_try="$ac_link"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_link") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest$ac_exeext &&
10970 $as_test_x conftest$ac_exeext; then
10971 ac_cv_lib_svld_dlopen=yes
10972 else
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 ac_cv_lib_svld_dlopen=no
10977 fi
10978
10979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10980 conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_check_lib_save_LIBS
10982 fi
10983 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10984 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10985 if test $ac_cv_lib_svld_dlopen = yes; then
10986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10987 else
10988 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10989 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10990 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993 ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-ldld $LIBS"
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char dld_link ();
11009 int
11010 main ()
11011 {
11012 return dld_link ();
11013 ;
11014 return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (ac_try="$ac_link"
11019 case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_link") 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } && {
11031 test -z "$ac_c_werror_flag" ||
11032 test ! -s conftest.err
11033 } && test -s conftest$ac_exeext &&
11034 $as_test_x conftest$ac_exeext; then
11035 ac_cv_lib_dld_dld_link=yes
11036 else
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 ac_cv_lib_dld_dld_link=no
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11044 conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11046 fi
11047 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11048 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11049 if test $ac_cv_lib_dld_dld_link = yes; then
11050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11051 fi
11052
11053
11054 fi
11055
11056
11057 fi
11058
11059
11060 fi
11061
11062
11063 fi
11064
11065
11066 fi
11067
11068 ;;
11069 esac
11070
11071 if test "x$lt_cv_dlopen" != xno; then
11072 enable_dlopen=yes
11073 else
11074 enable_dlopen=no
11075 fi
11076
11077 case $lt_cv_dlopen in
11078 dlopen)
11079 save_CPPFLAGS="$CPPFLAGS"
11080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11081
11082 save_LDFLAGS="$LDFLAGS"
11083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11084
11085 save_LIBS="$LIBS"
11086 LIBS="$lt_cv_dlopen_libs $LIBS"
11087
11088 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11089 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11090 if test "${lt_cv_dlopen_self+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 if test "$cross_compiling" = yes; then :
11094 lt_cv_dlopen_self=cross
11095 else
11096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11097 lt_status=$lt_dlunknown
11098 cat > conftest.$ac_ext <<EOF
11099 #line 11099 "configure"
11100 #include "confdefs.h"
11101
11102 #if HAVE_DLFCN_H
11103 #include <dlfcn.h>
11104 #endif
11105
11106 #include <stdio.h>
11107
11108 #ifdef RTLD_GLOBAL
11109 # define LT_DLGLOBAL RTLD_GLOBAL
11110 #else
11111 # ifdef DL_GLOBAL
11112 # define LT_DLGLOBAL DL_GLOBAL
11113 # else
11114 # define LT_DLGLOBAL 0
11115 # endif
11116 #endif
11117
11118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11119 find out it does not work in some platform. */
11120 #ifndef LT_DLLAZY_OR_NOW
11121 # ifdef RTLD_LAZY
11122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11123 # else
11124 # ifdef DL_LAZY
11125 # define LT_DLLAZY_OR_NOW DL_LAZY
11126 # else
11127 # ifdef RTLD_NOW
11128 # define LT_DLLAZY_OR_NOW RTLD_NOW
11129 # else
11130 # ifdef DL_NOW
11131 # define LT_DLLAZY_OR_NOW DL_NOW
11132 # else
11133 # define LT_DLLAZY_OR_NOW 0
11134 # endif
11135 # endif
11136 # endif
11137 # endif
11138 #endif
11139
11140 #ifdef __cplusplus
11141 extern "C" void exit (int);
11142 #endif
11143
11144 void fnord() { int i=42;}
11145 int main ()
11146 {
11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148 int status = $lt_dlunknown;
11149
11150 if (self)
11151 {
11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11154 /* dlclose (self); */
11155 }
11156 else
11157 puts (dlerror ());
11158
11159 exit (status);
11160 }
11161 EOF
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11167 (./conftest; exit; ) >&5 2>/dev/null
11168 lt_status=$?
11169 case x$lt_status in
11170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11173 esac
11174 else :
11175 # compilation failed
11176 lt_cv_dlopen_self=no
11177 fi
11178 fi
11179 rm -fr conftest*
11180
11181
11182 fi
11183 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11184 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11185
11186 if test "x$lt_cv_dlopen_self" = xyes; then
11187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11188 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11189 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11190 if test "${lt_cv_dlopen_self_static+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193 if test "$cross_compiling" = yes; then :
11194 lt_cv_dlopen_self_static=cross
11195 else
11196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197 lt_status=$lt_dlunknown
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11201
11202 #if HAVE_DLFCN_H
11203 #include <dlfcn.h>
11204 #endif
11205
11206 #include <stdio.h>
11207
11208 #ifdef RTLD_GLOBAL
11209 # define LT_DLGLOBAL RTLD_GLOBAL
11210 #else
11211 # ifdef DL_GLOBAL
11212 # define LT_DLGLOBAL DL_GLOBAL
11213 # else
11214 # define LT_DLGLOBAL 0
11215 # endif
11216 #endif
11217
11218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219 find out it does not work in some platform. */
11220 #ifndef LT_DLLAZY_OR_NOW
11221 # ifdef RTLD_LAZY
11222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11223 # else
11224 # ifdef DL_LAZY
11225 # define LT_DLLAZY_OR_NOW DL_LAZY
11226 # else
11227 # ifdef RTLD_NOW
11228 # define LT_DLLAZY_OR_NOW RTLD_NOW
11229 # else
11230 # ifdef DL_NOW
11231 # define LT_DLLAZY_OR_NOW DL_NOW
11232 # else
11233 # define LT_DLLAZY_OR_NOW 0
11234 # endif
11235 # endif
11236 # endif
11237 # endif
11238 #endif
11239
11240 #ifdef __cplusplus
11241 extern "C" void exit (int);
11242 #endif
11243
11244 void fnord() { int i=42;}
11245 int main ()
11246 {
11247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11248 int status = $lt_dlunknown;
11249
11250 if (self)
11251 {
11252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11254 /* dlclose (self); */
11255 }
11256 else
11257 puts (dlerror ());
11258
11259 exit (status);
11260 }
11261 EOF
11262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11263 (eval $ac_link) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11267 (./conftest; exit; ) >&5 2>/dev/null
11268 lt_status=$?
11269 case x$lt_status in
11270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11273 esac
11274 else :
11275 # compilation failed
11276 lt_cv_dlopen_self_static=no
11277 fi
11278 fi
11279 rm -fr conftest*
11280
11281
11282 fi
11283 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11284 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11285 fi
11286
11287 CPPFLAGS="$save_CPPFLAGS"
11288 LDFLAGS="$save_LDFLAGS"
11289 LIBS="$save_LIBS"
11290 ;;
11291 esac
11292
11293 case $lt_cv_dlopen_self in
11294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11295 *) enable_dlopen_self=unknown ;;
11296 esac
11297
11298 case $lt_cv_dlopen_self_static in
11299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11300 *) enable_dlopen_self_static=unknown ;;
11301 esac
11302 fi
11303
11304
11305 # Report which library types will actually be built
11306 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11307 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11308 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11309 echo "${ECHO_T}$can_build_shared" >&6; }
11310
11311 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11312 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11313 test "$can_build_shared" = "no" && enable_shared=no
11314
11315 # On AIX, shared libraries and static libraries use the same namespace, and
11316 # are all built from PIC.
11317 case $host_os in
11318 aix3*)
11319 test "$enable_shared" = yes && enable_static=no
11320 if test -n "$RANLIB"; then
11321 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11322 postinstall_cmds='$RANLIB $lib'
11323 fi
11324 ;;
11325
11326 aix4* | aix5*)
11327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11328 test "$enable_shared" = yes && enable_static=no
11329 fi
11330 ;;
11331 esac
11332 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11333 echo "${ECHO_T}$enable_shared" >&6; }
11334
11335 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11336 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11337 # Make sure either enable_shared or enable_static is yes.
11338 test "$enable_shared" = yes || enable_static=yes
11339 { echo "$as_me:$LINENO: result: $enable_static" >&5
11340 echo "${ECHO_T}$enable_static" >&6; }
11341
11342 # The else clause should only fire when bootstrapping the
11343 # libtool distribution, otherwise you forgot to ship ltmain.sh
11344 # with your package, and you will get complaints that there are
11345 # no rules to generate ltmain.sh.
11346 if test -f "$ltmain"; then
11347 # See if we are running on zsh, and set the options which allow our commands through
11348 # without removal of \ escapes.
11349 if test -n "${ZSH_VERSION+set}" ; then
11350 setopt NO_GLOB_SUBST
11351 fi
11352 # Now quote all the things that may contain metacharacters while being
11353 # careful not to overquote the AC_SUBSTed values. We take copies of the
11354 # variables and quote the copies for generation of the libtool script.
11355 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11356 SED SHELL STRIP \
11357 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11358 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11359 deplibs_check_method reload_flag reload_cmds need_locks \
11360 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11361 lt_cv_sys_global_symbol_to_c_name_address \
11362 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11363 old_postinstall_cmds old_postuninstall_cmds \
11364 compiler \
11365 CC \
11366 LD \
11367 lt_prog_compiler_wl \
11368 lt_prog_compiler_pic \
11369 lt_prog_compiler_static \
11370 lt_prog_compiler_no_builtin_flag \
11371 export_dynamic_flag_spec \
11372 thread_safe_flag_spec \
11373 whole_archive_flag_spec \
11374 enable_shared_with_static_runtimes \
11375 old_archive_cmds \
11376 old_archive_from_new_cmds \
11377 predep_objects \
11378 postdep_objects \
11379 predeps \
11380 postdeps \
11381 compiler_lib_search_path \
11382 archive_cmds \
11383 archive_expsym_cmds \
11384 postinstall_cmds \
11385 postuninstall_cmds \
11386 old_archive_from_expsyms_cmds \
11387 allow_undefined_flag \
11388 no_undefined_flag \
11389 export_symbols_cmds \
11390 hardcode_libdir_flag_spec \
11391 hardcode_libdir_flag_spec_ld \
11392 hardcode_libdir_separator \
11393 hardcode_automatic \
11394 module_cmds \
11395 module_expsym_cmds \
11396 lt_cv_prog_compiler_c_o \
11397 fix_srcfile_path \
11398 exclude_expsyms \
11399 include_expsyms; do
11400
11401 case $var in
11402 old_archive_cmds | \
11403 old_archive_from_new_cmds | \
11404 archive_cmds | \
11405 archive_expsym_cmds | \
11406 module_cmds | \
11407 module_expsym_cmds | \
11408 old_archive_from_expsyms_cmds | \
11409 export_symbols_cmds | \
11410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11411 postinstall_cmds | postuninstall_cmds | \
11412 old_postinstall_cmds | old_postuninstall_cmds | \
11413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11414 # Double-quote double-evaled strings.
11415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11416 ;;
11417 *)
11418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11419 ;;
11420 esac
11421 done
11422
11423 case $lt_echo in
11424 *'\$0 --fallback-echo"')
11425 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11426 ;;
11427 esac
11428
11429 cfgfile="${ofile}T"
11430 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11431 $rm -f "$cfgfile"
11432 { echo "$as_me:$LINENO: creating $ofile" >&5
11433 echo "$as_me: creating $ofile" >&6;}
11434
11435 cat <<__EOF__ >> "$cfgfile"
11436 #! $SHELL
11437
11438 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11439 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11440 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11441 #
11442 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11443 # Free Software Foundation, Inc.
11444 #
11445 # This file is part of GNU Libtool:
11446 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11447 #
11448 # This program is free software; you can redistribute it and/or modify
11449 # it under the terms of the GNU General Public License as published by
11450 # the Free Software Foundation; either version 2 of the License, or
11451 # (at your option) any later version.
11452 #
11453 # This program is distributed in the hope that it will be useful, but
11454 # WITHOUT ANY WARRANTY; without even the implied warranty of
11455 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11456 # General Public License for more details.
11457 #
11458 # You should have received a copy of the GNU General Public License
11459 # along with this program; if not, write to the Free Software
11460 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11461 #
11462 # As a special exception to the GNU General Public License, if you
11463 # distribute this file as part of a program that contains a
11464 # configuration script generated by Autoconf, you may include it under
11465 # the same distribution terms that you use for the rest of that program.
11466
11467 # A sed program that does not truncate output.
11468 SED=$lt_SED
11469
11470 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11471 Xsed="$SED -e 1s/^X//"
11472
11473 # The HP-UX ksh and POSIX shell print the target directory to stdout
11474 # if CDPATH is set.
11475 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11476
11477 # The names of the tagged configurations supported by this script.
11478 available_tags=
11479
11480 # ### BEGIN LIBTOOL CONFIG
11481
11482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11483
11484 # Shell to use when invoking shell scripts.
11485 SHELL=$lt_SHELL
11486
11487 # Whether or not to build shared libraries.
11488 build_libtool_libs=$enable_shared
11489
11490 # Whether or not to build static libraries.
11491 build_old_libs=$enable_static
11492
11493 # Whether or not to add -lc for building shared libraries.
11494 build_libtool_need_lc=$archive_cmds_need_lc
11495
11496 # Whether or not to disallow shared libs when runtime libs are static
11497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11498
11499 # Whether or not to optimize for fast installation.
11500 fast_install=$enable_fast_install
11501
11502 # The host system.
11503 host_alias=$host_alias
11504 host=$host
11505 host_os=$host_os
11506
11507 # The build system.
11508 build_alias=$build_alias
11509 build=$build
11510 build_os=$build_os
11511
11512 # An echo program that does not interpret backslashes.
11513 echo=$lt_echo
11514
11515 # The archiver.
11516 AR=$lt_AR
11517 AR_FLAGS=$lt_AR_FLAGS
11518
11519 # A C compiler.
11520 LTCC=$lt_LTCC
11521
11522 # LTCC compiler flags.
11523 LTCFLAGS=$lt_LTCFLAGS
11524
11525 # A language-specific compiler.
11526 CC=$lt_compiler
11527
11528 # Is the compiler the GNU C compiler?
11529 with_gcc=$GCC
11530
11531 # An ERE matcher.
11532 EGREP=$lt_EGREP
11533
11534 # The linker used to build libraries.
11535 LD=$lt_LD
11536
11537 # Whether we need hard or soft links.
11538 LN_S=$lt_LN_S
11539
11540 # A BSD-compatible nm program.
11541 NM=$lt_NM
11542
11543 # A symbol stripping program
11544 STRIP=$lt_STRIP
11545
11546 # Used to examine libraries when file_magic_cmd begins "file"
11547 MAGIC_CMD=$MAGIC_CMD
11548
11549 # Used on cygwin: DLL creation program.
11550 DLLTOOL="$DLLTOOL"
11551
11552 # Used on cygwin: object dumper.
11553 OBJDUMP="$OBJDUMP"
11554
11555 # Used on cygwin: assembler.
11556 AS="$AS"
11557
11558 # The name of the directory that contains temporary libtool files.
11559 objdir=$objdir
11560
11561 # How to create reloadable object files.
11562 reload_flag=$lt_reload_flag
11563 reload_cmds=$lt_reload_cmds
11564
11565 # How to pass a linker flag through the compiler.
11566 wl=$lt_lt_prog_compiler_wl
11567
11568 # Object file suffix (normally "o").
11569 objext="$ac_objext"
11570
11571 # Old archive suffix (normally "a").
11572 libext="$libext"
11573
11574 # Shared library suffix (normally ".so").
11575 shrext_cmds='$shrext_cmds'
11576
11577 # Executable file suffix (normally "").
11578 exeext="$exeext"
11579
11580 # Additional compiler flags for building library objects.
11581 pic_flag=$lt_lt_prog_compiler_pic
11582 pic_mode=$pic_mode
11583
11584 # What is the maximum length of a command?
11585 max_cmd_len=$lt_cv_sys_max_cmd_len
11586
11587 # Does compiler simultaneously support -c and -o options?
11588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11589
11590 # Must we lock files when doing compilation?
11591 need_locks=$lt_need_locks
11592
11593 # Do we need the lib prefix for modules?
11594 need_lib_prefix=$need_lib_prefix
11595
11596 # Do we need a version for libraries?
11597 need_version=$need_version
11598
11599 # Whether dlopen is supported.
11600 dlopen_support=$enable_dlopen
11601
11602 # Whether dlopen of programs is supported.
11603 dlopen_self=$enable_dlopen_self
11604
11605 # Whether dlopen of statically linked programs is supported.
11606 dlopen_self_static=$enable_dlopen_self_static
11607
11608 # Compiler flag to prevent dynamic linking.
11609 link_static_flag=$lt_lt_prog_compiler_static
11610
11611 # Compiler flag to turn off builtin functions.
11612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11613
11614 # Compiler flag to allow reflexive dlopens.
11615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11616
11617 # Compiler flag to generate shared objects directly from archives.
11618 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11619
11620 # Compiler flag to generate thread-safe objects.
11621 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11622
11623 # Library versioning type.
11624 version_type=$version_type
11625
11626 # Format of library name prefix.
11627 libname_spec=$lt_libname_spec
11628
11629 # List of archive names. First name is the real one, the rest are links.
11630 # The last name is the one that the linker finds with -lNAME.
11631 library_names_spec=$lt_library_names_spec
11632
11633 # The coded name of the library, if different from the real name.
11634 soname_spec=$lt_soname_spec
11635
11636 # Commands used to build and install an old-style archive.
11637 RANLIB=$lt_RANLIB
11638 old_archive_cmds=$lt_old_archive_cmds
11639 old_postinstall_cmds=$lt_old_postinstall_cmds
11640 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11641
11642 # Create an old-style archive from a shared archive.
11643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11644
11645 # Create a temporary old-style archive to link instead of a shared archive.
11646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11647
11648 # Commands used to build and install a shared archive.
11649 archive_cmds=$lt_archive_cmds
11650 archive_expsym_cmds=$lt_archive_expsym_cmds
11651 postinstall_cmds=$lt_postinstall_cmds
11652 postuninstall_cmds=$lt_postuninstall_cmds
11653
11654 # Commands used to build a loadable module (assumed same as above if empty)
11655 module_cmds=$lt_module_cmds
11656 module_expsym_cmds=$lt_module_expsym_cmds
11657
11658 # Commands to strip libraries.
11659 old_striplib=$lt_old_striplib
11660 striplib=$lt_striplib
11661
11662 # Dependencies to place before the objects being linked to create a
11663 # shared library.
11664 predep_objects=$lt_predep_objects
11665
11666 # Dependencies to place after the objects being linked to create a
11667 # shared library.
11668 postdep_objects=$lt_postdep_objects
11669
11670 # Dependencies to place before the objects being linked to create a
11671 # shared library.
11672 predeps=$lt_predeps
11673
11674 # Dependencies to place after the objects being linked to create a
11675 # shared library.
11676 postdeps=$lt_postdeps
11677
11678 # The library search path used internally by the compiler when linking
11679 # a shared library.
11680 compiler_lib_search_path=$lt_compiler_lib_search_path
11681
11682 # Method to check whether dependent libraries are shared objects.
11683 deplibs_check_method=$lt_deplibs_check_method
11684
11685 # Command to use when deplibs_check_method == file_magic.
11686 file_magic_cmd=$lt_file_magic_cmd
11687
11688 # Flag that allows shared libraries with undefined symbols to be built.
11689 allow_undefined_flag=$lt_allow_undefined_flag
11690
11691 # Flag that forces no undefined symbols.
11692 no_undefined_flag=$lt_no_undefined_flag
11693
11694 # Commands used to finish a libtool library installation in a directory.
11695 finish_cmds=$lt_finish_cmds
11696
11697 # Same as above, but a single script fragment to be evaled but not shown.
11698 finish_eval=$lt_finish_eval
11699
11700 # Take the output of nm and produce a listing of raw symbols and C names.
11701 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11702
11703 # Transform the output of nm in a proper C declaration
11704 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11705
11706 # Transform the output of nm in a C name address pair
11707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11708
11709 # This is the shared library runtime path variable.
11710 runpath_var=$runpath_var
11711
11712 # This is the shared library path variable.
11713 shlibpath_var=$shlibpath_var
11714
11715 # Is shlibpath searched before the hard-coded library search path?
11716 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11717
11718 # How to hardcode a shared library path into an executable.
11719 hardcode_action=$hardcode_action
11720
11721 # Whether we should hardcode library paths into libraries.
11722 hardcode_into_libs=$hardcode_into_libs
11723
11724 # Flag to hardcode \$libdir into a binary during linking.
11725 # This must work even if \$libdir does not exist.
11726 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11727
11728 # If ld is used when linking, flag to hardcode \$libdir into
11729 # a binary during linking. This must work even if \$libdir does
11730 # not exist.
11731 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11732
11733 # Whether we need a single -rpath flag with a separated argument.
11734 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11735
11736 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11737 # resulting binary.
11738 hardcode_direct=$hardcode_direct
11739
11740 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11741 # resulting binary.
11742 hardcode_minus_L=$hardcode_minus_L
11743
11744 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11745 # the resulting binary.
11746 hardcode_shlibpath_var=$hardcode_shlibpath_var
11747
11748 # Set to yes if building a shared library automatically hardcodes DIR into the library
11749 # and all subsequent libraries and executables linked against it.
11750 hardcode_automatic=$hardcode_automatic
11751
11752 # Variables whose values should be saved in libtool wrapper scripts and
11753 # restored at relink time.
11754 variables_saved_for_relink="$variables_saved_for_relink"
11755
11756 # Whether libtool must link a program against all its dependency libraries.
11757 link_all_deplibs=$link_all_deplibs
11758
11759 # Compile-time system search path for libraries
11760 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11761
11762 # Run-time system search path for libraries
11763 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11764
11765 # Fix the shell variable \$srcfile for the compiler.
11766 fix_srcfile_path=$lt_fix_srcfile_path
11767
11768 # Set to yes if exported symbols are required.
11769 always_export_symbols=$always_export_symbols
11770
11771 # The commands to list exported symbols.
11772 export_symbols_cmds=$lt_export_symbols_cmds
11773
11774 # The commands to extract the exported symbol list from a shared archive.
11775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11776
11777 # Symbols that should not be listed in the preloaded symbols.
11778 exclude_expsyms=$lt_exclude_expsyms
11779
11780 # Symbols that must always be exported.
11781 include_expsyms=$lt_include_expsyms
11782
11783 # ### END LIBTOOL CONFIG
11784
11785 __EOF__
11786
11787
11788 case $host_os in
11789 aix3*)
11790 cat <<\EOF >> "$cfgfile"
11791
11792 # AIX sometimes has problems with the GCC collect2 program. For some
11793 # reason, if we set the COLLECT_NAMES environment variable, the problems
11794 # vanish in a puff of smoke.
11795 if test "X${COLLECT_NAMES+set}" != Xset; then
11796 COLLECT_NAMES=
11797 export COLLECT_NAMES
11798 fi
11799 EOF
11800 ;;
11801 esac
11802
11803 # We use sed instead of cat because bash on DJGPP gets confused if
11804 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11805 # text mode, it properly converts lines to CR/LF. This bash problem
11806 # is reportedly fixed, but why not run on old versions too?
11807 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11808
11809 mv -f "$cfgfile" "$ofile" || \
11810 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11811 chmod +x "$ofile"
11812
11813 else
11814 # If there is no Makefile yet, we rely on a make rule to execute
11815 # `config.status --recheck' to rerun these tests and create the
11816 # libtool script then.
11817 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11818 if test -f "$ltmain_in"; then
11819 test -f Makefile && make "$ltmain"
11820 fi
11821 fi
11822
11823
11824 ac_ext=c
11825 ac_cpp='$CPP $CPPFLAGS'
11826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11829
11830 CC="$lt_save_CC"
11831
11832
11833 # Check whether --with-tags was given.
11834 if test "${with_tags+set}" = set; then
11835 withval=$with_tags; tagnames="$withval"
11836 fi
11837
11838
11839 if test -f "$ltmain" && test -n "$tagnames"; then
11840 if test ! -f "${ofile}"; then
11841 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11842 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11843 fi
11844
11845 if test -z "$LTCC"; then
11846 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11847 if test -z "$LTCC"; then
11848 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11849 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11850 else
11851 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11852 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11853 fi
11854 fi
11855 if test -z "$LTCFLAGS"; then
11856 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11857 fi
11858
11859 # Extract list of available tagged configurations in $ofile.
11860 # Note that this assumes the entire list is on one line.
11861 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11862
11863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11864 for tagname in $tagnames; do
11865 IFS="$lt_save_ifs"
11866 # Check whether tagname contains only valid characters
11867 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11868 "") ;;
11869 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11870 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11871 { (exit 1); exit 1; }; }
11872 ;;
11873 esac
11874
11875 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11876 then
11877 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11878 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11879 { (exit 1); exit 1; }; }
11880 fi
11881
11882 # Update the list of available tags.
11883 if test -n "$tagname"; then
11884 echo appending configuration tag \"$tagname\" to $ofile
11885
11886 case $tagname in
11887 CXX)
11888 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11889 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11890 (test "X$CXX" != "Xg++"))) ; then
11891 ac_ext=cpp
11892 ac_cpp='$CXXCPP $CPPFLAGS'
11893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11896
11897
11898
11899
11900 archive_cmds_need_lc_CXX=no
11901 allow_undefined_flag_CXX=
11902 always_export_symbols_CXX=no
11903 archive_expsym_cmds_CXX=
11904 export_dynamic_flag_spec_CXX=
11905 hardcode_direct_CXX=no
11906 hardcode_libdir_flag_spec_CXX=
11907 hardcode_libdir_flag_spec_ld_CXX=
11908 hardcode_libdir_separator_CXX=
11909 hardcode_minus_L_CXX=no
11910 hardcode_shlibpath_var_CXX=unsupported
11911 hardcode_automatic_CXX=no
11912 module_cmds_CXX=
11913 module_expsym_cmds_CXX=
11914 link_all_deplibs_CXX=unknown
11915 old_archive_cmds_CXX=$old_archive_cmds
11916 no_undefined_flag_CXX=
11917 whole_archive_flag_spec_CXX=
11918 enable_shared_with_static_runtimes_CXX=no
11919
11920 # Dependencies to place before and after the object being linked:
11921 predep_objects_CXX=
11922 postdep_objects_CXX=
11923 predeps_CXX=
11924 postdeps_CXX=
11925 compiler_lib_search_path_CXX=
11926
11927 # Source file extension for C++ test sources.
11928 ac_ext=cpp
11929
11930 # Object file extension for compiled C++ test sources.
11931 objext=o
11932 objext_CXX=$objext
11933
11934 # Code to be used in simple compile tests
11935 lt_simple_compile_test_code="int some_variable = 0;"
11936
11937 # Code to be used in simple link tests
11938 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11939
11940 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11941
11942 # If no C compiler was specified, use CC.
11943 LTCC=${LTCC-"$CC"}
11944
11945 # If no C compiler flags were specified, use CFLAGS.
11946 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11947
11948 # Allow CC to be a program name with arguments.
11949 compiler=$CC
11950
11951
11952 # save warnings/boilerplate of simple test code
11953 ac_outfile=conftest.$ac_objext
11954 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11955 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11956 _lt_compiler_boilerplate=`cat conftest.err`
11957 $rm conftest*
11958
11959 ac_outfile=conftest.$ac_objext
11960 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11961 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11962 _lt_linker_boilerplate=`cat conftest.err`
11963 $rm conftest*
11964
11965
11966 # Allow CC to be a program name with arguments.
11967 lt_save_CC=$CC
11968 lt_save_LD=$LD
11969 lt_save_GCC=$GCC
11970 GCC=$GXX
11971 lt_save_with_gnu_ld=$with_gnu_ld
11972 lt_save_path_LD=$lt_cv_path_LD
11973 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11974 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11975 else
11976 $as_unset lt_cv_prog_gnu_ld
11977 fi
11978 if test -n "${lt_cv_path_LDCXX+set}"; then
11979 lt_cv_path_LD=$lt_cv_path_LDCXX
11980 else
11981 $as_unset lt_cv_path_LD
11982 fi
11983 test -z "${LDCXX+set}" || LD=$LDCXX
11984 CC=${CXX-"c++"}
11985 compiler=$CC
11986 compiler_CXX=$CC
11987 for cc_temp in $compiler""; do
11988 case $cc_temp in
11989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11991 \-*) ;;
11992 *) break;;
11993 esac
11994 done
11995 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11996
11997
11998 # We don't want -fno-exception wen compiling C++ code, so set the
11999 # no_builtin_flag separately
12000 if test "$GXX" = yes; then
12001 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12002 else
12003 lt_prog_compiler_no_builtin_flag_CXX=
12004 fi
12005
12006 if test "$GXX" = yes; then
12007 # Set up default GNU C++ configuration
12008
12009
12010 # Check whether --with-gnu-ld was given.
12011 if test "${with_gnu_ld+set}" = set; then
12012 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12013 else
12014 with_gnu_ld=no
12015 fi
12016
12017 ac_prog=ld
12018 if test "$GCC" = yes; then
12019 # Check if gcc -print-prog-name=ld gives a path.
12020 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12021 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12022 case $host in
12023 *-*-mingw*)
12024 # gcc leaves a trailing carriage return which upsets mingw
12025 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12026 *)
12027 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12028 esac
12029 case $ac_prog in
12030 # Accept absolute paths.
12031 [\\/]* | ?:[\\/]*)
12032 re_direlt='/[^/][^/]*/\.\./'
12033 # Canonicalize the pathname of ld
12034 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12035 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12036 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12037 done
12038 test -z "$LD" && LD="$ac_prog"
12039 ;;
12040 "")
12041 # If it fails, then pretend we aren't using GCC.
12042 ac_prog=ld
12043 ;;
12044 *)
12045 # If it is relative, then search for the first ld in PATH.
12046 with_gnu_ld=unknown
12047 ;;
12048 esac
12049 elif test "$with_gnu_ld" = yes; then
12050 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12051 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12052 else
12053 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12054 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12055 fi
12056 if test "${lt_cv_path_LD+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 if test -z "$LD"; then
12060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12061 for ac_dir in $PATH; do
12062 IFS="$lt_save_ifs"
12063 test -z "$ac_dir" && ac_dir=.
12064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12065 lt_cv_path_LD="$ac_dir/$ac_prog"
12066 # Check to see if the program is GNU ld. I'd rather use --version,
12067 # but apparently some variants of GNU ld only accept -v.
12068 # Break only if it was the GNU/non-GNU ld that we prefer.
12069 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12070 *GNU* | *'with BFD'*)
12071 test "$with_gnu_ld" != no && break
12072 ;;
12073 *)
12074 test "$with_gnu_ld" != yes && break
12075 ;;
12076 esac
12077 fi
12078 done
12079 IFS="$lt_save_ifs"
12080 else
12081 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12082 fi
12083 fi
12084
12085 LD="$lt_cv_path_LD"
12086 if test -n "$LD"; then
12087 { echo "$as_me:$LINENO: result: $LD" >&5
12088 echo "${ECHO_T}$LD" >&6; }
12089 else
12090 { echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6; }
12092 fi
12093 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12094 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12095 { (exit 1); exit 1; }; }
12096 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12097 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12098 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12102 case `$LD -v 2>&1 </dev/null` in
12103 *GNU* | *'with BFD'*)
12104 lt_cv_prog_gnu_ld=yes
12105 ;;
12106 *)
12107 lt_cv_prog_gnu_ld=no
12108 ;;
12109 esac
12110 fi
12111 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12112 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12113 with_gnu_ld=$lt_cv_prog_gnu_ld
12114
12115
12116
12117 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12118 # archiving commands below assume that GNU ld is being used.
12119 if test "$with_gnu_ld" = yes; then
12120 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12121 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'
12122
12123 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12124 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12125
12126 # If archive_cmds runs LD, not CC, wlarc should be empty
12127 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12128 # investigate it a little bit more. (MM)
12129 wlarc='${wl}'
12130
12131 # ancient GNU ld didn't support --whole-archive et. al.
12132 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12133 grep 'no-whole-archive' > /dev/null; then
12134 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12135 else
12136 whole_archive_flag_spec_CXX=
12137 fi
12138 else
12139 with_gnu_ld=no
12140 wlarc=
12141
12142 # A generic and very simple default shared library creation
12143 # command for GNU C++ for the case where it uses the native
12144 # linker, instead of GNU ld. If possible, this setting should
12145 # overridden to take advantage of the native linker features on
12146 # the platform it is being used on.
12147 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12148 fi
12149
12150 # Commands to make compiler produce verbose output that lists
12151 # what "hidden" libraries, object files and flags are used when
12152 # linking a shared library.
12153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12154
12155 else
12156 GXX=no
12157 with_gnu_ld=no
12158 wlarc=
12159 fi
12160
12161 # PORTME: fill in a description of your system's C++ link characteristics
12162 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12163 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12164 ld_shlibs_CXX=yes
12165 case $host_os in
12166 aix3*)
12167 # FIXME: insert proper C++ library support
12168 ld_shlibs_CXX=no
12169 ;;
12170 aix4* | aix5*)
12171 if test "$host_cpu" = ia64; then
12172 # On IA64, the linker does run time linking by default, so we don't
12173 # have to do anything special.
12174 aix_use_runtimelinking=no
12175 exp_sym_flag='-Bexport'
12176 no_entry_flag=""
12177 else
12178 aix_use_runtimelinking=no
12179
12180 # Test if we are trying to use run time linking or normal
12181 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12182 # need to do runtime linking.
12183 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12184 for ld_flag in $LDFLAGS; do
12185 case $ld_flag in
12186 *-brtl*)
12187 aix_use_runtimelinking=yes
12188 break
12189 ;;
12190 esac
12191 done
12192 ;;
12193 esac
12194
12195 exp_sym_flag='-bexport'
12196 no_entry_flag='-bnoentry'
12197 fi
12198
12199 # When large executables or shared objects are built, AIX ld can
12200 # have problems creating the table of contents. If linking a library
12201 # or program results in "error TOC overflow" add -mminimal-toc to
12202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12204
12205 archive_cmds_CXX=''
12206 hardcode_direct_CXX=yes
12207 hardcode_libdir_separator_CXX=':'
12208 link_all_deplibs_CXX=yes
12209
12210 if test "$GXX" = yes; then
12211 case $host_os in aix4.[012]|aix4.[012].*)
12212 # We only want to do this on AIX 4.2 and lower, the check
12213 # below for broken collect2 doesn't work under 4.3+
12214 collect2name=`${CC} -print-prog-name=collect2`
12215 if test -f "$collect2name" && \
12216 strings "$collect2name" | grep resolve_lib_name >/dev/null
12217 then
12218 # We have reworked collect2
12219 :
12220 else
12221 # We have old collect2
12222 hardcode_direct_CXX=unsupported
12223 # It fails to find uninstalled libraries when the uninstalled
12224 # path is not listed in the libpath. Setting hardcode_minus_L
12225 # to unsupported forces relinking
12226 hardcode_minus_L_CXX=yes
12227 hardcode_libdir_flag_spec_CXX='-L$libdir'
12228 hardcode_libdir_separator_CXX=
12229 fi
12230 ;;
12231 esac
12232 shared_flag='-shared'
12233 if test "$aix_use_runtimelinking" = yes; then
12234 shared_flag="$shared_flag "'${wl}-G'
12235 fi
12236 else
12237 # not using gcc
12238 if test "$host_cpu" = ia64; then
12239 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12240 # chokes on -Wl,-G. The following line is correct:
12241 shared_flag='-G'
12242 else
12243 if test "$aix_use_runtimelinking" = yes; then
12244 shared_flag='${wl}-G'
12245 else
12246 shared_flag='${wl}-bM:SRE'
12247 fi
12248 fi
12249 fi
12250
12251 # It seems that -bexpall does not export symbols beginning with
12252 # underscore (_), so it is better to generate a list of symbols to export.
12253 always_export_symbols_CXX=yes
12254 if test "$aix_use_runtimelinking" = yes; then
12255 # Warning - without using the other runtime loading flags (-brtl),
12256 # -berok will link without error, but may produce a broken library.
12257 allow_undefined_flag_CXX='-berok'
12258 # Determine the default libpath from the value encoded in an empty executable.
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265
12266 int
12267 main ()
12268 {
12269
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_cxx_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext &&
12291 $as_test_x conftest$ac_exeext; then
12292
12293 lt_aix_libpath_sed='
12294 /Import File Strings/,/^$/ {
12295 /^0/ {
12296 s/^0 *\(.*\)$/\1/
12297 p
12298 }
12299 }'
12300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12301 # Check for a 64-bit object if we didn't find anything.
12302 if test -z "$aix_libpath"; then
12303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12304 fi
12305 else
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309
12310 fi
12311
12312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12313 conftest$ac_exeext conftest.$ac_ext
12314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12315
12316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12317
12318 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"
12319 else
12320 if test "$host_cpu" = ia64; then
12321 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12322 allow_undefined_flag_CXX="-z nodefs"
12323 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"
12324 else
12325 # Determine the default libpath from the value encoded in an empty executable.
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332
12333 int
12334 main ()
12335 {
12336
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_link") 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_cxx_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest$ac_exeext &&
12358 $as_test_x conftest$ac_exeext; then
12359
12360 lt_aix_libpath_sed='
12361 /Import File Strings/,/^$/ {
12362 /^0/ {
12363 s/^0 *\(.*\)$/\1/
12364 p
12365 }
12366 }'
12367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12368 # Check for a 64-bit object if we didn't find anything.
12369 if test -z "$aix_libpath"; then
12370 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12371 fi
12372 else
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376
12377 fi
12378
12379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12380 conftest$ac_exeext conftest.$ac_ext
12381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12382
12383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12384 # Warning - without using the other run time loading flags,
12385 # -berok will link without error, but may produce a broken library.
12386 no_undefined_flag_CXX=' ${wl}-bernotok'
12387 allow_undefined_flag_CXX=' ${wl}-berok'
12388 # Exported symbols can be pulled into shared objects from archives
12389 whole_archive_flag_spec_CXX='$convenience'
12390 archive_cmds_need_lc_CXX=yes
12391 # This is similar to how AIX traditionally builds its shared libraries.
12392 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'
12393 fi
12394 fi
12395 ;;
12396
12397 beos*)
12398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12399 allow_undefined_flag_CXX=unsupported
12400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12401 # support --undefined. This deserves some investigation. FIXME
12402 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403 else
12404 ld_shlibs_CXX=no
12405 fi
12406 ;;
12407
12408 chorus*)
12409 case $cc_basename in
12410 *)
12411 # FIXME: insert proper C++ library support
12412 ld_shlibs_CXX=no
12413 ;;
12414 esac
12415 ;;
12416
12417 cygwin* | mingw* | pw32*)
12418 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12419 # as there is no search path for DLLs.
12420 hardcode_libdir_flag_spec_CXX='-L$libdir'
12421 allow_undefined_flag_CXX=unsupported
12422 always_export_symbols_CXX=no
12423 enable_shared_with_static_runtimes_CXX=yes
12424
12425 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12426 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'
12427 # If the export-symbols file already is a .def file (1st line
12428 # is EXPORTS), use it as is; otherwise, prepend...
12429 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12430 cp $export_symbols $output_objdir/$soname.def;
12431 else
12432 echo EXPORTS > $output_objdir/$soname.def;
12433 cat $export_symbols >> $output_objdir/$soname.def;
12434 fi~
12435 $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'
12436 else
12437 ld_shlibs_CXX=no
12438 fi
12439 ;;
12440 darwin* | rhapsody*)
12441 case $host_os in
12442 rhapsody* | darwin1.[012])
12443 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12444 ;;
12445 *) # Darwin 1.3 on
12446 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12447 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12448 else
12449 case ${MACOSX_DEPLOYMENT_TARGET} in
12450 10.[012])
12451 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12452 ;;
12453 10.*)
12454 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12455 ;;
12456 esac
12457 fi
12458 ;;
12459 esac
12460 archive_cmds_need_lc_CXX=no
12461 hardcode_direct_CXX=no
12462 hardcode_automatic_CXX=yes
12463 hardcode_shlibpath_var_CXX=unsupported
12464 whole_archive_flag_spec_CXX=''
12465 link_all_deplibs_CXX=yes
12466
12467 if test "$GXX" = yes ; then
12468 lt_int_apple_cc_single_mod=no
12469 output_verbose_link_cmd='echo'
12470 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12471 lt_int_apple_cc_single_mod=yes
12472 fi
12473 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12474 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12475 else
12476 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'
12477 fi
12478 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12479 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12480 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12481 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12482 else
12483 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12484 fi
12485 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}'
12486 else
12487 case $cc_basename in
12488 xlc*)
12489 output_verbose_link_cmd='echo'
12490 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'
12491 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12492 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12493 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}'
12494 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}'
12495 ;;
12496 *)
12497 ld_shlibs_CXX=no
12498 ;;
12499 esac
12500 fi
12501 ;;
12502
12503 dgux*)
12504 case $cc_basename in
12505 ec++*)
12506 # FIXME: insert proper C++ library support
12507 ld_shlibs_CXX=no
12508 ;;
12509 ghcx*)
12510 # Green Hills C++ Compiler
12511 # FIXME: insert proper C++ library support
12512 ld_shlibs_CXX=no
12513 ;;
12514 *)
12515 # FIXME: insert proper C++ library support
12516 ld_shlibs_CXX=no
12517 ;;
12518 esac
12519 ;;
12520 freebsd[12]*)
12521 # C++ shared libraries reported to be fairly broken before switch to ELF
12522 ld_shlibs_CXX=no
12523 ;;
12524 freebsd-elf*)
12525 archive_cmds_need_lc_CXX=no
12526 ;;
12527 freebsd* | dragonfly*)
12528 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12529 # conventions
12530 ld_shlibs_CXX=yes
12531 ;;
12532 gnu*)
12533 ;;
12534 hpux9*)
12535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12536 hardcode_libdir_separator_CXX=:
12537 export_dynamic_flag_spec_CXX='${wl}-E'
12538 hardcode_direct_CXX=yes
12539 hardcode_minus_L_CXX=yes # Not in the search PATH,
12540 # but as the default
12541 # location of the library.
12542
12543 case $cc_basename in
12544 CC*)
12545 # FIXME: insert proper C++ library support
12546 ld_shlibs_CXX=no
12547 ;;
12548 aCC*)
12549 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'
12550 # Commands to make compiler produce verbose output that lists
12551 # what "hidden" libraries, object files and flags are used when
12552 # linking a shared library.
12553 #
12554 # There doesn't appear to be a way to prevent this compiler from
12555 # explicitly linking system object files so we need to strip them
12556 # from the output so that they don't get included in the library
12557 # dependencies.
12558 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'
12559 ;;
12560 *)
12561 if test "$GXX" = yes; then
12562 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'
12563 else
12564 # FIXME: insert proper C++ library support
12565 ld_shlibs_CXX=no
12566 fi
12567 ;;
12568 esac
12569 ;;
12570 hpux10*|hpux11*)
12571 if test $with_gnu_ld = no; then
12572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12573 hardcode_libdir_separator_CXX=:
12574
12575 case $host_cpu in
12576 hppa*64*|ia64*) ;;
12577 *)
12578 export_dynamic_flag_spec_CXX='${wl}-E'
12579 ;;
12580 esac
12581 fi
12582 case $host_cpu in
12583 hppa*64*|ia64*)
12584 hardcode_direct_CXX=no
12585 hardcode_shlibpath_var_CXX=no
12586 ;;
12587 *)
12588 hardcode_direct_CXX=yes
12589 hardcode_minus_L_CXX=yes # Not in the search PATH,
12590 # but as the default
12591 # location of the library.
12592 ;;
12593 esac
12594
12595 case $cc_basename in
12596 CC*)
12597 # FIXME: insert proper C++ library support
12598 ld_shlibs_CXX=no
12599 ;;
12600 aCC*)
12601 case $host_cpu in
12602 hppa*64*)
12603 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12604 ;;
12605 ia64*)
12606 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12607 ;;
12608 *)
12609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12610 ;;
12611 esac
12612 # Commands to make compiler produce verbose output that lists
12613 # what "hidden" libraries, object files and flags are used when
12614 # linking a shared library.
12615 #
12616 # There doesn't appear to be a way to prevent this compiler from
12617 # explicitly linking system object files so we need to strip them
12618 # from the output so that they don't get included in the library
12619 # dependencies.
12620 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'
12621 ;;
12622 *)
12623 if test "$GXX" = yes; then
12624 if test $with_gnu_ld = no; then
12625 case $host_cpu in
12626 hppa*64*)
12627 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12628 ;;
12629 ia64*)
12630 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12631 ;;
12632 *)
12633 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'
12634 ;;
12635 esac
12636 fi
12637 else
12638 # FIXME: insert proper C++ library support
12639 ld_shlibs_CXX=no
12640 fi
12641 ;;
12642 esac
12643 ;;
12644 interix[3-9]*)
12645 hardcode_direct_CXX=no
12646 hardcode_shlibpath_var_CXX=no
12647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12648 export_dynamic_flag_spec_CXX='${wl}-E'
12649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12650 # Instead, shared libraries are loaded at an image base (0x10000000 by
12651 # default) and relocated if they conflict, which is a slow very memory
12652 # consuming and fragmenting process. To avoid this, we pick a random,
12653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12655 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'
12656 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'
12657 ;;
12658 irix5* | irix6*)
12659 case $cc_basename in
12660 CC*)
12661 # SGI C++
12662 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'
12663
12664 # Archives containing C++ object files must be created using
12665 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12666 # necessary to make sure instantiated templates are included
12667 # in the archive.
12668 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12669 ;;
12670 *)
12671 if test "$GXX" = yes; then
12672 if test "$with_gnu_ld" = no; then
12673 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'
12674 else
12675 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'
12676 fi
12677 fi
12678 link_all_deplibs_CXX=yes
12679 ;;
12680 esac
12681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12682 hardcode_libdir_separator_CXX=:
12683 ;;
12684 linux* | k*bsd*-gnu)
12685 case $cc_basename in
12686 KCC*)
12687 # Kuck and Associates, Inc. (KAI) C++ Compiler
12688
12689 # KCC will only create a shared library if the output file
12690 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12691 # to its proper name (with version) after linking.
12692 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'
12693 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'
12694 # Commands to make compiler produce verbose output that lists
12695 # what "hidden" libraries, object files and flags are used when
12696 # linking a shared library.
12697 #
12698 # There doesn't appear to be a way to prevent this compiler from
12699 # explicitly linking system object files so we need to strip them
12700 # from the output so that they don't get included in the library
12701 # dependencies.
12702 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'
12703
12704 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12706
12707 # Archives containing C++ object files must be created using
12708 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12709 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12710 ;;
12711 icpc*)
12712 # Intel C++
12713 with_gnu_ld=yes
12714 # version 8.0 and above of icpc choke on multiply defined symbols
12715 # if we add $predep_objects and $postdep_objects, however 7.1 and
12716 # earlier do not add the objects themselves.
12717 case `$CC -V 2>&1` in
12718 *"Version 7."*)
12719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720 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'
12721 ;;
12722 *) # Version 8.0 or newer
12723 tmp_idyn=
12724 case $host_cpu in
12725 ia64*) tmp_idyn=' -i_dynamic';;
12726 esac
12727 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12728 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'
12729 ;;
12730 esac
12731 archive_cmds_need_lc_CXX=no
12732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12734 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12735 ;;
12736 pgCC*)
12737 # Portland Group C++ compiler
12738 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12739 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'
12740
12741 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12743 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'
12744 ;;
12745 cxx*)
12746 # Compaq C++
12747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12748 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'
12749
12750 runpath_var=LD_RUN_PATH
12751 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12752 hardcode_libdir_separator_CXX=:
12753
12754 # Commands to make compiler produce verbose output that lists
12755 # what "hidden" libraries, object files and flags are used when
12756 # linking a shared library.
12757 #
12758 # There doesn't appear to be a way to prevent this compiler from
12759 # explicitly linking system object files so we need to strip them
12760 # from the output so that they don't get included in the library
12761 # dependencies.
12762 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'
12763 ;;
12764 *)
12765 case `$CC -V 2>&1 | sed 5q` in
12766 *Sun\ C*)
12767 # Sun C++ 5.9
12768 no_undefined_flag_CXX=' -zdefs'
12769 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12770 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'
12771 hardcode_libdir_flag_spec_CXX='-R$libdir'
12772 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'
12773
12774 # Not sure whether something based on
12775 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12776 # would be better.
12777 output_verbose_link_cmd='echo'
12778
12779 # Archives containing C++ object files must be created using
12780 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12781 # necessary to make sure instantiated templates are included
12782 # in the archive.
12783 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12784 ;;
12785 esac
12786 ;;
12787 esac
12788 ;;
12789 lynxos*)
12790 # FIXME: insert proper C++ library support
12791 ld_shlibs_CXX=no
12792 ;;
12793 m88k*)
12794 # FIXME: insert proper C++ library support
12795 ld_shlibs_CXX=no
12796 ;;
12797 mvs*)
12798 case $cc_basename in
12799 cxx*)
12800 # FIXME: insert proper C++ library support
12801 ld_shlibs_CXX=no
12802 ;;
12803 *)
12804 # FIXME: insert proper C++ library support
12805 ld_shlibs_CXX=no
12806 ;;
12807 esac
12808 ;;
12809 netbsd* | netbsdelf*-gnu)
12810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12811 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12812 wlarc=
12813 hardcode_libdir_flag_spec_CXX='-R$libdir'
12814 hardcode_direct_CXX=yes
12815 hardcode_shlibpath_var_CXX=no
12816 fi
12817 # Workaround some broken pre-1.5 toolchains
12818 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12819 ;;
12820 openbsd2*)
12821 # C++ shared libraries are fairly broken
12822 ld_shlibs_CXX=no
12823 ;;
12824 openbsd*)
12825 if test -f /usr/libexec/ld.so; then
12826 hardcode_direct_CXX=yes
12827 hardcode_shlibpath_var_CXX=no
12828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12831 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12832 export_dynamic_flag_spec_CXX='${wl}-E'
12833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12834 fi
12835 output_verbose_link_cmd='echo'
12836 else
12837 ld_shlibs_CXX=no
12838 fi
12839 ;;
12840 osf3*)
12841 case $cc_basename in
12842 KCC*)
12843 # Kuck and Associates, Inc. (KAI) C++ Compiler
12844
12845 # KCC will only create a shared library if the output file
12846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12847 # to its proper name (with version) after linking.
12848 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'
12849
12850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12851 hardcode_libdir_separator_CXX=:
12852
12853 # Archives containing C++ object files must be created using
12854 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12855 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12856
12857 ;;
12858 RCC*)
12859 # Rational C++ 2.4.1
12860 # FIXME: insert proper C++ library support
12861 ld_shlibs_CXX=no
12862 ;;
12863 cxx*)
12864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12865 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'
12866
12867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12868 hardcode_libdir_separator_CXX=:
12869
12870 # Commands to make compiler produce verbose output that lists
12871 # what "hidden" libraries, object files and flags are used when
12872 # linking a shared library.
12873 #
12874 # There doesn't appear to be a way to prevent this compiler from
12875 # explicitly linking system object files so we need to strip them
12876 # from the output so that they don't get included in the library
12877 # dependencies.
12878 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'
12879 ;;
12880 *)
12881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12883 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'
12884
12885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12886 hardcode_libdir_separator_CXX=:
12887
12888 # Commands to make compiler produce verbose output that lists
12889 # what "hidden" libraries, object files and flags are used when
12890 # linking a shared library.
12891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12892
12893 else
12894 # FIXME: insert proper C++ library support
12895 ld_shlibs_CXX=no
12896 fi
12897 ;;
12898 esac
12899 ;;
12900 osf4* | osf5*)
12901 case $cc_basename in
12902 KCC*)
12903 # Kuck and Associates, Inc. (KAI) C++ Compiler
12904
12905 # KCC will only create a shared library if the output file
12906 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12907 # to its proper name (with version) after linking.
12908 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'
12909
12910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12911 hardcode_libdir_separator_CXX=:
12912
12913 # Archives containing C++ object files must be created using
12914 # the KAI C++ compiler.
12915 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12916 ;;
12917 RCC*)
12918 # Rational C++ 2.4.1
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922 cxx*)
12923 allow_undefined_flag_CXX=' -expect_unresolved \*'
12924 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'
12925 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12926 echo "-hidden">> $lib.exp~
12927 $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~
12928 $rm $lib.exp'
12929
12930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12931 hardcode_libdir_separator_CXX=:
12932
12933 # Commands to make compiler produce verbose output that lists
12934 # what "hidden" libraries, object files and flags are used when
12935 # linking a shared library.
12936 #
12937 # There doesn't appear to be a way to prevent this compiler from
12938 # explicitly linking system object files so we need to strip them
12939 # from the output so that they don't get included in the library
12940 # dependencies.
12941 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'
12942 ;;
12943 *)
12944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12946 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'
12947
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949 hardcode_libdir_separator_CXX=:
12950
12951 # Commands to make compiler produce verbose output that lists
12952 # what "hidden" libraries, object files and flags are used when
12953 # linking a shared library.
12954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12955
12956 else
12957 # FIXME: insert proper C++ library support
12958 ld_shlibs_CXX=no
12959 fi
12960 ;;
12961 esac
12962 ;;
12963 psos*)
12964 # FIXME: insert proper C++ library support
12965 ld_shlibs_CXX=no
12966 ;;
12967 sunos4*)
12968 case $cc_basename in
12969 CC*)
12970 # Sun C++ 4.x
12971 # FIXME: insert proper C++ library support
12972 ld_shlibs_CXX=no
12973 ;;
12974 lcc*)
12975 # Lucid
12976 # FIXME: insert proper C++ library support
12977 ld_shlibs_CXX=no
12978 ;;
12979 *)
12980 # FIXME: insert proper C++ library support
12981 ld_shlibs_CXX=no
12982 ;;
12983 esac
12984 ;;
12985 solaris*)
12986 case $cc_basename in
12987 CC*)
12988 # Sun C++ 4.2, 5.x and Centerline C++
12989 archive_cmds_need_lc_CXX=yes
12990 no_undefined_flag_CXX=' -zdefs'
12991 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12993 $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'
12994
12995 hardcode_libdir_flag_spec_CXX='-R$libdir'
12996 hardcode_shlibpath_var_CXX=no
12997 case $host_os in
12998 solaris2.[0-5] | solaris2.[0-5].*) ;;
12999 *)
13000 # The compiler driver will combine and reorder linker options,
13001 # but understands `-z linker_flag'.
13002 # Supported since Solaris 2.6 (maybe 2.5.1?)
13003 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13004 ;;
13005 esac
13006 link_all_deplibs_CXX=yes
13007
13008 output_verbose_link_cmd='echo'
13009
13010 # Archives containing C++ object files must be created using
13011 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13012 # necessary to make sure instantiated templates are included
13013 # in the archive.
13014 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13015 ;;
13016 gcx*)
13017 # Green Hills C++ Compiler
13018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13019
13020 # The C++ compiler must be used to create the archive.
13021 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13022 ;;
13023 *)
13024 # GNU C++ compiler with Solaris linker
13025 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13026 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13027 if $CC --version | grep -v '^2\.7' > /dev/null; then
13028 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13029 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13030 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13031
13032 # Commands to make compiler produce verbose output that lists
13033 # what "hidden" libraries, object files and flags are used when
13034 # linking a shared library.
13035 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13036 else
13037 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13038 # platform.
13039 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13040 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13041 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13042
13043 # Commands to make compiler produce verbose output that lists
13044 # what "hidden" libraries, object files and flags are used when
13045 # linking a shared library.
13046 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13047 fi
13048
13049 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13050 case $host_os in
13051 solaris2.[0-5] | solaris2.[0-5].*) ;;
13052 *)
13053 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13054 ;;
13055 esac
13056 fi
13057 ;;
13058 esac
13059 ;;
13060 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13061 no_undefined_flag_CXX='${wl}-z,text'
13062 archive_cmds_need_lc_CXX=no
13063 hardcode_shlibpath_var_CXX=no
13064 runpath_var='LD_RUN_PATH'
13065
13066 case $cc_basename in
13067 CC*)
13068 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13069 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 ;;
13071 *)
13072 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 ;;
13075 esac
13076 ;;
13077 sysv5* | sco3.2v5* | sco5v6*)
13078 # Note: We can NOT use -z defs as we might desire, because we do not
13079 # link with -lc, and that would cause any symbols used from libc to
13080 # always be unresolved, which means just about no library would
13081 # ever link correctly. If we're not using GNU ld we use -z text
13082 # though, which does catch some bad symbols but isn't as heavy-handed
13083 # as -z defs.
13084 # For security reasons, it is highly recommended that you always
13085 # use absolute paths for naming shared libraries, and exclude the
13086 # DT_RUNPATH tag from executables and libraries. But doing so
13087 # requires that you compile everything twice, which is a pain.
13088 # So that behaviour is only enabled if SCOABSPATH is set to a
13089 # non-empty value in the environment. Most likely only useful for
13090 # creating official distributions of packages.
13091 # This is a hack until libtool officially supports absolute path
13092 # names for shared libraries.
13093 no_undefined_flag_CXX='${wl}-z,text'
13094 allow_undefined_flag_CXX='${wl}-z,nodefs'
13095 archive_cmds_need_lc_CXX=no
13096 hardcode_shlibpath_var_CXX=no
13097 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13098 hardcode_libdir_separator_CXX=':'
13099 link_all_deplibs_CXX=yes
13100 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13101 runpath_var='LD_RUN_PATH'
13102
13103 case $cc_basename in
13104 CC*)
13105 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13107 ;;
13108 *)
13109 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13110 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13111 ;;
13112 esac
13113 ;;
13114 tandem*)
13115 case $cc_basename in
13116 NCC*)
13117 # NonStop-UX NCC 3.20
13118 # FIXME: insert proper C++ library support
13119 ld_shlibs_CXX=no
13120 ;;
13121 *)
13122 # FIXME: insert proper C++ library support
13123 ld_shlibs_CXX=no
13124 ;;
13125 esac
13126 ;;
13127 vxworks*)
13128 # FIXME: insert proper C++ library support
13129 ld_shlibs_CXX=no
13130 ;;
13131 *)
13132 # FIXME: insert proper C++ library support
13133 ld_shlibs_CXX=no
13134 ;;
13135 esac
13136 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13137 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13138 test "$ld_shlibs_CXX" = no && can_build_shared=no
13139
13140 GCC_CXX="$GXX"
13141 LD_CXX="$LD"
13142
13143
13144 cat > conftest.$ac_ext <<EOF
13145 class Foo
13146 {
13147 public:
13148 Foo (void) { a = 0; }
13149 private:
13150 int a;
13151 };
13152 EOF
13153
13154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155 (eval $ac_compile) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; then
13159 # Parse the compiler output and extract the necessary
13160 # objects, libraries and library flags.
13161
13162 # Sentinel used to keep track of whether or not we are before
13163 # the conftest object file.
13164 pre_test_object_deps_done=no
13165
13166 # The `*' in the case matches for architectures that use `case' in
13167 # $output_verbose_cmd can trigger glob expansion during the loop
13168 # eval without this substitution.
13169 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13170
13171 for p in `eval $output_verbose_link_cmd`; do
13172 case $p in
13173
13174 -L* | -R* | -l*)
13175 # Some compilers place space between "-{L,R}" and the path.
13176 # Remove the space.
13177 if test $p = "-L" \
13178 || test $p = "-R"; then
13179 prev=$p
13180 continue
13181 else
13182 prev=
13183 fi
13184
13185 if test "$pre_test_object_deps_done" = no; then
13186 case $p in
13187 -L* | -R*)
13188 # Internal compiler library paths should come after those
13189 # provided the user. The postdeps already come after the
13190 # user supplied libs so there is no need to process them.
13191 if test -z "$compiler_lib_search_path_CXX"; then
13192 compiler_lib_search_path_CXX="${prev}${p}"
13193 else
13194 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13195 fi
13196 ;;
13197 # The "-l" case would never come before the object being
13198 # linked, so don't bother handling this case.
13199 esac
13200 else
13201 if test -z "$postdeps_CXX"; then
13202 postdeps_CXX="${prev}${p}"
13203 else
13204 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13205 fi
13206 fi
13207 ;;
13208
13209 *.$objext)
13210 # This assumes that the test object file only shows up
13211 # once in the compiler output.
13212 if test "$p" = "conftest.$objext"; then
13213 pre_test_object_deps_done=yes
13214 continue
13215 fi
13216
13217 if test "$pre_test_object_deps_done" = no; then
13218 if test -z "$predep_objects_CXX"; then
13219 predep_objects_CXX="$p"
13220 else
13221 predep_objects_CXX="$predep_objects_CXX $p"
13222 fi
13223 else
13224 if test -z "$postdep_objects_CXX"; then
13225 postdep_objects_CXX="$p"
13226 else
13227 postdep_objects_CXX="$postdep_objects_CXX $p"
13228 fi
13229 fi
13230 ;;
13231
13232 *) ;; # Ignore the rest.
13233
13234 esac
13235 done
13236
13237 # Clean up.
13238 rm -f a.out a.exe
13239 else
13240 echo "libtool.m4: error: problem compiling CXX test program"
13241 fi
13242
13243 $rm -f confest.$objext
13244
13245 # PORTME: override above test on systems where it is broken
13246 case $host_os in
13247 interix[3-9]*)
13248 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13249 # hack all around it, let's just trust "g++" to DTRT.
13250 predep_objects_CXX=
13251 postdep_objects_CXX=
13252 postdeps_CXX=
13253 ;;
13254
13255 linux*)
13256 case `$CC -V 2>&1 | sed 5q` in
13257 *Sun\ C*)
13258 # Sun C++ 5.9
13259 #
13260 # The more standards-conforming stlport4 library is
13261 # incompatible with the Cstd library. Avoid specifying
13262 # it if it's in CXXFLAGS. Ignore libCrun as
13263 # -library=stlport4 depends on it.
13264 case " $CXX $CXXFLAGS " in
13265 *" -library=stlport4 "*)
13266 solaris_use_stlport4=yes
13267 ;;
13268 esac
13269 if test "$solaris_use_stlport4" != yes; then
13270 postdeps_CXX='-library=Cstd -library=Crun'
13271 fi
13272 ;;
13273 esac
13274 ;;
13275
13276 solaris*)
13277 case $cc_basename in
13278 CC*)
13279 # The more standards-conforming stlport4 library is
13280 # incompatible with the Cstd library. Avoid specifying
13281 # it if it's in CXXFLAGS. Ignore libCrun as
13282 # -library=stlport4 depends on it.
13283 case " $CXX $CXXFLAGS " in
13284 *" -library=stlport4 "*)
13285 solaris_use_stlport4=yes
13286 ;;
13287 esac
13288
13289 # Adding this requires a known-good setup of shared libraries for
13290 # Sun compiler versions before 5.6, else PIC objects from an old
13291 # archive will be linked into the output, leading to subtle bugs.
13292 if test "$solaris_use_stlport4" != yes; then
13293 postdeps_CXX='-library=Cstd -library=Crun'
13294 fi
13295 ;;
13296 esac
13297 ;;
13298 esac
13299
13300
13301 case " $postdeps_CXX " in
13302 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13303 esac
13304
13305 lt_prog_compiler_wl_CXX=
13306 lt_prog_compiler_pic_CXX=
13307 lt_prog_compiler_static_CXX=
13308
13309 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13311
13312 # C++ specific cases for pic, static, wl, etc.
13313 if test "$GXX" = yes; then
13314 lt_prog_compiler_wl_CXX='-Wl,'
13315 lt_prog_compiler_static_CXX='-static'
13316
13317 case $host_os in
13318 aix*)
13319 # All AIX code is PIC.
13320 if test "$host_cpu" = ia64; then
13321 # AIX 5 now supports IA64 processor
13322 lt_prog_compiler_static_CXX='-Bstatic'
13323 fi
13324 ;;
13325 amigaos*)
13326 # FIXME: we need at least 68020 code to build shared libraries, but
13327 # adding the `-m68020' flag to GCC prevents building anything better,
13328 # like `-m68040'.
13329 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13330 ;;
13331 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13332 # PIC is the default for these OSes.
13333 ;;
13334 mingw* | cygwin* | os2* | pw32*)
13335 # This hack is so that the source file can tell whether it is being
13336 # built for inclusion in a dll (and should export symbols for example).
13337 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13338 # (--disable-auto-import) libraries
13339 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13340 ;;
13341 darwin* | rhapsody*)
13342 # PIC is the default on this platform
13343 # Common symbols not allowed in MH_DYLIB files
13344 lt_prog_compiler_pic_CXX='-fno-common'
13345 ;;
13346 *djgpp*)
13347 # DJGPP does not support shared libraries at all
13348 lt_prog_compiler_pic_CXX=
13349 ;;
13350 interix[3-9]*)
13351 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13352 # Instead, we relocate shared libraries at runtime.
13353 ;;
13354 sysv4*MP*)
13355 if test -d /usr/nec; then
13356 lt_prog_compiler_pic_CXX=-Kconform_pic
13357 fi
13358 ;;
13359 hpux*)
13360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13361 # not for PA HP-UX.
13362 case $host_cpu in
13363 hppa*64*|ia64*)
13364 ;;
13365 *)
13366 lt_prog_compiler_pic_CXX='-fPIC'
13367 ;;
13368 esac
13369 ;;
13370 *)
13371 lt_prog_compiler_pic_CXX='-fPIC'
13372 ;;
13373 esac
13374 else
13375 case $host_os in
13376 aix4* | aix5*)
13377 # All AIX code is PIC.
13378 if test "$host_cpu" = ia64; then
13379 # AIX 5 now supports IA64 processor
13380 lt_prog_compiler_static_CXX='-Bstatic'
13381 else
13382 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13383 fi
13384 ;;
13385 chorus*)
13386 case $cc_basename in
13387 cxch68*)
13388 # Green Hills C++ Compiler
13389 # _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"
13390 ;;
13391 esac
13392 ;;
13393 darwin*)
13394 # PIC is the default on this platform
13395 # Common symbols not allowed in MH_DYLIB files
13396 case $cc_basename in
13397 xlc*)
13398 lt_prog_compiler_pic_CXX='-qnocommon'
13399 lt_prog_compiler_wl_CXX='-Wl,'
13400 ;;
13401 esac
13402 ;;
13403 dgux*)
13404 case $cc_basename in
13405 ec++*)
13406 lt_prog_compiler_pic_CXX='-KPIC'
13407 ;;
13408 ghcx*)
13409 # Green Hills C++ Compiler
13410 lt_prog_compiler_pic_CXX='-pic'
13411 ;;
13412 *)
13413 ;;
13414 esac
13415 ;;
13416 freebsd* | dragonfly*)
13417 # FreeBSD uses GNU C++
13418 ;;
13419 hpux9* | hpux10* | hpux11*)
13420 case $cc_basename in
13421 CC*)
13422 lt_prog_compiler_wl_CXX='-Wl,'
13423 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13424 if test "$host_cpu" != ia64; then
13425 lt_prog_compiler_pic_CXX='+Z'
13426 fi
13427 ;;
13428 aCC*)
13429 lt_prog_compiler_wl_CXX='-Wl,'
13430 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13431 case $host_cpu in
13432 hppa*64*|ia64*)
13433 # +Z the default
13434 ;;
13435 *)
13436 lt_prog_compiler_pic_CXX='+Z'
13437 ;;
13438 esac
13439 ;;
13440 *)
13441 ;;
13442 esac
13443 ;;
13444 interix*)
13445 # This is c89, which is MS Visual C++ (no shared libs)
13446 # Anyone wants to do a port?
13447 ;;
13448 irix5* | irix6* | nonstopux*)
13449 case $cc_basename in
13450 CC*)
13451 lt_prog_compiler_wl_CXX='-Wl,'
13452 lt_prog_compiler_static_CXX='-non_shared'
13453 # CC pic flag -KPIC is the default.
13454 ;;
13455 *)
13456 ;;
13457 esac
13458 ;;
13459 linux* | k*bsd*-gnu)
13460 case $cc_basename in
13461 KCC*)
13462 # KAI C++ Compiler
13463 lt_prog_compiler_wl_CXX='--backend -Wl,'
13464 lt_prog_compiler_pic_CXX='-fPIC'
13465 ;;
13466 icpc* | ecpc*)
13467 # Intel C++
13468 lt_prog_compiler_wl_CXX='-Wl,'
13469 lt_prog_compiler_pic_CXX='-KPIC'
13470 lt_prog_compiler_static_CXX='-static'
13471 ;;
13472 pgCC*)
13473 # Portland Group C++ compiler.
13474 lt_prog_compiler_wl_CXX='-Wl,'
13475 lt_prog_compiler_pic_CXX='-fpic'
13476 lt_prog_compiler_static_CXX='-Bstatic'
13477 ;;
13478 cxx*)
13479 # Compaq C++
13480 # Make sure the PIC flag is empty. It appears that all Alpha
13481 # Linux and Compaq Tru64 Unix objects are PIC.
13482 lt_prog_compiler_pic_CXX=
13483 lt_prog_compiler_static_CXX='-non_shared'
13484 ;;
13485 *)
13486 case `$CC -V 2>&1 | sed 5q` in
13487 *Sun\ C*)
13488 # Sun C++ 5.9
13489 lt_prog_compiler_pic_CXX='-KPIC'
13490 lt_prog_compiler_static_CXX='-Bstatic'
13491 lt_prog_compiler_wl_CXX='-Qoption ld '
13492 ;;
13493 esac
13494 ;;
13495 esac
13496 ;;
13497 lynxos*)
13498 ;;
13499 m88k*)
13500 ;;
13501 mvs*)
13502 case $cc_basename in
13503 cxx*)
13504 lt_prog_compiler_pic_CXX='-W c,exportall'
13505 ;;
13506 *)
13507 ;;
13508 esac
13509 ;;
13510 netbsd* | netbsdelf*-gnu)
13511 ;;
13512 osf3* | osf4* | osf5*)
13513 case $cc_basename in
13514 KCC*)
13515 lt_prog_compiler_wl_CXX='--backend -Wl,'
13516 ;;
13517 RCC*)
13518 # Rational C++ 2.4.1
13519 lt_prog_compiler_pic_CXX='-pic'
13520 ;;
13521 cxx*)
13522 # Digital/Compaq C++
13523 lt_prog_compiler_wl_CXX='-Wl,'
13524 # Make sure the PIC flag is empty. It appears that all Alpha
13525 # Linux and Compaq Tru64 Unix objects are PIC.
13526 lt_prog_compiler_pic_CXX=
13527 lt_prog_compiler_static_CXX='-non_shared'
13528 ;;
13529 *)
13530 ;;
13531 esac
13532 ;;
13533 psos*)
13534 ;;
13535 solaris*)
13536 case $cc_basename in
13537 CC*)
13538 # Sun C++ 4.2, 5.x and Centerline C++
13539 lt_prog_compiler_pic_CXX='-KPIC'
13540 lt_prog_compiler_static_CXX='-Bstatic'
13541 lt_prog_compiler_wl_CXX='-Qoption ld '
13542 ;;
13543 gcx*)
13544 # Green Hills C++ Compiler
13545 lt_prog_compiler_pic_CXX='-PIC'
13546 ;;
13547 *)
13548 ;;
13549 esac
13550 ;;
13551 sunos4*)
13552 case $cc_basename in
13553 CC*)
13554 # Sun C++ 4.x
13555 lt_prog_compiler_pic_CXX='-pic'
13556 lt_prog_compiler_static_CXX='-Bstatic'
13557 ;;
13558 lcc*)
13559 # Lucid
13560 lt_prog_compiler_pic_CXX='-pic'
13561 ;;
13562 *)
13563 ;;
13564 esac
13565 ;;
13566 tandem*)
13567 case $cc_basename in
13568 NCC*)
13569 # NonStop-UX NCC 3.20
13570 lt_prog_compiler_pic_CXX='-KPIC'
13571 ;;
13572 *)
13573 ;;
13574 esac
13575 ;;
13576 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13577 case $cc_basename in
13578 CC*)
13579 lt_prog_compiler_wl_CXX='-Wl,'
13580 lt_prog_compiler_pic_CXX='-KPIC'
13581 lt_prog_compiler_static_CXX='-Bstatic'
13582 ;;
13583 esac
13584 ;;
13585 vxworks*)
13586 ;;
13587 *)
13588 lt_prog_compiler_can_build_shared_CXX=no
13589 ;;
13590 esac
13591 fi
13592
13593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13594 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13595
13596 #
13597 # Check to make sure the PIC flag actually works.
13598 #
13599 if test -n "$lt_prog_compiler_pic_CXX"; then
13600
13601 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13603 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 lt_prog_compiler_pic_works_CXX=no
13607 ac_outfile=conftest.$ac_objext
13608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13609 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13610 # Insert the option either (1) after the last *FLAGS variable, or
13611 # (2) before a word containing "conftest.", or (3) at the end.
13612 # Note that $ac_compile itself does not contain backslashes and begins
13613 # with a dollar sign (not a hyphen), so the echo should work correctly.
13614 # The option is referenced via a variable to avoid confusing sed.
13615 lt_compile=`echo "$ac_compile" | $SED \
13616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13618 -e 's:$: $lt_compiler_flag:'`
13619 (eval echo "\"\$as_me:13619: $lt_compile\"" >&5)
13620 (eval "$lt_compile" 2>conftest.err)
13621 ac_status=$?
13622 cat conftest.err >&5
13623 echo "$as_me:13623: \$? = $ac_status" >&5
13624 if (exit $ac_status) && test -s "$ac_outfile"; then
13625 # The compiler can only warn and ignore the option if not recognized
13626 # So say no if there are warnings other than the usual output.
13627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13630 lt_prog_compiler_pic_works_CXX=yes
13631 fi
13632 fi
13633 $rm conftest*
13634
13635 fi
13636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13637 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13638
13639 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13640 case $lt_prog_compiler_pic_CXX in
13641 "" | " "*) ;;
13642 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13643 esac
13644 else
13645 lt_prog_compiler_pic_CXX=
13646 lt_prog_compiler_can_build_shared_CXX=no
13647 fi
13648
13649 fi
13650 case $host_os in
13651 # For platforms which do not support PIC, -DPIC is meaningless:
13652 *djgpp*)
13653 lt_prog_compiler_pic_CXX=
13654 ;;
13655 *)
13656 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13657 ;;
13658 esac
13659
13660 #
13661 # Check to make sure the static flag actually works.
13662 #
13663 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13664 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13665 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13666 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 lt_prog_compiler_static_works_CXX=no
13670 save_LDFLAGS="$LDFLAGS"
13671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13672 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13674 # The linker can only warn and ignore the option if not recognized
13675 # So say no if there are warnings
13676 if test -s conftest.err; then
13677 # Append any errors to the config.log.
13678 cat conftest.err 1>&5
13679 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13681 if diff conftest.exp conftest.er2 >/dev/null; then
13682 lt_prog_compiler_static_works_CXX=yes
13683 fi
13684 else
13685 lt_prog_compiler_static_works_CXX=yes
13686 fi
13687 fi
13688 $rm conftest*
13689 LDFLAGS="$save_LDFLAGS"
13690
13691 fi
13692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13693 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13694
13695 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13696 :
13697 else
13698 lt_prog_compiler_static_CXX=
13699 fi
13700
13701
13702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13704 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 lt_cv_prog_compiler_c_o_CXX=no
13708 $rm -r conftest 2>/dev/null
13709 mkdir conftest
13710 cd conftest
13711 mkdir out
13712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13713
13714 lt_compiler_flag="-o out/conftest2.$ac_objext"
13715 # Insert the option either (1) after the last *FLAGS variable, or
13716 # (2) before a word containing "conftest.", or (3) at the end.
13717 # Note that $ac_compile itself does not contain backslashes and begins
13718 # with a dollar sign (not a hyphen), so the echo should work correctly.
13719 lt_compile=`echo "$ac_compile" | $SED \
13720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13722 -e 's:$: $lt_compiler_flag:'`
13723 (eval echo "\"\$as_me:13723: $lt_compile\"" >&5)
13724 (eval "$lt_compile" 2>out/conftest.err)
13725 ac_status=$?
13726 cat out/conftest.err >&5
13727 echo "$as_me:13727: \$? = $ac_status" >&5
13728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13729 then
13730 # The compiler can only warn and ignore the option if not recognized
13731 # So say no if there are warnings
13732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13735 lt_cv_prog_compiler_c_o_CXX=yes
13736 fi
13737 fi
13738 chmod u+w . 2>&5
13739 $rm conftest*
13740 # SGI C++ compiler will create directory out/ii_files/ for
13741 # template instantiation
13742 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13743 $rm out/* && rmdir out
13744 cd ..
13745 rmdir conftest
13746 $rm conftest*
13747
13748 fi
13749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13751
13752
13753 hard_links="nottested"
13754 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13755 # do not overwrite the value of need_locks provided by the user
13756 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13758 hard_links=yes
13759 $rm conftest*
13760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13761 touch conftest.a
13762 ln conftest.a conftest.b 2>&5 || hard_links=no
13763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13764 { echo "$as_me:$LINENO: result: $hard_links" >&5
13765 echo "${ECHO_T}$hard_links" >&6; }
13766 if test "$hard_links" = no; then
13767 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13769 need_locks=warn
13770 fi
13771 else
13772 need_locks=no
13773 fi
13774
13775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13777
13778 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13779 case $host_os in
13780 aix4* | aix5*)
13781 # If we're using GNU nm, then we don't want the "-C" option.
13782 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13783 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13784 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'
13785 else
13786 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'
13787 fi
13788 ;;
13789 pw32*)
13790 export_symbols_cmds_CXX="$ltdll_cmds"
13791 ;;
13792 cygwin* | mingw*)
13793 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'
13794 ;;
13795 linux* | k*bsd*-gnu)
13796 link_all_deplibs_CXX=no
13797 ;;
13798 *)
13799 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13800 ;;
13801 esac
13802
13803 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13804 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13805 test "$ld_shlibs_CXX" = no && can_build_shared=no
13806
13807 #
13808 # Do we need to explicitly link libc?
13809 #
13810 case "x$archive_cmds_need_lc_CXX" in
13811 x|xyes)
13812 # Assume -lc should be added
13813 archive_cmds_need_lc_CXX=yes
13814
13815 if test "$enable_shared" = yes && test "$GCC" = yes; then
13816 case $archive_cmds_CXX in
13817 *'~'*)
13818 # FIXME: we may have to deal with multi-command sequences.
13819 ;;
13820 '$CC '*)
13821 # Test whether the compiler implicitly links with -lc since on some
13822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13823 # to ld, don't add -lc before -lgcc.
13824 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13826 $rm conftest*
13827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13828
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } 2>conftest.err; then
13834 soname=conftest
13835 lib=conftest
13836 libobjs=conftest.$ac_objext
13837 deplibs=
13838 wl=$lt_prog_compiler_wl_CXX
13839 pic_flag=$lt_prog_compiler_pic_CXX
13840 compiler_flags=-v
13841 linker_flags=-v
13842 verstring=
13843 output_objdir=.
13844 libname=conftest
13845 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13846 allow_undefined_flag_CXX=
13847 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13848 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }
13852 then
13853 archive_cmds_need_lc_CXX=no
13854 else
13855 archive_cmds_need_lc_CXX=yes
13856 fi
13857 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13858 else
13859 cat conftest.err 1>&5
13860 fi
13861 $rm conftest*
13862 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13863 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13864 ;;
13865 esac
13866 fi
13867 ;;
13868 esac
13869
13870 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13872 library_names_spec=
13873 libname_spec='lib$name'
13874 soname_spec=
13875 shrext_cmds=".so"
13876 postinstall_cmds=
13877 postuninstall_cmds=
13878 finish_cmds=
13879 finish_eval=
13880 shlibpath_var=
13881 shlibpath_overrides_runpath=unknown
13882 version_type=none
13883 dynamic_linker="$host_os ld.so"
13884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13885
13886 need_lib_prefix=unknown
13887 hardcode_into_libs=no
13888
13889 # when you set need_version to no, make sure it does not cause -set_version
13890 # flags to be left without arguments
13891 need_version=unknown
13892
13893 case $host_os in
13894 aix3*)
13895 version_type=linux
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13897 shlibpath_var=LIBPATH
13898
13899 # AIX 3 has no versioning support, so we append a major version to the name.
13900 soname_spec='${libname}${release}${shared_ext}$major'
13901 ;;
13902
13903 aix4* | aix5*)
13904 version_type=linux
13905 need_lib_prefix=no
13906 need_version=no
13907 hardcode_into_libs=yes
13908 if test "$host_cpu" = ia64; then
13909 # AIX 5 supports IA64
13910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 else
13913 # With GCC up to 2.95.x, collect2 would create an import file
13914 # for dependence libraries. The import file would start with
13915 # the line `#! .'. This would cause the generated library to
13916 # depend on `.', always an invalid library. This was fixed in
13917 # development snapshots of GCC prior to 3.0.
13918 case $host_os in
13919 aix4 | aix4.[01] | aix4.[01].*)
13920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13921 echo ' yes '
13922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13923 :
13924 else
13925 can_build_shared=no
13926 fi
13927 ;;
13928 esac
13929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13930 # soname into executable. Probably we can add versioning support to
13931 # collect2, so additional links can be useful in future.
13932 if test "$aix_use_runtimelinking" = yes; then
13933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13934 # instead of lib<name>.a to let people know that these are not
13935 # typical AIX shared libraries.
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937 else
13938 # We preserve .a as extension for shared libraries through AIX4.2
13939 # and later when we are not doing run time linking.
13940 library_names_spec='${libname}${release}.a $libname.a'
13941 soname_spec='${libname}${release}${shared_ext}$major'
13942 fi
13943 shlibpath_var=LIBPATH
13944 fi
13945 ;;
13946
13947 amigaos*)
13948 library_names_spec='$libname.ixlibrary $libname.a'
13949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13950 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'
13951 ;;
13952
13953 beos*)
13954 library_names_spec='${libname}${shared_ext}'
13955 dynamic_linker="$host_os ld.so"
13956 shlibpath_var=LIBRARY_PATH
13957 ;;
13958
13959 bsdi[45]*)
13960 version_type=linux
13961 need_version=no
13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13963 soname_spec='${libname}${release}${shared_ext}$major'
13964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13965 shlibpath_var=LD_LIBRARY_PATH
13966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13968 # the default ld.so.conf also contains /usr/contrib/lib and
13969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13970 # libtool to hard-code these into programs
13971 ;;
13972
13973 cygwin* | mingw* | pw32*)
13974 version_type=windows
13975 shrext_cmds=".dll"
13976 need_version=no
13977 need_lib_prefix=no
13978
13979 case $GCC,$host_os in
13980 yes,cygwin* | yes,mingw* | yes,pw32*)
13981 library_names_spec='$libname.dll.a'
13982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13983 postinstall_cmds='base_file=`basename \${file}`~
13984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13985 dldir=$destdir/`dirname \$dlpath`~
13986 test -d \$dldir || mkdir -p \$dldir~
13987 $install_prog $dir/$dlname \$dldir/$dlname~
13988 chmod a+x \$dldir/$dlname'
13989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13990 dlpath=$dir/\$dldll~
13991 $rm \$dlpath'
13992 shlibpath_overrides_runpath=yes
13993
13994 case $host_os in
13995 cygwin*)
13996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13998 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13999 ;;
14000 mingw*)
14001 # MinGW DLLs use traditional 'lib' prefix
14002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14005 # It is most probably a Windows format PATH printed by
14006 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14007 # path with ; separators, and with drive letters. We can handle the
14008 # drive letters (cygwin fileutils understands them), so leave them,
14009 # especially as we might pass files found there to a mingw objdump,
14010 # which wouldn't understand a cygwinified path. Ahh.
14011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14012 else
14013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14014 fi
14015 ;;
14016 pw32*)
14017 # pw32 DLLs use 'pw' prefix rather than 'lib'
14018 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14019 ;;
14020 esac
14021 ;;
14022
14023 *)
14024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14025 ;;
14026 esac
14027 dynamic_linker='Win32 ld.exe'
14028 # FIXME: first we should search . and the directory the executable is in
14029 shlibpath_var=PATH
14030 ;;
14031
14032 darwin* | rhapsody*)
14033 dynamic_linker="$host_os dyld"
14034 version_type=darwin
14035 need_lib_prefix=no
14036 need_version=no
14037 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14038 soname_spec='${libname}${release}${major}$shared_ext'
14039 shlibpath_overrides_runpath=yes
14040 shlibpath_var=DYLD_LIBRARY_PATH
14041 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14042
14043 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14044 ;;
14045
14046 dgux*)
14047 version_type=linux
14048 need_lib_prefix=no
14049 need_version=no
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14051 soname_spec='${libname}${release}${shared_ext}$major'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 ;;
14054
14055 freebsd1*)
14056 dynamic_linker=no
14057 ;;
14058
14059 freebsd* | dragonfly*)
14060 # DragonFly does not have aout. When/if they implement a new
14061 # versioning mechanism, adjust this.
14062 if test -x /usr/bin/objformat; then
14063 objformat=`/usr/bin/objformat`
14064 else
14065 case $host_os in
14066 freebsd[123]*) objformat=aout ;;
14067 *) objformat=elf ;;
14068 esac
14069 fi
14070 version_type=freebsd-$objformat
14071 case $version_type in
14072 freebsd-elf*)
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14074 need_version=no
14075 need_lib_prefix=no
14076 ;;
14077 freebsd-*)
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14079 need_version=yes
14080 ;;
14081 esac
14082 shlibpath_var=LD_LIBRARY_PATH
14083 case $host_os in
14084 freebsd2*)
14085 shlibpath_overrides_runpath=yes
14086 ;;
14087 freebsd3.[01]* | freebsdelf3.[01]*)
14088 shlibpath_overrides_runpath=yes
14089 hardcode_into_libs=yes
14090 ;;
14091 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14092 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14093 shlibpath_overrides_runpath=no
14094 hardcode_into_libs=yes
14095 ;;
14096 *) # from 4.6 on, and DragonFly
14097 shlibpath_overrides_runpath=yes
14098 hardcode_into_libs=yes
14099 ;;
14100 esac
14101 ;;
14102
14103 gnu*)
14104 version_type=linux
14105 need_lib_prefix=no
14106 need_version=no
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14108 soname_spec='${libname}${release}${shared_ext}$major'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 hardcode_into_libs=yes
14111 ;;
14112
14113 hpux9* | hpux10* | hpux11*)
14114 # Give a soname corresponding to the major version so that dld.sl refuses to
14115 # link against other versions.
14116 version_type=sunos
14117 need_lib_prefix=no
14118 need_version=no
14119 case $host_cpu in
14120 ia64*)
14121 shrext_cmds='.so'
14122 hardcode_into_libs=yes
14123 dynamic_linker="$host_os dld.so"
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 if test "X$HPUX_IA64_MODE" = X32; then
14129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14130 else
14131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14132 fi
14133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14134 ;;
14135 hppa*64*)
14136 shrext_cmds='.sl'
14137 hardcode_into_libs=yes
14138 dynamic_linker="$host_os dld.sl"
14139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 soname_spec='${libname}${release}${shared_ext}$major'
14143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14145 ;;
14146 *)
14147 shrext_cmds='.sl'
14148 dynamic_linker="$host_os dld.sl"
14149 shlibpath_var=SHLIB_PATH
14150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14152 soname_spec='${libname}${release}${shared_ext}$major'
14153 ;;
14154 esac
14155 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14156 postinstall_cmds='chmod 555 $lib'
14157 ;;
14158
14159 interix[3-9]*)
14160 version_type=linux
14161 need_lib_prefix=no
14162 need_version=no
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14164 soname_spec='${libname}${release}${shared_ext}$major'
14165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 shlibpath_overrides_runpath=no
14168 hardcode_into_libs=yes
14169 ;;
14170
14171 irix5* | irix6* | nonstopux*)
14172 case $host_os in
14173 nonstopux*) version_type=nonstopux ;;
14174 *)
14175 if test "$lt_cv_prog_gnu_ld" = yes; then
14176 version_type=linux
14177 else
14178 version_type=irix
14179 fi ;;
14180 esac
14181 need_lib_prefix=no
14182 need_version=no
14183 soname_spec='${libname}${release}${shared_ext}$major'
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14185 case $host_os in
14186 irix5* | nonstopux*)
14187 libsuff= shlibsuff=
14188 ;;
14189 *)
14190 case $LD in # libtool.m4 will add one of these switches to LD
14191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14192 libsuff= shlibsuff= libmagic=32-bit;;
14193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14194 libsuff=32 shlibsuff=N32 libmagic=N32;;
14195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14197 *) libsuff= shlibsuff= libmagic=never-match;;
14198 esac
14199 ;;
14200 esac
14201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14202 shlibpath_overrides_runpath=no
14203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14205 hardcode_into_libs=yes
14206 ;;
14207
14208 # No shared lib support for Linux oldld, aout, or coff.
14209 linux*oldld* | linux*aout* | linux*coff*)
14210 dynamic_linker=no
14211 ;;
14212
14213 # This must be Linux ELF.
14214 linux* | k*bsd*-gnu)
14215 version_type=linux
14216 need_lib_prefix=no
14217 need_version=no
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14221 shlibpath_var=LD_LIBRARY_PATH
14222 shlibpath_overrides_runpath=no
14223 # This implies no fast_install, which is unacceptable.
14224 # Some rework will be needed to allow for fast_install
14225 # before this can be enabled.
14226 hardcode_into_libs=yes
14227
14228 # Append ld.so.conf contents to the search path
14229 if test -f /etc/ld.so.conf; then
14230 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' ' '`
14231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14232 fi
14233
14234 # We used to test for /lib/ld.so.1 and disable shared libraries on
14235 # powerpc, because MkLinux only supported shared libraries with the
14236 # GNU dynamic linker. Since this was broken with cross compilers,
14237 # most powerpc-linux boxes support dynamic linking these days and
14238 # people can always --disable-shared, the test was removed, and we
14239 # assume the GNU/Linux dynamic linker is in use.
14240 dynamic_linker='GNU/Linux ld.so'
14241 ;;
14242
14243 netbsdelf*-gnu)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 shlibpath_overrides_runpath=no
14251 hardcode_into_libs=yes
14252 dynamic_linker='NetBSD ld.elf_so'
14253 ;;
14254
14255 netbsd*)
14256 version_type=sunos
14257 need_lib_prefix=no
14258 need_version=no
14259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14262 dynamic_linker='NetBSD (a.out) ld.so'
14263 else
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14266 dynamic_linker='NetBSD ld.elf_so'
14267 fi
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes
14270 hardcode_into_libs=yes
14271 ;;
14272
14273 newsos6)
14274 version_type=linux
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 shlibpath_overrides_runpath=yes
14278 ;;
14279
14280 nto-qnx*)
14281 version_type=linux
14282 need_lib_prefix=no
14283 need_version=no
14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec='${libname}${release}${shared_ext}$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 shlibpath_overrides_runpath=yes
14288 ;;
14289
14290 openbsd*)
14291 version_type=sunos
14292 sys_lib_dlsearch_path_spec="/usr/lib"
14293 need_lib_prefix=no
14294 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14295 case $host_os in
14296 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14297 *) need_version=no ;;
14298 esac
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14303 case $host_os in
14304 openbsd2.[89] | openbsd2.[89].*)
14305 shlibpath_overrides_runpath=no
14306 ;;
14307 *)
14308 shlibpath_overrides_runpath=yes
14309 ;;
14310 esac
14311 else
14312 shlibpath_overrides_runpath=yes
14313 fi
14314 ;;
14315
14316 os2*)
14317 libname_spec='$name'
14318 shrext_cmds=".dll"
14319 need_lib_prefix=no
14320 library_names_spec='$libname${shared_ext} $libname.a'
14321 dynamic_linker='OS/2 ld.exe'
14322 shlibpath_var=LIBPATH
14323 ;;
14324
14325 osf3* | osf4* | osf5*)
14326 version_type=osf
14327 need_lib_prefix=no
14328 need_version=no
14329 soname_spec='${libname}${release}${shared_ext}$major'
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331 shlibpath_var=LD_LIBRARY_PATH
14332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14333 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14334 ;;
14335
14336 rdos*)
14337 dynamic_linker=no
14338 ;;
14339
14340 solaris*)
14341 version_type=linux
14342 need_lib_prefix=no
14343 need_version=no
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 shlibpath_var=LD_LIBRARY_PATH
14347 shlibpath_overrides_runpath=yes
14348 hardcode_into_libs=yes
14349 # ldd complains unless libraries are executable
14350 postinstall_cmds='chmod +x $lib'
14351 ;;
14352
14353 sunos4*)
14354 version_type=sunos
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14356 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14357 shlibpath_var=LD_LIBRARY_PATH
14358 shlibpath_overrides_runpath=yes
14359 if test "$with_gnu_ld" = yes; then
14360 need_lib_prefix=no
14361 fi
14362 need_version=yes
14363 ;;
14364
14365 sysv4 | sysv4.3*)
14366 version_type=linux
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 soname_spec='${libname}${release}${shared_ext}$major'
14369 shlibpath_var=LD_LIBRARY_PATH
14370 case $host_vendor in
14371 sni)
14372 shlibpath_overrides_runpath=no
14373 need_lib_prefix=no
14374 export_dynamic_flag_spec='${wl}-Blargedynsym'
14375 runpath_var=LD_RUN_PATH
14376 ;;
14377 siemens)
14378 need_lib_prefix=no
14379 ;;
14380 motorola)
14381 need_lib_prefix=no
14382 need_version=no
14383 shlibpath_overrides_runpath=no
14384 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14385 ;;
14386 esac
14387 ;;
14388
14389 sysv4*MP*)
14390 if test -d /usr/nec ;then
14391 version_type=linux
14392 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14393 soname_spec='$libname${shared_ext}.$major'
14394 shlibpath_var=LD_LIBRARY_PATH
14395 fi
14396 ;;
14397
14398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14399 version_type=freebsd-elf
14400 need_lib_prefix=no
14401 need_version=no
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 shlibpath_var=LD_LIBRARY_PATH
14405 hardcode_into_libs=yes
14406 if test "$with_gnu_ld" = yes; then
14407 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14408 shlibpath_overrides_runpath=no
14409 else
14410 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14411 shlibpath_overrides_runpath=yes
14412 case $host_os in
14413 sco3.2v5*)
14414 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14415 ;;
14416 esac
14417 fi
14418 sys_lib_dlsearch_path_spec='/usr/lib'
14419 ;;
14420
14421 uts4*)
14422 version_type=linux
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 ;;
14427
14428 *)
14429 dynamic_linker=no
14430 ;;
14431 esac
14432 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14433 echo "${ECHO_T}$dynamic_linker" >&6; }
14434 test "$dynamic_linker" = no && can_build_shared=no
14435
14436 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14437 if test "$GCC" = yes; then
14438 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14439 fi
14440
14441 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14443 hardcode_action_CXX=
14444 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14445 test -n "$runpath_var_CXX" || \
14446 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14447
14448 # We can hardcode non-existant directories.
14449 if test "$hardcode_direct_CXX" != no &&
14450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14451 # have to relink, otherwise we might link with an installed library
14452 # when we should be linking with a yet-to-be-installed one
14453 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14454 test "$hardcode_minus_L_CXX" != no; then
14455 # Linking always hardcodes the temporary library directory.
14456 hardcode_action_CXX=relink
14457 else
14458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14459 hardcode_action_CXX=immediate
14460 fi
14461 else
14462 # We cannot hardcode anything, or else we can only hardcode existing
14463 # directories.
14464 hardcode_action_CXX=unsupported
14465 fi
14466 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14467 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14468
14469 if test "$hardcode_action_CXX" = relink; then
14470 # Fast installation is not supported
14471 enable_fast_install=no
14472 elif test "$shlibpath_overrides_runpath" = yes ||
14473 test "$enable_shared" = no; then
14474 # Fast installation is not necessary
14475 enable_fast_install=needless
14476 fi
14477
14478
14479 # The else clause should only fire when bootstrapping the
14480 # libtool distribution, otherwise you forgot to ship ltmain.sh
14481 # with your package, and you will get complaints that there are
14482 # no rules to generate ltmain.sh.
14483 if test -f "$ltmain"; then
14484 # See if we are running on zsh, and set the options which allow our commands through
14485 # without removal of \ escapes.
14486 if test -n "${ZSH_VERSION+set}" ; then
14487 setopt NO_GLOB_SUBST
14488 fi
14489 # Now quote all the things that may contain metacharacters while being
14490 # careful not to overquote the AC_SUBSTed values. We take copies of the
14491 # variables and quote the copies for generation of the libtool script.
14492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14493 SED SHELL STRIP \
14494 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14495 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14496 deplibs_check_method reload_flag reload_cmds need_locks \
14497 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14498 lt_cv_sys_global_symbol_to_c_name_address \
14499 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14500 old_postinstall_cmds old_postuninstall_cmds \
14501 compiler_CXX \
14502 CC_CXX \
14503 LD_CXX \
14504 lt_prog_compiler_wl_CXX \
14505 lt_prog_compiler_pic_CXX \
14506 lt_prog_compiler_static_CXX \
14507 lt_prog_compiler_no_builtin_flag_CXX \
14508 export_dynamic_flag_spec_CXX \
14509 thread_safe_flag_spec_CXX \
14510 whole_archive_flag_spec_CXX \
14511 enable_shared_with_static_runtimes_CXX \
14512 old_archive_cmds_CXX \
14513 old_archive_from_new_cmds_CXX \
14514 predep_objects_CXX \
14515 postdep_objects_CXX \
14516 predeps_CXX \
14517 postdeps_CXX \
14518 compiler_lib_search_path_CXX \
14519 archive_cmds_CXX \
14520 archive_expsym_cmds_CXX \
14521 postinstall_cmds_CXX \
14522 postuninstall_cmds_CXX \
14523 old_archive_from_expsyms_cmds_CXX \
14524 allow_undefined_flag_CXX \
14525 no_undefined_flag_CXX \
14526 export_symbols_cmds_CXX \
14527 hardcode_libdir_flag_spec_CXX \
14528 hardcode_libdir_flag_spec_ld_CXX \
14529 hardcode_libdir_separator_CXX \
14530 hardcode_automatic_CXX \
14531 module_cmds_CXX \
14532 module_expsym_cmds_CXX \
14533 lt_cv_prog_compiler_c_o_CXX \
14534 fix_srcfile_path_CXX \
14535 exclude_expsyms_CXX \
14536 include_expsyms_CXX; do
14537
14538 case $var in
14539 old_archive_cmds_CXX | \
14540 old_archive_from_new_cmds_CXX | \
14541 archive_cmds_CXX | \
14542 archive_expsym_cmds_CXX | \
14543 module_cmds_CXX | \
14544 module_expsym_cmds_CXX | \
14545 old_archive_from_expsyms_cmds_CXX | \
14546 export_symbols_cmds_CXX | \
14547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14548 postinstall_cmds | postuninstall_cmds | \
14549 old_postinstall_cmds | old_postuninstall_cmds | \
14550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14551 # Double-quote double-evaled strings.
14552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14553 ;;
14554 *)
14555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14556 ;;
14557 esac
14558 done
14559
14560 case $lt_echo in
14561 *'\$0 --fallback-echo"')
14562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14563 ;;
14564 esac
14565
14566 cfgfile="$ofile"
14567
14568 cat <<__EOF__ >> "$cfgfile"
14569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14570
14571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14572
14573 # Shell to use when invoking shell scripts.
14574 SHELL=$lt_SHELL
14575
14576 # Whether or not to build shared libraries.
14577 build_libtool_libs=$enable_shared
14578
14579 # Whether or not to build static libraries.
14580 build_old_libs=$enable_static
14581
14582 # Whether or not to add -lc for building shared libraries.
14583 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14584
14585 # Whether or not to disallow shared libs when runtime libs are static
14586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14587
14588 # Whether or not to optimize for fast installation.
14589 fast_install=$enable_fast_install
14590
14591 # The host system.
14592 host_alias=$host_alias
14593 host=$host
14594 host_os=$host_os
14595
14596 # The build system.
14597 build_alias=$build_alias
14598 build=$build
14599 build_os=$build_os
14600
14601 # An echo program that does not interpret backslashes.
14602 echo=$lt_echo
14603
14604 # The archiver.
14605 AR=$lt_AR
14606 AR_FLAGS=$lt_AR_FLAGS
14607
14608 # A C compiler.
14609 LTCC=$lt_LTCC
14610
14611 # LTCC compiler flags.
14612 LTCFLAGS=$lt_LTCFLAGS
14613
14614 # A language-specific compiler.
14615 CC=$lt_compiler_CXX
14616
14617 # Is the compiler the GNU C compiler?
14618 with_gcc=$GCC_CXX
14619
14620 # An ERE matcher.
14621 EGREP=$lt_EGREP
14622
14623 # The linker used to build libraries.
14624 LD=$lt_LD_CXX
14625
14626 # Whether we need hard or soft links.
14627 LN_S=$lt_LN_S
14628
14629 # A BSD-compatible nm program.
14630 NM=$lt_NM
14631
14632 # A symbol stripping program
14633 STRIP=$lt_STRIP
14634
14635 # Used to examine libraries when file_magic_cmd begins "file"
14636 MAGIC_CMD=$MAGIC_CMD
14637
14638 # Used on cygwin: DLL creation program.
14639 DLLTOOL="$DLLTOOL"
14640
14641 # Used on cygwin: object dumper.
14642 OBJDUMP="$OBJDUMP"
14643
14644 # Used on cygwin: assembler.
14645 AS="$AS"
14646
14647 # The name of the directory that contains temporary libtool files.
14648 objdir=$objdir
14649
14650 # How to create reloadable object files.
14651 reload_flag=$lt_reload_flag
14652 reload_cmds=$lt_reload_cmds
14653
14654 # How to pass a linker flag through the compiler.
14655 wl=$lt_lt_prog_compiler_wl_CXX
14656
14657 # Object file suffix (normally "o").
14658 objext="$ac_objext"
14659
14660 # Old archive suffix (normally "a").
14661 libext="$libext"
14662
14663 # Shared library suffix (normally ".so").
14664 shrext_cmds='$shrext_cmds'
14665
14666 # Executable file suffix (normally "").
14667 exeext="$exeext"
14668
14669 # Additional compiler flags for building library objects.
14670 pic_flag=$lt_lt_prog_compiler_pic_CXX
14671 pic_mode=$pic_mode
14672
14673 # What is the maximum length of a command?
14674 max_cmd_len=$lt_cv_sys_max_cmd_len
14675
14676 # Does compiler simultaneously support -c and -o options?
14677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14678
14679 # Must we lock files when doing compilation?
14680 need_locks=$lt_need_locks
14681
14682 # Do we need the lib prefix for modules?
14683 need_lib_prefix=$need_lib_prefix
14684
14685 # Do we need a version for libraries?
14686 need_version=$need_version
14687
14688 # Whether dlopen is supported.
14689 dlopen_support=$enable_dlopen
14690
14691 # Whether dlopen of programs is supported.
14692 dlopen_self=$enable_dlopen_self
14693
14694 # Whether dlopen of statically linked programs is supported.
14695 dlopen_self_static=$enable_dlopen_self_static
14696
14697 # Compiler flag to prevent dynamic linking.
14698 link_static_flag=$lt_lt_prog_compiler_static_CXX
14699
14700 # Compiler flag to turn off builtin functions.
14701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14702
14703 # Compiler flag to allow reflexive dlopens.
14704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14705
14706 # Compiler flag to generate shared objects directly from archives.
14707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14708
14709 # Compiler flag to generate thread-safe objects.
14710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14711
14712 # Library versioning type.
14713 version_type=$version_type
14714
14715 # Format of library name prefix.
14716 libname_spec=$lt_libname_spec
14717
14718 # List of archive names. First name is the real one, the rest are links.
14719 # The last name is the one that the linker finds with -lNAME.
14720 library_names_spec=$lt_library_names_spec
14721
14722 # The coded name of the library, if different from the real name.
14723 soname_spec=$lt_soname_spec
14724
14725 # Commands used to build and install an old-style archive.
14726 RANLIB=$lt_RANLIB
14727 old_archive_cmds=$lt_old_archive_cmds_CXX
14728 old_postinstall_cmds=$lt_old_postinstall_cmds
14729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14730
14731 # Create an old-style archive from a shared archive.
14732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14733
14734 # Create a temporary old-style archive to link instead of a shared archive.
14735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14736
14737 # Commands used to build and install a shared archive.
14738 archive_cmds=$lt_archive_cmds_CXX
14739 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14740 postinstall_cmds=$lt_postinstall_cmds
14741 postuninstall_cmds=$lt_postuninstall_cmds
14742
14743 # Commands used to build a loadable module (assumed same as above if empty)
14744 module_cmds=$lt_module_cmds_CXX
14745 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14746
14747 # Commands to strip libraries.
14748 old_striplib=$lt_old_striplib
14749 striplib=$lt_striplib
14750
14751 # Dependencies to place before the objects being linked to create a
14752 # shared library.
14753 predep_objects=$lt_predep_objects_CXX
14754
14755 # Dependencies to place after the objects being linked to create a
14756 # shared library.
14757 postdep_objects=$lt_postdep_objects_CXX
14758
14759 # Dependencies to place before the objects being linked to create a
14760 # shared library.
14761 predeps=$lt_predeps_CXX
14762
14763 # Dependencies to place after the objects being linked to create a
14764 # shared library.
14765 postdeps=$lt_postdeps_CXX
14766
14767 # The library search path used internally by the compiler when linking
14768 # a shared library.
14769 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14770
14771 # Method to check whether dependent libraries are shared objects.
14772 deplibs_check_method=$lt_deplibs_check_method
14773
14774 # Command to use when deplibs_check_method == file_magic.
14775 file_magic_cmd=$lt_file_magic_cmd
14776
14777 # Flag that allows shared libraries with undefined symbols to be built.
14778 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14779
14780 # Flag that forces no undefined symbols.
14781 no_undefined_flag=$lt_no_undefined_flag_CXX
14782
14783 # Commands used to finish a libtool library installation in a directory.
14784 finish_cmds=$lt_finish_cmds
14785
14786 # Same as above, but a single script fragment to be evaled but not shown.
14787 finish_eval=$lt_finish_eval
14788
14789 # Take the output of nm and produce a listing of raw symbols and C names.
14790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14791
14792 # Transform the output of nm in a proper C declaration
14793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14794
14795 # Transform the output of nm in a C name address pair
14796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14797
14798 # This is the shared library runtime path variable.
14799 runpath_var=$runpath_var
14800
14801 # This is the shared library path variable.
14802 shlibpath_var=$shlibpath_var
14803
14804 # Is shlibpath searched before the hard-coded library search path?
14805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14806
14807 # How to hardcode a shared library path into an executable.
14808 hardcode_action=$hardcode_action_CXX
14809
14810 # Whether we should hardcode library paths into libraries.
14811 hardcode_into_libs=$hardcode_into_libs
14812
14813 # Flag to hardcode \$libdir into a binary during linking.
14814 # This must work even if \$libdir does not exist.
14815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14816
14817 # If ld is used when linking, flag to hardcode \$libdir into
14818 # a binary during linking. This must work even if \$libdir does
14819 # not exist.
14820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14821
14822 # Whether we need a single -rpath flag with a separated argument.
14823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14824
14825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14826 # resulting binary.
14827 hardcode_direct=$hardcode_direct_CXX
14828
14829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14830 # resulting binary.
14831 hardcode_minus_L=$hardcode_minus_L_CXX
14832
14833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14834 # the resulting binary.
14835 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14836
14837 # Set to yes if building a shared library automatically hardcodes DIR into the library
14838 # and all subsequent libraries and executables linked against it.
14839 hardcode_automatic=$hardcode_automatic_CXX
14840
14841 # Variables whose values should be saved in libtool wrapper scripts and
14842 # restored at relink time.
14843 variables_saved_for_relink="$variables_saved_for_relink"
14844
14845 # Whether libtool must link a program against all its dependency libraries.
14846 link_all_deplibs=$link_all_deplibs_CXX
14847
14848 # Compile-time system search path for libraries
14849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14850
14851 # Run-time system search path for libraries
14852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14853
14854 # Fix the shell variable \$srcfile for the compiler.
14855 fix_srcfile_path=$lt_fix_srcfile_path
14856
14857 # Set to yes if exported symbols are required.
14858 always_export_symbols=$always_export_symbols_CXX
14859
14860 # The commands to list exported symbols.
14861 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14862
14863 # The commands to extract the exported symbol list from a shared archive.
14864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14865
14866 # Symbols that should not be listed in the preloaded symbols.
14867 exclude_expsyms=$lt_exclude_expsyms_CXX
14868
14869 # Symbols that must always be exported.
14870 include_expsyms=$lt_include_expsyms_CXX
14871
14872 # ### END LIBTOOL TAG CONFIG: $tagname
14873
14874 __EOF__
14875
14876
14877 else
14878 # If there is no Makefile yet, we rely on a make rule to execute
14879 # `config.status --recheck' to rerun these tests and create the
14880 # libtool script then.
14881 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14882 if test -f "$ltmain_in"; then
14883 test -f Makefile && make "$ltmain"
14884 fi
14885 fi
14886
14887
14888 ac_ext=c
14889 ac_cpp='$CPP $CPPFLAGS'
14890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894 CC=$lt_save_CC
14895 LDCXX=$LD
14896 LD=$lt_save_LD
14897 GCC=$lt_save_GCC
14898 with_gnu_ldcxx=$with_gnu_ld
14899 with_gnu_ld=$lt_save_with_gnu_ld
14900 lt_cv_path_LDCXX=$lt_cv_path_LD
14901 lt_cv_path_LD=$lt_save_path_LD
14902 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14903 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14904
14905 else
14906 tagname=""
14907 fi
14908 ;;
14909
14910 F77)
14911 if test -n "$F77" && test "X$F77" != "Xno"; then
14912
14913 ac_ext=f
14914 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14915 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14916 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14917
14918
14919 archive_cmds_need_lc_F77=no
14920 allow_undefined_flag_F77=
14921 always_export_symbols_F77=no
14922 archive_expsym_cmds_F77=
14923 export_dynamic_flag_spec_F77=
14924 hardcode_direct_F77=no
14925 hardcode_libdir_flag_spec_F77=
14926 hardcode_libdir_flag_spec_ld_F77=
14927 hardcode_libdir_separator_F77=
14928 hardcode_minus_L_F77=no
14929 hardcode_automatic_F77=no
14930 module_cmds_F77=
14931 module_expsym_cmds_F77=
14932 link_all_deplibs_F77=unknown
14933 old_archive_cmds_F77=$old_archive_cmds
14934 no_undefined_flag_F77=
14935 whole_archive_flag_spec_F77=
14936 enable_shared_with_static_runtimes_F77=no
14937
14938 # Source file extension for f77 test sources.
14939 ac_ext=f
14940
14941 # Object file extension for compiled f77 test sources.
14942 objext=o
14943 objext_F77=$objext
14944
14945 # Code to be used in simple compile tests
14946 lt_simple_compile_test_code="\
14947 subroutine t
14948 return
14949 end
14950 "
14951
14952 # Code to be used in simple link tests
14953 lt_simple_link_test_code="\
14954 program t
14955 end
14956 "
14957
14958 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14959
14960 # If no C compiler was specified, use CC.
14961 LTCC=${LTCC-"$CC"}
14962
14963 # If no C compiler flags were specified, use CFLAGS.
14964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14965
14966 # Allow CC to be a program name with arguments.
14967 compiler=$CC
14968
14969
14970 # save warnings/boilerplate of simple test code
14971 ac_outfile=conftest.$ac_objext
14972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14974 _lt_compiler_boilerplate=`cat conftest.err`
14975 $rm conftest*
14976
14977 ac_outfile=conftest.$ac_objext
14978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14980 _lt_linker_boilerplate=`cat conftest.err`
14981 $rm conftest*
14982
14983
14984 # Allow CC to be a program name with arguments.
14985 lt_save_CC="$CC"
14986 CC=${F77-"f77"}
14987 compiler=$CC
14988 compiler_F77=$CC
14989 for cc_temp in $compiler""; do
14990 case $cc_temp in
14991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14993 \-*) ;;
14994 *) break;;
14995 esac
14996 done
14997 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14998
14999
15000 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15001 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15002 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15003 echo "${ECHO_T}$can_build_shared" >&6; }
15004
15005 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15006 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15007 test "$can_build_shared" = "no" && enable_shared=no
15008
15009 # On AIX, shared libraries and static libraries use the same namespace, and
15010 # are all built from PIC.
15011 case $host_os in
15012 aix3*)
15013 test "$enable_shared" = yes && enable_static=no
15014 if test -n "$RANLIB"; then
15015 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15016 postinstall_cmds='$RANLIB $lib'
15017 fi
15018 ;;
15019 aix4* | aix5*)
15020 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15021 test "$enable_shared" = yes && enable_static=no
15022 fi
15023 ;;
15024 esac
15025 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15026 echo "${ECHO_T}$enable_shared" >&6; }
15027
15028 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15029 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15030 # Make sure either enable_shared or enable_static is yes.
15031 test "$enable_shared" = yes || enable_static=yes
15032 { echo "$as_me:$LINENO: result: $enable_static" >&5
15033 echo "${ECHO_T}$enable_static" >&6; }
15034
15035 GCC_F77="$G77"
15036 LD_F77="$LD"
15037
15038 lt_prog_compiler_wl_F77=
15039 lt_prog_compiler_pic_F77=
15040 lt_prog_compiler_static_F77=
15041
15042 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15044
15045 if test "$GCC" = yes; then
15046 lt_prog_compiler_wl_F77='-Wl,'
15047 lt_prog_compiler_static_F77='-static'
15048
15049 case $host_os in
15050 aix*)
15051 # All AIX code is PIC.
15052 if test "$host_cpu" = ia64; then
15053 # AIX 5 now supports IA64 processor
15054 lt_prog_compiler_static_F77='-Bstatic'
15055 fi
15056 ;;
15057
15058 amigaos*)
15059 # FIXME: we need at least 68020 code to build shared libraries, but
15060 # adding the `-m68020' flag to GCC prevents building anything better,
15061 # like `-m68040'.
15062 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15063 ;;
15064
15065 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15066 # PIC is the default for these OSes.
15067 ;;
15068
15069 mingw* | cygwin* | pw32* | os2*)
15070 # This hack is so that the source file can tell whether it is being
15071 # built for inclusion in a dll (and should export symbols for example).
15072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15073 # (--disable-auto-import) libraries
15074 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15075 ;;
15076
15077 darwin* | rhapsody*)
15078 # PIC is the default on this platform
15079 # Common symbols not allowed in MH_DYLIB files
15080 lt_prog_compiler_pic_F77='-fno-common'
15081 ;;
15082
15083 interix[3-9]*)
15084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15085 # Instead, we relocate shared libraries at runtime.
15086 ;;
15087
15088 msdosdjgpp*)
15089 # Just because we use GCC doesn't mean we suddenly get shared libraries
15090 # on systems that don't support them.
15091 lt_prog_compiler_can_build_shared_F77=no
15092 enable_shared=no
15093 ;;
15094
15095 sysv4*MP*)
15096 if test -d /usr/nec; then
15097 lt_prog_compiler_pic_F77=-Kconform_pic
15098 fi
15099 ;;
15100
15101 hpux*)
15102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15103 # not for PA HP-UX.
15104 case $host_cpu in
15105 hppa*64*|ia64*)
15106 # +Z the default
15107 ;;
15108 *)
15109 lt_prog_compiler_pic_F77='-fPIC'
15110 ;;
15111 esac
15112 ;;
15113
15114 *)
15115 lt_prog_compiler_pic_F77='-fPIC'
15116 ;;
15117 esac
15118 else
15119 # PORTME Check for flag to pass linker flags through the system compiler.
15120 case $host_os in
15121 aix*)
15122 lt_prog_compiler_wl_F77='-Wl,'
15123 if test "$host_cpu" = ia64; then
15124 # AIX 5 now supports IA64 processor
15125 lt_prog_compiler_static_F77='-Bstatic'
15126 else
15127 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15128 fi
15129 ;;
15130 darwin*)
15131 # PIC is the default on this platform
15132 # Common symbols not allowed in MH_DYLIB files
15133 case $cc_basename in
15134 xlc*)
15135 lt_prog_compiler_pic_F77='-qnocommon'
15136 lt_prog_compiler_wl_F77='-Wl,'
15137 ;;
15138 esac
15139 ;;
15140
15141 mingw* | cygwin* | pw32* | os2*)
15142 # This hack is so that the source file can tell whether it is being
15143 # built for inclusion in a dll (and should export symbols for example).
15144 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15145 ;;
15146
15147 hpux9* | hpux10* | hpux11*)
15148 lt_prog_compiler_wl_F77='-Wl,'
15149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15150 # not for PA HP-UX.
15151 case $host_cpu in
15152 hppa*64*|ia64*)
15153 # +Z the default
15154 ;;
15155 *)
15156 lt_prog_compiler_pic_F77='+Z'
15157 ;;
15158 esac
15159 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15160 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15161 ;;
15162
15163 irix5* | irix6* | nonstopux*)
15164 lt_prog_compiler_wl_F77='-Wl,'
15165 # PIC (with -KPIC) is the default.
15166 lt_prog_compiler_static_F77='-non_shared'
15167 ;;
15168
15169 newsos6)
15170 lt_prog_compiler_pic_F77='-KPIC'
15171 lt_prog_compiler_static_F77='-Bstatic'
15172 ;;
15173
15174 linux* | k*bsd*-gnu)
15175 case $cc_basename in
15176 icc* | ecc*)
15177 lt_prog_compiler_wl_F77='-Wl,'
15178 lt_prog_compiler_pic_F77='-KPIC'
15179 lt_prog_compiler_static_F77='-static'
15180 ;;
15181 pgcc* | pgf77* | pgf90* | pgf95*)
15182 # Portland Group compilers (*not* the Pentium gcc compiler,
15183 # which looks to be a dead project)
15184 lt_prog_compiler_wl_F77='-Wl,'
15185 lt_prog_compiler_pic_F77='-fpic'
15186 lt_prog_compiler_static_F77='-Bstatic'
15187 ;;
15188 ccc*)
15189 lt_prog_compiler_wl_F77='-Wl,'
15190 # All Alpha code is PIC.
15191 lt_prog_compiler_static_F77='-non_shared'
15192 ;;
15193 *)
15194 case `$CC -V 2>&1 | sed 5q` in
15195 *Sun\ C*)
15196 # Sun C 5.9
15197 lt_prog_compiler_pic_F77='-KPIC'
15198 lt_prog_compiler_static_F77='-Bstatic'
15199 lt_prog_compiler_wl_F77='-Wl,'
15200 ;;
15201 *Sun\ F*)
15202 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15203 lt_prog_compiler_pic_F77='-KPIC'
15204 lt_prog_compiler_static_F77='-Bstatic'
15205 lt_prog_compiler_wl_F77=''
15206 ;;
15207 esac
15208 ;;
15209 esac
15210 ;;
15211
15212 osf3* | osf4* | osf5*)
15213 lt_prog_compiler_wl_F77='-Wl,'
15214 # All OSF/1 code is PIC.
15215 lt_prog_compiler_static_F77='-non_shared'
15216 ;;
15217
15218 rdos*)
15219 lt_prog_compiler_static_F77='-non_shared'
15220 ;;
15221
15222 solaris*)
15223 lt_prog_compiler_pic_F77='-KPIC'
15224 lt_prog_compiler_static_F77='-Bstatic'
15225 case $cc_basename in
15226 f77* | f90* | f95*)
15227 lt_prog_compiler_wl_F77='-Qoption ld ';;
15228 *)
15229 lt_prog_compiler_wl_F77='-Wl,';;
15230 esac
15231 ;;
15232
15233 sunos4*)
15234 lt_prog_compiler_wl_F77='-Qoption ld '
15235 lt_prog_compiler_pic_F77='-PIC'
15236 lt_prog_compiler_static_F77='-Bstatic'
15237 ;;
15238
15239 sysv4 | sysv4.2uw2* | sysv4.3*)
15240 lt_prog_compiler_wl_F77='-Wl,'
15241 lt_prog_compiler_pic_F77='-KPIC'
15242 lt_prog_compiler_static_F77='-Bstatic'
15243 ;;
15244
15245 sysv4*MP*)
15246 if test -d /usr/nec ;then
15247 lt_prog_compiler_pic_F77='-Kconform_pic'
15248 lt_prog_compiler_static_F77='-Bstatic'
15249 fi
15250 ;;
15251
15252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15253 lt_prog_compiler_wl_F77='-Wl,'
15254 lt_prog_compiler_pic_F77='-KPIC'
15255 lt_prog_compiler_static_F77='-Bstatic'
15256 ;;
15257
15258 unicos*)
15259 lt_prog_compiler_wl_F77='-Wl,'
15260 lt_prog_compiler_can_build_shared_F77=no
15261 ;;
15262
15263 uts4*)
15264 lt_prog_compiler_pic_F77='-pic'
15265 lt_prog_compiler_static_F77='-Bstatic'
15266 ;;
15267
15268 *)
15269 lt_prog_compiler_can_build_shared_F77=no
15270 ;;
15271 esac
15272 fi
15273
15274 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15275 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15276
15277 #
15278 # Check to make sure the PIC flag actually works.
15279 #
15280 if test -n "$lt_prog_compiler_pic_F77"; then
15281
15282 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15284 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 lt_prog_compiler_pic_works_F77=no
15288 ac_outfile=conftest.$ac_objext
15289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15290 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15291 # Insert the option either (1) after the last *FLAGS variable, or
15292 # (2) before a word containing "conftest.", or (3) at the end.
15293 # Note that $ac_compile itself does not contain backslashes and begins
15294 # with a dollar sign (not a hyphen), so the echo should work correctly.
15295 # The option is referenced via a variable to avoid confusing sed.
15296 lt_compile=`echo "$ac_compile" | $SED \
15297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15299 -e 's:$: $lt_compiler_flag:'`
15300 (eval echo "\"\$as_me:15300: $lt_compile\"" >&5)
15301 (eval "$lt_compile" 2>conftest.err)
15302 ac_status=$?
15303 cat conftest.err >&5
15304 echo "$as_me:15304: \$? = $ac_status" >&5
15305 if (exit $ac_status) && test -s "$ac_outfile"; then
15306 # The compiler can only warn and ignore the option if not recognized
15307 # So say no if there are warnings other than the usual output.
15308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15311 lt_prog_compiler_pic_works_F77=yes
15312 fi
15313 fi
15314 $rm conftest*
15315
15316 fi
15317 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15318 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15319
15320 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15321 case $lt_prog_compiler_pic_F77 in
15322 "" | " "*) ;;
15323 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15324 esac
15325 else
15326 lt_prog_compiler_pic_F77=
15327 lt_prog_compiler_can_build_shared_F77=no
15328 fi
15329
15330 fi
15331 case $host_os in
15332 # For platforms which do not support PIC, -DPIC is meaningless:
15333 *djgpp*)
15334 lt_prog_compiler_pic_F77=
15335 ;;
15336 *)
15337 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15338 ;;
15339 esac
15340
15341 #
15342 # Check to make sure the static flag actually works.
15343 #
15344 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15345 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15346 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15347 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350 lt_prog_compiler_static_works_F77=no
15351 save_LDFLAGS="$LDFLAGS"
15352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15355 # The linker can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 if test -s conftest.err; then
15358 # Append any errors to the config.log.
15359 cat conftest.err 1>&5
15360 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15362 if diff conftest.exp conftest.er2 >/dev/null; then
15363 lt_prog_compiler_static_works_F77=yes
15364 fi
15365 else
15366 lt_prog_compiler_static_works_F77=yes
15367 fi
15368 fi
15369 $rm conftest*
15370 LDFLAGS="$save_LDFLAGS"
15371
15372 fi
15373 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15374 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15375
15376 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15377 :
15378 else
15379 lt_prog_compiler_static_F77=
15380 fi
15381
15382
15383 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15384 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15385 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 lt_cv_prog_compiler_c_o_F77=no
15389 $rm -r conftest 2>/dev/null
15390 mkdir conftest
15391 cd conftest
15392 mkdir out
15393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15394
15395 lt_compiler_flag="-o out/conftest2.$ac_objext"
15396 # Insert the option either (1) after the last *FLAGS variable, or
15397 # (2) before a word containing "conftest.", or (3) at the end.
15398 # Note that $ac_compile itself does not contain backslashes and begins
15399 # with a dollar sign (not a hyphen), so the echo should work correctly.
15400 lt_compile=`echo "$ac_compile" | $SED \
15401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15403 -e 's:$: $lt_compiler_flag:'`
15404 (eval echo "\"\$as_me:15404: $lt_compile\"" >&5)
15405 (eval "$lt_compile" 2>out/conftest.err)
15406 ac_status=$?
15407 cat out/conftest.err >&5
15408 echo "$as_me:15408: \$? = $ac_status" >&5
15409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15410 then
15411 # The compiler can only warn and ignore the option if not recognized
15412 # So say no if there are warnings
15413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15416 lt_cv_prog_compiler_c_o_F77=yes
15417 fi
15418 fi
15419 chmod u+w . 2>&5
15420 $rm conftest*
15421 # SGI C++ compiler will create directory out/ii_files/ for
15422 # template instantiation
15423 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15424 $rm out/* && rmdir out
15425 cd ..
15426 rmdir conftest
15427 $rm conftest*
15428
15429 fi
15430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15432
15433
15434 hard_links="nottested"
15435 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15436 # do not overwrite the value of need_locks provided by the user
15437 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15438 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15439 hard_links=yes
15440 $rm conftest*
15441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15442 touch conftest.a
15443 ln conftest.a conftest.b 2>&5 || hard_links=no
15444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15445 { echo "$as_me:$LINENO: result: $hard_links" >&5
15446 echo "${ECHO_T}$hard_links" >&6; }
15447 if test "$hard_links" = no; then
15448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15449 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15450 need_locks=warn
15451 fi
15452 else
15453 need_locks=no
15454 fi
15455
15456 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15458
15459 runpath_var=
15460 allow_undefined_flag_F77=
15461 enable_shared_with_static_runtimes_F77=no
15462 archive_cmds_F77=
15463 archive_expsym_cmds_F77=
15464 old_archive_From_new_cmds_F77=
15465 old_archive_from_expsyms_cmds_F77=
15466 export_dynamic_flag_spec_F77=
15467 whole_archive_flag_spec_F77=
15468 thread_safe_flag_spec_F77=
15469 hardcode_libdir_flag_spec_F77=
15470 hardcode_libdir_flag_spec_ld_F77=
15471 hardcode_libdir_separator_F77=
15472 hardcode_direct_F77=no
15473 hardcode_minus_L_F77=no
15474 hardcode_shlibpath_var_F77=unsupported
15475 link_all_deplibs_F77=unknown
15476 hardcode_automatic_F77=no
15477 module_cmds_F77=
15478 module_expsym_cmds_F77=
15479 always_export_symbols_F77=no
15480 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15481 # include_expsyms should be a list of space-separated symbols to be *always*
15482 # included in the symbol list
15483 include_expsyms_F77=
15484 # exclude_expsyms can be an extended regexp of symbols to exclude
15485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15487 # as well as any symbol that contains `d'.
15488 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15490 # platforms (ab)use it in PIC code, but their linkers get confused if
15491 # the symbol is explicitly referenced. Since portable code cannot
15492 # rely on this symbol name, it's probably fine to never include it in
15493 # preloaded symbol tables.
15494 extract_expsyms_cmds=
15495 # Just being paranoid about ensuring that cc_basename is set.
15496 for cc_temp in $compiler""; do
15497 case $cc_temp in
15498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15500 \-*) ;;
15501 *) break;;
15502 esac
15503 done
15504 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15505
15506 case $host_os in
15507 cygwin* | mingw* | pw32*)
15508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15509 # When not using gcc, we currently assume that we are using
15510 # Microsoft Visual C++.
15511 if test "$GCC" != yes; then
15512 with_gnu_ld=no
15513 fi
15514 ;;
15515 interix*)
15516 # we just hope/assume this is gcc and not c89 (= MSVC++)
15517 with_gnu_ld=yes
15518 ;;
15519 openbsd*)
15520 with_gnu_ld=no
15521 ;;
15522 esac
15523
15524 ld_shlibs_F77=yes
15525 if test "$with_gnu_ld" = yes; then
15526 # If archive_cmds runs LD, not CC, wlarc should be empty
15527 wlarc='${wl}'
15528
15529 # Set some defaults for GNU ld with shared library support. These
15530 # are reset later if shared libraries are not supported. Putting them
15531 # here allows them to be overridden if necessary.
15532 runpath_var=LD_RUN_PATH
15533 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15534 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15535 # ancient GNU ld didn't support --whole-archive et. al.
15536 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15537 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15538 else
15539 whole_archive_flag_spec_F77=
15540 fi
15541 supports_anon_versioning=no
15542 case `$LD -v 2>/dev/null` in
15543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15546 *\ 2.11.*) ;; # other 2.11 versions
15547 *) supports_anon_versioning=yes ;;
15548 esac
15549
15550 # See if GNU ld supports shared libraries.
15551 case $host_os in
15552 aix3* | aix4* | aix5*)
15553 # On AIX/PPC, the GNU linker is very broken
15554 if test "$host_cpu" != ia64; then
15555 ld_shlibs_F77=no
15556 cat <<EOF 1>&2
15557
15558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15559 *** to be unable to reliably create shared libraries on AIX.
15560 *** Therefore, libtool is disabling shared libraries support. If you
15561 *** really care for shared libraries, you may want to modify your PATH
15562 *** so that a non-GNU linker is found, and then restart.
15563
15564 EOF
15565 fi
15566 ;;
15567
15568 amigaos*)
15569 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)'
15570 hardcode_libdir_flag_spec_F77='-L$libdir'
15571 hardcode_minus_L_F77=yes
15572
15573 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15574 # that the semantics of dynamic libraries on AmigaOS, at least up
15575 # to version 4, is to share data among multiple programs linked
15576 # with the same dynamic library. Since this doesn't match the
15577 # behavior of shared libraries on other platforms, we can't use
15578 # them.
15579 ld_shlibs_F77=no
15580 ;;
15581
15582 beos*)
15583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15584 allow_undefined_flag_F77=unsupported
15585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15586 # support --undefined. This deserves some investigation. FIXME
15587 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15588 else
15589 ld_shlibs_F77=no
15590 fi
15591 ;;
15592
15593 cygwin* | mingw* | pw32*)
15594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15595 # as there is no search path for DLLs.
15596 hardcode_libdir_flag_spec_F77='-L$libdir'
15597 allow_undefined_flag_F77=unsupported
15598 always_export_symbols_F77=no
15599 enable_shared_with_static_runtimes_F77=yes
15600 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15601
15602 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15603 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15604 # If the export-symbols file already is a .def file (1st line
15605 # is EXPORTS), use it as is; otherwise, prepend...
15606 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15607 cp $export_symbols $output_objdir/$soname.def;
15608 else
15609 echo EXPORTS > $output_objdir/$soname.def;
15610 cat $export_symbols >> $output_objdir/$soname.def;
15611 fi~
15612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15613 else
15614 ld_shlibs_F77=no
15615 fi
15616 ;;
15617
15618 interix[3-9]*)
15619 hardcode_direct_F77=no
15620 hardcode_shlibpath_var_F77=no
15621 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15622 export_dynamic_flag_spec_F77='${wl}-E'
15623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15624 # Instead, shared libraries are loaded at an image base (0x10000000 by
15625 # default) and relocated if they conflict, which is a slow very memory
15626 # consuming and fragmenting process. To avoid this, we pick a random,
15627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15629 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'
15630 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'
15631 ;;
15632
15633 gnu* | linux* | k*bsd*-gnu)
15634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15635 tmp_addflag=
15636 case $cc_basename,$host_cpu in
15637 pgcc*) # Portland Group C compiler
15638 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'
15639 tmp_addflag=' $pic_flag'
15640 ;;
15641 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15642 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'
15643 tmp_addflag=' $pic_flag -Mnomain' ;;
15644 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15645 tmp_addflag=' -i_dynamic' ;;
15646 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15647 tmp_addflag=' -i_dynamic -nofor_main' ;;
15648 ifc* | ifort*) # Intel Fortran compiler
15649 tmp_addflag=' -nofor_main' ;;
15650 esac
15651 case `$CC -V 2>&1 | sed 5q` in
15652 *Sun\ C*) # Sun C 5.9
15653 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'
15654 tmp_sharedflag='-G' ;;
15655 *Sun\ F*) # Sun Fortran 8.3
15656 tmp_sharedflag='-G' ;;
15657 *)
15658 tmp_sharedflag='-shared' ;;
15659 esac
15660 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15661
15662 if test $supports_anon_versioning = yes; then
15663 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15665 $echo "local: *; };" >> $output_objdir/$libname.ver~
15666 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15667 fi
15668 link_all_deplibs_F77=no
15669 else
15670 ld_shlibs_F77=no
15671 fi
15672 ;;
15673
15674 netbsd* | netbsdelf*-gnu)
15675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15676 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15677 wlarc=
15678 else
15679 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15681 fi
15682 ;;
15683
15684 solaris*)
15685 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15686 ld_shlibs_F77=no
15687 cat <<EOF 1>&2
15688
15689 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15690 *** create shared libraries on Solaris systems. Therefore, libtool
15691 *** is disabling shared libraries support. We urge you to upgrade GNU
15692 *** binutils to release 2.9.1 or newer. Another option is to modify
15693 *** your PATH or compiler configuration so that the native linker is
15694 *** used, and then restart.
15695
15696 EOF
15697 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15698 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15699 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15700 else
15701 ld_shlibs_F77=no
15702 fi
15703 ;;
15704
15705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15706 case `$LD -v 2>&1` in
15707 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15708 ld_shlibs_F77=no
15709 cat <<_LT_EOF 1>&2
15710
15711 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15712 *** reliably create shared libraries on SCO systems. Therefore, libtool
15713 *** is disabling shared libraries support. We urge you to upgrade GNU
15714 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15715 *** your PATH or compiler configuration so that the native linker is
15716 *** used, and then restart.
15717
15718 _LT_EOF
15719 ;;
15720 *)
15721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15722 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15723 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15724 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15725 else
15726 ld_shlibs_F77=no
15727 fi
15728 ;;
15729 esac
15730 ;;
15731
15732 sunos4*)
15733 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15734 wlarc=
15735 hardcode_direct_F77=yes
15736 hardcode_shlibpath_var_F77=no
15737 ;;
15738
15739 *)
15740 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15741 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15742 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15743 else
15744 ld_shlibs_F77=no
15745 fi
15746 ;;
15747 esac
15748
15749 if test "$ld_shlibs_F77" = no; then
15750 runpath_var=
15751 hardcode_libdir_flag_spec_F77=
15752 export_dynamic_flag_spec_F77=
15753 whole_archive_flag_spec_F77=
15754 fi
15755 else
15756 # PORTME fill in a description of your system's linker (not GNU ld)
15757 case $host_os in
15758 aix3*)
15759 allow_undefined_flag_F77=unsupported
15760 always_export_symbols_F77=yes
15761 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'
15762 # Note: this linker hardcodes the directories in LIBPATH if there
15763 # are no directories specified by -L.
15764 hardcode_minus_L_F77=yes
15765 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15766 # Neither direct hardcoding nor static linking is supported with a
15767 # broken collect2.
15768 hardcode_direct_F77=unsupported
15769 fi
15770 ;;
15771
15772 aix4* | aix5*)
15773 if test "$host_cpu" = ia64; then
15774 # On IA64, the linker does run time linking by default, so we don't
15775 # have to do anything special.
15776 aix_use_runtimelinking=no
15777 exp_sym_flag='-Bexport'
15778 no_entry_flag=""
15779 else
15780 # If we're using GNU nm, then we don't want the "-C" option.
15781 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15782 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15783 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'
15784 else
15785 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'
15786 fi
15787 aix_use_runtimelinking=no
15788
15789 # Test if we are trying to use run time linking or normal
15790 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15791 # need to do runtime linking.
15792 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15793 for ld_flag in $LDFLAGS; do
15794 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15795 aix_use_runtimelinking=yes
15796 break
15797 fi
15798 done
15799 ;;
15800 esac
15801
15802 exp_sym_flag='-bexport'
15803 no_entry_flag='-bnoentry'
15804 fi
15805
15806 # When large executables or shared objects are built, AIX ld can
15807 # have problems creating the table of contents. If linking a library
15808 # or program results in "error TOC overflow" add -mminimal-toc to
15809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15811
15812 archive_cmds_F77=''
15813 hardcode_direct_F77=yes
15814 hardcode_libdir_separator_F77=':'
15815 link_all_deplibs_F77=yes
15816
15817 if test "$GCC" = yes; then
15818 case $host_os in aix4.[012]|aix4.[012].*)
15819 # We only want to do this on AIX 4.2 and lower, the check
15820 # below for broken collect2 doesn't work under 4.3+
15821 collect2name=`${CC} -print-prog-name=collect2`
15822 if test -f "$collect2name" && \
15823 strings "$collect2name" | grep resolve_lib_name >/dev/null
15824 then
15825 # We have reworked collect2
15826 :
15827 else
15828 # We have old collect2
15829 hardcode_direct_F77=unsupported
15830 # It fails to find uninstalled libraries when the uninstalled
15831 # path is not listed in the libpath. Setting hardcode_minus_L
15832 # to unsupported forces relinking
15833 hardcode_minus_L_F77=yes
15834 hardcode_libdir_flag_spec_F77='-L$libdir'
15835 hardcode_libdir_separator_F77=
15836 fi
15837 ;;
15838 esac
15839 shared_flag='-shared'
15840 if test "$aix_use_runtimelinking" = yes; then
15841 shared_flag="$shared_flag "'${wl}-G'
15842 fi
15843 else
15844 # not using gcc
15845 if test "$host_cpu" = ia64; then
15846 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15847 # chokes on -Wl,-G. The following line is correct:
15848 shared_flag='-G'
15849 else
15850 if test "$aix_use_runtimelinking" = yes; then
15851 shared_flag='${wl}-G'
15852 else
15853 shared_flag='${wl}-bM:SRE'
15854 fi
15855 fi
15856 fi
15857
15858 # It seems that -bexpall does not export symbols beginning with
15859 # underscore (_), so it is better to generate a list of symbols to export.
15860 always_export_symbols_F77=yes
15861 if test "$aix_use_runtimelinking" = yes; then
15862 # Warning - without using the other runtime loading flags (-brtl),
15863 # -berok will link without error, but may produce a broken library.
15864 allow_undefined_flag_F77='-berok'
15865 # Determine the default libpath from the value encoded in an empty executable.
15866 cat >conftest.$ac_ext <<_ACEOF
15867 program main
15868
15869 end
15870 _ACEOF
15871 rm -f conftest.$ac_objext conftest$ac_exeext
15872 if { (ac_try="$ac_link"
15873 case "(($ac_try" in
15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15876 esac
15877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878 (eval "$ac_link") 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_f77_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest$ac_exeext &&
15888 $as_test_x conftest$ac_exeext; then
15889
15890 lt_aix_libpath_sed='
15891 /Import File Strings/,/^$/ {
15892 /^0/ {
15893 s/^0 *\(.*\)$/\1/
15894 p
15895 }
15896 }'
15897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15898 # Check for a 64-bit object if we didn't find anything.
15899 if test -z "$aix_libpath"; then
15900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15901 fi
15902 else
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906
15907 fi
15908
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15912
15913 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15914 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"
15915 else
15916 if test "$host_cpu" = ia64; then
15917 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15918 allow_undefined_flag_F77="-z nodefs"
15919 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"
15920 else
15921 # Determine the default libpath from the value encoded in an empty executable.
15922 cat >conftest.$ac_ext <<_ACEOF
15923 program main
15924
15925 end
15926 _ACEOF
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (ac_try="$ac_link"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_link") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_f77_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest$ac_exeext &&
15944 $as_test_x conftest$ac_exeext; then
15945
15946 lt_aix_libpath_sed='
15947 /Import File Strings/,/^$/ {
15948 /^0/ {
15949 s/^0 *\(.*\)$/\1/
15950 p
15951 }
15952 }'
15953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15954 # Check for a 64-bit object if we didn't find anything.
15955 if test -z "$aix_libpath"; then
15956 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15957 fi
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962
15963 fi
15964
15965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15966 conftest$ac_exeext conftest.$ac_ext
15967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15968
15969 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15970 # Warning - without using the other run time loading flags,
15971 # -berok will link without error, but may produce a broken library.
15972 no_undefined_flag_F77=' ${wl}-bernotok'
15973 allow_undefined_flag_F77=' ${wl}-berok'
15974 # Exported symbols can be pulled into shared objects from archives
15975 whole_archive_flag_spec_F77='$convenience'
15976 archive_cmds_need_lc_F77=yes
15977 # This is similar to how AIX traditionally builds its shared libraries.
15978 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'
15979 fi
15980 fi
15981 ;;
15982
15983 amigaos*)
15984 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)'
15985 hardcode_libdir_flag_spec_F77='-L$libdir'
15986 hardcode_minus_L_F77=yes
15987 # see comment about different semantics on the GNU ld section
15988 ld_shlibs_F77=no
15989 ;;
15990
15991 bsdi[45]*)
15992 export_dynamic_flag_spec_F77=-rdynamic
15993 ;;
15994
15995 cygwin* | mingw* | pw32*)
15996 # When not using gcc, we currently assume that we are using
15997 # Microsoft Visual C++.
15998 # hardcode_libdir_flag_spec is actually meaningless, as there is
15999 # no search path for DLLs.
16000 hardcode_libdir_flag_spec_F77=' '
16001 allow_undefined_flag_F77=unsupported
16002 # Tell ltmain to make .lib files, not .a files.
16003 libext=lib
16004 # Tell ltmain to make .dll files, not .so files.
16005 shrext_cmds=".dll"
16006 # FIXME: Setting linknames here is a bad hack.
16007 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16008 # The linker will automatically build a .lib file if we build a DLL.
16009 old_archive_From_new_cmds_F77='true'
16010 # FIXME: Should let the user specify the lib program.
16011 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16012 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16013 enable_shared_with_static_runtimes_F77=yes
16014 ;;
16015
16016 darwin* | rhapsody*)
16017 case $host_os in
16018 rhapsody* | darwin1.[012])
16019 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16020 ;;
16021 *) # Darwin 1.3 on
16022 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16023 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16024 else
16025 case ${MACOSX_DEPLOYMENT_TARGET} in
16026 10.[012])
16027 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16028 ;;
16029 10.*)
16030 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16031 ;;
16032 esac
16033 fi
16034 ;;
16035 esac
16036 archive_cmds_need_lc_F77=no
16037 hardcode_direct_F77=no
16038 hardcode_automatic_F77=yes
16039 hardcode_shlibpath_var_F77=unsupported
16040 whole_archive_flag_spec_F77=''
16041 link_all_deplibs_F77=yes
16042 if test "$GCC" = yes ; then
16043 output_verbose_link_cmd='echo'
16044 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16045 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16047 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16048 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}'
16049 else
16050 case $cc_basename in
16051 xlc*)
16052 output_verbose_link_cmd='echo'
16053 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16054 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16056 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}'
16057 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}'
16058 ;;
16059 *)
16060 ld_shlibs_F77=no
16061 ;;
16062 esac
16063 fi
16064 ;;
16065
16066 dgux*)
16067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068 hardcode_libdir_flag_spec_F77='-L$libdir'
16069 hardcode_shlibpath_var_F77=no
16070 ;;
16071
16072 freebsd1*)
16073 ld_shlibs_F77=no
16074 ;;
16075
16076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16077 # support. Future versions do this automatically, but an explicit c++rt0.o
16078 # does not break anything, and helps significantly (at the cost of a little
16079 # extra space).
16080 freebsd2.2*)
16081 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16082 hardcode_libdir_flag_spec_F77='-R$libdir'
16083 hardcode_direct_F77=yes
16084 hardcode_shlibpath_var_F77=no
16085 ;;
16086
16087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16088 freebsd2*)
16089 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16090 hardcode_direct_F77=yes
16091 hardcode_minus_L_F77=yes
16092 hardcode_shlibpath_var_F77=no
16093 ;;
16094
16095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16096 freebsd* | dragonfly*)
16097 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16098 hardcode_libdir_flag_spec_F77='-R$libdir'
16099 hardcode_direct_F77=yes
16100 hardcode_shlibpath_var_F77=no
16101 ;;
16102
16103 hpux9*)
16104 if test "$GCC" = yes; then
16105 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'
16106 else
16107 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'
16108 fi
16109 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16110 hardcode_libdir_separator_F77=:
16111 hardcode_direct_F77=yes
16112
16113 # hardcode_minus_L: Not really in the search PATH,
16114 # but as the default location of the library.
16115 hardcode_minus_L_F77=yes
16116 export_dynamic_flag_spec_F77='${wl}-E'
16117 ;;
16118
16119 hpux10*)
16120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16121 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16122 else
16123 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16124 fi
16125 if test "$with_gnu_ld" = no; then
16126 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16127 hardcode_libdir_separator_F77=:
16128
16129 hardcode_direct_F77=yes
16130 export_dynamic_flag_spec_F77='${wl}-E'
16131
16132 # hardcode_minus_L: Not really in the search PATH,
16133 # but as the default location of the library.
16134 hardcode_minus_L_F77=yes
16135 fi
16136 ;;
16137
16138 hpux11*)
16139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16140 case $host_cpu in
16141 hppa*64*)
16142 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 ;;
16144 ia64*)
16145 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16146 ;;
16147 *)
16148 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16149 ;;
16150 esac
16151 else
16152 case $host_cpu in
16153 hppa*64*)
16154 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16155 ;;
16156 ia64*)
16157 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16158 ;;
16159 *)
16160 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16161 ;;
16162 esac
16163 fi
16164 if test "$with_gnu_ld" = no; then
16165 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16166 hardcode_libdir_separator_F77=:
16167
16168 case $host_cpu in
16169 hppa*64*|ia64*)
16170 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16171 hardcode_direct_F77=no
16172 hardcode_shlibpath_var_F77=no
16173 ;;
16174 *)
16175 hardcode_direct_F77=yes
16176 export_dynamic_flag_spec_F77='${wl}-E'
16177
16178 # hardcode_minus_L: Not really in the search PATH,
16179 # but as the default location of the library.
16180 hardcode_minus_L_F77=yes
16181 ;;
16182 esac
16183 fi
16184 ;;
16185
16186 irix5* | irix6* | nonstopux*)
16187 if test "$GCC" = yes; then
16188 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'
16189 else
16190 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'
16191 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16192 fi
16193 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16194 hardcode_libdir_separator_F77=:
16195 link_all_deplibs_F77=yes
16196 ;;
16197
16198 netbsd* | netbsdelf*-gnu)
16199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16201 else
16202 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16203 fi
16204 hardcode_libdir_flag_spec_F77='-R$libdir'
16205 hardcode_direct_F77=yes
16206 hardcode_shlibpath_var_F77=no
16207 ;;
16208
16209 newsos6)
16210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_direct_F77=yes
16212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16213 hardcode_libdir_separator_F77=:
16214 hardcode_shlibpath_var_F77=no
16215 ;;
16216
16217 openbsd*)
16218 if test -f /usr/libexec/ld.so; then
16219 hardcode_direct_F77=yes
16220 hardcode_shlibpath_var_F77=no
16221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16222 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16224 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16225 export_dynamic_flag_spec_F77='${wl}-E'
16226 else
16227 case $host_os in
16228 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16229 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16230 hardcode_libdir_flag_spec_F77='-R$libdir'
16231 ;;
16232 *)
16233 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16234 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16235 ;;
16236 esac
16237 fi
16238 else
16239 ld_shlibs_F77=no
16240 fi
16241 ;;
16242
16243 os2*)
16244 hardcode_libdir_flag_spec_F77='-L$libdir'
16245 hardcode_minus_L_F77=yes
16246 allow_undefined_flag_F77=unsupported
16247 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'
16248 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16249 ;;
16250
16251 osf3*)
16252 if test "$GCC" = yes; then
16253 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16254 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'
16255 else
16256 allow_undefined_flag_F77=' -expect_unresolved \*'
16257 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'
16258 fi
16259 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16260 hardcode_libdir_separator_F77=:
16261 ;;
16262
16263 osf4* | osf5*) # as osf3* with the addition of -msym flag
16264 if test "$GCC" = yes; then
16265 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16266 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'
16267 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16268 else
16269 allow_undefined_flag_F77=' -expect_unresolved \*'
16270 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'
16271 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~
16272 $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'
16273
16274 # Both c and cxx compiler support -rpath directly
16275 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16276 fi
16277 hardcode_libdir_separator_F77=:
16278 ;;
16279
16280 solaris*)
16281 no_undefined_flag_F77=' -z text'
16282 if test "$GCC" = yes; then
16283 wlarc='${wl}'
16284 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16286 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16287 else
16288 wlarc=''
16289 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16292 fi
16293 hardcode_libdir_flag_spec_F77='-R$libdir'
16294 hardcode_shlibpath_var_F77=no
16295 case $host_os in
16296 solaris2.[0-5] | solaris2.[0-5].*) ;;
16297 *)
16298 # The compiler driver will combine and reorder linker options,
16299 # but understands `-z linker_flag'. GCC discards it without `$wl',
16300 # but is careful enough not to reorder.
16301 # Supported since Solaris 2.6 (maybe 2.5.1?)
16302 if test "$GCC" = yes; then
16303 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16304 else
16305 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16306 fi
16307 ;;
16308 esac
16309 link_all_deplibs_F77=yes
16310 ;;
16311
16312 sunos4*)
16313 if test "x$host_vendor" = xsequent; then
16314 # Use $CC to link under sequent, because it throws in some extra .o
16315 # files that make .init and .fini sections work.
16316 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16317 else
16318 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16319 fi
16320 hardcode_libdir_flag_spec_F77='-L$libdir'
16321 hardcode_direct_F77=yes
16322 hardcode_minus_L_F77=yes
16323 hardcode_shlibpath_var_F77=no
16324 ;;
16325
16326 sysv4)
16327 case $host_vendor in
16328 sni)
16329 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16330 hardcode_direct_F77=yes # is this really true???
16331 ;;
16332 siemens)
16333 ## LD is ld it makes a PLAMLIB
16334 ## CC just makes a GrossModule.
16335 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16336 reload_cmds_F77='$CC -r -o $output$reload_objs'
16337 hardcode_direct_F77=no
16338 ;;
16339 motorola)
16340 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16342 ;;
16343 esac
16344 runpath_var='LD_RUN_PATH'
16345 hardcode_shlibpath_var_F77=no
16346 ;;
16347
16348 sysv4.3*)
16349 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16350 hardcode_shlibpath_var_F77=no
16351 export_dynamic_flag_spec_F77='-Bexport'
16352 ;;
16353
16354 sysv4*MP*)
16355 if test -d /usr/nec; then
16356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16357 hardcode_shlibpath_var_F77=no
16358 runpath_var=LD_RUN_PATH
16359 hardcode_runpath_var=yes
16360 ld_shlibs_F77=yes
16361 fi
16362 ;;
16363
16364 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16365 no_undefined_flag_F77='${wl}-z,text'
16366 archive_cmds_need_lc_F77=no
16367 hardcode_shlibpath_var_F77=no
16368 runpath_var='LD_RUN_PATH'
16369
16370 if test "$GCC" = yes; then
16371 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16372 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16373 else
16374 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16375 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16376 fi
16377 ;;
16378
16379 sysv5* | sco3.2v5* | sco5v6*)
16380 # Note: We can NOT use -z defs as we might desire, because we do not
16381 # link with -lc, and that would cause any symbols used from libc to
16382 # always be unresolved, which means just about no library would
16383 # ever link correctly. If we're not using GNU ld we use -z text
16384 # though, which does catch some bad symbols but isn't as heavy-handed
16385 # as -z defs.
16386 no_undefined_flag_F77='${wl}-z,text'
16387 allow_undefined_flag_F77='${wl}-z,nodefs'
16388 archive_cmds_need_lc_F77=no
16389 hardcode_shlibpath_var_F77=no
16390 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16391 hardcode_libdir_separator_F77=':'
16392 link_all_deplibs_F77=yes
16393 export_dynamic_flag_spec_F77='${wl}-Bexport'
16394 runpath_var='LD_RUN_PATH'
16395
16396 if test "$GCC" = yes; then
16397 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16398 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16399 else
16400 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16401 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16402 fi
16403 ;;
16404
16405 uts4*)
16406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16407 hardcode_libdir_flag_spec_F77='-L$libdir'
16408 hardcode_shlibpath_var_F77=no
16409 ;;
16410
16411 *)
16412 ld_shlibs_F77=no
16413 ;;
16414 esac
16415 fi
16416
16417 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16418 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16419 test "$ld_shlibs_F77" = no && can_build_shared=no
16420
16421 #
16422 # Do we need to explicitly link libc?
16423 #
16424 case "x$archive_cmds_need_lc_F77" in
16425 x|xyes)
16426 # Assume -lc should be added
16427 archive_cmds_need_lc_F77=yes
16428
16429 if test "$enable_shared" = yes && test "$GCC" = yes; then
16430 case $archive_cmds_F77 in
16431 *'~'*)
16432 # FIXME: we may have to deal with multi-command sequences.
16433 ;;
16434 '$CC '*)
16435 # Test whether the compiler implicitly links with -lc since on some
16436 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16437 # to ld, don't add -lc before -lgcc.
16438 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16440 $rm conftest*
16441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16442
16443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16444 (eval $ac_compile) 2>&5
16445 ac_status=$?
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } 2>conftest.err; then
16448 soname=conftest
16449 lib=conftest
16450 libobjs=conftest.$ac_objext
16451 deplibs=
16452 wl=$lt_prog_compiler_wl_F77
16453 pic_flag=$lt_prog_compiler_pic_F77
16454 compiler_flags=-v
16455 linker_flags=-v
16456 verstring=
16457 output_objdir=.
16458 libname=conftest
16459 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16460 allow_undefined_flag_F77=
16461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16462 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }
16466 then
16467 archive_cmds_need_lc_F77=no
16468 else
16469 archive_cmds_need_lc_F77=yes
16470 fi
16471 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16472 else
16473 cat conftest.err 1>&5
16474 fi
16475 $rm conftest*
16476 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16477 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16478 ;;
16479 esac
16480 fi
16481 ;;
16482 esac
16483
16484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16486 library_names_spec=
16487 libname_spec='lib$name'
16488 soname_spec=
16489 shrext_cmds=".so"
16490 postinstall_cmds=
16491 postuninstall_cmds=
16492 finish_cmds=
16493 finish_eval=
16494 shlibpath_var=
16495 shlibpath_overrides_runpath=unknown
16496 version_type=none
16497 dynamic_linker="$host_os ld.so"
16498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16499
16500 need_lib_prefix=unknown
16501 hardcode_into_libs=no
16502
16503 # when you set need_version to no, make sure it does not cause -set_version
16504 # flags to be left without arguments
16505 need_version=unknown
16506
16507 case $host_os in
16508 aix3*)
16509 version_type=linux
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16511 shlibpath_var=LIBPATH
16512
16513 # AIX 3 has no versioning support, so we append a major version to the name.
16514 soname_spec='${libname}${release}${shared_ext}$major'
16515 ;;
16516
16517 aix4* | aix5*)
16518 version_type=linux
16519 need_lib_prefix=no
16520 need_version=no
16521 hardcode_into_libs=yes
16522 if test "$host_cpu" = ia64; then
16523 # AIX 5 supports IA64
16524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16525 shlibpath_var=LD_LIBRARY_PATH
16526 else
16527 # With GCC up to 2.95.x, collect2 would create an import file
16528 # for dependence libraries. The import file would start with
16529 # the line `#! .'. This would cause the generated library to
16530 # depend on `.', always an invalid library. This was fixed in
16531 # development snapshots of GCC prior to 3.0.
16532 case $host_os in
16533 aix4 | aix4.[01] | aix4.[01].*)
16534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16535 echo ' yes '
16536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16537 :
16538 else
16539 can_build_shared=no
16540 fi
16541 ;;
16542 esac
16543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16544 # soname into executable. Probably we can add versioning support to
16545 # collect2, so additional links can be useful in future.
16546 if test "$aix_use_runtimelinking" = yes; then
16547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16548 # instead of lib<name>.a to let people know that these are not
16549 # typical AIX shared libraries.
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 else
16552 # We preserve .a as extension for shared libraries through AIX4.2
16553 # and later when we are not doing run time linking.
16554 library_names_spec='${libname}${release}.a $libname.a'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 fi
16557 shlibpath_var=LIBPATH
16558 fi
16559 ;;
16560
16561 amigaos*)
16562 library_names_spec='$libname.ixlibrary $libname.a'
16563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16564 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'
16565 ;;
16566
16567 beos*)
16568 library_names_spec='${libname}${shared_ext}'
16569 dynamic_linker="$host_os ld.so"
16570 shlibpath_var=LIBRARY_PATH
16571 ;;
16572
16573 bsdi[45]*)
16574 version_type=linux
16575 need_version=no
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16582 # the default ld.so.conf also contains /usr/contrib/lib and
16583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16584 # libtool to hard-code these into programs
16585 ;;
16586
16587 cygwin* | mingw* | pw32*)
16588 version_type=windows
16589 shrext_cmds=".dll"
16590 need_version=no
16591 need_lib_prefix=no
16592
16593 case $GCC,$host_os in
16594 yes,cygwin* | yes,mingw* | yes,pw32*)
16595 library_names_spec='$libname.dll.a'
16596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16597 postinstall_cmds='base_file=`basename \${file}`~
16598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16599 dldir=$destdir/`dirname \$dlpath`~
16600 test -d \$dldir || mkdir -p \$dldir~
16601 $install_prog $dir/$dlname \$dldir/$dlname~
16602 chmod a+x \$dldir/$dlname'
16603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16604 dlpath=$dir/\$dldll~
16605 $rm \$dlpath'
16606 shlibpath_overrides_runpath=yes
16607
16608 case $host_os in
16609 cygwin*)
16610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16611 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16613 ;;
16614 mingw*)
16615 # MinGW DLLs use traditional 'lib' prefix
16616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16619 # It is most probably a Windows format PATH printed by
16620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16621 # path with ; separators, and with drive letters. We can handle the
16622 # drive letters (cygwin fileutils understands them), so leave them,
16623 # especially as we might pass files found there to a mingw objdump,
16624 # which wouldn't understand a cygwinified path. Ahh.
16625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16626 else
16627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16628 fi
16629 ;;
16630 pw32*)
16631 # pw32 DLLs use 'pw' prefix rather than 'lib'
16632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16633 ;;
16634 esac
16635 ;;
16636
16637 *)
16638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16639 ;;
16640 esac
16641 dynamic_linker='Win32 ld.exe'
16642 # FIXME: first we should search . and the directory the executable is in
16643 shlibpath_var=PATH
16644 ;;
16645
16646 darwin* | rhapsody*)
16647 dynamic_linker="$host_os dyld"
16648 version_type=darwin
16649 need_lib_prefix=no
16650 need_version=no
16651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16652 soname_spec='${libname}${release}${major}$shared_ext'
16653 shlibpath_overrides_runpath=yes
16654 shlibpath_var=DYLD_LIBRARY_PATH
16655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16656
16657 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16658 ;;
16659
16660 dgux*)
16661 version_type=linux
16662 need_lib_prefix=no
16663 need_version=no
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16665 soname_spec='${libname}${release}${shared_ext}$major'
16666 shlibpath_var=LD_LIBRARY_PATH
16667 ;;
16668
16669 freebsd1*)
16670 dynamic_linker=no
16671 ;;
16672
16673 freebsd* | dragonfly*)
16674 # DragonFly does not have aout. When/if they implement a new
16675 # versioning mechanism, adjust this.
16676 if test -x /usr/bin/objformat; then
16677 objformat=`/usr/bin/objformat`
16678 else
16679 case $host_os in
16680 freebsd[123]*) objformat=aout ;;
16681 *) objformat=elf ;;
16682 esac
16683 fi
16684 version_type=freebsd-$objformat
16685 case $version_type in
16686 freebsd-elf*)
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16688 need_version=no
16689 need_lib_prefix=no
16690 ;;
16691 freebsd-*)
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16693 need_version=yes
16694 ;;
16695 esac
16696 shlibpath_var=LD_LIBRARY_PATH
16697 case $host_os in
16698 freebsd2*)
16699 shlibpath_overrides_runpath=yes
16700 ;;
16701 freebsd3.[01]* | freebsdelf3.[01]*)
16702 shlibpath_overrides_runpath=yes
16703 hardcode_into_libs=yes
16704 ;;
16705 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16706 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16707 shlibpath_overrides_runpath=no
16708 hardcode_into_libs=yes
16709 ;;
16710 *) # from 4.6 on, and DragonFly
16711 shlibpath_overrides_runpath=yes
16712 hardcode_into_libs=yes
16713 ;;
16714 esac
16715 ;;
16716
16717 gnu*)
16718 version_type=linux
16719 need_lib_prefix=no
16720 need_version=no
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16722 soname_spec='${libname}${release}${shared_ext}$major'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 hardcode_into_libs=yes
16725 ;;
16726
16727 hpux9* | hpux10* | hpux11*)
16728 # Give a soname corresponding to the major version so that dld.sl refuses to
16729 # link against other versions.
16730 version_type=sunos
16731 need_lib_prefix=no
16732 need_version=no
16733 case $host_cpu in
16734 ia64*)
16735 shrext_cmds='.so'
16736 hardcode_into_libs=yes
16737 dynamic_linker="$host_os dld.so"
16738 shlibpath_var=LD_LIBRARY_PATH
16739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 soname_spec='${libname}${release}${shared_ext}$major'
16742 if test "X$HPUX_IA64_MODE" = X32; then
16743 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16744 else
16745 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16746 fi
16747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16748 ;;
16749 hppa*64*)
16750 shrext_cmds='.sl'
16751 hardcode_into_libs=yes
16752 dynamic_linker="$host_os dld.sl"
16753 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 soname_spec='${libname}${release}${shared_ext}$major'
16757 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16759 ;;
16760 *)
16761 shrext_cmds='.sl'
16762 dynamic_linker="$host_os dld.sl"
16763 shlibpath_var=SHLIB_PATH
16764 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 ;;
16768 esac
16769 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16770 postinstall_cmds='chmod 555 $lib'
16771 ;;
16772
16773 interix[3-9]*)
16774 version_type=linux
16775 need_lib_prefix=no
16776 need_version=no
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 shlibpath_overrides_runpath=no
16782 hardcode_into_libs=yes
16783 ;;
16784
16785 irix5* | irix6* | nonstopux*)
16786 case $host_os in
16787 nonstopux*) version_type=nonstopux ;;
16788 *)
16789 if test "$lt_cv_prog_gnu_ld" = yes; then
16790 version_type=linux
16791 else
16792 version_type=irix
16793 fi ;;
16794 esac
16795 need_lib_prefix=no
16796 need_version=no
16797 soname_spec='${libname}${release}${shared_ext}$major'
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16799 case $host_os in
16800 irix5* | nonstopux*)
16801 libsuff= shlibsuff=
16802 ;;
16803 *)
16804 case $LD in # libtool.m4 will add one of these switches to LD
16805 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16806 libsuff= shlibsuff= libmagic=32-bit;;
16807 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16808 libsuff=32 shlibsuff=N32 libmagic=N32;;
16809 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16810 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16811 *) libsuff= shlibsuff= libmagic=never-match;;
16812 esac
16813 ;;
16814 esac
16815 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16816 shlibpath_overrides_runpath=no
16817 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16818 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16819 hardcode_into_libs=yes
16820 ;;
16821
16822 # No shared lib support for Linux oldld, aout, or coff.
16823 linux*oldld* | linux*aout* | linux*coff*)
16824 dynamic_linker=no
16825 ;;
16826
16827 # This must be Linux ELF.
16828 linux* | k*bsd*-gnu)
16829 version_type=linux
16830 need_lib_prefix=no
16831 need_version=no
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 shlibpath_overrides_runpath=no
16837 # This implies no fast_install, which is unacceptable.
16838 # Some rework will be needed to allow for fast_install
16839 # before this can be enabled.
16840 hardcode_into_libs=yes
16841
16842 # Append ld.so.conf contents to the search path
16843 if test -f /etc/ld.so.conf; then
16844 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' ' '`
16845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16846 fi
16847
16848 # We used to test for /lib/ld.so.1 and disable shared libraries on
16849 # powerpc, because MkLinux only supported shared libraries with the
16850 # GNU dynamic linker. Since this was broken with cross compilers,
16851 # most powerpc-linux boxes support dynamic linking these days and
16852 # people can always --disable-shared, the test was removed, and we
16853 # assume the GNU/Linux dynamic linker is in use.
16854 dynamic_linker='GNU/Linux ld.so'
16855 ;;
16856
16857 netbsdelf*-gnu)
16858 version_type=linux
16859 need_lib_prefix=no
16860 need_version=no
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=no
16865 hardcode_into_libs=yes
16866 dynamic_linker='NetBSD ld.elf_so'
16867 ;;
16868
16869 netbsd*)
16870 version_type=sunos
16871 need_lib_prefix=no
16872 need_version=no
16873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16876 dynamic_linker='NetBSD (a.out) ld.so'
16877 else
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16879 soname_spec='${libname}${release}${shared_ext}$major'
16880 dynamic_linker='NetBSD ld.elf_so'
16881 fi
16882 shlibpath_var=LD_LIBRARY_PATH
16883 shlibpath_overrides_runpath=yes
16884 hardcode_into_libs=yes
16885 ;;
16886
16887 newsos6)
16888 version_type=linux
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes
16892 ;;
16893
16894 nto-qnx*)
16895 version_type=linux
16896 need_lib_prefix=no
16897 need_version=no
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16899 soname_spec='${libname}${release}${shared_ext}$major'
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=yes
16902 ;;
16903
16904 openbsd*)
16905 version_type=sunos
16906 sys_lib_dlsearch_path_spec="/usr/lib"
16907 need_lib_prefix=no
16908 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16909 case $host_os in
16910 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16911 *) need_version=no ;;
16912 esac
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16915 shlibpath_var=LD_LIBRARY_PATH
16916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16917 case $host_os in
16918 openbsd2.[89] | openbsd2.[89].*)
16919 shlibpath_overrides_runpath=no
16920 ;;
16921 *)
16922 shlibpath_overrides_runpath=yes
16923 ;;
16924 esac
16925 else
16926 shlibpath_overrides_runpath=yes
16927 fi
16928 ;;
16929
16930 os2*)
16931 libname_spec='$name'
16932 shrext_cmds=".dll"
16933 need_lib_prefix=no
16934 library_names_spec='$libname${shared_ext} $libname.a'
16935 dynamic_linker='OS/2 ld.exe'
16936 shlibpath_var=LIBPATH
16937 ;;
16938
16939 osf3* | osf4* | osf5*)
16940 version_type=osf
16941 need_lib_prefix=no
16942 need_version=no
16943 soname_spec='${libname}${release}${shared_ext}$major'
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16947 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16948 ;;
16949
16950 rdos*)
16951 dynamic_linker=no
16952 ;;
16953
16954 solaris*)
16955 version_type=linux
16956 need_lib_prefix=no
16957 need_version=no
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 shlibpath_var=LD_LIBRARY_PATH
16961 shlibpath_overrides_runpath=yes
16962 hardcode_into_libs=yes
16963 # ldd complains unless libraries are executable
16964 postinstall_cmds='chmod +x $lib'
16965 ;;
16966
16967 sunos4*)
16968 version_type=sunos
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16970 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 shlibpath_overrides_runpath=yes
16973 if test "$with_gnu_ld" = yes; then
16974 need_lib_prefix=no
16975 fi
16976 need_version=yes
16977 ;;
16978
16979 sysv4 | sysv4.3*)
16980 version_type=linux
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 shlibpath_var=LD_LIBRARY_PATH
16984 case $host_vendor in
16985 sni)
16986 shlibpath_overrides_runpath=no
16987 need_lib_prefix=no
16988 export_dynamic_flag_spec='${wl}-Blargedynsym'
16989 runpath_var=LD_RUN_PATH
16990 ;;
16991 siemens)
16992 need_lib_prefix=no
16993 ;;
16994 motorola)
16995 need_lib_prefix=no
16996 need_version=no
16997 shlibpath_overrides_runpath=no
16998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16999 ;;
17000 esac
17001 ;;
17002
17003 sysv4*MP*)
17004 if test -d /usr/nec ;then
17005 version_type=linux
17006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17007 soname_spec='$libname${shared_ext}.$major'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 fi
17010 ;;
17011
17012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17013 version_type=freebsd-elf
17014 need_lib_prefix=no
17015 need_version=no
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17017 soname_spec='${libname}${release}${shared_ext}$major'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 hardcode_into_libs=yes
17020 if test "$with_gnu_ld" = yes; then
17021 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17022 shlibpath_overrides_runpath=no
17023 else
17024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17025 shlibpath_overrides_runpath=yes
17026 case $host_os in
17027 sco3.2v5*)
17028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17029 ;;
17030 esac
17031 fi
17032 sys_lib_dlsearch_path_spec='/usr/lib'
17033 ;;
17034
17035 uts4*)
17036 version_type=linux
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 shlibpath_var=LD_LIBRARY_PATH
17040 ;;
17041
17042 *)
17043 dynamic_linker=no
17044 ;;
17045 esac
17046 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17047 echo "${ECHO_T}$dynamic_linker" >&6; }
17048 test "$dynamic_linker" = no && can_build_shared=no
17049
17050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17051 if test "$GCC" = yes; then
17052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17053 fi
17054
17055 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17057 hardcode_action_F77=
17058 if test -n "$hardcode_libdir_flag_spec_F77" || \
17059 test -n "$runpath_var_F77" || \
17060 test "X$hardcode_automatic_F77" = "Xyes" ; then
17061
17062 # We can hardcode non-existant directories.
17063 if test "$hardcode_direct_F77" != no &&
17064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17065 # have to relink, otherwise we might link with an installed library
17066 # when we should be linking with a yet-to-be-installed one
17067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17068 test "$hardcode_minus_L_F77" != no; then
17069 # Linking always hardcodes the temporary library directory.
17070 hardcode_action_F77=relink
17071 else
17072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17073 hardcode_action_F77=immediate
17074 fi
17075 else
17076 # We cannot hardcode anything, or else we can only hardcode existing
17077 # directories.
17078 hardcode_action_F77=unsupported
17079 fi
17080 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17081 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17082
17083 if test "$hardcode_action_F77" = relink; then
17084 # Fast installation is not supported
17085 enable_fast_install=no
17086 elif test "$shlibpath_overrides_runpath" = yes ||
17087 test "$enable_shared" = no; then
17088 # Fast installation is not necessary
17089 enable_fast_install=needless
17090 fi
17091
17092
17093 # The else clause should only fire when bootstrapping the
17094 # libtool distribution, otherwise you forgot to ship ltmain.sh
17095 # with your package, and you will get complaints that there are
17096 # no rules to generate ltmain.sh.
17097 if test -f "$ltmain"; then
17098 # See if we are running on zsh, and set the options which allow our commands through
17099 # without removal of \ escapes.
17100 if test -n "${ZSH_VERSION+set}" ; then
17101 setopt NO_GLOB_SUBST
17102 fi
17103 # Now quote all the things that may contain metacharacters while being
17104 # careful not to overquote the AC_SUBSTed values. We take copies of the
17105 # variables and quote the copies for generation of the libtool script.
17106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17107 SED SHELL STRIP \
17108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17110 deplibs_check_method reload_flag reload_cmds need_locks \
17111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17112 lt_cv_sys_global_symbol_to_c_name_address \
17113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17114 old_postinstall_cmds old_postuninstall_cmds \
17115 compiler_F77 \
17116 CC_F77 \
17117 LD_F77 \
17118 lt_prog_compiler_wl_F77 \
17119 lt_prog_compiler_pic_F77 \
17120 lt_prog_compiler_static_F77 \
17121 lt_prog_compiler_no_builtin_flag_F77 \
17122 export_dynamic_flag_spec_F77 \
17123 thread_safe_flag_spec_F77 \
17124 whole_archive_flag_spec_F77 \
17125 enable_shared_with_static_runtimes_F77 \
17126 old_archive_cmds_F77 \
17127 old_archive_from_new_cmds_F77 \
17128 predep_objects_F77 \
17129 postdep_objects_F77 \
17130 predeps_F77 \
17131 postdeps_F77 \
17132 compiler_lib_search_path_F77 \
17133 archive_cmds_F77 \
17134 archive_expsym_cmds_F77 \
17135 postinstall_cmds_F77 \
17136 postuninstall_cmds_F77 \
17137 old_archive_from_expsyms_cmds_F77 \
17138 allow_undefined_flag_F77 \
17139 no_undefined_flag_F77 \
17140 export_symbols_cmds_F77 \
17141 hardcode_libdir_flag_spec_F77 \
17142 hardcode_libdir_flag_spec_ld_F77 \
17143 hardcode_libdir_separator_F77 \
17144 hardcode_automatic_F77 \
17145 module_cmds_F77 \
17146 module_expsym_cmds_F77 \
17147 lt_cv_prog_compiler_c_o_F77 \
17148 fix_srcfile_path_F77 \
17149 exclude_expsyms_F77 \
17150 include_expsyms_F77; do
17151
17152 case $var in
17153 old_archive_cmds_F77 | \
17154 old_archive_from_new_cmds_F77 | \
17155 archive_cmds_F77 | \
17156 archive_expsym_cmds_F77 | \
17157 module_cmds_F77 | \
17158 module_expsym_cmds_F77 | \
17159 old_archive_from_expsyms_cmds_F77 | \
17160 export_symbols_cmds_F77 | \
17161 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17162 postinstall_cmds | postuninstall_cmds | \
17163 old_postinstall_cmds | old_postuninstall_cmds | \
17164 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17165 # Double-quote double-evaled strings.
17166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17167 ;;
17168 *)
17169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17170 ;;
17171 esac
17172 done
17173
17174 case $lt_echo in
17175 *'\$0 --fallback-echo"')
17176 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17177 ;;
17178 esac
17179
17180 cfgfile="$ofile"
17181
17182 cat <<__EOF__ >> "$cfgfile"
17183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17184
17185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17186
17187 # Shell to use when invoking shell scripts.
17188 SHELL=$lt_SHELL
17189
17190 # Whether or not to build shared libraries.
17191 build_libtool_libs=$enable_shared
17192
17193 # Whether or not to build static libraries.
17194 build_old_libs=$enable_static
17195
17196 # Whether or not to add -lc for building shared libraries.
17197 build_libtool_need_lc=$archive_cmds_need_lc_F77
17198
17199 # Whether or not to disallow shared libs when runtime libs are static
17200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17201
17202 # Whether or not to optimize for fast installation.
17203 fast_install=$enable_fast_install
17204
17205 # The host system.
17206 host_alias=$host_alias
17207 host=$host
17208 host_os=$host_os
17209
17210 # The build system.
17211 build_alias=$build_alias
17212 build=$build
17213 build_os=$build_os
17214
17215 # An echo program that does not interpret backslashes.
17216 echo=$lt_echo
17217
17218 # The archiver.
17219 AR=$lt_AR
17220 AR_FLAGS=$lt_AR_FLAGS
17221
17222 # A C compiler.
17223 LTCC=$lt_LTCC
17224
17225 # LTCC compiler flags.
17226 LTCFLAGS=$lt_LTCFLAGS
17227
17228 # A language-specific compiler.
17229 CC=$lt_compiler_F77
17230
17231 # Is the compiler the GNU C compiler?
17232 with_gcc=$GCC_F77
17233
17234 # An ERE matcher.
17235 EGREP=$lt_EGREP
17236
17237 # The linker used to build libraries.
17238 LD=$lt_LD_F77
17239
17240 # Whether we need hard or soft links.
17241 LN_S=$lt_LN_S
17242
17243 # A BSD-compatible nm program.
17244 NM=$lt_NM
17245
17246 # A symbol stripping program
17247 STRIP=$lt_STRIP
17248
17249 # Used to examine libraries when file_magic_cmd begins "file"
17250 MAGIC_CMD=$MAGIC_CMD
17251
17252 # Used on cygwin: DLL creation program.
17253 DLLTOOL="$DLLTOOL"
17254
17255 # Used on cygwin: object dumper.
17256 OBJDUMP="$OBJDUMP"
17257
17258 # Used on cygwin: assembler.
17259 AS="$AS"
17260
17261 # The name of the directory that contains temporary libtool files.
17262 objdir=$objdir
17263
17264 # How to create reloadable object files.
17265 reload_flag=$lt_reload_flag
17266 reload_cmds=$lt_reload_cmds
17267
17268 # How to pass a linker flag through the compiler.
17269 wl=$lt_lt_prog_compiler_wl_F77
17270
17271 # Object file suffix (normally "o").
17272 objext="$ac_objext"
17273
17274 # Old archive suffix (normally "a").
17275 libext="$libext"
17276
17277 # Shared library suffix (normally ".so").
17278 shrext_cmds='$shrext_cmds'
17279
17280 # Executable file suffix (normally "").
17281 exeext="$exeext"
17282
17283 # Additional compiler flags for building library objects.
17284 pic_flag=$lt_lt_prog_compiler_pic_F77
17285 pic_mode=$pic_mode
17286
17287 # What is the maximum length of a command?
17288 max_cmd_len=$lt_cv_sys_max_cmd_len
17289
17290 # Does compiler simultaneously support -c and -o options?
17291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17292
17293 # Must we lock files when doing compilation?
17294 need_locks=$lt_need_locks
17295
17296 # Do we need the lib prefix for modules?
17297 need_lib_prefix=$need_lib_prefix
17298
17299 # Do we need a version for libraries?
17300 need_version=$need_version
17301
17302 # Whether dlopen is supported.
17303 dlopen_support=$enable_dlopen
17304
17305 # Whether dlopen of programs is supported.
17306 dlopen_self=$enable_dlopen_self
17307
17308 # Whether dlopen of statically linked programs is supported.
17309 dlopen_self_static=$enable_dlopen_self_static
17310
17311 # Compiler flag to prevent dynamic linking.
17312 link_static_flag=$lt_lt_prog_compiler_static_F77
17313
17314 # Compiler flag to turn off builtin functions.
17315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17316
17317 # Compiler flag to allow reflexive dlopens.
17318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17319
17320 # Compiler flag to generate shared objects directly from archives.
17321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17322
17323 # Compiler flag to generate thread-safe objects.
17324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17325
17326 # Library versioning type.
17327 version_type=$version_type
17328
17329 # Format of library name prefix.
17330 libname_spec=$lt_libname_spec
17331
17332 # List of archive names. First name is the real one, the rest are links.
17333 # The last name is the one that the linker finds with -lNAME.
17334 library_names_spec=$lt_library_names_spec
17335
17336 # The coded name of the library, if different from the real name.
17337 soname_spec=$lt_soname_spec
17338
17339 # Commands used to build and install an old-style archive.
17340 RANLIB=$lt_RANLIB
17341 old_archive_cmds=$lt_old_archive_cmds_F77
17342 old_postinstall_cmds=$lt_old_postinstall_cmds
17343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17344
17345 # Create an old-style archive from a shared archive.
17346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17347
17348 # Create a temporary old-style archive to link instead of a shared archive.
17349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17350
17351 # Commands used to build and install a shared archive.
17352 archive_cmds=$lt_archive_cmds_F77
17353 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17354 postinstall_cmds=$lt_postinstall_cmds
17355 postuninstall_cmds=$lt_postuninstall_cmds
17356
17357 # Commands used to build a loadable module (assumed same as above if empty)
17358 module_cmds=$lt_module_cmds_F77
17359 module_expsym_cmds=$lt_module_expsym_cmds_F77
17360
17361 # Commands to strip libraries.
17362 old_striplib=$lt_old_striplib
17363 striplib=$lt_striplib
17364
17365 # Dependencies to place before the objects being linked to create a
17366 # shared library.
17367 predep_objects=$lt_predep_objects_F77
17368
17369 # Dependencies to place after the objects being linked to create a
17370 # shared library.
17371 postdep_objects=$lt_postdep_objects_F77
17372
17373 # Dependencies to place before the objects being linked to create a
17374 # shared library.
17375 predeps=$lt_predeps_F77
17376
17377 # Dependencies to place after the objects being linked to create a
17378 # shared library.
17379 postdeps=$lt_postdeps_F77
17380
17381 # The library search path used internally by the compiler when linking
17382 # a shared library.
17383 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17384
17385 # Method to check whether dependent libraries are shared objects.
17386 deplibs_check_method=$lt_deplibs_check_method
17387
17388 # Command to use when deplibs_check_method == file_magic.
17389 file_magic_cmd=$lt_file_magic_cmd
17390
17391 # Flag that allows shared libraries with undefined symbols to be built.
17392 allow_undefined_flag=$lt_allow_undefined_flag_F77
17393
17394 # Flag that forces no undefined symbols.
17395 no_undefined_flag=$lt_no_undefined_flag_F77
17396
17397 # Commands used to finish a libtool library installation in a directory.
17398 finish_cmds=$lt_finish_cmds
17399
17400 # Same as above, but a single script fragment to be evaled but not shown.
17401 finish_eval=$lt_finish_eval
17402
17403 # Take the output of nm and produce a listing of raw symbols and C names.
17404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17405
17406 # Transform the output of nm in a proper C declaration
17407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17408
17409 # Transform the output of nm in a C name address pair
17410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17411
17412 # This is the shared library runtime path variable.
17413 runpath_var=$runpath_var
17414
17415 # This is the shared library path variable.
17416 shlibpath_var=$shlibpath_var
17417
17418 # Is shlibpath searched before the hard-coded library search path?
17419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17420
17421 # How to hardcode a shared library path into an executable.
17422 hardcode_action=$hardcode_action_F77
17423
17424 # Whether we should hardcode library paths into libraries.
17425 hardcode_into_libs=$hardcode_into_libs
17426
17427 # Flag to hardcode \$libdir into a binary during linking.
17428 # This must work even if \$libdir does not exist.
17429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17430
17431 # If ld is used when linking, flag to hardcode \$libdir into
17432 # a binary during linking. This must work even if \$libdir does
17433 # not exist.
17434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17435
17436 # Whether we need a single -rpath flag with a separated argument.
17437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17438
17439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17440 # resulting binary.
17441 hardcode_direct=$hardcode_direct_F77
17442
17443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17444 # resulting binary.
17445 hardcode_minus_L=$hardcode_minus_L_F77
17446
17447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17448 # the resulting binary.
17449 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17450
17451 # Set to yes if building a shared library automatically hardcodes DIR into the library
17452 # and all subsequent libraries and executables linked against it.
17453 hardcode_automatic=$hardcode_automatic_F77
17454
17455 # Variables whose values should be saved in libtool wrapper scripts and
17456 # restored at relink time.
17457 variables_saved_for_relink="$variables_saved_for_relink"
17458
17459 # Whether libtool must link a program against all its dependency libraries.
17460 link_all_deplibs=$link_all_deplibs_F77
17461
17462 # Compile-time system search path for libraries
17463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17464
17465 # Run-time system search path for libraries
17466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17467
17468 # Fix the shell variable \$srcfile for the compiler.
17469 fix_srcfile_path=$lt_fix_srcfile_path
17470
17471 # Set to yes if exported symbols are required.
17472 always_export_symbols=$always_export_symbols_F77
17473
17474 # The commands to list exported symbols.
17475 export_symbols_cmds=$lt_export_symbols_cmds_F77
17476
17477 # The commands to extract the exported symbol list from a shared archive.
17478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17479
17480 # Symbols that should not be listed in the preloaded symbols.
17481 exclude_expsyms=$lt_exclude_expsyms_F77
17482
17483 # Symbols that must always be exported.
17484 include_expsyms=$lt_include_expsyms_F77
17485
17486 # ### END LIBTOOL TAG CONFIG: $tagname
17487
17488 __EOF__
17489
17490
17491 else
17492 # If there is no Makefile yet, we rely on a make rule to execute
17493 # `config.status --recheck' to rerun these tests and create the
17494 # libtool script then.
17495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17496 if test -f "$ltmain_in"; then
17497 test -f Makefile && make "$ltmain"
17498 fi
17499 fi
17500
17501
17502 ac_ext=c
17503 ac_cpp='$CPP $CPPFLAGS'
17504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17507
17508 CC="$lt_save_CC"
17509
17510 else
17511 tagname=""
17512 fi
17513 ;;
17514
17515 GCJ)
17516 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17517
17518
17519 # Source file extension for Java test sources.
17520 ac_ext=java
17521
17522 # Object file extension for compiled Java test sources.
17523 objext=o
17524 objext_GCJ=$objext
17525
17526 # Code to be used in simple compile tests
17527 lt_simple_compile_test_code="class foo {}"
17528
17529 # Code to be used in simple link tests
17530 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17531
17532 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17533
17534 # If no C compiler was specified, use CC.
17535 LTCC=${LTCC-"$CC"}
17536
17537 # If no C compiler flags were specified, use CFLAGS.
17538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17539
17540 # Allow CC to be a program name with arguments.
17541 compiler=$CC
17542
17543
17544 # save warnings/boilerplate of simple test code
17545 ac_outfile=conftest.$ac_objext
17546 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17548 _lt_compiler_boilerplate=`cat conftest.err`
17549 $rm conftest*
17550
17551 ac_outfile=conftest.$ac_objext
17552 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17554 _lt_linker_boilerplate=`cat conftest.err`
17555 $rm conftest*
17556
17557
17558 # Allow CC to be a program name with arguments.
17559 lt_save_CC="$CC"
17560 CC=${GCJ-"gcj"}
17561 compiler=$CC
17562 compiler_GCJ=$CC
17563 for cc_temp in $compiler""; do
17564 case $cc_temp in
17565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17567 \-*) ;;
17568 *) break;;
17569 esac
17570 done
17571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17572
17573
17574 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17575 archive_cmds_need_lc_GCJ=no
17576
17577 old_archive_cmds_GCJ=$old_archive_cmds
17578
17579
17580 lt_prog_compiler_no_builtin_flag_GCJ=
17581
17582 if test "$GCC" = yes; then
17583 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17584
17585
17586 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17587 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17588 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591 lt_cv_prog_compiler_rtti_exceptions=no
17592 ac_outfile=conftest.$ac_objext
17593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17594 lt_compiler_flag="-fno-rtti -fno-exceptions"
17595 # Insert the option either (1) after the last *FLAGS variable, or
17596 # (2) before a word containing "conftest.", or (3) at the end.
17597 # Note that $ac_compile itself does not contain backslashes and begins
17598 # with a dollar sign (not a hyphen), so the echo should work correctly.
17599 # The option is referenced via a variable to avoid confusing sed.
17600 lt_compile=`echo "$ac_compile" | $SED \
17601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17603 -e 's:$: $lt_compiler_flag:'`
17604 (eval echo "\"\$as_me:17604: $lt_compile\"" >&5)
17605 (eval "$lt_compile" 2>conftest.err)
17606 ac_status=$?
17607 cat conftest.err >&5
17608 echo "$as_me:17608: \$? = $ac_status" >&5
17609 if (exit $ac_status) && test -s "$ac_outfile"; then
17610 # The compiler can only warn and ignore the option if not recognized
17611 # So say no if there are warnings other than the usual output.
17612 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17615 lt_cv_prog_compiler_rtti_exceptions=yes
17616 fi
17617 fi
17618 $rm conftest*
17619
17620 fi
17621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17622 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17623
17624 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17625 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17626 else
17627 :
17628 fi
17629
17630 fi
17631
17632 lt_prog_compiler_wl_GCJ=
17633 lt_prog_compiler_pic_GCJ=
17634 lt_prog_compiler_static_GCJ=
17635
17636 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17637 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17638
17639 if test "$GCC" = yes; then
17640 lt_prog_compiler_wl_GCJ='-Wl,'
17641 lt_prog_compiler_static_GCJ='-static'
17642
17643 case $host_os in
17644 aix*)
17645 # All AIX code is PIC.
17646 if test "$host_cpu" = ia64; then
17647 # AIX 5 now supports IA64 processor
17648 lt_prog_compiler_static_GCJ='-Bstatic'
17649 fi
17650 ;;
17651
17652 amigaos*)
17653 # FIXME: we need at least 68020 code to build shared libraries, but
17654 # adding the `-m68020' flag to GCC prevents building anything better,
17655 # like `-m68040'.
17656 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17657 ;;
17658
17659 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17660 # PIC is the default for these OSes.
17661 ;;
17662
17663 mingw* | cygwin* | pw32* | os2*)
17664 # This hack is so that the source file can tell whether it is being
17665 # built for inclusion in a dll (and should export symbols for example).
17666 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17667 # (--disable-auto-import) libraries
17668 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17669 ;;
17670
17671 darwin* | rhapsody*)
17672 # PIC is the default on this platform
17673 # Common symbols not allowed in MH_DYLIB files
17674 lt_prog_compiler_pic_GCJ='-fno-common'
17675 ;;
17676
17677 interix[3-9]*)
17678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17679 # Instead, we relocate shared libraries at runtime.
17680 ;;
17681
17682 msdosdjgpp*)
17683 # Just because we use GCC doesn't mean we suddenly get shared libraries
17684 # on systems that don't support them.
17685 lt_prog_compiler_can_build_shared_GCJ=no
17686 enable_shared=no
17687 ;;
17688
17689 sysv4*MP*)
17690 if test -d /usr/nec; then
17691 lt_prog_compiler_pic_GCJ=-Kconform_pic
17692 fi
17693 ;;
17694
17695 hpux*)
17696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17697 # not for PA HP-UX.
17698 case $host_cpu in
17699 hppa*64*|ia64*)
17700 # +Z the default
17701 ;;
17702 *)
17703 lt_prog_compiler_pic_GCJ='-fPIC'
17704 ;;
17705 esac
17706 ;;
17707
17708 *)
17709 lt_prog_compiler_pic_GCJ='-fPIC'
17710 ;;
17711 esac
17712 else
17713 # PORTME Check for flag to pass linker flags through the system compiler.
17714 case $host_os in
17715 aix*)
17716 lt_prog_compiler_wl_GCJ='-Wl,'
17717 if test "$host_cpu" = ia64; then
17718 # AIX 5 now supports IA64 processor
17719 lt_prog_compiler_static_GCJ='-Bstatic'
17720 else
17721 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17722 fi
17723 ;;
17724 darwin*)
17725 # PIC is the default on this platform
17726 # Common symbols not allowed in MH_DYLIB files
17727 case $cc_basename in
17728 xlc*)
17729 lt_prog_compiler_pic_GCJ='-qnocommon'
17730 lt_prog_compiler_wl_GCJ='-Wl,'
17731 ;;
17732 esac
17733 ;;
17734
17735 mingw* | cygwin* | pw32* | os2*)
17736 # This hack is so that the source file can tell whether it is being
17737 # built for inclusion in a dll (and should export symbols for example).
17738 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17739 ;;
17740
17741 hpux9* | hpux10* | hpux11*)
17742 lt_prog_compiler_wl_GCJ='-Wl,'
17743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17744 # not for PA HP-UX.
17745 case $host_cpu in
17746 hppa*64*|ia64*)
17747 # +Z the default
17748 ;;
17749 *)
17750 lt_prog_compiler_pic_GCJ='+Z'
17751 ;;
17752 esac
17753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17754 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17755 ;;
17756
17757 irix5* | irix6* | nonstopux*)
17758 lt_prog_compiler_wl_GCJ='-Wl,'
17759 # PIC (with -KPIC) is the default.
17760 lt_prog_compiler_static_GCJ='-non_shared'
17761 ;;
17762
17763 newsos6)
17764 lt_prog_compiler_pic_GCJ='-KPIC'
17765 lt_prog_compiler_static_GCJ='-Bstatic'
17766 ;;
17767
17768 linux* | k*bsd*-gnu)
17769 case $cc_basename in
17770 icc* | ecc*)
17771 lt_prog_compiler_wl_GCJ='-Wl,'
17772 lt_prog_compiler_pic_GCJ='-KPIC'
17773 lt_prog_compiler_static_GCJ='-static'
17774 ;;
17775 pgcc* | pgf77* | pgf90* | pgf95*)
17776 # Portland Group compilers (*not* the Pentium gcc compiler,
17777 # which looks to be a dead project)
17778 lt_prog_compiler_wl_GCJ='-Wl,'
17779 lt_prog_compiler_pic_GCJ='-fpic'
17780 lt_prog_compiler_static_GCJ='-Bstatic'
17781 ;;
17782 ccc*)
17783 lt_prog_compiler_wl_GCJ='-Wl,'
17784 # All Alpha code is PIC.
17785 lt_prog_compiler_static_GCJ='-non_shared'
17786 ;;
17787 *)
17788 case `$CC -V 2>&1 | sed 5q` in
17789 *Sun\ C*)
17790 # Sun C 5.9
17791 lt_prog_compiler_pic_GCJ='-KPIC'
17792 lt_prog_compiler_static_GCJ='-Bstatic'
17793 lt_prog_compiler_wl_GCJ='-Wl,'
17794 ;;
17795 *Sun\ F*)
17796 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17797 lt_prog_compiler_pic_GCJ='-KPIC'
17798 lt_prog_compiler_static_GCJ='-Bstatic'
17799 lt_prog_compiler_wl_GCJ=''
17800 ;;
17801 esac
17802 ;;
17803 esac
17804 ;;
17805
17806 osf3* | osf4* | osf5*)
17807 lt_prog_compiler_wl_GCJ='-Wl,'
17808 # All OSF/1 code is PIC.
17809 lt_prog_compiler_static_GCJ='-non_shared'
17810 ;;
17811
17812 rdos*)
17813 lt_prog_compiler_static_GCJ='-non_shared'
17814 ;;
17815
17816 solaris*)
17817 lt_prog_compiler_pic_GCJ='-KPIC'
17818 lt_prog_compiler_static_GCJ='-Bstatic'
17819 case $cc_basename in
17820 f77* | f90* | f95*)
17821 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17822 *)
17823 lt_prog_compiler_wl_GCJ='-Wl,';;
17824 esac
17825 ;;
17826
17827 sunos4*)
17828 lt_prog_compiler_wl_GCJ='-Qoption ld '
17829 lt_prog_compiler_pic_GCJ='-PIC'
17830 lt_prog_compiler_static_GCJ='-Bstatic'
17831 ;;
17832
17833 sysv4 | sysv4.2uw2* | sysv4.3*)
17834 lt_prog_compiler_wl_GCJ='-Wl,'
17835 lt_prog_compiler_pic_GCJ='-KPIC'
17836 lt_prog_compiler_static_GCJ='-Bstatic'
17837 ;;
17838
17839 sysv4*MP*)
17840 if test -d /usr/nec ;then
17841 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17842 lt_prog_compiler_static_GCJ='-Bstatic'
17843 fi
17844 ;;
17845
17846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17847 lt_prog_compiler_wl_GCJ='-Wl,'
17848 lt_prog_compiler_pic_GCJ='-KPIC'
17849 lt_prog_compiler_static_GCJ='-Bstatic'
17850 ;;
17851
17852 unicos*)
17853 lt_prog_compiler_wl_GCJ='-Wl,'
17854 lt_prog_compiler_can_build_shared_GCJ=no
17855 ;;
17856
17857 uts4*)
17858 lt_prog_compiler_pic_GCJ='-pic'
17859 lt_prog_compiler_static_GCJ='-Bstatic'
17860 ;;
17861
17862 *)
17863 lt_prog_compiler_can_build_shared_GCJ=no
17864 ;;
17865 esac
17866 fi
17867
17868 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17869 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17870
17871 #
17872 # Check to make sure the PIC flag actually works.
17873 #
17874 if test -n "$lt_prog_compiler_pic_GCJ"; then
17875
17876 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17877 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17878 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881 lt_prog_compiler_pic_works_GCJ=no
17882 ac_outfile=conftest.$ac_objext
17883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17884 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17885 # Insert the option either (1) after the last *FLAGS variable, or
17886 # (2) before a word containing "conftest.", or (3) at the end.
17887 # Note that $ac_compile itself does not contain backslashes and begins
17888 # with a dollar sign (not a hyphen), so the echo should work correctly.
17889 # The option is referenced via a variable to avoid confusing sed.
17890 lt_compile=`echo "$ac_compile" | $SED \
17891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17893 -e 's:$: $lt_compiler_flag:'`
17894 (eval echo "\"\$as_me:17894: $lt_compile\"" >&5)
17895 (eval "$lt_compile" 2>conftest.err)
17896 ac_status=$?
17897 cat conftest.err >&5
17898 echo "$as_me:17898: \$? = $ac_status" >&5
17899 if (exit $ac_status) && test -s "$ac_outfile"; then
17900 # The compiler can only warn and ignore the option if not recognized
17901 # So say no if there are warnings other than the usual output.
17902 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17905 lt_prog_compiler_pic_works_GCJ=yes
17906 fi
17907 fi
17908 $rm conftest*
17909
17910 fi
17911 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17912 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17913
17914 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17915 case $lt_prog_compiler_pic_GCJ in
17916 "" | " "*) ;;
17917 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17918 esac
17919 else
17920 lt_prog_compiler_pic_GCJ=
17921 lt_prog_compiler_can_build_shared_GCJ=no
17922 fi
17923
17924 fi
17925 case $host_os in
17926 # For platforms which do not support PIC, -DPIC is meaningless:
17927 *djgpp*)
17928 lt_prog_compiler_pic_GCJ=
17929 ;;
17930 *)
17931 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17932 ;;
17933 esac
17934
17935 #
17936 # Check to make sure the static flag actually works.
17937 #
17938 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17939 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17940 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17941 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944 lt_prog_compiler_static_works_GCJ=no
17945 save_LDFLAGS="$LDFLAGS"
17946 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17949 # The linker can only warn and ignore the option if not recognized
17950 # So say no if there are warnings
17951 if test -s conftest.err; then
17952 # Append any errors to the config.log.
17953 cat conftest.err 1>&5
17954 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17956 if diff conftest.exp conftest.er2 >/dev/null; then
17957 lt_prog_compiler_static_works_GCJ=yes
17958 fi
17959 else
17960 lt_prog_compiler_static_works_GCJ=yes
17961 fi
17962 fi
17963 $rm conftest*
17964 LDFLAGS="$save_LDFLAGS"
17965
17966 fi
17967 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17968 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17969
17970 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17971 :
17972 else
17973 lt_prog_compiler_static_GCJ=
17974 fi
17975
17976
17977 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17978 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17979 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982 lt_cv_prog_compiler_c_o_GCJ=no
17983 $rm -r conftest 2>/dev/null
17984 mkdir conftest
17985 cd conftest
17986 mkdir out
17987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17988
17989 lt_compiler_flag="-o out/conftest2.$ac_objext"
17990 # Insert the option either (1) after the last *FLAGS variable, or
17991 # (2) before a word containing "conftest.", or (3) at the end.
17992 # Note that $ac_compile itself does not contain backslashes and begins
17993 # with a dollar sign (not a hyphen), so the echo should work correctly.
17994 lt_compile=`echo "$ac_compile" | $SED \
17995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17997 -e 's:$: $lt_compiler_flag:'`
17998 (eval echo "\"\$as_me:17998: $lt_compile\"" >&5)
17999 (eval "$lt_compile" 2>out/conftest.err)
18000 ac_status=$?
18001 cat out/conftest.err >&5
18002 echo "$as_me:18002: \$? = $ac_status" >&5
18003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18004 then
18005 # The compiler can only warn and ignore the option if not recognized
18006 # So say no if there are warnings
18007 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18010 lt_cv_prog_compiler_c_o_GCJ=yes
18011 fi
18012 fi
18013 chmod u+w . 2>&5
18014 $rm conftest*
18015 # SGI C++ compiler will create directory out/ii_files/ for
18016 # template instantiation
18017 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18018 $rm out/* && rmdir out
18019 cd ..
18020 rmdir conftest
18021 $rm conftest*
18022
18023 fi
18024 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18025 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18026
18027
18028 hard_links="nottested"
18029 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18030 # do not overwrite the value of need_locks provided by the user
18031 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18032 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18033 hard_links=yes
18034 $rm conftest*
18035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18036 touch conftest.a
18037 ln conftest.a conftest.b 2>&5 || hard_links=no
18038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18039 { echo "$as_me:$LINENO: result: $hard_links" >&5
18040 echo "${ECHO_T}$hard_links" >&6; }
18041 if test "$hard_links" = no; then
18042 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18043 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18044 need_locks=warn
18045 fi
18046 else
18047 need_locks=no
18048 fi
18049
18050 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18051 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18052
18053 runpath_var=
18054 allow_undefined_flag_GCJ=
18055 enable_shared_with_static_runtimes_GCJ=no
18056 archive_cmds_GCJ=
18057 archive_expsym_cmds_GCJ=
18058 old_archive_From_new_cmds_GCJ=
18059 old_archive_from_expsyms_cmds_GCJ=
18060 export_dynamic_flag_spec_GCJ=
18061 whole_archive_flag_spec_GCJ=
18062 thread_safe_flag_spec_GCJ=
18063 hardcode_libdir_flag_spec_GCJ=
18064 hardcode_libdir_flag_spec_ld_GCJ=
18065 hardcode_libdir_separator_GCJ=
18066 hardcode_direct_GCJ=no
18067 hardcode_minus_L_GCJ=no
18068 hardcode_shlibpath_var_GCJ=unsupported
18069 link_all_deplibs_GCJ=unknown
18070 hardcode_automatic_GCJ=no
18071 module_cmds_GCJ=
18072 module_expsym_cmds_GCJ=
18073 always_export_symbols_GCJ=no
18074 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18075 # include_expsyms should be a list of space-separated symbols to be *always*
18076 # included in the symbol list
18077 include_expsyms_GCJ=
18078 # exclude_expsyms can be an extended regexp of symbols to exclude
18079 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18080 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18081 # as well as any symbol that contains `d'.
18082 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18083 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18084 # platforms (ab)use it in PIC code, but their linkers get confused if
18085 # the symbol is explicitly referenced. Since portable code cannot
18086 # rely on this symbol name, it's probably fine to never include it in
18087 # preloaded symbol tables.
18088 extract_expsyms_cmds=
18089 # Just being paranoid about ensuring that cc_basename is set.
18090 for cc_temp in $compiler""; do
18091 case $cc_temp in
18092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18094 \-*) ;;
18095 *) break;;
18096 esac
18097 done
18098 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18099
18100 case $host_os in
18101 cygwin* | mingw* | pw32*)
18102 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18103 # When not using gcc, we currently assume that we are using
18104 # Microsoft Visual C++.
18105 if test "$GCC" != yes; then
18106 with_gnu_ld=no
18107 fi
18108 ;;
18109 interix*)
18110 # we just hope/assume this is gcc and not c89 (= MSVC++)
18111 with_gnu_ld=yes
18112 ;;
18113 openbsd*)
18114 with_gnu_ld=no
18115 ;;
18116 esac
18117
18118 ld_shlibs_GCJ=yes
18119 if test "$with_gnu_ld" = yes; then
18120 # If archive_cmds runs LD, not CC, wlarc should be empty
18121 wlarc='${wl}'
18122
18123 # Set some defaults for GNU ld with shared library support. These
18124 # are reset later if shared libraries are not supported. Putting them
18125 # here allows them to be overridden if necessary.
18126 runpath_var=LD_RUN_PATH
18127 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18128 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18129 # ancient GNU ld didn't support --whole-archive et. al.
18130 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18131 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18132 else
18133 whole_archive_flag_spec_GCJ=
18134 fi
18135 supports_anon_versioning=no
18136 case `$LD -v 2>/dev/null` in
18137 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18138 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18139 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18140 *\ 2.11.*) ;; # other 2.11 versions
18141 *) supports_anon_versioning=yes ;;
18142 esac
18143
18144 # See if GNU ld supports shared libraries.
18145 case $host_os in
18146 aix3* | aix4* | aix5*)
18147 # On AIX/PPC, the GNU linker is very broken
18148 if test "$host_cpu" != ia64; then
18149 ld_shlibs_GCJ=no
18150 cat <<EOF 1>&2
18151
18152 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18153 *** to be unable to reliably create shared libraries on AIX.
18154 *** Therefore, libtool is disabling shared libraries support. If you
18155 *** really care for shared libraries, you may want to modify your PATH
18156 *** so that a non-GNU linker is found, and then restart.
18157
18158 EOF
18159 fi
18160 ;;
18161
18162 amigaos*)
18163 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)'
18164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18165 hardcode_minus_L_GCJ=yes
18166
18167 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18168 # that the semantics of dynamic libraries on AmigaOS, at least up
18169 # to version 4, is to share data among multiple programs linked
18170 # with the same dynamic library. Since this doesn't match the
18171 # behavior of shared libraries on other platforms, we can't use
18172 # them.
18173 ld_shlibs_GCJ=no
18174 ;;
18175
18176 beos*)
18177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18178 allow_undefined_flag_GCJ=unsupported
18179 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18180 # support --undefined. This deserves some investigation. FIXME
18181 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18182 else
18183 ld_shlibs_GCJ=no
18184 fi
18185 ;;
18186
18187 cygwin* | mingw* | pw32*)
18188 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18189 # as there is no search path for DLLs.
18190 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18191 allow_undefined_flag_GCJ=unsupported
18192 always_export_symbols_GCJ=no
18193 enable_shared_with_static_runtimes_GCJ=yes
18194 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18195
18196 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18197 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18198 # If the export-symbols file already is a .def file (1st line
18199 # is EXPORTS), use it as is; otherwise, prepend...
18200 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18201 cp $export_symbols $output_objdir/$soname.def;
18202 else
18203 echo EXPORTS > $output_objdir/$soname.def;
18204 cat $export_symbols >> $output_objdir/$soname.def;
18205 fi~
18206 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18207 else
18208 ld_shlibs_GCJ=no
18209 fi
18210 ;;
18211
18212 interix[3-9]*)
18213 hardcode_direct_GCJ=no
18214 hardcode_shlibpath_var_GCJ=no
18215 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18216 export_dynamic_flag_spec_GCJ='${wl}-E'
18217 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18218 # Instead, shared libraries are loaded at an image base (0x10000000 by
18219 # default) and relocated if they conflict, which is a slow very memory
18220 # consuming and fragmenting process. To avoid this, we pick a random,
18221 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18222 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18223 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'
18224 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'
18225 ;;
18226
18227 gnu* | linux* | k*bsd*-gnu)
18228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18229 tmp_addflag=
18230 case $cc_basename,$host_cpu in
18231 pgcc*) # Portland Group C compiler
18232 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'
18233 tmp_addflag=' $pic_flag'
18234 ;;
18235 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18236 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'
18237 tmp_addflag=' $pic_flag -Mnomain' ;;
18238 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18239 tmp_addflag=' -i_dynamic' ;;
18240 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18241 tmp_addflag=' -i_dynamic -nofor_main' ;;
18242 ifc* | ifort*) # Intel Fortran compiler
18243 tmp_addflag=' -nofor_main' ;;
18244 esac
18245 case `$CC -V 2>&1 | sed 5q` in
18246 *Sun\ C*) # Sun C 5.9
18247 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'
18248 tmp_sharedflag='-G' ;;
18249 *Sun\ F*) # Sun Fortran 8.3
18250 tmp_sharedflag='-G' ;;
18251 *)
18252 tmp_sharedflag='-shared' ;;
18253 esac
18254 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18255
18256 if test $supports_anon_versioning = yes; then
18257 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18259 $echo "local: *; };" >> $output_objdir/$libname.ver~
18260 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18261 fi
18262 link_all_deplibs_GCJ=no
18263 else
18264 ld_shlibs_GCJ=no
18265 fi
18266 ;;
18267
18268 netbsd* | netbsdelf*-gnu)
18269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18270 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18271 wlarc=
18272 else
18273 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18274 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18275 fi
18276 ;;
18277
18278 solaris*)
18279 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18280 ld_shlibs_GCJ=no
18281 cat <<EOF 1>&2
18282
18283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18284 *** create shared libraries on Solaris systems. Therefore, libtool
18285 *** is disabling shared libraries support. We urge you to upgrade GNU
18286 *** binutils to release 2.9.1 or newer. Another option is to modify
18287 *** your PATH or compiler configuration so that the native linker is
18288 *** used, and then restart.
18289
18290 EOF
18291 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18292 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18293 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18294 else
18295 ld_shlibs_GCJ=no
18296 fi
18297 ;;
18298
18299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18300 case `$LD -v 2>&1` in
18301 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18302 ld_shlibs_GCJ=no
18303 cat <<_LT_EOF 1>&2
18304
18305 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18306 *** reliably create shared libraries on SCO systems. Therefore, libtool
18307 *** is disabling shared libraries support. We urge you to upgrade GNU
18308 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18309 *** your PATH or compiler configuration so that the native linker is
18310 *** used, and then restart.
18311
18312 _LT_EOF
18313 ;;
18314 *)
18315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18316 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18317 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18318 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18319 else
18320 ld_shlibs_GCJ=no
18321 fi
18322 ;;
18323 esac
18324 ;;
18325
18326 sunos4*)
18327 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18328 wlarc=
18329 hardcode_direct_GCJ=yes
18330 hardcode_shlibpath_var_GCJ=no
18331 ;;
18332
18333 *)
18334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18335 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18336 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18337 else
18338 ld_shlibs_GCJ=no
18339 fi
18340 ;;
18341 esac
18342
18343 if test "$ld_shlibs_GCJ" = no; then
18344 runpath_var=
18345 hardcode_libdir_flag_spec_GCJ=
18346 export_dynamic_flag_spec_GCJ=
18347 whole_archive_flag_spec_GCJ=
18348 fi
18349 else
18350 # PORTME fill in a description of your system's linker (not GNU ld)
18351 case $host_os in
18352 aix3*)
18353 allow_undefined_flag_GCJ=unsupported
18354 always_export_symbols_GCJ=yes
18355 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'
18356 # Note: this linker hardcodes the directories in LIBPATH if there
18357 # are no directories specified by -L.
18358 hardcode_minus_L_GCJ=yes
18359 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18360 # Neither direct hardcoding nor static linking is supported with a
18361 # broken collect2.
18362 hardcode_direct_GCJ=unsupported
18363 fi
18364 ;;
18365
18366 aix4* | aix5*)
18367 if test "$host_cpu" = ia64; then
18368 # On IA64, the linker does run time linking by default, so we don't
18369 # have to do anything special.
18370 aix_use_runtimelinking=no
18371 exp_sym_flag='-Bexport'
18372 no_entry_flag=""
18373 else
18374 # If we're using GNU nm, then we don't want the "-C" option.
18375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18376 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18377 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'
18378 else
18379 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'
18380 fi
18381 aix_use_runtimelinking=no
18382
18383 # Test if we are trying to use run time linking or normal
18384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18385 # need to do runtime linking.
18386 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18387 for ld_flag in $LDFLAGS; do
18388 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18389 aix_use_runtimelinking=yes
18390 break
18391 fi
18392 done
18393 ;;
18394 esac
18395
18396 exp_sym_flag='-bexport'
18397 no_entry_flag='-bnoentry'
18398 fi
18399
18400 # When large executables or shared objects are built, AIX ld can
18401 # have problems creating the table of contents. If linking a library
18402 # or program results in "error TOC overflow" add -mminimal-toc to
18403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18405
18406 archive_cmds_GCJ=''
18407 hardcode_direct_GCJ=yes
18408 hardcode_libdir_separator_GCJ=':'
18409 link_all_deplibs_GCJ=yes
18410
18411 if test "$GCC" = yes; then
18412 case $host_os in aix4.[012]|aix4.[012].*)
18413 # We only want to do this on AIX 4.2 and lower, the check
18414 # below for broken collect2 doesn't work under 4.3+
18415 collect2name=`${CC} -print-prog-name=collect2`
18416 if test -f "$collect2name" && \
18417 strings "$collect2name" | grep resolve_lib_name >/dev/null
18418 then
18419 # We have reworked collect2
18420 :
18421 else
18422 # We have old collect2
18423 hardcode_direct_GCJ=unsupported
18424 # It fails to find uninstalled libraries when the uninstalled
18425 # path is not listed in the libpath. Setting hardcode_minus_L
18426 # to unsupported forces relinking
18427 hardcode_minus_L_GCJ=yes
18428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18429 hardcode_libdir_separator_GCJ=
18430 fi
18431 ;;
18432 esac
18433 shared_flag='-shared'
18434 if test "$aix_use_runtimelinking" = yes; then
18435 shared_flag="$shared_flag "'${wl}-G'
18436 fi
18437 else
18438 # not using gcc
18439 if test "$host_cpu" = ia64; then
18440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18441 # chokes on -Wl,-G. The following line is correct:
18442 shared_flag='-G'
18443 else
18444 if test "$aix_use_runtimelinking" = yes; then
18445 shared_flag='${wl}-G'
18446 else
18447 shared_flag='${wl}-bM:SRE'
18448 fi
18449 fi
18450 fi
18451
18452 # It seems that -bexpall does not export symbols beginning with
18453 # underscore (_), so it is better to generate a list of symbols to export.
18454 always_export_symbols_GCJ=yes
18455 if test "$aix_use_runtimelinking" = yes; then
18456 # Warning - without using the other runtime loading flags (-brtl),
18457 # -berok will link without error, but may produce a broken library.
18458 allow_undefined_flag_GCJ='-berok'
18459 # Determine the default libpath from the value encoded in an empty executable.
18460 cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h. */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466
18467 int
18468 main ()
18469 {
18470
18471 ;
18472 return 0;
18473 }
18474 _ACEOF
18475 rm -f conftest.$ac_objext conftest$ac_exeext
18476 if { (ac_try="$ac_link"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_link") 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest$ac_exeext &&
18492 $as_test_x conftest$ac_exeext; then
18493
18494 lt_aix_libpath_sed='
18495 /Import File Strings/,/^$/ {
18496 /^0/ {
18497 s/^0 *\(.*\)$/\1/
18498 p
18499 }
18500 }'
18501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18502 # Check for a 64-bit object if we didn't find anything.
18503 if test -z "$aix_libpath"; then
18504 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18505 fi
18506 else
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510
18511 fi
18512
18513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18514 conftest$ac_exeext conftest.$ac_ext
18515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18516
18517 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18518 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"
18519 else
18520 if test "$host_cpu" = ia64; then
18521 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18522 allow_undefined_flag_GCJ="-z nodefs"
18523 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"
18524 else
18525 # Determine the default libpath from the value encoded in an empty executable.
18526 cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h. */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18532
18533 int
18534 main ()
18535 {
18536
18537 ;
18538 return 0;
18539 }
18540 _ACEOF
18541 rm -f conftest.$ac_objext conftest$ac_exeext
18542 if { (ac_try="$ac_link"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546 esac
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_link") 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } && {
18555 test -z "$ac_c_werror_flag" ||
18556 test ! -s conftest.err
18557 } && test -s conftest$ac_exeext &&
18558 $as_test_x conftest$ac_exeext; then
18559
18560 lt_aix_libpath_sed='
18561 /Import File Strings/,/^$/ {
18562 /^0/ {
18563 s/^0 *\(.*\)$/\1/
18564 p
18565 }
18566 }'
18567 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18568 # Check for a 64-bit object if we didn't find anything.
18569 if test -z "$aix_libpath"; then
18570 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18571 fi
18572 else
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18575
18576
18577 fi
18578
18579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18580 conftest$ac_exeext conftest.$ac_ext
18581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18582
18583 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18584 # Warning - without using the other run time loading flags,
18585 # -berok will link without error, but may produce a broken library.
18586 no_undefined_flag_GCJ=' ${wl}-bernotok'
18587 allow_undefined_flag_GCJ=' ${wl}-berok'
18588 # Exported symbols can be pulled into shared objects from archives
18589 whole_archive_flag_spec_GCJ='$convenience'
18590 archive_cmds_need_lc_GCJ=yes
18591 # This is similar to how AIX traditionally builds its shared libraries.
18592 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'
18593 fi
18594 fi
18595 ;;
18596
18597 amigaos*)
18598 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)'
18599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18600 hardcode_minus_L_GCJ=yes
18601 # see comment about different semantics on the GNU ld section
18602 ld_shlibs_GCJ=no
18603 ;;
18604
18605 bsdi[45]*)
18606 export_dynamic_flag_spec_GCJ=-rdynamic
18607 ;;
18608
18609 cygwin* | mingw* | pw32*)
18610 # When not using gcc, we currently assume that we are using
18611 # Microsoft Visual C++.
18612 # hardcode_libdir_flag_spec is actually meaningless, as there is
18613 # no search path for DLLs.
18614 hardcode_libdir_flag_spec_GCJ=' '
18615 allow_undefined_flag_GCJ=unsupported
18616 # Tell ltmain to make .lib files, not .a files.
18617 libext=lib
18618 # Tell ltmain to make .dll files, not .so files.
18619 shrext_cmds=".dll"
18620 # FIXME: Setting linknames here is a bad hack.
18621 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18622 # The linker will automatically build a .lib file if we build a DLL.
18623 old_archive_From_new_cmds_GCJ='true'
18624 # FIXME: Should let the user specify the lib program.
18625 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18626 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18627 enable_shared_with_static_runtimes_GCJ=yes
18628 ;;
18629
18630 darwin* | rhapsody*)
18631 case $host_os in
18632 rhapsody* | darwin1.[012])
18633 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18634 ;;
18635 *) # Darwin 1.3 on
18636 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18637 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18638 else
18639 case ${MACOSX_DEPLOYMENT_TARGET} in
18640 10.[012])
18641 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18642 ;;
18643 10.*)
18644 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18645 ;;
18646 esac
18647 fi
18648 ;;
18649 esac
18650 archive_cmds_need_lc_GCJ=no
18651 hardcode_direct_GCJ=no
18652 hardcode_automatic_GCJ=yes
18653 hardcode_shlibpath_var_GCJ=unsupported
18654 whole_archive_flag_spec_GCJ=''
18655 link_all_deplibs_GCJ=yes
18656 if test "$GCC" = yes ; then
18657 output_verbose_link_cmd='echo'
18658 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18659 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18661 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18662 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}'
18663 else
18664 case $cc_basename in
18665 xlc*)
18666 output_verbose_link_cmd='echo'
18667 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18668 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18670 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}'
18671 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}'
18672 ;;
18673 *)
18674 ld_shlibs_GCJ=no
18675 ;;
18676 esac
18677 fi
18678 ;;
18679
18680 dgux*)
18681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18683 hardcode_shlibpath_var_GCJ=no
18684 ;;
18685
18686 freebsd1*)
18687 ld_shlibs_GCJ=no
18688 ;;
18689
18690 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18691 # support. Future versions do this automatically, but an explicit c++rt0.o
18692 # does not break anything, and helps significantly (at the cost of a little
18693 # extra space).
18694 freebsd2.2*)
18695 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18696 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18697 hardcode_direct_GCJ=yes
18698 hardcode_shlibpath_var_GCJ=no
18699 ;;
18700
18701 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18702 freebsd2*)
18703 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18704 hardcode_direct_GCJ=yes
18705 hardcode_minus_L_GCJ=yes
18706 hardcode_shlibpath_var_GCJ=no
18707 ;;
18708
18709 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18710 freebsd* | dragonfly*)
18711 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18712 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18713 hardcode_direct_GCJ=yes
18714 hardcode_shlibpath_var_GCJ=no
18715 ;;
18716
18717 hpux9*)
18718 if test "$GCC" = yes; then
18719 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'
18720 else
18721 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'
18722 fi
18723 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18724 hardcode_libdir_separator_GCJ=:
18725 hardcode_direct_GCJ=yes
18726
18727 # hardcode_minus_L: Not really in the search PATH,
18728 # but as the default location of the library.
18729 hardcode_minus_L_GCJ=yes
18730 export_dynamic_flag_spec_GCJ='${wl}-E'
18731 ;;
18732
18733 hpux10*)
18734 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18735 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18736 else
18737 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18738 fi
18739 if test "$with_gnu_ld" = no; then
18740 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18741 hardcode_libdir_separator_GCJ=:
18742
18743 hardcode_direct_GCJ=yes
18744 export_dynamic_flag_spec_GCJ='${wl}-E'
18745
18746 # hardcode_minus_L: Not really in the search PATH,
18747 # but as the default location of the library.
18748 hardcode_minus_L_GCJ=yes
18749 fi
18750 ;;
18751
18752 hpux11*)
18753 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18754 case $host_cpu in
18755 hppa*64*)
18756 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18757 ;;
18758 ia64*)
18759 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18760 ;;
18761 *)
18762 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18763 ;;
18764 esac
18765 else
18766 case $host_cpu in
18767 hppa*64*)
18768 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18769 ;;
18770 ia64*)
18771 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18772 ;;
18773 *)
18774 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18775 ;;
18776 esac
18777 fi
18778 if test "$with_gnu_ld" = no; then
18779 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18780 hardcode_libdir_separator_GCJ=:
18781
18782 case $host_cpu in
18783 hppa*64*|ia64*)
18784 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18785 hardcode_direct_GCJ=no
18786 hardcode_shlibpath_var_GCJ=no
18787 ;;
18788 *)
18789 hardcode_direct_GCJ=yes
18790 export_dynamic_flag_spec_GCJ='${wl}-E'
18791
18792 # hardcode_minus_L: Not really in the search PATH,
18793 # but as the default location of the library.
18794 hardcode_minus_L_GCJ=yes
18795 ;;
18796 esac
18797 fi
18798 ;;
18799
18800 irix5* | irix6* | nonstopux*)
18801 if test "$GCC" = yes; then
18802 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'
18803 else
18804 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'
18805 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18806 fi
18807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18808 hardcode_libdir_separator_GCJ=:
18809 link_all_deplibs_GCJ=yes
18810 ;;
18811
18812 netbsd* | netbsdelf*-gnu)
18813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18814 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18815 else
18816 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18817 fi
18818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18819 hardcode_direct_GCJ=yes
18820 hardcode_shlibpath_var_GCJ=no
18821 ;;
18822
18823 newsos6)
18824 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18825 hardcode_direct_GCJ=yes
18826 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18827 hardcode_libdir_separator_GCJ=:
18828 hardcode_shlibpath_var_GCJ=no
18829 ;;
18830
18831 openbsd*)
18832 if test -f /usr/libexec/ld.so; then
18833 hardcode_direct_GCJ=yes
18834 hardcode_shlibpath_var_GCJ=no
18835 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18836 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18837 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18838 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18839 export_dynamic_flag_spec_GCJ='${wl}-E'
18840 else
18841 case $host_os in
18842 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18843 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18844 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18845 ;;
18846 *)
18847 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18848 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18849 ;;
18850 esac
18851 fi
18852 else
18853 ld_shlibs_GCJ=no
18854 fi
18855 ;;
18856
18857 os2*)
18858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859 hardcode_minus_L_GCJ=yes
18860 allow_undefined_flag_GCJ=unsupported
18861 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'
18862 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18863 ;;
18864
18865 osf3*)
18866 if test "$GCC" = yes; then
18867 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18868 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'
18869 else
18870 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18871 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'
18872 fi
18873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18874 hardcode_libdir_separator_GCJ=:
18875 ;;
18876
18877 osf4* | osf5*) # as osf3* with the addition of -msym flag
18878 if test "$GCC" = yes; then
18879 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18880 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'
18881 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18882 else
18883 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18884 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'
18885 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~
18886 $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'
18887
18888 # Both c and cxx compiler support -rpath directly
18889 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18890 fi
18891 hardcode_libdir_separator_GCJ=:
18892 ;;
18893
18894 solaris*)
18895 no_undefined_flag_GCJ=' -z text'
18896 if test "$GCC" = yes; then
18897 wlarc='${wl}'
18898 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18899 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18900 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18901 else
18902 wlarc=''
18903 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18904 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18905 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18906 fi
18907 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18908 hardcode_shlibpath_var_GCJ=no
18909 case $host_os in
18910 solaris2.[0-5] | solaris2.[0-5].*) ;;
18911 *)
18912 # The compiler driver will combine and reorder linker options,
18913 # but understands `-z linker_flag'. GCC discards it without `$wl',
18914 # but is careful enough not to reorder.
18915 # Supported since Solaris 2.6 (maybe 2.5.1?)
18916 if test "$GCC" = yes; then
18917 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18918 else
18919 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18920 fi
18921 ;;
18922 esac
18923 link_all_deplibs_GCJ=yes
18924 ;;
18925
18926 sunos4*)
18927 if test "x$host_vendor" = xsequent; then
18928 # Use $CC to link under sequent, because it throws in some extra .o
18929 # files that make .init and .fini sections work.
18930 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18931 else
18932 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18933 fi
18934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18935 hardcode_direct_GCJ=yes
18936 hardcode_minus_L_GCJ=yes
18937 hardcode_shlibpath_var_GCJ=no
18938 ;;
18939
18940 sysv4)
18941 case $host_vendor in
18942 sni)
18943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18944 hardcode_direct_GCJ=yes # is this really true???
18945 ;;
18946 siemens)
18947 ## LD is ld it makes a PLAMLIB
18948 ## CC just makes a GrossModule.
18949 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18950 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18951 hardcode_direct_GCJ=no
18952 ;;
18953 motorola)
18954 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18955 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18956 ;;
18957 esac
18958 runpath_var='LD_RUN_PATH'
18959 hardcode_shlibpath_var_GCJ=no
18960 ;;
18961
18962 sysv4.3*)
18963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18964 hardcode_shlibpath_var_GCJ=no
18965 export_dynamic_flag_spec_GCJ='-Bexport'
18966 ;;
18967
18968 sysv4*MP*)
18969 if test -d /usr/nec; then
18970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18971 hardcode_shlibpath_var_GCJ=no
18972 runpath_var=LD_RUN_PATH
18973 hardcode_runpath_var=yes
18974 ld_shlibs_GCJ=yes
18975 fi
18976 ;;
18977
18978 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18979 no_undefined_flag_GCJ='${wl}-z,text'
18980 archive_cmds_need_lc_GCJ=no
18981 hardcode_shlibpath_var_GCJ=no
18982 runpath_var='LD_RUN_PATH'
18983
18984 if test "$GCC" = yes; then
18985 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18986 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18987 else
18988 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18990 fi
18991 ;;
18992
18993 sysv5* | sco3.2v5* | sco5v6*)
18994 # Note: We can NOT use -z defs as we might desire, because we do not
18995 # link with -lc, and that would cause any symbols used from libc to
18996 # always be unresolved, which means just about no library would
18997 # ever link correctly. If we're not using GNU ld we use -z text
18998 # though, which does catch some bad symbols but isn't as heavy-handed
18999 # as -z defs.
19000 no_undefined_flag_GCJ='${wl}-z,text'
19001 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19002 archive_cmds_need_lc_GCJ=no
19003 hardcode_shlibpath_var_GCJ=no
19004 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19005 hardcode_libdir_separator_GCJ=':'
19006 link_all_deplibs_GCJ=yes
19007 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19008 runpath_var='LD_RUN_PATH'
19009
19010 if test "$GCC" = yes; then
19011 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19012 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19013 else
19014 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19015 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19016 fi
19017 ;;
19018
19019 uts4*)
19020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19021 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19022 hardcode_shlibpath_var_GCJ=no
19023 ;;
19024
19025 *)
19026 ld_shlibs_GCJ=no
19027 ;;
19028 esac
19029 fi
19030
19031 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19032 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19033 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19034
19035 #
19036 # Do we need to explicitly link libc?
19037 #
19038 case "x$archive_cmds_need_lc_GCJ" in
19039 x|xyes)
19040 # Assume -lc should be added
19041 archive_cmds_need_lc_GCJ=yes
19042
19043 if test "$enable_shared" = yes && test "$GCC" = yes; then
19044 case $archive_cmds_GCJ in
19045 *'~'*)
19046 # FIXME: we may have to deal with multi-command sequences.
19047 ;;
19048 '$CC '*)
19049 # Test whether the compiler implicitly links with -lc since on some
19050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19051 # to ld, don't add -lc before -lgcc.
19052 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19054 $rm conftest*
19055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19056
19057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058 (eval $ac_compile) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } 2>conftest.err; then
19062 soname=conftest
19063 lib=conftest
19064 libobjs=conftest.$ac_objext
19065 deplibs=
19066 wl=$lt_prog_compiler_wl_GCJ
19067 pic_flag=$lt_prog_compiler_pic_GCJ
19068 compiler_flags=-v
19069 linker_flags=-v
19070 verstring=
19071 output_objdir=.
19072 libname=conftest
19073 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19074 allow_undefined_flag_GCJ=
19075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19076 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }
19080 then
19081 archive_cmds_need_lc_GCJ=no
19082 else
19083 archive_cmds_need_lc_GCJ=yes
19084 fi
19085 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19086 else
19087 cat conftest.err 1>&5
19088 fi
19089 $rm conftest*
19090 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19091 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19092 ;;
19093 esac
19094 fi
19095 ;;
19096 esac
19097
19098 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19100 library_names_spec=
19101 libname_spec='lib$name'
19102 soname_spec=
19103 shrext_cmds=".so"
19104 postinstall_cmds=
19105 postuninstall_cmds=
19106 finish_cmds=
19107 finish_eval=
19108 shlibpath_var=
19109 shlibpath_overrides_runpath=unknown
19110 version_type=none
19111 dynamic_linker="$host_os ld.so"
19112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19113
19114 need_lib_prefix=unknown
19115 hardcode_into_libs=no
19116
19117 # when you set need_version to no, make sure it does not cause -set_version
19118 # flags to be left without arguments
19119 need_version=unknown
19120
19121 case $host_os in
19122 aix3*)
19123 version_type=linux
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19125 shlibpath_var=LIBPATH
19126
19127 # AIX 3 has no versioning support, so we append a major version to the name.
19128 soname_spec='${libname}${release}${shared_ext}$major'
19129 ;;
19130
19131 aix4* | aix5*)
19132 version_type=linux
19133 need_lib_prefix=no
19134 need_version=no
19135 hardcode_into_libs=yes
19136 if test "$host_cpu" = ia64; then
19137 # AIX 5 supports IA64
19138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19139 shlibpath_var=LD_LIBRARY_PATH
19140 else
19141 # With GCC up to 2.95.x, collect2 would create an import file
19142 # for dependence libraries. The import file would start with
19143 # the line `#! .'. This would cause the generated library to
19144 # depend on `.', always an invalid library. This was fixed in
19145 # development snapshots of GCC prior to 3.0.
19146 case $host_os in
19147 aix4 | aix4.[01] | aix4.[01].*)
19148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19149 echo ' yes '
19150 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19151 :
19152 else
19153 can_build_shared=no
19154 fi
19155 ;;
19156 esac
19157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19158 # soname into executable. Probably we can add versioning support to
19159 # collect2, so additional links can be useful in future.
19160 if test "$aix_use_runtimelinking" = yes; then
19161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19162 # instead of lib<name>.a to let people know that these are not
19163 # typical AIX shared libraries.
19164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19165 else
19166 # We preserve .a as extension for shared libraries through AIX4.2
19167 # and later when we are not doing run time linking.
19168 library_names_spec='${libname}${release}.a $libname.a'
19169 soname_spec='${libname}${release}${shared_ext}$major'
19170 fi
19171 shlibpath_var=LIBPATH
19172 fi
19173 ;;
19174
19175 amigaos*)
19176 library_names_spec='$libname.ixlibrary $libname.a'
19177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19178 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'
19179 ;;
19180
19181 beos*)
19182 library_names_spec='${libname}${shared_ext}'
19183 dynamic_linker="$host_os ld.so"
19184 shlibpath_var=LIBRARY_PATH
19185 ;;
19186
19187 bsdi[45]*)
19188 version_type=linux
19189 need_version=no
19190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19191 soname_spec='${libname}${release}${shared_ext}$major'
19192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19193 shlibpath_var=LD_LIBRARY_PATH
19194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19196 # the default ld.so.conf also contains /usr/contrib/lib and
19197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19198 # libtool to hard-code these into programs
19199 ;;
19200
19201 cygwin* | mingw* | pw32*)
19202 version_type=windows
19203 shrext_cmds=".dll"
19204 need_version=no
19205 need_lib_prefix=no
19206
19207 case $GCC,$host_os in
19208 yes,cygwin* | yes,mingw* | yes,pw32*)
19209 library_names_spec='$libname.dll.a'
19210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19211 postinstall_cmds='base_file=`basename \${file}`~
19212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19213 dldir=$destdir/`dirname \$dlpath`~
19214 test -d \$dldir || mkdir -p \$dldir~
19215 $install_prog $dir/$dlname \$dldir/$dlname~
19216 chmod a+x \$dldir/$dlname'
19217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19218 dlpath=$dir/\$dldll~
19219 $rm \$dlpath'
19220 shlibpath_overrides_runpath=yes
19221
19222 case $host_os in
19223 cygwin*)
19224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19226 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19227 ;;
19228 mingw*)
19229 # MinGW DLLs use traditional 'lib' prefix
19230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19232 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19233 # It is most probably a Windows format PATH printed by
19234 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19235 # path with ; separators, and with drive letters. We can handle the
19236 # drive letters (cygwin fileutils understands them), so leave them,
19237 # especially as we might pass files found there to a mingw objdump,
19238 # which wouldn't understand a cygwinified path. Ahh.
19239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19240 else
19241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19242 fi
19243 ;;
19244 pw32*)
19245 # pw32 DLLs use 'pw' prefix rather than 'lib'
19246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19247 ;;
19248 esac
19249 ;;
19250
19251 *)
19252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19253 ;;
19254 esac
19255 dynamic_linker='Win32 ld.exe'
19256 # FIXME: first we should search . and the directory the executable is in
19257 shlibpath_var=PATH
19258 ;;
19259
19260 darwin* | rhapsody*)
19261 dynamic_linker="$host_os dyld"
19262 version_type=darwin
19263 need_lib_prefix=no
19264 need_version=no
19265 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19266 soname_spec='${libname}${release}${major}$shared_ext'
19267 shlibpath_overrides_runpath=yes
19268 shlibpath_var=DYLD_LIBRARY_PATH
19269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19270
19271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19272 ;;
19273
19274 dgux*)
19275 version_type=linux
19276 need_lib_prefix=no
19277 need_version=no
19278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19279 soname_spec='${libname}${release}${shared_ext}$major'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 ;;
19282
19283 freebsd1*)
19284 dynamic_linker=no
19285 ;;
19286
19287 freebsd* | dragonfly*)
19288 # DragonFly does not have aout. When/if they implement a new
19289 # versioning mechanism, adjust this.
19290 if test -x /usr/bin/objformat; then
19291 objformat=`/usr/bin/objformat`
19292 else
19293 case $host_os in
19294 freebsd[123]*) objformat=aout ;;
19295 *) objformat=elf ;;
19296 esac
19297 fi
19298 version_type=freebsd-$objformat
19299 case $version_type in
19300 freebsd-elf*)
19301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19302 need_version=no
19303 need_lib_prefix=no
19304 ;;
19305 freebsd-*)
19306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19307 need_version=yes
19308 ;;
19309 esac
19310 shlibpath_var=LD_LIBRARY_PATH
19311 case $host_os in
19312 freebsd2*)
19313 shlibpath_overrides_runpath=yes
19314 ;;
19315 freebsd3.[01]* | freebsdelf3.[01]*)
19316 shlibpath_overrides_runpath=yes
19317 hardcode_into_libs=yes
19318 ;;
19319 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19320 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19321 shlibpath_overrides_runpath=no
19322 hardcode_into_libs=yes
19323 ;;
19324 *) # from 4.6 on, and DragonFly
19325 shlibpath_overrides_runpath=yes
19326 hardcode_into_libs=yes
19327 ;;
19328 esac
19329 ;;
19330
19331 gnu*)
19332 version_type=linux
19333 need_lib_prefix=no
19334 need_version=no
19335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19336 soname_spec='${libname}${release}${shared_ext}$major'
19337 shlibpath_var=LD_LIBRARY_PATH
19338 hardcode_into_libs=yes
19339 ;;
19340
19341 hpux9* | hpux10* | hpux11*)
19342 # Give a soname corresponding to the major version so that dld.sl refuses to
19343 # link against other versions.
19344 version_type=sunos
19345 need_lib_prefix=no
19346 need_version=no
19347 case $host_cpu in
19348 ia64*)
19349 shrext_cmds='.so'
19350 hardcode_into_libs=yes
19351 dynamic_linker="$host_os dld.so"
19352 shlibpath_var=LD_LIBRARY_PATH
19353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19355 soname_spec='${libname}${release}${shared_ext}$major'
19356 if test "X$HPUX_IA64_MODE" = X32; then
19357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19358 else
19359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19360 fi
19361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19362 ;;
19363 hppa*64*)
19364 shrext_cmds='.sl'
19365 hardcode_into_libs=yes
19366 dynamic_linker="$host_os dld.sl"
19367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19370 soname_spec='${libname}${release}${shared_ext}$major'
19371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19373 ;;
19374 *)
19375 shrext_cmds='.sl'
19376 dynamic_linker="$host_os dld.sl"
19377 shlibpath_var=SHLIB_PATH
19378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19380 soname_spec='${libname}${release}${shared_ext}$major'
19381 ;;
19382 esac
19383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19384 postinstall_cmds='chmod 555 $lib'
19385 ;;
19386
19387 interix[3-9]*)
19388 version_type=linux
19389 need_lib_prefix=no
19390 need_version=no
19391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19392 soname_spec='${libname}${release}${shared_ext}$major'
19393 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19394 shlibpath_var=LD_LIBRARY_PATH
19395 shlibpath_overrides_runpath=no
19396 hardcode_into_libs=yes
19397 ;;
19398
19399 irix5* | irix6* | nonstopux*)
19400 case $host_os in
19401 nonstopux*) version_type=nonstopux ;;
19402 *)
19403 if test "$lt_cv_prog_gnu_ld" = yes; then
19404 version_type=linux
19405 else
19406 version_type=irix
19407 fi ;;
19408 esac
19409 need_lib_prefix=no
19410 need_version=no
19411 soname_spec='${libname}${release}${shared_ext}$major'
19412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19413 case $host_os in
19414 irix5* | nonstopux*)
19415 libsuff= shlibsuff=
19416 ;;
19417 *)
19418 case $LD in # libtool.m4 will add one of these switches to LD
19419 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19420 libsuff= shlibsuff= libmagic=32-bit;;
19421 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19422 libsuff=32 shlibsuff=N32 libmagic=N32;;
19423 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19424 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19425 *) libsuff= shlibsuff= libmagic=never-match;;
19426 esac
19427 ;;
19428 esac
19429 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19430 shlibpath_overrides_runpath=no
19431 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19432 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19433 hardcode_into_libs=yes
19434 ;;
19435
19436 # No shared lib support for Linux oldld, aout, or coff.
19437 linux*oldld* | linux*aout* | linux*coff*)
19438 dynamic_linker=no
19439 ;;
19440
19441 # This must be Linux ELF.
19442 linux* | k*bsd*-gnu)
19443 version_type=linux
19444 need_lib_prefix=no
19445 need_version=no
19446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19447 soname_spec='${libname}${release}${shared_ext}$major'
19448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19449 shlibpath_var=LD_LIBRARY_PATH
19450 shlibpath_overrides_runpath=no
19451 # This implies no fast_install, which is unacceptable.
19452 # Some rework will be needed to allow for fast_install
19453 # before this can be enabled.
19454 hardcode_into_libs=yes
19455
19456 # Append ld.so.conf contents to the search path
19457 if test -f /etc/ld.so.conf; then
19458 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' ' '`
19459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19460 fi
19461
19462 # We used to test for /lib/ld.so.1 and disable shared libraries on
19463 # powerpc, because MkLinux only supported shared libraries with the
19464 # GNU dynamic linker. Since this was broken with cross compilers,
19465 # most powerpc-linux boxes support dynamic linking these days and
19466 # people can always --disable-shared, the test was removed, and we
19467 # assume the GNU/Linux dynamic linker is in use.
19468 dynamic_linker='GNU/Linux ld.so'
19469 ;;
19470
19471 netbsdelf*-gnu)
19472 version_type=linux
19473 need_lib_prefix=no
19474 need_version=no
19475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19476 soname_spec='${libname}${release}${shared_ext}$major'
19477 shlibpath_var=LD_LIBRARY_PATH
19478 shlibpath_overrides_runpath=no
19479 hardcode_into_libs=yes
19480 dynamic_linker='NetBSD ld.elf_so'
19481 ;;
19482
19483 netbsd*)
19484 version_type=sunos
19485 need_lib_prefix=no
19486 need_version=no
19487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19490 dynamic_linker='NetBSD (a.out) ld.so'
19491 else
19492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19493 soname_spec='${libname}${release}${shared_ext}$major'
19494 dynamic_linker='NetBSD ld.elf_so'
19495 fi
19496 shlibpath_var=LD_LIBRARY_PATH
19497 shlibpath_overrides_runpath=yes
19498 hardcode_into_libs=yes
19499 ;;
19500
19501 newsos6)
19502 version_type=linux
19503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19504 shlibpath_var=LD_LIBRARY_PATH
19505 shlibpath_overrides_runpath=yes
19506 ;;
19507
19508 nto-qnx*)
19509 version_type=linux
19510 need_lib_prefix=no
19511 need_version=no
19512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19513 soname_spec='${libname}${release}${shared_ext}$major'
19514 shlibpath_var=LD_LIBRARY_PATH
19515 shlibpath_overrides_runpath=yes
19516 ;;
19517
19518 openbsd*)
19519 version_type=sunos
19520 sys_lib_dlsearch_path_spec="/usr/lib"
19521 need_lib_prefix=no
19522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19523 case $host_os in
19524 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19525 *) need_version=no ;;
19526 esac
19527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19529 shlibpath_var=LD_LIBRARY_PATH
19530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19531 case $host_os in
19532 openbsd2.[89] | openbsd2.[89].*)
19533 shlibpath_overrides_runpath=no
19534 ;;
19535 *)
19536 shlibpath_overrides_runpath=yes
19537 ;;
19538 esac
19539 else
19540 shlibpath_overrides_runpath=yes
19541 fi
19542 ;;
19543
19544 os2*)
19545 libname_spec='$name'
19546 shrext_cmds=".dll"
19547 need_lib_prefix=no
19548 library_names_spec='$libname${shared_ext} $libname.a'
19549 dynamic_linker='OS/2 ld.exe'
19550 shlibpath_var=LIBPATH
19551 ;;
19552
19553 osf3* | osf4* | osf5*)
19554 version_type=osf
19555 need_lib_prefix=no
19556 need_version=no
19557 soname_spec='${libname}${release}${shared_ext}$major'
19558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19559 shlibpath_var=LD_LIBRARY_PATH
19560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19562 ;;
19563
19564 rdos*)
19565 dynamic_linker=no
19566 ;;
19567
19568 solaris*)
19569 version_type=linux
19570 need_lib_prefix=no
19571 need_version=no
19572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19573 soname_spec='${libname}${release}${shared_ext}$major'
19574 shlibpath_var=LD_LIBRARY_PATH
19575 shlibpath_overrides_runpath=yes
19576 hardcode_into_libs=yes
19577 # ldd complains unless libraries are executable
19578 postinstall_cmds='chmod +x $lib'
19579 ;;
19580
19581 sunos4*)
19582 version_type=sunos
19583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19585 shlibpath_var=LD_LIBRARY_PATH
19586 shlibpath_overrides_runpath=yes
19587 if test "$with_gnu_ld" = yes; then
19588 need_lib_prefix=no
19589 fi
19590 need_version=yes
19591 ;;
19592
19593 sysv4 | sysv4.3*)
19594 version_type=linux
19595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19596 soname_spec='${libname}${release}${shared_ext}$major'
19597 shlibpath_var=LD_LIBRARY_PATH
19598 case $host_vendor in
19599 sni)
19600 shlibpath_overrides_runpath=no
19601 need_lib_prefix=no
19602 export_dynamic_flag_spec='${wl}-Blargedynsym'
19603 runpath_var=LD_RUN_PATH
19604 ;;
19605 siemens)
19606 need_lib_prefix=no
19607 ;;
19608 motorola)
19609 need_lib_prefix=no
19610 need_version=no
19611 shlibpath_overrides_runpath=no
19612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19613 ;;
19614 esac
19615 ;;
19616
19617 sysv4*MP*)
19618 if test -d /usr/nec ;then
19619 version_type=linux
19620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19621 soname_spec='$libname${shared_ext}.$major'
19622 shlibpath_var=LD_LIBRARY_PATH
19623 fi
19624 ;;
19625
19626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19627 version_type=freebsd-elf
19628 need_lib_prefix=no
19629 need_version=no
19630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19631 soname_spec='${libname}${release}${shared_ext}$major'
19632 shlibpath_var=LD_LIBRARY_PATH
19633 hardcode_into_libs=yes
19634 if test "$with_gnu_ld" = yes; then
19635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19636 shlibpath_overrides_runpath=no
19637 else
19638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19639 shlibpath_overrides_runpath=yes
19640 case $host_os in
19641 sco3.2v5*)
19642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19643 ;;
19644 esac
19645 fi
19646 sys_lib_dlsearch_path_spec='/usr/lib'
19647 ;;
19648
19649 uts4*)
19650 version_type=linux
19651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19652 soname_spec='${libname}${release}${shared_ext}$major'
19653 shlibpath_var=LD_LIBRARY_PATH
19654 ;;
19655
19656 *)
19657 dynamic_linker=no
19658 ;;
19659 esac
19660 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19661 echo "${ECHO_T}$dynamic_linker" >&6; }
19662 test "$dynamic_linker" = no && can_build_shared=no
19663
19664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19665 if test "$GCC" = yes; then
19666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19667 fi
19668
19669 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19671 hardcode_action_GCJ=
19672 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19673 test -n "$runpath_var_GCJ" || \
19674 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19675
19676 # We can hardcode non-existant directories.
19677 if test "$hardcode_direct_GCJ" != no &&
19678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19679 # have to relink, otherwise we might link with an installed library
19680 # when we should be linking with a yet-to-be-installed one
19681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19682 test "$hardcode_minus_L_GCJ" != no; then
19683 # Linking always hardcodes the temporary library directory.
19684 hardcode_action_GCJ=relink
19685 else
19686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19687 hardcode_action_GCJ=immediate
19688 fi
19689 else
19690 # We cannot hardcode anything, or else we can only hardcode existing
19691 # directories.
19692 hardcode_action_GCJ=unsupported
19693 fi
19694 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19695 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19696
19697 if test "$hardcode_action_GCJ" = relink; then
19698 # Fast installation is not supported
19699 enable_fast_install=no
19700 elif test "$shlibpath_overrides_runpath" = yes ||
19701 test "$enable_shared" = no; then
19702 # Fast installation is not necessary
19703 enable_fast_install=needless
19704 fi
19705
19706
19707 # The else clause should only fire when bootstrapping the
19708 # libtool distribution, otherwise you forgot to ship ltmain.sh
19709 # with your package, and you will get complaints that there are
19710 # no rules to generate ltmain.sh.
19711 if test -f "$ltmain"; then
19712 # See if we are running on zsh, and set the options which allow our commands through
19713 # without removal of \ escapes.
19714 if test -n "${ZSH_VERSION+set}" ; then
19715 setopt NO_GLOB_SUBST
19716 fi
19717 # Now quote all the things that may contain metacharacters while being
19718 # careful not to overquote the AC_SUBSTed values. We take copies of the
19719 # variables and quote the copies for generation of the libtool script.
19720 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19721 SED SHELL STRIP \
19722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19724 deplibs_check_method reload_flag reload_cmds need_locks \
19725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19726 lt_cv_sys_global_symbol_to_c_name_address \
19727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19728 old_postinstall_cmds old_postuninstall_cmds \
19729 compiler_GCJ \
19730 CC_GCJ \
19731 LD_GCJ \
19732 lt_prog_compiler_wl_GCJ \
19733 lt_prog_compiler_pic_GCJ \
19734 lt_prog_compiler_static_GCJ \
19735 lt_prog_compiler_no_builtin_flag_GCJ \
19736 export_dynamic_flag_spec_GCJ \
19737 thread_safe_flag_spec_GCJ \
19738 whole_archive_flag_spec_GCJ \
19739 enable_shared_with_static_runtimes_GCJ \
19740 old_archive_cmds_GCJ \
19741 old_archive_from_new_cmds_GCJ \
19742 predep_objects_GCJ \
19743 postdep_objects_GCJ \
19744 predeps_GCJ \
19745 postdeps_GCJ \
19746 compiler_lib_search_path_GCJ \
19747 archive_cmds_GCJ \
19748 archive_expsym_cmds_GCJ \
19749 postinstall_cmds_GCJ \
19750 postuninstall_cmds_GCJ \
19751 old_archive_from_expsyms_cmds_GCJ \
19752 allow_undefined_flag_GCJ \
19753 no_undefined_flag_GCJ \
19754 export_symbols_cmds_GCJ \
19755 hardcode_libdir_flag_spec_GCJ \
19756 hardcode_libdir_flag_spec_ld_GCJ \
19757 hardcode_libdir_separator_GCJ \
19758 hardcode_automatic_GCJ \
19759 module_cmds_GCJ \
19760 module_expsym_cmds_GCJ \
19761 lt_cv_prog_compiler_c_o_GCJ \
19762 fix_srcfile_path_GCJ \
19763 exclude_expsyms_GCJ \
19764 include_expsyms_GCJ; do
19765
19766 case $var in
19767 old_archive_cmds_GCJ | \
19768 old_archive_from_new_cmds_GCJ | \
19769 archive_cmds_GCJ | \
19770 archive_expsym_cmds_GCJ | \
19771 module_cmds_GCJ | \
19772 module_expsym_cmds_GCJ | \
19773 old_archive_from_expsyms_cmds_GCJ | \
19774 export_symbols_cmds_GCJ | \
19775 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19776 postinstall_cmds | postuninstall_cmds | \
19777 old_postinstall_cmds | old_postuninstall_cmds | \
19778 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19779 # Double-quote double-evaled strings.
19780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19781 ;;
19782 *)
19783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19784 ;;
19785 esac
19786 done
19787
19788 case $lt_echo in
19789 *'\$0 --fallback-echo"')
19790 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19791 ;;
19792 esac
19793
19794 cfgfile="$ofile"
19795
19796 cat <<__EOF__ >> "$cfgfile"
19797 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19798
19799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19800
19801 # Shell to use when invoking shell scripts.
19802 SHELL=$lt_SHELL
19803
19804 # Whether or not to build shared libraries.
19805 build_libtool_libs=$enable_shared
19806
19807 # Whether or not to build static libraries.
19808 build_old_libs=$enable_static
19809
19810 # Whether or not to add -lc for building shared libraries.
19811 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19812
19813 # Whether or not to disallow shared libs when runtime libs are static
19814 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19815
19816 # Whether or not to optimize for fast installation.
19817 fast_install=$enable_fast_install
19818
19819 # The host system.
19820 host_alias=$host_alias
19821 host=$host
19822 host_os=$host_os
19823
19824 # The build system.
19825 build_alias=$build_alias
19826 build=$build
19827 build_os=$build_os
19828
19829 # An echo program that does not interpret backslashes.
19830 echo=$lt_echo
19831
19832 # The archiver.
19833 AR=$lt_AR
19834 AR_FLAGS=$lt_AR_FLAGS
19835
19836 # A C compiler.
19837 LTCC=$lt_LTCC
19838
19839 # LTCC compiler flags.
19840 LTCFLAGS=$lt_LTCFLAGS
19841
19842 # A language-specific compiler.
19843 CC=$lt_compiler_GCJ
19844
19845 # Is the compiler the GNU C compiler?
19846 with_gcc=$GCC_GCJ
19847
19848 # An ERE matcher.
19849 EGREP=$lt_EGREP
19850
19851 # The linker used to build libraries.
19852 LD=$lt_LD_GCJ
19853
19854 # Whether we need hard or soft links.
19855 LN_S=$lt_LN_S
19856
19857 # A BSD-compatible nm program.
19858 NM=$lt_NM
19859
19860 # A symbol stripping program
19861 STRIP=$lt_STRIP
19862
19863 # Used to examine libraries when file_magic_cmd begins "file"
19864 MAGIC_CMD=$MAGIC_CMD
19865
19866 # Used on cygwin: DLL creation program.
19867 DLLTOOL="$DLLTOOL"
19868
19869 # Used on cygwin: object dumper.
19870 OBJDUMP="$OBJDUMP"
19871
19872 # Used on cygwin: assembler.
19873 AS="$AS"
19874
19875 # The name of the directory that contains temporary libtool files.
19876 objdir=$objdir
19877
19878 # How to create reloadable object files.
19879 reload_flag=$lt_reload_flag
19880 reload_cmds=$lt_reload_cmds
19881
19882 # How to pass a linker flag through the compiler.
19883 wl=$lt_lt_prog_compiler_wl_GCJ
19884
19885 # Object file suffix (normally "o").
19886 objext="$ac_objext"
19887
19888 # Old archive suffix (normally "a").
19889 libext="$libext"
19890
19891 # Shared library suffix (normally ".so").
19892 shrext_cmds='$shrext_cmds'
19893
19894 # Executable file suffix (normally "").
19895 exeext="$exeext"
19896
19897 # Additional compiler flags for building library objects.
19898 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19899 pic_mode=$pic_mode
19900
19901 # What is the maximum length of a command?
19902 max_cmd_len=$lt_cv_sys_max_cmd_len
19903
19904 # Does compiler simultaneously support -c and -o options?
19905 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19906
19907 # Must we lock files when doing compilation?
19908 need_locks=$lt_need_locks
19909
19910 # Do we need the lib prefix for modules?
19911 need_lib_prefix=$need_lib_prefix
19912
19913 # Do we need a version for libraries?
19914 need_version=$need_version
19915
19916 # Whether dlopen is supported.
19917 dlopen_support=$enable_dlopen
19918
19919 # Whether dlopen of programs is supported.
19920 dlopen_self=$enable_dlopen_self
19921
19922 # Whether dlopen of statically linked programs is supported.
19923 dlopen_self_static=$enable_dlopen_self_static
19924
19925 # Compiler flag to prevent dynamic linking.
19926 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19927
19928 # Compiler flag to turn off builtin functions.
19929 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19930
19931 # Compiler flag to allow reflexive dlopens.
19932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19933
19934 # Compiler flag to generate shared objects directly from archives.
19935 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19936
19937 # Compiler flag to generate thread-safe objects.
19938 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19939
19940 # Library versioning type.
19941 version_type=$version_type
19942
19943 # Format of library name prefix.
19944 libname_spec=$lt_libname_spec
19945
19946 # List of archive names. First name is the real one, the rest are links.
19947 # The last name is the one that the linker finds with -lNAME.
19948 library_names_spec=$lt_library_names_spec
19949
19950 # The coded name of the library, if different from the real name.
19951 soname_spec=$lt_soname_spec
19952
19953 # Commands used to build and install an old-style archive.
19954 RANLIB=$lt_RANLIB
19955 old_archive_cmds=$lt_old_archive_cmds_GCJ
19956 old_postinstall_cmds=$lt_old_postinstall_cmds
19957 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19958
19959 # Create an old-style archive from a shared archive.
19960 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19961
19962 # Create a temporary old-style archive to link instead of a shared archive.
19963 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19964
19965 # Commands used to build and install a shared archive.
19966 archive_cmds=$lt_archive_cmds_GCJ
19967 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19968 postinstall_cmds=$lt_postinstall_cmds
19969 postuninstall_cmds=$lt_postuninstall_cmds
19970
19971 # Commands used to build a loadable module (assumed same as above if empty)
19972 module_cmds=$lt_module_cmds_GCJ
19973 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19974
19975 # Commands to strip libraries.
19976 old_striplib=$lt_old_striplib
19977 striplib=$lt_striplib
19978
19979 # Dependencies to place before the objects being linked to create a
19980 # shared library.
19981 predep_objects=$lt_predep_objects_GCJ
19982
19983 # Dependencies to place after the objects being linked to create a
19984 # shared library.
19985 postdep_objects=$lt_postdep_objects_GCJ
19986
19987 # Dependencies to place before the objects being linked to create a
19988 # shared library.
19989 predeps=$lt_predeps_GCJ
19990
19991 # Dependencies to place after the objects being linked to create a
19992 # shared library.
19993 postdeps=$lt_postdeps_GCJ
19994
19995 # The library search path used internally by the compiler when linking
19996 # a shared library.
19997 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19998
19999 # Method to check whether dependent libraries are shared objects.
20000 deplibs_check_method=$lt_deplibs_check_method
20001
20002 # Command to use when deplibs_check_method == file_magic.
20003 file_magic_cmd=$lt_file_magic_cmd
20004
20005 # Flag that allows shared libraries with undefined symbols to be built.
20006 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20007
20008 # Flag that forces no undefined symbols.
20009 no_undefined_flag=$lt_no_undefined_flag_GCJ
20010
20011 # Commands used to finish a libtool library installation in a directory.
20012 finish_cmds=$lt_finish_cmds
20013
20014 # Same as above, but a single script fragment to be evaled but not shown.
20015 finish_eval=$lt_finish_eval
20016
20017 # Take the output of nm and produce a listing of raw symbols and C names.
20018 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20019
20020 # Transform the output of nm in a proper C declaration
20021 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20022
20023 # Transform the output of nm in a C name address pair
20024 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20025
20026 # This is the shared library runtime path variable.
20027 runpath_var=$runpath_var
20028
20029 # This is the shared library path variable.
20030 shlibpath_var=$shlibpath_var
20031
20032 # Is shlibpath searched before the hard-coded library search path?
20033 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20034
20035 # How to hardcode a shared library path into an executable.
20036 hardcode_action=$hardcode_action_GCJ
20037
20038 # Whether we should hardcode library paths into libraries.
20039 hardcode_into_libs=$hardcode_into_libs
20040
20041 # Flag to hardcode \$libdir into a binary during linking.
20042 # This must work even if \$libdir does not exist.
20043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20044
20045 # If ld is used when linking, flag to hardcode \$libdir into
20046 # a binary during linking. This must work even if \$libdir does
20047 # not exist.
20048 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20049
20050 # Whether we need a single -rpath flag with a separated argument.
20051 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20052
20053 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20054 # resulting binary.
20055 hardcode_direct=$hardcode_direct_GCJ
20056
20057 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20058 # resulting binary.
20059 hardcode_minus_L=$hardcode_minus_L_GCJ
20060
20061 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20062 # the resulting binary.
20063 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20064
20065 # Set to yes if building a shared library automatically hardcodes DIR into the library
20066 # and all subsequent libraries and executables linked against it.
20067 hardcode_automatic=$hardcode_automatic_GCJ
20068
20069 # Variables whose values should be saved in libtool wrapper scripts and
20070 # restored at relink time.
20071 variables_saved_for_relink="$variables_saved_for_relink"
20072
20073 # Whether libtool must link a program against all its dependency libraries.
20074 link_all_deplibs=$link_all_deplibs_GCJ
20075
20076 # Compile-time system search path for libraries
20077 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20078
20079 # Run-time system search path for libraries
20080 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20081
20082 # Fix the shell variable \$srcfile for the compiler.
20083 fix_srcfile_path=$lt_fix_srcfile_path
20084
20085 # Set to yes if exported symbols are required.
20086 always_export_symbols=$always_export_symbols_GCJ
20087
20088 # The commands to list exported symbols.
20089 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20090
20091 # The commands to extract the exported symbol list from a shared archive.
20092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20093
20094 # Symbols that should not be listed in the preloaded symbols.
20095 exclude_expsyms=$lt_exclude_expsyms_GCJ
20096
20097 # Symbols that must always be exported.
20098 include_expsyms=$lt_include_expsyms_GCJ
20099
20100 # ### END LIBTOOL TAG CONFIG: $tagname
20101
20102 __EOF__
20103
20104
20105 else
20106 # If there is no Makefile yet, we rely on a make rule to execute
20107 # `config.status --recheck' to rerun these tests and create the
20108 # libtool script then.
20109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20110 if test -f "$ltmain_in"; then
20111 test -f Makefile && make "$ltmain"
20112 fi
20113 fi
20114
20115
20116 ac_ext=c
20117 ac_cpp='$CPP $CPPFLAGS'
20118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20121
20122 CC="$lt_save_CC"
20123
20124 else
20125 tagname=""
20126 fi
20127 ;;
20128
20129 RC)
20130
20131
20132 # Source file extension for RC test sources.
20133 ac_ext=rc
20134
20135 # Object file extension for compiled RC test sources.
20136 objext=o
20137 objext_RC=$objext
20138
20139 # Code to be used in simple compile tests
20140 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20141
20142 # Code to be used in simple link tests
20143 lt_simple_link_test_code="$lt_simple_compile_test_code"
20144
20145 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20146
20147 # If no C compiler was specified, use CC.
20148 LTCC=${LTCC-"$CC"}
20149
20150 # If no C compiler flags were specified, use CFLAGS.
20151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20152
20153 # Allow CC to be a program name with arguments.
20154 compiler=$CC
20155
20156
20157 # save warnings/boilerplate of simple test code
20158 ac_outfile=conftest.$ac_objext
20159 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20161 _lt_compiler_boilerplate=`cat conftest.err`
20162 $rm conftest*
20163
20164 ac_outfile=conftest.$ac_objext
20165 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20167 _lt_linker_boilerplate=`cat conftest.err`
20168 $rm conftest*
20169
20170
20171 # Allow CC to be a program name with arguments.
20172 lt_save_CC="$CC"
20173 CC=${RC-"windres"}
20174 compiler=$CC
20175 compiler_RC=$CC
20176 for cc_temp in $compiler""; do
20177 case $cc_temp in
20178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20180 \-*) ;;
20181 *) break;;
20182 esac
20183 done
20184 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20185
20186 lt_cv_prog_compiler_c_o_RC=yes
20187
20188 # The else clause should only fire when bootstrapping the
20189 # libtool distribution, otherwise you forgot to ship ltmain.sh
20190 # with your package, and you will get complaints that there are
20191 # no rules to generate ltmain.sh.
20192 if test -f "$ltmain"; then
20193 # See if we are running on zsh, and set the options which allow our commands through
20194 # without removal of \ escapes.
20195 if test -n "${ZSH_VERSION+set}" ; then
20196 setopt NO_GLOB_SUBST
20197 fi
20198 # Now quote all the things that may contain metacharacters while being
20199 # careful not to overquote the AC_SUBSTed values. We take copies of the
20200 # variables and quote the copies for generation of the libtool script.
20201 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20202 SED SHELL STRIP \
20203 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20204 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20205 deplibs_check_method reload_flag reload_cmds need_locks \
20206 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20207 lt_cv_sys_global_symbol_to_c_name_address \
20208 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20209 old_postinstall_cmds old_postuninstall_cmds \
20210 compiler_RC \
20211 CC_RC \
20212 LD_RC \
20213 lt_prog_compiler_wl_RC \
20214 lt_prog_compiler_pic_RC \
20215 lt_prog_compiler_static_RC \
20216 lt_prog_compiler_no_builtin_flag_RC \
20217 export_dynamic_flag_spec_RC \
20218 thread_safe_flag_spec_RC \
20219 whole_archive_flag_spec_RC \
20220 enable_shared_with_static_runtimes_RC \
20221 old_archive_cmds_RC \
20222 old_archive_from_new_cmds_RC \
20223 predep_objects_RC \
20224 postdep_objects_RC \
20225 predeps_RC \
20226 postdeps_RC \
20227 compiler_lib_search_path_RC \
20228 archive_cmds_RC \
20229 archive_expsym_cmds_RC \
20230 postinstall_cmds_RC \
20231 postuninstall_cmds_RC \
20232 old_archive_from_expsyms_cmds_RC \
20233 allow_undefined_flag_RC \
20234 no_undefined_flag_RC \
20235 export_symbols_cmds_RC \
20236 hardcode_libdir_flag_spec_RC \
20237 hardcode_libdir_flag_spec_ld_RC \
20238 hardcode_libdir_separator_RC \
20239 hardcode_automatic_RC \
20240 module_cmds_RC \
20241 module_expsym_cmds_RC \
20242 lt_cv_prog_compiler_c_o_RC \
20243 fix_srcfile_path_RC \
20244 exclude_expsyms_RC \
20245 include_expsyms_RC; do
20246
20247 case $var in
20248 old_archive_cmds_RC | \
20249 old_archive_from_new_cmds_RC | \
20250 archive_cmds_RC | \
20251 archive_expsym_cmds_RC | \
20252 module_cmds_RC | \
20253 module_expsym_cmds_RC | \
20254 old_archive_from_expsyms_cmds_RC | \
20255 export_symbols_cmds_RC | \
20256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20257 postinstall_cmds | postuninstall_cmds | \
20258 old_postinstall_cmds | old_postuninstall_cmds | \
20259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20260 # Double-quote double-evaled strings.
20261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20262 ;;
20263 *)
20264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20265 ;;
20266 esac
20267 done
20268
20269 case $lt_echo in
20270 *'\$0 --fallback-echo"')
20271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20272 ;;
20273 esac
20274
20275 cfgfile="$ofile"
20276
20277 cat <<__EOF__ >> "$cfgfile"
20278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20279
20280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20281
20282 # Shell to use when invoking shell scripts.
20283 SHELL=$lt_SHELL
20284
20285 # Whether or not to build shared libraries.
20286 build_libtool_libs=$enable_shared
20287
20288 # Whether or not to build static libraries.
20289 build_old_libs=$enable_static
20290
20291 # Whether or not to add -lc for building shared libraries.
20292 build_libtool_need_lc=$archive_cmds_need_lc_RC
20293
20294 # Whether or not to disallow shared libs when runtime libs are static
20295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20296
20297 # Whether or not to optimize for fast installation.
20298 fast_install=$enable_fast_install
20299
20300 # The host system.
20301 host_alias=$host_alias
20302 host=$host
20303 host_os=$host_os
20304
20305 # The build system.
20306 build_alias=$build_alias
20307 build=$build
20308 build_os=$build_os
20309
20310 # An echo program that does not interpret backslashes.
20311 echo=$lt_echo
20312
20313 # The archiver.
20314 AR=$lt_AR
20315 AR_FLAGS=$lt_AR_FLAGS
20316
20317 # A C compiler.
20318 LTCC=$lt_LTCC
20319
20320 # LTCC compiler flags.
20321 LTCFLAGS=$lt_LTCFLAGS
20322
20323 # A language-specific compiler.
20324 CC=$lt_compiler_RC
20325
20326 # Is the compiler the GNU C compiler?
20327 with_gcc=$GCC_RC
20328
20329 # An ERE matcher.
20330 EGREP=$lt_EGREP
20331
20332 # The linker used to build libraries.
20333 LD=$lt_LD_RC
20334
20335 # Whether we need hard or soft links.
20336 LN_S=$lt_LN_S
20337
20338 # A BSD-compatible nm program.
20339 NM=$lt_NM
20340
20341 # A symbol stripping program
20342 STRIP=$lt_STRIP
20343
20344 # Used to examine libraries when file_magic_cmd begins "file"
20345 MAGIC_CMD=$MAGIC_CMD
20346
20347 # Used on cygwin: DLL creation program.
20348 DLLTOOL="$DLLTOOL"
20349
20350 # Used on cygwin: object dumper.
20351 OBJDUMP="$OBJDUMP"
20352
20353 # Used on cygwin: assembler.
20354 AS="$AS"
20355
20356 # The name of the directory that contains temporary libtool files.
20357 objdir=$objdir
20358
20359 # How to create reloadable object files.
20360 reload_flag=$lt_reload_flag
20361 reload_cmds=$lt_reload_cmds
20362
20363 # How to pass a linker flag through the compiler.
20364 wl=$lt_lt_prog_compiler_wl_RC
20365
20366 # Object file suffix (normally "o").
20367 objext="$ac_objext"
20368
20369 # Old archive suffix (normally "a").
20370 libext="$libext"
20371
20372 # Shared library suffix (normally ".so").
20373 shrext_cmds='$shrext_cmds'
20374
20375 # Executable file suffix (normally "").
20376 exeext="$exeext"
20377
20378 # Additional compiler flags for building library objects.
20379 pic_flag=$lt_lt_prog_compiler_pic_RC
20380 pic_mode=$pic_mode
20381
20382 # What is the maximum length of a command?
20383 max_cmd_len=$lt_cv_sys_max_cmd_len
20384
20385 # Does compiler simultaneously support -c and -o options?
20386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20387
20388 # Must we lock files when doing compilation?
20389 need_locks=$lt_need_locks
20390
20391 # Do we need the lib prefix for modules?
20392 need_lib_prefix=$need_lib_prefix
20393
20394 # Do we need a version for libraries?
20395 need_version=$need_version
20396
20397 # Whether dlopen is supported.
20398 dlopen_support=$enable_dlopen
20399
20400 # Whether dlopen of programs is supported.
20401 dlopen_self=$enable_dlopen_self
20402
20403 # Whether dlopen of statically linked programs is supported.
20404 dlopen_self_static=$enable_dlopen_self_static
20405
20406 # Compiler flag to prevent dynamic linking.
20407 link_static_flag=$lt_lt_prog_compiler_static_RC
20408
20409 # Compiler flag to turn off builtin functions.
20410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20411
20412 # Compiler flag to allow reflexive dlopens.
20413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20414
20415 # Compiler flag to generate shared objects directly from archives.
20416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20417
20418 # Compiler flag to generate thread-safe objects.
20419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20420
20421 # Library versioning type.
20422 version_type=$version_type
20423
20424 # Format of library name prefix.
20425 libname_spec=$lt_libname_spec
20426
20427 # List of archive names. First name is the real one, the rest are links.
20428 # The last name is the one that the linker finds with -lNAME.
20429 library_names_spec=$lt_library_names_spec
20430
20431 # The coded name of the library, if different from the real name.
20432 soname_spec=$lt_soname_spec
20433
20434 # Commands used to build and install an old-style archive.
20435 RANLIB=$lt_RANLIB
20436 old_archive_cmds=$lt_old_archive_cmds_RC
20437 old_postinstall_cmds=$lt_old_postinstall_cmds
20438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20439
20440 # Create an old-style archive from a shared archive.
20441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20442
20443 # Create a temporary old-style archive to link instead of a shared archive.
20444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20445
20446 # Commands used to build and install a shared archive.
20447 archive_cmds=$lt_archive_cmds_RC
20448 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20449 postinstall_cmds=$lt_postinstall_cmds
20450 postuninstall_cmds=$lt_postuninstall_cmds
20451
20452 # Commands used to build a loadable module (assumed same as above if empty)
20453 module_cmds=$lt_module_cmds_RC
20454 module_expsym_cmds=$lt_module_expsym_cmds_RC
20455
20456 # Commands to strip libraries.
20457 old_striplib=$lt_old_striplib
20458 striplib=$lt_striplib
20459
20460 # Dependencies to place before the objects being linked to create a
20461 # shared library.
20462 predep_objects=$lt_predep_objects_RC
20463
20464 # Dependencies to place after the objects being linked to create a
20465 # shared library.
20466 postdep_objects=$lt_postdep_objects_RC
20467
20468 # Dependencies to place before the objects being linked to create a
20469 # shared library.
20470 predeps=$lt_predeps_RC
20471
20472 # Dependencies to place after the objects being linked to create a
20473 # shared library.
20474 postdeps=$lt_postdeps_RC
20475
20476 # The library search path used internally by the compiler when linking
20477 # a shared library.
20478 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20479
20480 # Method to check whether dependent libraries are shared objects.
20481 deplibs_check_method=$lt_deplibs_check_method
20482
20483 # Command to use when deplibs_check_method == file_magic.
20484 file_magic_cmd=$lt_file_magic_cmd
20485
20486 # Flag that allows shared libraries with undefined symbols to be built.
20487 allow_undefined_flag=$lt_allow_undefined_flag_RC
20488
20489 # Flag that forces no undefined symbols.
20490 no_undefined_flag=$lt_no_undefined_flag_RC
20491
20492 # Commands used to finish a libtool library installation in a directory.
20493 finish_cmds=$lt_finish_cmds
20494
20495 # Same as above, but a single script fragment to be evaled but not shown.
20496 finish_eval=$lt_finish_eval
20497
20498 # Take the output of nm and produce a listing of raw symbols and C names.
20499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20500
20501 # Transform the output of nm in a proper C declaration
20502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20503
20504 # Transform the output of nm in a C name address pair
20505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20506
20507 # This is the shared library runtime path variable.
20508 runpath_var=$runpath_var
20509
20510 # This is the shared library path variable.
20511 shlibpath_var=$shlibpath_var
20512
20513 # Is shlibpath searched before the hard-coded library search path?
20514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20515
20516 # How to hardcode a shared library path into an executable.
20517 hardcode_action=$hardcode_action_RC
20518
20519 # Whether we should hardcode library paths into libraries.
20520 hardcode_into_libs=$hardcode_into_libs
20521
20522 # Flag to hardcode \$libdir into a binary during linking.
20523 # This must work even if \$libdir does not exist.
20524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20525
20526 # If ld is used when linking, flag to hardcode \$libdir into
20527 # a binary during linking. This must work even if \$libdir does
20528 # not exist.
20529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20530
20531 # Whether we need a single -rpath flag with a separated argument.
20532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20533
20534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20535 # resulting binary.
20536 hardcode_direct=$hardcode_direct_RC
20537
20538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20539 # resulting binary.
20540 hardcode_minus_L=$hardcode_minus_L_RC
20541
20542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20543 # the resulting binary.
20544 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20545
20546 # Set to yes if building a shared library automatically hardcodes DIR into the library
20547 # and all subsequent libraries and executables linked against it.
20548 hardcode_automatic=$hardcode_automatic_RC
20549
20550 # Variables whose values should be saved in libtool wrapper scripts and
20551 # restored at relink time.
20552 variables_saved_for_relink="$variables_saved_for_relink"
20553
20554 # Whether libtool must link a program against all its dependency libraries.
20555 link_all_deplibs=$link_all_deplibs_RC
20556
20557 # Compile-time system search path for libraries
20558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20559
20560 # Run-time system search path for libraries
20561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20562
20563 # Fix the shell variable \$srcfile for the compiler.
20564 fix_srcfile_path=$lt_fix_srcfile_path
20565
20566 # Set to yes if exported symbols are required.
20567 always_export_symbols=$always_export_symbols_RC
20568
20569 # The commands to list exported symbols.
20570 export_symbols_cmds=$lt_export_symbols_cmds_RC
20571
20572 # The commands to extract the exported symbol list from a shared archive.
20573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20574
20575 # Symbols that should not be listed in the preloaded symbols.
20576 exclude_expsyms=$lt_exclude_expsyms_RC
20577
20578 # Symbols that must always be exported.
20579 include_expsyms=$lt_include_expsyms_RC
20580
20581 # ### END LIBTOOL TAG CONFIG: $tagname
20582
20583 __EOF__
20584
20585
20586 else
20587 # If there is no Makefile yet, we rely on a make rule to execute
20588 # `config.status --recheck' to rerun these tests and create the
20589 # libtool script then.
20590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20591 if test -f "$ltmain_in"; then
20592 test -f Makefile && make "$ltmain"
20593 fi
20594 fi
20595
20596
20597 ac_ext=c
20598 ac_cpp='$CPP $CPPFLAGS'
20599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602
20603 CC="$lt_save_CC"
20604
20605 ;;
20606
20607 *)
20608 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20609 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20610 { (exit 1); exit 1; }; }
20611 ;;
20612 esac
20613
20614 # Append the new tag name to the list of available tags.
20615 if test -n "$tagname" ; then
20616 available_tags="$available_tags $tagname"
20617 fi
20618 fi
20619 done
20620 IFS="$lt_save_ifs"
20621
20622 # Now substitute the updated list of available tags.
20623 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20624 mv "${ofile}T" "$ofile"
20625 chmod +x "$ofile"
20626 else
20627 rm -f "${ofile}T"
20628 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20629 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20630 { (exit 1); exit 1; }; }
20631 fi
20632 fi
20633
20634
20635
20636 # This can be used to rebuild libtool when needed
20637 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20638
20639 # Always use our own libtool.
20640 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20641
20642 # Prevent multiple expansion
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664 LIBTOOL="$LIBTOOL --silent"
20665
20666 subdirs="$subdirs libltdl"
20667
20668
20669
20670 case "$host_os" in
20671 *cygwin*)
20672
20673 cat >>confdefs.h <<_ACEOF
20674 #define CYGWIN 1
20675 _ACEOF
20676
20677
20678 cat >>confdefs.h <<_ACEOF
20679 #define WINDOWS 1
20680 _ACEOF
20681
20682 ;;
20683 *mingw*)
20684
20685 cat >>confdefs.h <<_ACEOF
20686 #define MINGW 1
20687 _ACEOF
20688
20689
20690 cat >>confdefs.h <<_ACEOF
20691 #define WINDOWS 1
20692 _ACEOF
20693
20694 if test "${ac_cv_header_windows_h+set}" = set; then
20695 { echo "$as_me:$LINENO: checking for windows.h" >&5
20696 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
20697 if test "${ac_cv_header_windows_h+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 fi
20700 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20701 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
20702 else
20703 # Is the header compilable?
20704 { echo "$as_me:$LINENO: checking windows.h usability" >&5
20705 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
20706 cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h. */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712 $ac_includes_default
20713 #include <windows.h>
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_compile") 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest.$ac_objext; then
20732 ac_header_compiler=yes
20733 else
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20736
20737 ac_header_compiler=no
20738 fi
20739
20740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20742 echo "${ECHO_T}$ac_header_compiler" >&6; }
20743
20744 # Is the header present?
20745 { echo "$as_me:$LINENO: checking windows.h presence" >&5
20746 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
20747 cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h. */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 #include <windows.h>
20754 _ACEOF
20755 if { (ac_try="$ac_cpp conftest.$ac_ext"
20756 case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20759 esac
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } >/dev/null && {
20768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 }; then
20771 ac_header_preproc=yes
20772 else
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 ac_header_preproc=no
20777 fi
20778
20779 rm -f conftest.err conftest.$ac_ext
20780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20781 echo "${ECHO_T}$ac_header_preproc" >&6; }
20782
20783 # So? What about this header?
20784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20785 yes:no: )
20786 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20787 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
20789 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
20790 ac_header_preproc=yes
20791 ;;
20792 no:yes:* )
20793 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20794 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20796 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
20798 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
20800 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20802 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20803 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
20804 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
20805
20806 ;;
20807 esac
20808 { echo "$as_me:$LINENO: checking for windows.h" >&5
20809 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
20810 if test "${ac_cv_header_windows_h+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813 ac_cv_header_windows_h=$ac_header_preproc
20814 fi
20815 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20816 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
20817
20818 fi
20819 if test $ac_cv_header_windows_h = yes; then
20820 :
20821 else
20822 { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
20823 echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
20824 { (exit 1); exit 1; }; }
20825 fi
20826
20827
20828 if test "${ac_cv_header_winsock2_h+set}" = set; then
20829 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
20830 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
20831 if test "${ac_cv_header_winsock2_h+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 fi
20834 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
20835 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
20836 else
20837 # Is the header compilable?
20838 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
20839 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
20840 cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h. */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 $ac_includes_default
20847 #include <winsock2.h>
20848 _ACEOF
20849 rm -f conftest.$ac_objext
20850 if { (ac_try="$ac_compile"
20851 case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854 esac
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_compile") 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest.$ac_objext; then
20866 ac_header_compiler=yes
20867 else
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871 ac_header_compiler=no
20872 fi
20873
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20876 echo "${ECHO_T}$ac_header_compiler" >&6; }
20877
20878 # Is the header present?
20879 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
20880 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
20881 cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 #include <winsock2.h>
20888 _ACEOF
20889 if { (ac_try="$ac_cpp conftest.$ac_ext"
20890 case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } >/dev/null && {
20902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20904 }; then
20905 ac_header_preproc=yes
20906 else
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20909
20910 ac_header_preproc=no
20911 fi
20912
20913 rm -f conftest.err conftest.$ac_ext
20914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20915 echo "${ECHO_T}$ac_header_preproc" >&6; }
20916
20917 # So? What about this header?
20918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20919 yes:no: )
20920 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
20921 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20922 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
20923 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
20924 ac_header_preproc=yes
20925 ;;
20926 no:yes:* )
20927 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
20928 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
20929 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
20930 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
20931 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
20932 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
20934 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
20936 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
20938 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
20939
20940 ;;
20941 esac
20942 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
20943 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
20944 if test "${ac_cv_header_winsock2_h+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947 ac_cv_header_winsock2_h=$ac_header_preproc
20948 fi
20949 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
20950 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
20951
20952 fi
20953 if test $ac_cv_header_winsock2_h = yes; then
20954 :
20955 else
20956 { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
20957 echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
20958 { (exit 1); exit 1; }; }
20959 fi
20960
20961
20962 LIBS="$LIBS -lws2_32 -liphlpapi"
20963 is_mingw="yes"
20964 ;;
20965 *interix*)
20966 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
20967 ;;
20968 *solaris*)
20969 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
20970 ;;
20971 *)
20972 ;;
20973 esac
20974
20975 if test "$is_mingw" = "yes"; then
20976 MINGW_TRUE=
20977 MINGW_FALSE='#'
20978 else
20979 MINGW_TRUE='#'
20980 MINGW_FALSE=
20981 fi
20982
20983
20984
20985 # backwards support for IRC_CFLAGS
20986 CFLAGS="$IRC_CFLAGS $CFLAGS -O0 -Wall"
20987
20988 if test "$libexecdir" = '${exec_prefix}/libexec' &&
20989 test "$localstatedir" = '${prefix}/var'; then
20990 libexecdir='${bindir}'
20991 localstatedir='${prefix}'
20992 fi
20993
20994
20995 { echo "$as_me:$LINENO: checking for int8_t" >&5
20996 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
20997 if test "${ac_cv_c_int8_t+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 else
21000 ac_cv_c_int8_t=no
21001 for ac_type in 'int8_t' 'int' 'long int' \
21002 'long long int' 'short int' 'signed char'; do
21003 cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h. */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 $ac_includes_default
21010 int
21011 main ()
21012 {
21013 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
21014 test_array [0] = 0
21015
21016 ;
21017 return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (ac_try="$ac_compile"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_compile") 2>conftest.er1
21028 ac_status=$?
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest.$ac_objext; then
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h. */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 $ac_includes_default
21044 int
21045 main ()
21046 {
21047 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
21048 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
21049 test_array [0] = 0
21050
21051 ;
21052 return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21060 esac
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062 (eval "$ac_compile") 2>conftest.er1
21063 ac_status=$?
21064 grep -v '^ *+' conftest.er1 >conftest.err
21065 rm -f conftest.er1
21066 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } && {
21069 test -z "$ac_c_werror_flag" ||
21070 test ! -s conftest.err
21071 } && test -s conftest.$ac_objext; then
21072 :
21073 else
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077 case $ac_type in
21078 int8_t) ac_cv_c_int8_t=yes ;;
21079 *) ac_cv_c_int8_t=$ac_type ;;
21080 esac
21081
21082 fi
21083
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085 else
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089
21090 fi
21091
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 test "$ac_cv_c_int8_t" != no && break
21094 done
21095 fi
21096 { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
21097 echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
21098 case $ac_cv_c_int8_t in #(
21099 no|yes) ;; #(
21100 *)
21101
21102 cat >>confdefs.h <<_ACEOF
21103 #define int8_t $ac_cv_c_int8_t
21104 _ACEOF
21105 ;;
21106 esac
21107
21108
21109 { echo "$as_me:$LINENO: checking for int16_t" >&5
21110 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
21111 if test "${ac_cv_c_int16_t+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 else
21114 ac_cv_c_int16_t=no
21115 for ac_type in 'int16_t' 'int' 'long int' \
21116 'long long int' 'short int' 'signed char'; do
21117 cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h. */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123 $ac_includes_default
21124 int
21125 main ()
21126 {
21127 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
21128 test_array [0] = 0
21129
21130 ;
21131 return 0;
21132 }
21133 _ACEOF
21134 rm -f conftest.$ac_objext
21135 if { (ac_try="$ac_compile"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_compile") 2>conftest.er1
21142 ac_status=$?
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest.$ac_objext; then
21151 cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h. */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21157 $ac_includes_default
21158 int
21159 main ()
21160 {
21161 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
21162 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
21163 test_array [0] = 0
21164
21165 ;
21166 return 0;
21167 }
21168 _ACEOF
21169 rm -f conftest.$ac_objext
21170 if { (ac_try="$ac_compile"
21171 case "(($ac_try" in
21172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173 *) ac_try_echo=$ac_try;;
21174 esac
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176 (eval "$ac_compile") 2>conftest.er1
21177 ac_status=$?
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } && {
21183 test -z "$ac_c_werror_flag" ||
21184 test ! -s conftest.err
21185 } && test -s conftest.$ac_objext; then
21186 :
21187 else
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191 case $ac_type in
21192 int16_t) ac_cv_c_int16_t=yes ;;
21193 *) ac_cv_c_int16_t=$ac_type ;;
21194 esac
21195
21196 fi
21197
21198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199 else
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203
21204 fi
21205
21206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21207 test "$ac_cv_c_int16_t" != no && break
21208 done
21209 fi
21210 { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
21211 echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
21212 case $ac_cv_c_int16_t in #(
21213 no|yes) ;; #(
21214 *)
21215
21216 cat >>confdefs.h <<_ACEOF
21217 #define int16_t $ac_cv_c_int16_t
21218 _ACEOF
21219 ;;
21220 esac
21221
21222
21223 { echo "$as_me:$LINENO: checking for int32_t" >&5
21224 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
21225 if test "${ac_cv_c_int32_t+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228 ac_cv_c_int32_t=no
21229 for ac_type in 'int32_t' 'int' 'long int' \
21230 'long long int' 'short int' 'signed char'; do
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h. */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237 $ac_includes_default
21238 int
21239 main ()
21240 {
21241 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
21242 test_array [0] = 0
21243
21244 ;
21245 return 0;
21246 }
21247 _ACEOF
21248 rm -f conftest.$ac_objext
21249 if { (ac_try="$ac_compile"
21250 case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_compile") 2>conftest.er1
21256 ac_status=$?
21257 grep -v '^ *+' conftest.er1 >conftest.err
21258 rm -f conftest.er1
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } && {
21262 test -z "$ac_c_werror_flag" ||
21263 test ! -s conftest.err
21264 } && test -s conftest.$ac_objext; then
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 $ac_includes_default
21272 int
21273 main ()
21274 {
21275 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
21276 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
21277 test_array [0] = 0
21278
21279 ;
21280 return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_compile") 2>conftest.er1
21291 ac_status=$?
21292 grep -v '^ *+' conftest.er1 >conftest.err
21293 rm -f conftest.er1
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } && {
21297 test -z "$ac_c_werror_flag" ||
21298 test ! -s conftest.err
21299 } && test -s conftest.$ac_objext; then
21300 :
21301 else
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305 case $ac_type in
21306 int32_t) ac_cv_c_int32_t=yes ;;
21307 *) ac_cv_c_int32_t=$ac_type ;;
21308 esac
21309
21310 fi
21311
21312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 else
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317
21318 fi
21319
21320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321 test "$ac_cv_c_int32_t" != no && break
21322 done
21323 fi
21324 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
21325 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
21326 case $ac_cv_c_int32_t in #(
21327 no|yes) ;; #(
21328 *)
21329
21330 cat >>confdefs.h <<_ACEOF
21331 #define int32_t $ac_cv_c_int32_t
21332 _ACEOF
21333 ;;
21334 esac
21335
21336
21337 { echo "$as_me:$LINENO: checking for int64_t" >&5
21338 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
21339 if test "${ac_cv_c_int64_t+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342 ac_cv_c_int64_t=no
21343 for ac_type in 'int64_t' 'int' 'long int' \
21344 'long long int' 'short int' 'signed char'; do
21345 cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h. */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 $ac_includes_default
21352 int
21353 main ()
21354 {
21355 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
21356 test_array [0] = 0
21357
21358 ;
21359 return 0;
21360 }
21361 _ACEOF
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21367 esac
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_compile") 2>conftest.er1
21370 ac_status=$?
21371 grep -v '^ *+' conftest.er1 >conftest.err
21372 rm -f conftest.er1
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest.$ac_objext; then
21379 cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h. */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 $ac_includes_default
21386 int
21387 main ()
21388 {
21389 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
21390 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
21391 test_array [0] = 0
21392
21393 ;
21394 return 0;
21395 }
21396 _ACEOF
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_compile") 2>conftest.er1
21405 ac_status=$?
21406 grep -v '^ *+' conftest.er1 >conftest.err
21407 rm -f conftest.er1
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && {
21411 test -z "$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 } && test -s conftest.$ac_objext; then
21414 :
21415 else
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419 case $ac_type in
21420 int64_t) ac_cv_c_int64_t=yes ;;
21421 *) ac_cv_c_int64_t=$ac_type ;;
21422 esac
21423
21424 fi
21425
21426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 else
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 test "$ac_cv_c_int64_t" != no && break
21436 done
21437 fi
21438 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
21439 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
21440 case $ac_cv_c_int64_t in #(
21441 no|yes) ;; #(
21442 *)
21443
21444 cat >>confdefs.h <<_ACEOF
21445 #define int64_t $ac_cv_c_int64_t
21446 _ACEOF
21447 ;;
21448 esac
21449
21450
21451 { echo "$as_me:$LINENO: checking for uint8_t" >&5
21452 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
21453 if test "${ac_cv_c_uint8_t+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 else
21456 ac_cv_c_uint8_t=no
21457 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21458 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h. */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 $ac_includes_default
21466 int
21467 main ()
21468 {
21469 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21470 test_array [0] = 0
21471
21472 ;
21473 return 0;
21474 }
21475 _ACEOF
21476 rm -f conftest.$ac_objext
21477 if { (ac_try="$ac_compile"
21478 case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21481 esac
21482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21483 (eval "$ac_compile") 2>conftest.er1
21484 ac_status=$?
21485 grep -v '^ *+' conftest.er1 >conftest.err
21486 rm -f conftest.er1
21487 cat conftest.err >&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } && {
21490 test -z "$ac_c_werror_flag" ||
21491 test ! -s conftest.err
21492 } && test -s conftest.$ac_objext; then
21493 case $ac_type in
21494 uint8_t) ac_cv_c_uint8_t=yes ;;
21495 *) ac_cv_c_uint8_t=$ac_type ;;
21496 esac
21497
21498 else
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502
21503 fi
21504
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 test "$ac_cv_c_uint8_t" != no && break
21507 done
21508 fi
21509 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21510 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
21511 case $ac_cv_c_uint8_t in #(
21512 no|yes) ;; #(
21513 *)
21514
21515 cat >>confdefs.h <<\_ACEOF
21516 #define _UINT8_T 1
21517 _ACEOF
21518
21519
21520 cat >>confdefs.h <<_ACEOF
21521 #define uint8_t $ac_cv_c_uint8_t
21522 _ACEOF
21523 ;;
21524 esac
21525
21526
21527 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21528 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21529 if test "${ac_cv_c_uint16_t+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532 ac_cv_c_uint16_t=no
21533 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21534 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21535 cat >conftest.$ac_ext <<_ACEOF
21536 /* confdefs.h. */
21537 _ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h. */
21541 $ac_includes_default
21542 int
21543 main ()
21544 {
21545 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21546 test_array [0] = 0
21547
21548 ;
21549 return 0;
21550 }
21551 _ACEOF
21552 rm -f conftest.$ac_objext
21553 if { (ac_try="$ac_compile"
21554 case "(($ac_try" in
21555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556 *) ac_try_echo=$ac_try;;
21557 esac
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559 (eval "$ac_compile") 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest.$ac_objext; then
21569 case $ac_type in
21570 uint16_t) ac_cv_c_uint16_t=yes ;;
21571 *) ac_cv_c_uint16_t=$ac_type ;;
21572 esac
21573
21574 else
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578
21579 fi
21580
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 test "$ac_cv_c_uint16_t" != no && break
21583 done
21584 fi
21585 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21586 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
21587 case $ac_cv_c_uint16_t in #(
21588 no|yes) ;; #(
21589 *)
21590
21591
21592 cat >>confdefs.h <<_ACEOF
21593 #define uint16_t $ac_cv_c_uint16_t
21594 _ACEOF
21595 ;;
21596 esac
21597
21598
21599 { echo "$as_me:$LINENO: checking for uint32_t" >&5
21600 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
21601 if test "${ac_cv_c_uint32_t+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604 ac_cv_c_uint32_t=no
21605 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
21606 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h. */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21614 int
21615 main ()
21616 {
21617 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
21618 test_array [0] = 0
21619
21620 ;
21621 return 0;
21622 }
21623 _ACEOF
21624 rm -f conftest.$ac_objext
21625 if { (ac_try="$ac_compile"
21626 case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21629 esac
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21632 ac_status=$?
21633 grep -v '^ *+' conftest.er1 >conftest.err
21634 rm -f conftest.er1
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21641 case $ac_type in
21642 uint32_t) ac_cv_c_uint32_t=yes ;;
21643 *) ac_cv_c_uint32_t=$ac_type ;;
21644 esac
21645
21646 else
21647 echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21649
21650
21651 fi
21652
21653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 test "$ac_cv_c_uint32_t" != no && break
21655 done
21656 fi
21657 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
21658 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
21659 case $ac_cv_c_uint32_t in #(
21660 no|yes) ;; #(
21661 *)
21662
21663 cat >>confdefs.h <<\_ACEOF
21664 #define _UINT32_T 1
21665 _ACEOF
21666
21667
21668 cat >>confdefs.h <<_ACEOF
21669 #define uint32_t $ac_cv_c_uint32_t
21670 _ACEOF
21671 ;;
21672 esac
21673
21674
21675 { echo "$as_me:$LINENO: checking for uint64_t" >&5
21676 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
21677 if test "${ac_cv_c_uint64_t+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680 ac_cv_c_uint64_t=no
21681 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
21682 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21683 cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h. */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689 $ac_includes_default
21690 int
21691 main ()
21692 {
21693 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
21694 test_array [0] = 0
21695
21696 ;
21697 return 0;
21698 }
21699 _ACEOF
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.$ac_objext; then
21717 case $ac_type in
21718 uint64_t) ac_cv_c_uint64_t=yes ;;
21719 *) ac_cv_c_uint64_t=$ac_type ;;
21720 esac
21721
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726
21727 fi
21728
21729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730 test "$ac_cv_c_uint64_t" != no && break
21731 done
21732 fi
21733 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
21734 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
21735 case $ac_cv_c_uint64_t in #(
21736 no|yes) ;; #(
21737 *)
21738
21739 cat >>confdefs.h <<\_ACEOF
21740 #define _UINT64_T 1
21741 _ACEOF
21742
21743
21744 cat >>confdefs.h <<_ACEOF
21745 #define uint64_t $ac_cv_c_uint64_t
21746 _ACEOF
21747 ;;
21748 esac
21749
21750
21751
21752 { echo "$as_me:$LINENO: checking for intptr_t" >&5
21753 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
21754 if test "${ac_cv_type_intptr_t+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21756 else
21757 cat >conftest.$ac_ext <<_ACEOF
21758 /* confdefs.h. */
21759 _ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h. */
21763 $ac_includes_default
21764 typedef intptr_t ac__type_new_;
21765 int
21766 main ()
21767 {
21768 if ((ac__type_new_ *) 0)
21769 return 0;
21770 if (sizeof (ac__type_new_))
21771 return 0;
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 ac_cv_type_intptr_t=yes
21794 else
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798 ac_cv_type_intptr_t=no
21799 fi
21800
21801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21802 fi
21803 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
21804 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
21805 if test $ac_cv_type_intptr_t = yes; then
21806
21807 cat >>confdefs.h <<\_ACEOF
21808 #define HAVE_INTPTR_T 1
21809 _ACEOF
21810 ac_cv_c_intptr_t=yes
21811 else
21812 for ac_type in 'int' 'long int' 'long long int'; do
21813 cat >conftest.$ac_ext <<_ACEOF
21814 /* confdefs.h. */
21815 _ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h. */
21819 $ac_includes_default
21820 int
21821 main ()
21822 {
21823 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
21824 test_array [0] = 0
21825
21826 ;
21827 return 0;
21828 }
21829 _ACEOF
21830 rm -f conftest.$ac_objext
21831 if { (ac_try="$ac_compile"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_compile") 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest.$ac_objext; then
21847
21848 cat >>confdefs.h <<_ACEOF
21849 #define intptr_t $ac_type
21850 _ACEOF
21851 ac_cv_c_intptr_t="$ac_type"
21852 ac_type=
21853 else
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857
21858 fi
21859
21860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861 test -z "$ac_type" && break
21862 done
21863 fi
21864
21865
21866
21867 { echo "$as_me:$LINENO: checking for long long int" >&5
21868 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
21869 if test "${ac_cv_type_long_long_int+set}" = set; then
21870 echo $ECHO_N "(cached) $ECHO_C" >&6
21871 else
21872 cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h. */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 long long int ll = 9223372036854775807ll;
21879 long long int nll = -9223372036854775807LL;
21880 typedef int a[((-9223372036854775807LL < 0
21881 && 0 < 9223372036854775807ll)
21882 ? 1 : -1)];
21883 int i = 63;
21884 int
21885 main ()
21886 {
21887 long long int llmax = 9223372036854775807ll;
21888 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21889 | (llmax / ll) | (llmax % ll));
21890 ;
21891 return 0;
21892 }
21893 _ACEOF
21894 rm -f conftest.$ac_objext conftest$ac_exeext
21895 if { (ac_try="$ac_link"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_link") 2>conftest.er1
21902 ac_status=$?
21903 grep -v '^ *+' conftest.er1 >conftest.err
21904 rm -f conftest.er1
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && {
21908 test -z "$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 } && test -s conftest$ac_exeext &&
21911 $as_test_x conftest$ac_exeext; then
21912 ac_cv_type_long_long_int=yes
21913 else
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917 ac_cv_type_long_long_int=no
21918 fi
21919
21920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21921 conftest$ac_exeext conftest.$ac_ext
21922 fi
21923 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21924 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
21925 if test $ac_cv_type_long_long_int = yes; then
21926
21927 cat >>confdefs.h <<\_ACEOF
21928 #define HAVE_LONG_LONG_INT 1
21929 _ACEOF
21930
21931 fi
21932
21933
21934
21935 { echo "$as_me:$LINENO: checking for intmax_t" >&5
21936 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
21937 if test "${ac_cv_type_intmax_t+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940 cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h. */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 $ac_includes_default
21947 typedef intmax_t ac__type_new_;
21948 int
21949 main ()
21950 {
21951 if ((ac__type_new_ *) 0)
21952 return 0;
21953 if (sizeof (ac__type_new_))
21954 return 0;
21955 ;
21956 return 0;
21957 }
21958 _ACEOF
21959 rm -f conftest.$ac_objext
21960 if { (ac_try="$ac_compile"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_compile") 2>conftest.er1
21967 ac_status=$?
21968 grep -v '^ *+' conftest.er1 >conftest.err
21969 rm -f conftest.er1
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest.$ac_objext; then
21976 ac_cv_type_intmax_t=yes
21977 else
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21980
21981 ac_cv_type_intmax_t=no
21982 fi
21983
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21985 fi
21986 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
21987 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
21988 if test $ac_cv_type_intmax_t = yes; then
21989
21990 cat >>confdefs.h <<\_ACEOF
21991 #define HAVE_INTMAX_T 1
21992 _ACEOF
21993 ac_cv_c_intmax_t=yes
21994 else
21995 test $ac_cv_type_long_long_int = yes \
21996 && ac_type='long long int' \
21997 || ac_type='long int'
21998
21999 cat >>confdefs.h <<_ACEOF
22000 #define intmax_t $ac_type
22001 _ACEOF
22002 ac_cv_c_intmax_t="$ac_type"
22003 fi
22004
22005
22006
22007 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
22008 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
22009 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
22010 echo $ECHO_N "(cached) $ECHO_C" >&6
22011 else
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h. */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 unsigned long long int ull = 18446744073709551615ULL;
22019 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
22020 ? 1 : -1)];
22021 int i = 63;
22022 int
22023 main ()
22024 {
22025 unsigned long long int ullmax = 18446744073709551615ull;
22026 return (ull << 63 | ull >> 63 | ull << i | ull >> i
22027 | ullmax / ull | ullmax % ull);
22028 ;
22029 return 0;
22030 }
22031 _ACEOF
22032 rm -f conftest.$ac_objext conftest$ac_exeext
22033 if { (ac_try="$ac_link"
22034 case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_link") 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } && {
22046 test -z "$ac_c_werror_flag" ||
22047 test ! -s conftest.err
22048 } && test -s conftest$ac_exeext &&
22049 $as_test_x conftest$ac_exeext; then
22050 ac_cv_type_unsigned_long_long_int=yes
22051 else
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055 ac_cv_type_unsigned_long_long_int=no
22056 fi
22057
22058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22059 conftest$ac_exeext conftest.$ac_ext
22060 fi
22061 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
22062 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
22063 if test $ac_cv_type_unsigned_long_long_int = yes; then
22064
22065 cat >>confdefs.h <<\_ACEOF
22066 #define HAVE_UNSIGNED_LONG_LONG_INT 1
22067 _ACEOF
22068
22069 fi
22070
22071
22072
22073 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
22074 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
22075 if test "${ac_cv_type_uintmax_t+set}" = set; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078 cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h. */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 $ac_includes_default
22085 typedef uintmax_t ac__type_new_;
22086 int
22087 main ()
22088 {
22089 if ((ac__type_new_ *) 0)
22090 return 0;
22091 if (sizeof (ac__type_new_))
22092 return 0;
22093 ;
22094 return 0;
22095 }
22096 _ACEOF
22097 rm -f conftest.$ac_objext
22098 if { (ac_try="$ac_compile"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_compile") 2>conftest.er1
22105 ac_status=$?
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && {
22111 test -z "$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 } && test -s conftest.$ac_objext; then
22114 ac_cv_type_uintmax_t=yes
22115 else
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119 ac_cv_type_uintmax_t=no
22120 fi
22121
22122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22123 fi
22124 { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
22125 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
22126 if test $ac_cv_type_uintmax_t = yes; then
22127
22128 cat >>confdefs.h <<\_ACEOF
22129 #define HAVE_UINTMAX_T 1
22130 _ACEOF
22131 ac_cv_c_uintmax_t=yes
22132 else
22133 test $ac_cv_type_unsigned_long_long_int = yes \
22134 && ac_type='unsigned long long int' \
22135 || ac_type='unsigned long int'
22136
22137 cat >>confdefs.h <<_ACEOF
22138 #define uintmax_t $ac_type
22139 _ACEOF
22140 ac_cv_c_uintmax_t="$ac_type"
22141 fi
22142
22143
22144
22145 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
22146 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
22147 if test "${ac_cv_type_uintptr_t+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150 cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h. */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 $ac_includes_default
22157 typedef uintptr_t ac__type_new_;
22158 int
22159 main ()
22160 {
22161 if ((ac__type_new_ *) 0)
22162 return 0;
22163 if (sizeof (ac__type_new_))
22164 return 0;
22165 ;
22166 return 0;
22167 }
22168 _ACEOF
22169 rm -f conftest.$ac_objext
22170 if { (ac_try="$ac_compile"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_compile") 2>conftest.er1
22177 ac_status=$?
22178 grep -v '^ *+' conftest.er1 >conftest.err
22179 rm -f conftest.er1
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest.$ac_objext; then
22186 ac_cv_type_uintptr_t=yes
22187 else
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22190
22191 ac_cv_type_uintptr_t=no
22192 fi
22193
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 fi
22196 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
22197 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
22198 if test $ac_cv_type_uintptr_t = yes; then
22199
22200 cat >>confdefs.h <<\_ACEOF
22201 #define HAVE_UINTPTR_T 1
22202 _ACEOF
22203 ac_cv_c_uintptr_t=yes
22204 else
22205 for ac_type in 'unsigned int' 'unsigned long int' \
22206 'unsigned long long int'; do
22207 cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h. */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22213 $ac_includes_default
22214 int
22215 main ()
22216 {
22217 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22218 test_array [0] = 0
22219
22220 ;
22221 return 0;
22222 }
22223 _ACEOF
22224 rm -f conftest.$ac_objext
22225 if { (ac_try="$ac_compile"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_compile") 2>conftest.er1
22232 ac_status=$?
22233 grep -v '^ *+' conftest.er1 >conftest.err
22234 rm -f conftest.er1
22235 cat conftest.err >&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } && {
22238 test -z "$ac_c_werror_flag" ||
22239 test ! -s conftest.err
22240 } && test -s conftest.$ac_objext; then
22241
22242 cat >>confdefs.h <<_ACEOF
22243 #define uintptr_t $ac_type
22244 _ACEOF
22245 ac_cv_c_uintptr_t="$ac_type"
22246 ac_type=
22247 else
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 test -z "$ac_type" && break
22256 done
22257 fi
22258
22259
22260
22261 { echo "$as_me:$LINENO: checking for pid_t" >&5
22262 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22263 if test "${ac_cv_type_pid_t+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h. */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 $ac_includes_default
22273 typedef pid_t ac__type_new_;
22274 int
22275 main ()
22276 {
22277 if ((ac__type_new_ *) 0)
22278 return 0;
22279 if (sizeof (ac__type_new_))
22280 return 0;
22281 ;
22282 return 0;
22283 }
22284 _ACEOF
22285 rm -f conftest.$ac_objext
22286 if { (ac_try="$ac_compile"
22287 case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22290 esac
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_compile") 2>conftest.er1
22293 ac_status=$?
22294 grep -v '^ *+' conftest.er1 >conftest.err
22295 rm -f conftest.er1
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && {
22299 test -z "$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22301 } && test -s conftest.$ac_objext; then
22302 ac_cv_type_pid_t=yes
22303 else
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22306
22307 ac_cv_type_pid_t=no
22308 fi
22309
22310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 fi
22312 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22313 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22314 if test $ac_cv_type_pid_t = yes; then
22315 :
22316 else
22317
22318 cat >>confdefs.h <<_ACEOF
22319 #define pid_t int
22320 _ACEOF
22321
22322 fi
22323
22324 { echo "$as_me:$LINENO: checking for size_t" >&5
22325 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22326 if test "${ac_cv_type_size_t+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22328 else
22329 cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h. */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 $ac_includes_default
22336 typedef size_t ac__type_new_;
22337 int
22338 main ()
22339 {
22340 if ((ac__type_new_ *) 0)
22341 return 0;
22342 if (sizeof (ac__type_new_))
22343 return 0;
22344 ;
22345 return 0;
22346 }
22347 _ACEOF
22348 rm -f conftest.$ac_objext
22349 if { (ac_try="$ac_compile"
22350 case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_compile") 2>conftest.er1
22356 ac_status=$?
22357 grep -v '^ *+' conftest.er1 >conftest.err
22358 rm -f conftest.er1
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } && {
22362 test -z "$ac_c_werror_flag" ||
22363 test ! -s conftest.err
22364 } && test -s conftest.$ac_objext; then
22365 ac_cv_type_size_t=yes
22366 else
22367 echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22369
22370 ac_cv_type_size_t=no
22371 fi
22372
22373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22374 fi
22375 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22376 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22377 if test $ac_cv_type_size_t = yes; then
22378 :
22379 else
22380
22381 cat >>confdefs.h <<_ACEOF
22382 #define size_t unsigned int
22383 _ACEOF
22384
22385 fi
22386
22387 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22388 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22389 if test "${ac_cv_type_ssize_t+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392 cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h. */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22398 $ac_includes_default
22399 typedef ssize_t ac__type_new_;
22400 int
22401 main ()
22402 {
22403 if ((ac__type_new_ *) 0)
22404 return 0;
22405 if (sizeof (ac__type_new_))
22406 return 0;
22407 ;
22408 return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext
22412 if { (ac_try="$ac_compile"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418 (eval "$ac_compile") 2>conftest.er1
22419 ac_status=$?
22420 grep -v '^ *+' conftest.er1 >conftest.err
22421 rm -f conftest.er1
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } && {
22425 test -z "$ac_c_werror_flag" ||
22426 test ! -s conftest.err
22427 } && test -s conftest.$ac_objext; then
22428 ac_cv_type_ssize_t=yes
22429 else
22430 echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22432
22433 ac_cv_type_ssize_t=no
22434 fi
22435
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 fi
22438 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22439 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22440 if test $ac_cv_type_ssize_t = yes; then
22441 :
22442 else
22443
22444 cat >>confdefs.h <<_ACEOF
22445 #define ssize_t int
22446 _ACEOF
22447
22448 fi
22449
22450 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22451 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22452 if test "${ac_cv_type_uid_t+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h. */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 #include <sys/types.h>
22462
22463 _ACEOF
22464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22465 $EGREP "uid_t" >/dev/null 2>&1; then
22466 ac_cv_type_uid_t=yes
22467 else
22468 ac_cv_type_uid_t=no
22469 fi
22470 rm -f conftest*
22471
22472 fi
22473 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22474 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22475 if test $ac_cv_type_uid_t = no; then
22476
22477 cat >>confdefs.h <<\_ACEOF
22478 #define uid_t int
22479 _ACEOF
22480
22481
22482 cat >>confdefs.h <<\_ACEOF
22483 #define gid_t int
22484 _ACEOF
22485
22486 fi
22487
22488
22489
22490 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22491 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22492 if test "${ac_cv_header_stdc+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 #include <stdlib.h>
22502 #include <stdarg.h>
22503 #include <string.h>
22504 #include <float.h>
22505
22506 int
22507 main ()
22508 {
22509
22510 ;
22511 return 0;
22512 }
22513 _ACEOF
22514 rm -f conftest.$ac_objext
22515 if { (ac_try="$ac_compile"
22516 case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22519 esac
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_compile") 2>conftest.er1
22522 ac_status=$?
22523 grep -v '^ *+' conftest.er1 >conftest.err
22524 rm -f conftest.er1
22525 cat conftest.err >&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } && {
22528 test -z "$ac_c_werror_flag" ||
22529 test ! -s conftest.err
22530 } && test -s conftest.$ac_objext; then
22531 ac_cv_header_stdc=yes
22532 else
22533 echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22535
22536 ac_cv_header_stdc=no
22537 fi
22538
22539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22540
22541 if test $ac_cv_header_stdc = yes; then
22542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22543 cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h. */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 #include <string.h>
22550
22551 _ACEOF
22552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22553 $EGREP "memchr" >/dev/null 2>&1; then
22554 :
22555 else
22556 ac_cv_header_stdc=no
22557 fi
22558 rm -f conftest*
22559
22560 fi
22561
22562 if test $ac_cv_header_stdc = yes; then
22563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 #include <stdlib.h>
22571
22572 _ACEOF
22573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22574 $EGREP "free" >/dev/null 2>&1; then
22575 :
22576 else
22577 ac_cv_header_stdc=no
22578 fi
22579 rm -f conftest*
22580
22581 fi
22582
22583 if test $ac_cv_header_stdc = yes; then
22584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22585 if test "$cross_compiling" = yes; then
22586 :
22587 else
22588 cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h. */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 #include <ctype.h>
22595 #include <stdlib.h>
22596 #if ((' ' & 0x0FF) == 0x020)
22597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22599 #else
22600 # define ISLOWER(c) \
22601 (('a' <= (c) && (c) <= 'i') \
22602 || ('j' <= (c) && (c) <= 'r') \
22603 || ('s' <= (c) && (c) <= 'z'))
22604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22605 #endif
22606
22607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22608 int
22609 main ()
22610 {
22611 int i;
22612 for (i = 0; i < 256; i++)
22613 if (XOR (islower (i), ISLOWER (i))
22614 || toupper (i) != TOUPPER (i))
22615 return 2;
22616 return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest$ac_exeext
22620 if { (ac_try="$ac_link"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_link") 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22630 { (case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22633 esac
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_try") 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22639 :
22640 else
22641 echo "$as_me: program exited with status $ac_status" >&5
22642 echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22644
22645 ( exit $ac_status )
22646 ac_cv_header_stdc=no
22647 fi
22648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22649 fi
22650
22651
22652 fi
22653 fi
22654 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22655 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22656 if test $ac_cv_header_stdc = yes; then
22657
22658 cat >>confdefs.h <<\_ACEOF
22659 #define STDC_HEADERS 1
22660 _ACEOF
22661
22662 fi
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684 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
22685 do
22686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22691 echo $ECHO_N "(cached) $ECHO_C" >&6
22692 fi
22693 ac_res=`eval echo '${'$as_ac_Header'}'`
22694 { echo "$as_me:$LINENO: result: $ac_res" >&5
22695 echo "${ECHO_T}$ac_res" >&6; }
22696 else
22697 # Is the header compilable?
22698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22700 cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h. */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 $ac_includes_default
22707 #include <$ac_header>
22708 _ACEOF
22709 rm -f conftest.$ac_objext
22710 if { (ac_try="$ac_compile"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22714 esac
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_compile") 2>conftest.er1
22717 ac_status=$?
22718 grep -v '^ *+' conftest.er1 >conftest.err
22719 rm -f conftest.er1
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest.$ac_objext; then
22726 ac_header_compiler=yes
22727 else
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22730
22731 ac_header_compiler=no
22732 fi
22733
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22736 echo "${ECHO_T}$ac_header_compiler" >&6; }
22737
22738 # Is the header present?
22739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22741 cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h. */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22747 #include <$ac_header>
22748 _ACEOF
22749 if { (ac_try="$ac_cpp conftest.$ac_ext"
22750 case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22753 esac
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22756 ac_status=$?
22757 grep -v '^ *+' conftest.er1 >conftest.err
22758 rm -f conftest.er1
22759 cat conftest.err >&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } >/dev/null && {
22762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22763 test ! -s conftest.err
22764 }; then
22765 ac_header_preproc=yes
22766 else
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770 ac_header_preproc=no
22771 fi
22772
22773 rm -f conftest.err conftest.$ac_ext
22774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22775 echo "${ECHO_T}$ac_header_preproc" >&6; }
22776
22777 # So? What about this header?
22778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22779 yes:no: )
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22784 ac_header_preproc=yes
22785 ;;
22786 no:yes:* )
22787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22799
22800 ;;
22801 esac
22802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22806 else
22807 eval "$as_ac_Header=\$ac_header_preproc"
22808 fi
22809 ac_res=`eval echo '${'$as_ac_Header'}'`
22810 { echo "$as_me:$LINENO: result: $ac_res" >&5
22811 echo "${ECHO_T}$ac_res" >&6; }
22812
22813 fi
22814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22815 cat >>confdefs.h <<_ACEOF
22816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22817 _ACEOF
22818
22819 fi
22820
22821 done
22822
22823 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22824 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22825 if test "${ac_cv_header_time+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 #include <sys/types.h>
22835 #include <sys/time.h>
22836 #include <time.h>
22837
22838 int
22839 main ()
22840 {
22841 if ((struct tm *) 0)
22842 return 0;
22843 ;
22844 return 0;
22845 }
22846 _ACEOF
22847 rm -f conftest.$ac_objext
22848 if { (ac_try="$ac_compile"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_compile") 2>conftest.er1
22855 ac_status=$?
22856 grep -v '^ *+' conftest.er1 >conftest.err
22857 rm -f conftest.er1
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } && {
22861 test -z "$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 } && test -s conftest.$ac_objext; then
22864 ac_cv_header_time=yes
22865 else
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22868
22869 ac_cv_header_time=no
22870 fi
22871
22872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22873 fi
22874 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22875 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22876 if test $ac_cv_header_time = yes; then
22877
22878 cat >>confdefs.h <<\_ACEOF
22879 #define TIME_WITH_SYS_TIME 1
22880 _ACEOF
22881
22882 fi
22883
22884
22885
22886 { echo "$as_me:$LINENO: checking for library containing socket" >&5
22887 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
22888 if test "${ac_cv_search_socket+set}" = set; then
22889 echo $ECHO_N "(cached) $ECHO_C" >&6
22890 else
22891 ac_func_search_save_LIBS=$LIBS
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898
22899 /* Override any GCC internal prototype to avoid an error.
22900 Use char because int might match the return type of a GCC
22901 builtin and then its argument prototype would still apply. */
22902 #ifdef __cplusplus
22903 extern "C"
22904 #endif
22905 char socket ();
22906 int
22907 main ()
22908 {
22909 return socket ();
22910 ;
22911 return 0;
22912 }
22913 _ACEOF
22914 for ac_lib in '' socket; do
22915 if test -z "$ac_lib"; then
22916 ac_res="none required"
22917 else
22918 ac_res=-l$ac_lib
22919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22920 fi
22921 rm -f conftest.$ac_objext conftest$ac_exeext
22922 if { (ac_try="$ac_link"
22923 case "(($ac_try" in
22924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925 *) ac_try_echo=$ac_try;;
22926 esac
22927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928 (eval "$ac_link") 2>conftest.er1
22929 ac_status=$?
22930 grep -v '^ *+' conftest.er1 >conftest.err
22931 rm -f conftest.er1
22932 cat conftest.err >&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } && {
22935 test -z "$ac_c_werror_flag" ||
22936 test ! -s conftest.err
22937 } && test -s conftest$ac_exeext &&
22938 $as_test_x conftest$ac_exeext; then
22939 ac_cv_search_socket=$ac_res
22940 else
22941 echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22943
22944
22945 fi
22946
22947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22948 conftest$ac_exeext
22949 if test "${ac_cv_search_socket+set}" = set; then
22950 break
22951 fi
22952 done
22953 if test "${ac_cv_search_socket+set}" = set; then
22954 :
22955 else
22956 ac_cv_search_socket=no
22957 fi
22958 rm conftest.$ac_ext
22959 LIBS=$ac_func_search_save_LIBS
22960 fi
22961 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
22962 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
22963 ac_res=$ac_cv_search_socket
22964 if test "$ac_res" != no; then
22965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22966
22967 fi
22968
22969
22970
22971 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22972 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22973 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22975 else
22976 cat >conftest.$ac_ext <<_ACEOF
22977 /* confdefs.h. */
22978 _ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982
22983 #ifdef HAVE_SYS_TYPES_H
22984 #include <sys/types.h>
22985 #endif
22986 #ifdef HAVE_SYS_SOCKET_H
22987 #include <sys/socket.h>
22988 #endif
22989 #ifdef HAVE_WINSOCK2_H
22990 #include <winsock2.h>
22991 #endif
22992
22993
22994 int
22995 main ()
22996 {
22997 static struct sockaddr ac_aggr;
22998 if (ac_aggr.sa_len)
22999 return 0;
23000 ;
23001 return 0;
23002 }
23003 _ACEOF
23004 rm -f conftest.$ac_objext
23005 if { (ac_try="$ac_compile"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23009 esac
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23012 ac_status=$?
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23021 ac_cv_member_struct_sockaddr_sa_len=yes
23022 else
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 cat >conftest.$ac_ext <<_ACEOF
23027 /* confdefs.h. */
23028 _ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23032
23033 #ifdef HAVE_SYS_TYPES_H
23034 #include <sys/types.h>
23035 #endif
23036 #ifdef HAVE_SYS_SOCKET_H
23037 #include <sys/socket.h>
23038 #endif
23039 #ifdef HAVE_WINSOCK2_H
23040 #include <winsock2.h>
23041 #endif
23042
23043
23044 int
23045 main ()
23046 {
23047 static struct sockaddr ac_aggr;
23048 if (sizeof ac_aggr.sa_len)
23049 return 0;
23050 ;
23051 return 0;
23052 }
23053 _ACEOF
23054 rm -f conftest.$ac_objext
23055 if { (ac_try="$ac_compile"
23056 case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_compile") 2>conftest.er1
23062 ac_status=$?
23063 grep -v '^ *+' conftest.er1 >conftest.err
23064 rm -f conftest.er1
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } && {
23068 test -z "$ac_c_werror_flag" ||
23069 test ! -s conftest.err
23070 } && test -s conftest.$ac_objext; then
23071 ac_cv_member_struct_sockaddr_sa_len=yes
23072 else
23073 echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076 ac_cv_member_struct_sockaddr_sa_len=no
23077 fi
23078
23079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23080 fi
23081
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 fi
23084 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
23085 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
23086 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
23087
23088 cat >>confdefs.h <<\_ACEOF
23089 #define SOCKADDR_IN_HAS_LEN 1
23090 _ACEOF
23091
23092 fi
23093
23094
23095 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23096 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23097 if test "${ac_cv_type_socklen_t+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100 cat >conftest.$ac_ext <<_ACEOF
23101 /* confdefs.h. */
23102 _ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23106
23107 #ifdef HAVE_SYS_TYPES_H
23108 #include <sys/types.h>
23109 #endif
23110 #ifdef HAVE_SYS_SOCKET_H
23111 #include <sys/socket.h>
23112 #endif
23113 #ifdef HAVE_WINSOCK2_H
23114 #include <winsock2.h>
23115 #endif
23116
23117
23118
23119 typedef socklen_t ac__type_new_;
23120 int
23121 main ()
23122 {
23123 if ((ac__type_new_ *) 0)
23124 return 0;
23125 if (sizeof (ac__type_new_))
23126 return 0;
23127 ;
23128 return 0;
23129 }
23130 _ACEOF
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_compile") 2>conftest.er1
23139 ac_status=$?
23140 grep -v '^ *+' conftest.er1 >conftest.err
23141 rm -f conftest.er1
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && {
23145 test -z "$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 } && test -s conftest.$ac_objext; then
23148 ac_cv_type_socklen_t=yes
23149 else
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153 ac_cv_type_socklen_t=no
23154 fi
23155
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 fi
23158 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23159 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23160 if test $ac_cv_type_socklen_t = yes; then
23161 :
23162 else
23163
23164 cat >>confdefs.h <<\_ACEOF
23165 #define socklen_t unsigned int
23166 _ACEOF
23167
23168 fi
23169
23170
23171 # Check whether --enable-ipv6 was given.
23172 if test "${enable_ipv6+set}" = set; then
23173 enableval=$enable_ipv6; ipv6=$enableval
23174 else
23175 ipv6=yes
23176 fi
23177
23178
23179 if test x$ipv6 != xyes; then
23180 have_v6="no"
23181 else
23182
23183 have_v6=yes
23184
23185 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
23186 echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
23187 if test "${rb_cv_proto_inet6+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190
23191 cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h. */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197
23198 #include <sys/types.h>
23199 #include <sys/socket.h>
23200
23201 #ifndef PF_INET6
23202 #error Missing PF_INET6
23203 #endif
23204 #ifndef AF_INET6
23205 #error Mlssing AF_INET6
23206 #endif
23207
23208 _ACEOF
23209 if { (ac_try="$ac_cpp conftest.$ac_ext"
23210 case "(($ac_try" in
23211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23212 *) ac_try_echo=$ac_try;;
23213 esac
23214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23216 ac_status=$?
23217 grep -v '^ *+' conftest.er1 >conftest.err
23218 rm -f conftest.er1
23219 cat conftest.err >&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } >/dev/null && {
23222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23223 test ! -s conftest.err
23224 }; then
23225
23226 rb_cv_proto_inet6=yes
23227
23228 else
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23231
23232
23233 rb_cv_proto_inet6=no
23234
23235 fi
23236
23237 rm -f conftest.err conftest.$ac_ext
23238
23239 fi
23240 { echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
23241 echo "${ECHO_T}$rb_cv_proto_inet6" >&6; }
23242
23243 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
23244
23245 else :
23246
23247 { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
23248 echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
23249 have_v6=no
23250
23251 fi
23252
23253
23254 if test "X$have_v6" = "Xyes"; then
23255
23256 rb_have_sockaddr_in6=
23257 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23258 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23259 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23261 else
23262 cat >conftest.$ac_ext <<_ACEOF
23263 /* confdefs.h. */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23268
23269 #include <sys/types.h>
23270 #include <sys/socket.h>
23271 #include <netinet/in.h>
23272
23273
23274 typedef struct sockaddr_in6 ac__type_new_;
23275 int
23276 main ()
23277 {
23278 if ((ac__type_new_ *) 0)
23279 return 0;
23280 if (sizeof (ac__type_new_))
23281 return 0;
23282 ;
23283 return 0;
23284 }
23285 _ACEOF
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23291 esac
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23294 ac_status=$?
23295 grep -v '^ *+' conftest.er1 >conftest.err
23296 rm -f conftest.er1
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23303 ac_cv_type_struct_sockaddr_in6=yes
23304 else
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 ac_cv_type_struct_sockaddr_in6=no
23309 fi
23310
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312 fi
23313 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23314 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23315 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23316
23317 cat >>confdefs.h <<_ACEOF
23318 #define HAVE_STRUCT_SOCKADDR_IN6 1
23319 _ACEOF
23320
23321
23322 rb_have_sockaddr_in6=yes
23323
23324 else
23325
23326 rb_have_sockaddr_in6=no
23327
23328 fi
23329
23330
23331 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
23332
23333 else :
23334
23335 { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
23336 echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
23337 have_v6=no
23338
23339 fi
23340
23341 fi
23342
23343 fi
23344
23345 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23346 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23347 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h. */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23356
23357 #include <sys/types.h>
23358 #include <sys/socket.h>
23359
23360
23361 typedef struct sockaddr_storage ac__type_new_;
23362 int
23363 main ()
23364 {
23365 if ((ac__type_new_ *) 0)
23366 return 0;
23367 if (sizeof (ac__type_new_))
23368 return 0;
23369 ;
23370 return 0;
23371 }
23372 _ACEOF
23373 rm -f conftest.$ac_objext
23374 if { (ac_try="$ac_compile"
23375 case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377 *) ac_try_echo=$ac_try;;
23378 esac
23379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380 (eval "$ac_compile") 2>conftest.er1
23381 ac_status=$?
23382 grep -v '^ *+' conftest.er1 >conftest.err
23383 rm -f conftest.er1
23384 cat conftest.err >&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } && {
23387 test -z "$ac_c_werror_flag" ||
23388 test ! -s conftest.err
23389 } && test -s conftest.$ac_objext; then
23390 ac_cv_type_struct_sockaddr_storage=yes
23391 else
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395 ac_cv_type_struct_sockaddr_storage=no
23396 fi
23397
23398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399 fi
23400 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23401 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23402 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23403
23404 cat >>confdefs.h <<_ACEOF
23405 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23406 _ACEOF
23407
23408
23409 rb_have_sockaddr_storage=yes
23410
23411 fi
23412
23413
23414
23415 save_LIBS=$LIBS
23416 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
23417 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
23418 if test "${ac_cv_search_crypt+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23421 ac_func_search_save_LIBS=$LIBS
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h. */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428
23429 /* Override any GCC internal prototype to avoid an error.
23430 Use char because int might match the return type of a GCC
23431 builtin and then its argument prototype would still apply. */
23432 #ifdef __cplusplus
23433 extern "C"
23434 #endif
23435 char crypt ();
23436 int
23437 main ()
23438 {
23439 return crypt ();
23440 ;
23441 return 0;
23442 }
23443 _ACEOF
23444 for ac_lib in '' crypt descrypt; do
23445 if test -z "$ac_lib"; then
23446 ac_res="none required"
23447 else
23448 ac_res=-l$ac_lib
23449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23450 fi
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (ac_try="$ac_link"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>conftest.er1
23459 ac_status=$?
23460 grep -v '^ *+' conftest.er1 >conftest.err
23461 rm -f conftest.er1
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest$ac_exeext &&
23468 $as_test_x conftest$ac_exeext; then
23469 ac_cv_search_crypt=$ac_res
23470 else
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23473
23474
23475 fi
23476
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478 conftest$ac_exeext
23479 if test "${ac_cv_search_crypt+set}" = set; then
23480 break
23481 fi
23482 done
23483 if test "${ac_cv_search_crypt+set}" = set; then
23484 :
23485 else
23486 ac_cv_search_crypt=no
23487 fi
23488 rm conftest.$ac_ext
23489 LIBS=$ac_func_search_save_LIBS
23490 fi
23491 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
23492 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
23493 ac_res=$ac_cv_search_crypt
23494 if test "$ac_res" != no; then
23495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23496
23497 fi
23498
23499 LIBS=$save_LIBS
23500
23501 CRYPT_LIB=$ac_cv_search_crypt
23502
23503 if test "$CRYPT_LIB" = "none required"; then
23504 unset CRYPT_LIB
23505 elif test "$CRYPT_LIB" = no; then
23506 need_crypt=yes;
23507
23508 cat >>confdefs.h <<\_ACEOF
23509 #define NEED_CRYPT 1
23510 _ACEOF
23511
23512 unset CRYPT_LIB
23513 fi
23514
23515 if test x"$need_crypt" == "xyes"; then
23516 NEED_CRYPT_TRUE=
23517 NEED_CRYPT_FALSE='#'
23518 else
23519 NEED_CRYPT_TRUE='#'
23520 NEED_CRYPT_FALSE=
23521 fi
23522
23523
23524
23525
23526
23527 if test "${ac_cv_header_stdarg_h+set}" = set; then
23528 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
23529 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
23530 if test "${ac_cv_header_stdarg_h+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 fi
23533 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23534 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
23535 else
23536 # Is the header compilable?
23537 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
23538 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
23539 cat >conftest.$ac_ext <<_ACEOF
23540 /* confdefs.h. */
23541 _ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h. */
23545 $ac_includes_default
23546 #include <stdarg.h>
23547 _ACEOF
23548 rm -f conftest.$ac_objext
23549 if { (ac_try="$ac_compile"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23553 esac
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_compile") 2>conftest.er1
23556 ac_status=$?
23557 grep -v '^ *+' conftest.er1 >conftest.err
23558 rm -f conftest.er1
23559 cat conftest.err >&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } && {
23562 test -z "$ac_c_werror_flag" ||
23563 test ! -s conftest.err
23564 } && test -s conftest.$ac_objext; then
23565 ac_header_compiler=yes
23566 else
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23569
23570 ac_header_compiler=no
23571 fi
23572
23573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23575 echo "${ECHO_T}$ac_header_compiler" >&6; }
23576
23577 # Is the header present?
23578 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
23579 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
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 #include <stdarg.h>
23587 _ACEOF
23588 if { (ac_try="$ac_cpp conftest.$ac_ext"
23589 case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23595 ac_status=$?
23596 grep -v '^ *+' conftest.er1 >conftest.err
23597 rm -f conftest.er1
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } >/dev/null && {
23601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 }; then
23604 ac_header_preproc=yes
23605 else
23606 echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23608
23609 ac_header_preproc=no
23610 fi
23611
23612 rm -f conftest.err conftest.$ac_ext
23613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23614 echo "${ECHO_T}$ac_header_preproc" >&6; }
23615
23616 # So? What about this header?
23617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23618 yes:no: )
23619 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
23620 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23621 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
23622 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
23623 ac_header_preproc=yes
23624 ;;
23625 no:yes:* )
23626 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
23627 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
23628 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
23629 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
23630 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
23631 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
23632 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
23633 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
23634 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
23635 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
23636 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
23637 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
23638
23639 ;;
23640 esac
23641 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
23642 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
23643 if test "${ac_cv_header_stdarg_h+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23645 else
23646 ac_cv_header_stdarg_h=$ac_header_preproc
23647 fi
23648 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23649 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
23650
23651 fi
23652 if test $ac_cv_header_stdarg_h = yes; then
23653 :
23654 else
23655 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
23656 echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
23657 { (exit 1); exit 1; }; }
23658 fi
23659
23660
23661
23662 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
23663 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
23664 if test "${ac_cv_type_sa_family_t+set}" = set; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 else
23667 cat >conftest.$ac_ext <<_ACEOF
23668 /* confdefs.h. */
23669 _ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673 #include <sys/types.h>
23674 #include <sys/socket.h>
23675
23676 typedef sa_family_t ac__type_new_;
23677 int
23678 main ()
23679 {
23680 if ((ac__type_new_ *) 0)
23681 return 0;
23682 if (sizeof (ac__type_new_))
23683 return 0;
23684 ;
23685 return 0;
23686 }
23687 _ACEOF
23688 rm -f conftest.$ac_objext
23689 if { (ac_try="$ac_compile"
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_compile") 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); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23705 ac_cv_type_sa_family_t=yes
23706 else
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23709
23710 ac_cv_type_sa_family_t=no
23711 fi
23712
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 fi
23715 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
23716 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
23717 if test $ac_cv_type_sa_family_t = yes; then
23718 :
23719 else
23720
23721 cat >>confdefs.h <<\_ACEOF
23722 #define sa_family_t u_int16_t
23723 _ACEOF
23724
23725 fi
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747 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
23748 do
23749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 else
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h. */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23763 #define $ac_func innocuous_$ac_func
23764
23765 /* System header to define __stub macros and hopefully few prototypes,
23766 which can conflict with char $ac_func (); below.
23767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23768 <limits.h> exists even on freestanding compilers. */
23769
23770 #ifdef __STDC__
23771 # include <limits.h>
23772 #else
23773 # include <assert.h>
23774 #endif
23775
23776 #undef $ac_func
23777
23778 /* Override any GCC internal prototype to avoid an error.
23779 Use char because int might match the return type of a GCC
23780 builtin and then its argument prototype would still apply. */
23781 #ifdef __cplusplus
23782 extern "C"
23783 #endif
23784 char $ac_func ();
23785 /* The GNU C library defines this for functions which it implements
23786 to always fail with ENOSYS. Some functions are actually named
23787 something starting with __ and the normal name is an alias. */
23788 #if defined __stub_$ac_func || defined __stub___$ac_func
23789 choke me
23790 #endif
23791
23792 int
23793 main ()
23794 {
23795 return $ac_func ();
23796 ;
23797 return 0;
23798 }
23799 _ACEOF
23800 rm -f conftest.$ac_objext conftest$ac_exeext
23801 if { (ac_try="$ac_link"
23802 case "(($ac_try" in
23803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804 *) ac_try_echo=$ac_try;;
23805 esac
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807 (eval "$ac_link") 2>conftest.er1
23808 ac_status=$?
23809 grep -v '^ *+' conftest.er1 >conftest.err
23810 rm -f conftest.er1
23811 cat conftest.err >&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && {
23814 test -z "$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 } && test -s conftest$ac_exeext &&
23817 $as_test_x conftest$ac_exeext; then
23818 eval "$as_ac_var=yes"
23819 else
23820 echo "$as_me: failed program was:" >&5
23821 sed 's/^/| /' conftest.$ac_ext >&5
23822
23823 eval "$as_ac_var=no"
23824 fi
23825
23826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23827 conftest$ac_exeext conftest.$ac_ext
23828 fi
23829 ac_res=`eval echo '${'$as_ac_var'}'`
23830 { echo "$as_me:$LINENO: result: $ac_res" >&5
23831 echo "${ECHO_T}$ac_res" >&6; }
23832 if test `eval echo '${'$as_ac_var'}'` = yes; then
23833 cat >>confdefs.h <<_ACEOF
23834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23835 _ACEOF
23836
23837 fi
23838 done
23839
23840
23841 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
23842 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
23843 if test "${ac_cv_search_nanosleep+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23845 else
23846 ac_func_search_save_LIBS=$LIBS
23847 cat >conftest.$ac_ext <<_ACEOF
23848 /* confdefs.h. */
23849 _ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23853
23854 /* Override any GCC internal prototype to avoid an error.
23855 Use char because int might match the return type of a GCC
23856 builtin and then its argument prototype would still apply. */
23857 #ifdef __cplusplus
23858 extern "C"
23859 #endif
23860 char nanosleep ();
23861 int
23862 main ()
23863 {
23864 return nanosleep ();
23865 ;
23866 return 0;
23867 }
23868 _ACEOF
23869 for ac_lib in '' rt posix4; do
23870 if test -z "$ac_lib"; then
23871 ac_res="none required"
23872 else
23873 ac_res=-l$ac_lib
23874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23875 fi
23876 rm -f conftest.$ac_objext conftest$ac_exeext
23877 if { (ac_try="$ac_link"
23878 case "(($ac_try" in
23879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880 *) ac_try_echo=$ac_try;;
23881 esac
23882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23883 (eval "$ac_link") 2>conftest.er1
23884 ac_status=$?
23885 grep -v '^ *+' conftest.er1 >conftest.err
23886 rm -f conftest.er1
23887 cat conftest.err >&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } && {
23890 test -z "$ac_c_werror_flag" ||
23891 test ! -s conftest.err
23892 } && test -s conftest$ac_exeext &&
23893 $as_test_x conftest$ac_exeext; then
23894 ac_cv_search_nanosleep=$ac_res
23895 else
23896 echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23898
23899
23900 fi
23901
23902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23903 conftest$ac_exeext
23904 if test "${ac_cv_search_nanosleep+set}" = set; then
23905 break
23906 fi
23907 done
23908 if test "${ac_cv_search_nanosleep+set}" = set; then
23909 :
23910 else
23911 ac_cv_search_nanosleep=no
23912 fi
23913 rm conftest.$ac_ext
23914 LIBS=$ac_func_search_save_LIBS
23915 fi
23916 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
23917 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
23918 ac_res=$ac_cv_search_nanosleep
23919 if test "$ac_res" != no; then
23920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23921
23922 cat >>confdefs.h <<\_ACEOF
23923 #define HAVE_NANOSLEEP 1
23924 _ACEOF
23925
23926 fi
23927
23928 { echo "$as_me:$LINENO: checking for library containing timer_create" >&5
23929 echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; }
23930 if test "${ac_cv_search_timer_create+set}" = set; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 else
23933 ac_func_search_save_LIBS=$LIBS
23934 cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h. */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23940
23941 /* Override any GCC internal prototype to avoid an error.
23942 Use char because int might match the return type of a GCC
23943 builtin and then its argument prototype would still apply. */
23944 #ifdef __cplusplus
23945 extern "C"
23946 #endif
23947 char timer_create ();
23948 int
23949 main ()
23950 {
23951 return timer_create ();
23952 ;
23953 return 0;
23954 }
23955 _ACEOF
23956 for ac_lib in '' rt; do
23957 if test -z "$ac_lib"; then
23958 ac_res="none required"
23959 else
23960 ac_res=-l$ac_lib
23961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23962 fi
23963 rm -f conftest.$ac_objext conftest$ac_exeext
23964 if { (ac_try="$ac_link"
23965 case "(($ac_try" in
23966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967 *) ac_try_echo=$ac_try;;
23968 esac
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970 (eval "$ac_link") 2>conftest.er1
23971 ac_status=$?
23972 grep -v '^ *+' conftest.er1 >conftest.err
23973 rm -f conftest.er1
23974 cat conftest.err >&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext &&
23980 $as_test_x conftest$ac_exeext; then
23981 ac_cv_search_timer_create=$ac_res
23982 else
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986
23987 fi
23988
23989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23990 conftest$ac_exeext
23991 if test "${ac_cv_search_timer_create+set}" = set; then
23992 break
23993 fi
23994 done
23995 if test "${ac_cv_search_timer_create+set}" = set; then
23996 :
23997 else
23998 ac_cv_search_timer_create=no
23999 fi
24000 rm conftest.$ac_ext
24001 LIBS=$ac_func_search_save_LIBS
24002 fi
24003 { echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
24004 echo "${ECHO_T}$ac_cv_search_timer_create" >&6; }
24005 ac_res=$ac_cv_search_timer_create
24006 if test "$ac_res" != no; then
24007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24008
24009 cat >>confdefs.h <<\_ACEOF
24010 #define HAVE_TIMER_CREATE 1
24011 _ACEOF
24012
24013 fi
24014
24015 { echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
24016 echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
24017 if test "${rb__cv_timer_create_works+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 else
24020 if test "$cross_compiling" = yes; then
24021 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24022 See \`config.log' for more details." >&5
24023 echo "$as_me: error: cannot run test program while cross compiling
24024 See \`config.log' for more details." >&2;}
24025 { (exit 1); exit 1; }; }
24026 else
24027 cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h. */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24033
24034 #ifdef HAVE_TIME_H
24035 #include <time.h>
24036 #endif
24037 #ifdef HAVE_SIGNAL_H
24038 #include <signal.h>
24039 #endif
24040 #ifdef HAVE_UNISTD_H
24041 #include <unistd.h>
24042 #endif
24043 int main(int argc, char *argv[])
24044 {
24045 #if HAVE_TIMER_CREATE
24046 struct sigevent ev;
24047 timer_t timer;
24048 ev.sigev_notify = SIGEV_SIGNAL;
24049 ev.sigev_signo = SIGVTALRM;
24050 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
24051 return 1;
24052 }
24053 #else
24054 return 1;
24055 #endif
24056 return 0;
24057 }
24058
24059 _ACEOF
24060 rm -f conftest$ac_exeext
24061 if { (ac_try="$ac_link"
24062 case "(($ac_try" in
24063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064 *) ac_try_echo=$ac_try;;
24065 esac
24066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24067 (eval "$ac_link") 2>&5
24068 ac_status=$?
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24071 { (case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24074 esac
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_try") 2>&5
24077 ac_status=$?
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); }; }; then
24080 rb__cv_timer_create_works=yes
24081 else
24082 echo "$as_me: program exited with status $ac_status" >&5
24083 echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24085
24086 ( exit $ac_status )
24087 rb__cv_timer_create_works=no
24088 fi
24089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24090 fi
24091
24092
24093
24094 fi
24095 { echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
24096 echo "${ECHO_T}$rb__cv_timer_create_works" >&6; }
24097 case $rb__cv_timer_create_works in
24098 yes)
24099 cat >>confdefs.h <<\_ACEOF
24100 #define USE_TIMER_CREATE 1
24101 _ACEOF
24102 ;;
24103 esac
24104
24105
24106 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24107 # for constant arguments. Useless!
24108 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24109 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24110 if test "${ac_cv_working_alloca_h+set}" = set; then
24111 echo $ECHO_N "(cached) $ECHO_C" >&6
24112 else
24113 cat >conftest.$ac_ext <<_ACEOF
24114 /* confdefs.h. */
24115 _ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24119 #include <alloca.h>
24120 int
24121 main ()
24122 {
24123 char *p = (char *) alloca (2 * sizeof (int));
24124 if (p) return 0;
24125 ;
24126 return 0;
24127 }
24128 _ACEOF
24129 rm -f conftest.$ac_objext conftest$ac_exeext
24130 if { (ac_try="$ac_link"
24131 case "(($ac_try" in
24132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133 *) ac_try_echo=$ac_try;;
24134 esac
24135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136 (eval "$ac_link") 2>conftest.er1
24137 ac_status=$?
24138 grep -v '^ *+' conftest.er1 >conftest.err
24139 rm -f conftest.er1
24140 cat conftest.err >&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } && {
24143 test -z "$ac_c_werror_flag" ||
24144 test ! -s conftest.err
24145 } && test -s conftest$ac_exeext &&
24146 $as_test_x conftest$ac_exeext; then
24147 ac_cv_working_alloca_h=yes
24148 else
24149 echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24151
24152 ac_cv_working_alloca_h=no
24153 fi
24154
24155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24156 conftest$ac_exeext conftest.$ac_ext
24157 fi
24158 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24159 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24160 if test $ac_cv_working_alloca_h = yes; then
24161
24162 cat >>confdefs.h <<\_ACEOF
24163 #define HAVE_ALLOCA_H 1
24164 _ACEOF
24165
24166 fi
24167
24168 { echo "$as_me:$LINENO: checking for alloca" >&5
24169 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24170 if test "${ac_cv_func_alloca_works+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24172 else
24173 cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h. */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24179 #ifdef __GNUC__
24180 # define alloca __builtin_alloca
24181 #else
24182 # ifdef _MSC_VER
24183 # include <malloc.h>
24184 # define alloca _alloca
24185 # else
24186 # ifdef HAVE_ALLOCA_H
24187 # include <alloca.h>
24188 # else
24189 # ifdef _AIX
24190 #pragma alloca
24191 # else
24192 # ifndef alloca /* predefined by HP cc +Olibcalls */
24193 char *alloca ();
24194 # endif
24195 # endif
24196 # endif
24197 # endif
24198 #endif
24199
24200 int
24201 main ()
24202 {
24203 char *p = (char *) alloca (1);
24204 if (p) return 0;
24205 ;
24206 return 0;
24207 }
24208 _ACEOF
24209 rm -f conftest.$ac_objext conftest$ac_exeext
24210 if { (ac_try="$ac_link"
24211 case "(($ac_try" in
24212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213 *) ac_try_echo=$ac_try;;
24214 esac
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216 (eval "$ac_link") 2>conftest.er1
24217 ac_status=$?
24218 grep -v '^ *+' conftest.er1 >conftest.err
24219 rm -f conftest.er1
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } && {
24223 test -z "$ac_c_werror_flag" ||
24224 test ! -s conftest.err
24225 } && test -s conftest$ac_exeext &&
24226 $as_test_x conftest$ac_exeext; then
24227 ac_cv_func_alloca_works=yes
24228 else
24229 echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24231
24232 ac_cv_func_alloca_works=no
24233 fi
24234
24235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24236 conftest$ac_exeext conftest.$ac_ext
24237 fi
24238 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24239 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24240
24241 if test $ac_cv_func_alloca_works = yes; then
24242
24243 cat >>confdefs.h <<\_ACEOF
24244 #define HAVE_ALLOCA 1
24245 _ACEOF
24246
24247 else
24248 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24249 # that cause trouble. Some versions do not even contain alloca or
24250 # contain a buggy version. If you still want to use their alloca,
24251 # use ar to extract alloca.o from them instead of compiling alloca.c.
24252
24253 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24254
24255 cat >>confdefs.h <<\_ACEOF
24256 #define C_ALLOCA 1
24257 _ACEOF
24258
24259
24260 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24261 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24262 if test "${ac_cv_os_cray+set}" = set; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24264 else
24265 cat >conftest.$ac_ext <<_ACEOF
24266 /* confdefs.h. */
24267 _ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h. */
24271 #if defined CRAY && ! defined CRAY2
24272 webecray
24273 #else
24274 wenotbecray
24275 #endif
24276
24277 _ACEOF
24278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24279 $EGREP "webecray" >/dev/null 2>&1; then
24280 ac_cv_os_cray=yes
24281 else
24282 ac_cv_os_cray=no
24283 fi
24284 rm -f conftest*
24285
24286 fi
24287 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24288 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24289 if test $ac_cv_os_cray = yes; then
24290 for ac_func in _getb67 GETB67 getb67; do
24291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24295 echo $ECHO_N "(cached) $ECHO_C" >&6
24296 else
24297 cat >conftest.$ac_ext <<_ACEOF
24298 /* confdefs.h. */
24299 _ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24305 #define $ac_func innocuous_$ac_func
24306
24307 /* System header to define __stub macros and hopefully few prototypes,
24308 which can conflict with char $ac_func (); below.
24309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24310 <limits.h> exists even on freestanding compilers. */
24311
24312 #ifdef __STDC__
24313 # include <limits.h>
24314 #else
24315 # include <assert.h>
24316 #endif
24317
24318 #undef $ac_func
24319
24320 /* Override any GCC internal prototype to avoid an error.
24321 Use char because int might match the return type of a GCC
24322 builtin and then its argument prototype would still apply. */
24323 #ifdef __cplusplus
24324 extern "C"
24325 #endif
24326 char $ac_func ();
24327 /* The GNU C library defines this for functions which it implements
24328 to always fail with ENOSYS. Some functions are actually named
24329 something starting with __ and the normal name is an alias. */
24330 #if defined __stub_$ac_func || defined __stub___$ac_func
24331 choke me
24332 #endif
24333
24334 int
24335 main ()
24336 {
24337 return $ac_func ();
24338 ;
24339 return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (ac_try="$ac_link"
24344 case "(($ac_try" in
24345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346 *) ac_try_echo=$ac_try;;
24347 esac
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349 (eval "$ac_link") 2>conftest.er1
24350 ac_status=$?
24351 grep -v '^ *+' conftest.er1 >conftest.err
24352 rm -f conftest.er1
24353 cat conftest.err >&5
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); } && {
24356 test -z "$ac_c_werror_flag" ||
24357 test ! -s conftest.err
24358 } && test -s conftest$ac_exeext &&
24359 $as_test_x conftest$ac_exeext; then
24360 eval "$as_ac_var=yes"
24361 else
24362 echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365 eval "$as_ac_var=no"
24366 fi
24367
24368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24369 conftest$ac_exeext conftest.$ac_ext
24370 fi
24371 ac_res=`eval echo '${'$as_ac_var'}'`
24372 { echo "$as_me:$LINENO: result: $ac_res" >&5
24373 echo "${ECHO_T}$ac_res" >&6; }
24374 if test `eval echo '${'$as_ac_var'}'` = yes; then
24375
24376 cat >>confdefs.h <<_ACEOF
24377 #define CRAY_STACKSEG_END $ac_func
24378 _ACEOF
24379
24380 break
24381 fi
24382
24383 done
24384 fi
24385
24386 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24387 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24388 if test "${ac_cv_c_stack_direction+set}" = set; then
24389 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 else
24391 if test "$cross_compiling" = yes; then
24392 ac_cv_c_stack_direction=0
24393 else
24394 cat >conftest.$ac_ext <<_ACEOF
24395 /* confdefs.h. */
24396 _ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h. */
24400 $ac_includes_default
24401 int
24402 find_stack_direction ()
24403 {
24404 static char *addr = 0;
24405 auto char dummy;
24406 if (addr == 0)
24407 {
24408 addr = &dummy;
24409 return find_stack_direction ();
24410 }
24411 else
24412 return (&dummy > addr) ? 1 : -1;
24413 }
24414
24415 int
24416 main ()
24417 {
24418 return find_stack_direction () < 0;
24419 }
24420 _ACEOF
24421 rm -f conftest$ac_exeext
24422 if { (ac_try="$ac_link"
24423 case "(($ac_try" in
24424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425 *) ac_try_echo=$ac_try;;
24426 esac
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428 (eval "$ac_link") 2>&5
24429 ac_status=$?
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24432 { (case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24435 esac
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437 (eval "$ac_try") 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; }; then
24441 ac_cv_c_stack_direction=1
24442 else
24443 echo "$as_me: program exited with status $ac_status" >&5
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24446
24447 ( exit $ac_status )
24448 ac_cv_c_stack_direction=-1
24449 fi
24450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24451 fi
24452
24453
24454 fi
24455 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24456 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24457
24458 cat >>confdefs.h <<_ACEOF
24459 #define STACK_DIRECTION $ac_cv_c_stack_direction
24460 _ACEOF
24461
24462
24463 fi
24464
24465
24466 for ac_header in vfork.h
24467 do
24468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24473 echo $ECHO_N "(cached) $ECHO_C" >&6
24474 fi
24475 ac_res=`eval echo '${'$as_ac_Header'}'`
24476 { echo "$as_me:$LINENO: result: $ac_res" >&5
24477 echo "${ECHO_T}$ac_res" >&6; }
24478 else
24479 # Is the header compilable?
24480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24482 cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h. */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 $ac_includes_default
24489 #include <$ac_header>
24490 _ACEOF
24491 rm -f conftest.$ac_objext
24492 if { (ac_try="$ac_compile"
24493 case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24496 esac
24497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24499 ac_status=$?
24500 grep -v '^ *+' conftest.er1 >conftest.err
24501 rm -f conftest.er1
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
24508 ac_header_compiler=yes
24509 else
24510 echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24512
24513 ac_header_compiler=no
24514 fi
24515
24516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24518 echo "${ECHO_T}$ac_header_compiler" >&6; }
24519
24520 # Is the header present?
24521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24523 cat >conftest.$ac_ext <<_ACEOF
24524 /* confdefs.h. */
24525 _ACEOF
24526 cat confdefs.h >>conftest.$ac_ext
24527 cat >>conftest.$ac_ext <<_ACEOF
24528 /* end confdefs.h. */
24529 #include <$ac_header>
24530 _ACEOF
24531 if { (ac_try="$ac_cpp conftest.$ac_ext"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24535 esac
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24538 ac_status=$?
24539 grep -v '^ *+' conftest.er1 >conftest.err
24540 rm -f conftest.er1
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } >/dev/null && {
24544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 }; then
24547 ac_header_preproc=yes
24548 else
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ac_header_preproc=no
24553 fi
24554
24555 rm -f conftest.err conftest.$ac_ext
24556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24557 echo "${ECHO_T}$ac_header_preproc" >&6; }
24558
24559 # So? What about this header?
24560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24561 yes:no: )
24562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24566 ac_header_preproc=yes
24567 ;;
24568 no:yes:* )
24569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24581
24582 ;;
24583 esac
24584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24588 else
24589 eval "$as_ac_Header=\$ac_header_preproc"
24590 fi
24591 ac_res=`eval echo '${'$as_ac_Header'}'`
24592 { echo "$as_me:$LINENO: result: $ac_res" >&5
24593 echo "${ECHO_T}$ac_res" >&6; }
24594
24595 fi
24596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24597 cat >>confdefs.h <<_ACEOF
24598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24599 _ACEOF
24600
24601 fi
24602
24603 done
24604
24605
24606
24607 for ac_func in fork vfork
24608 do
24609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615 cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h. */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24623 #define $ac_func innocuous_$ac_func
24624
24625 /* System header to define __stub macros and hopefully few prototypes,
24626 which can conflict with char $ac_func (); below.
24627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24628 <limits.h> exists even on freestanding compilers. */
24629
24630 #ifdef __STDC__
24631 # include <limits.h>
24632 #else
24633 # include <assert.h>
24634 #endif
24635
24636 #undef $ac_func
24637
24638 /* Override any GCC internal prototype to avoid an error.
24639 Use char because int might match the return type of a GCC
24640 builtin and then its argument prototype would still apply. */
24641 #ifdef __cplusplus
24642 extern "C"
24643 #endif
24644 char $ac_func ();
24645 /* The GNU C library defines this for functions which it implements
24646 to always fail with ENOSYS. Some functions are actually named
24647 something starting with __ and the normal name is an alias. */
24648 #if defined __stub_$ac_func || defined __stub___$ac_func
24649 choke me
24650 #endif
24651
24652 int
24653 main ()
24654 {
24655 return $ac_func ();
24656 ;
24657 return 0;
24658 }
24659 _ACEOF
24660 rm -f conftest.$ac_objext conftest$ac_exeext
24661 if { (ac_try="$ac_link"
24662 case "(($ac_try" in
24663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24665 esac
24666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_link") 2>conftest.er1
24668 ac_status=$?
24669 grep -v '^ *+' conftest.er1 >conftest.err
24670 rm -f conftest.er1
24671 cat conftest.err >&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); } && {
24674 test -z "$ac_c_werror_flag" ||
24675 test ! -s conftest.err
24676 } && test -s conftest$ac_exeext &&
24677 $as_test_x conftest$ac_exeext; then
24678 eval "$as_ac_var=yes"
24679 else
24680 echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24682
24683 eval "$as_ac_var=no"
24684 fi
24685
24686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24687 conftest$ac_exeext conftest.$ac_ext
24688 fi
24689 ac_res=`eval echo '${'$as_ac_var'}'`
24690 { echo "$as_me:$LINENO: result: $ac_res" >&5
24691 echo "${ECHO_T}$ac_res" >&6; }
24692 if test `eval echo '${'$as_ac_var'}'` = yes; then
24693 cat >>confdefs.h <<_ACEOF
24694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24695 _ACEOF
24696
24697 fi
24698 done
24699
24700 if test "x$ac_cv_func_fork" = xyes; then
24701 { echo "$as_me:$LINENO: checking for working fork" >&5
24702 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24703 if test "${ac_cv_func_fork_works+set}" = set; then
24704 echo $ECHO_N "(cached) $ECHO_C" >&6
24705 else
24706 if test "$cross_compiling" = yes; then
24707 ac_cv_func_fork_works=cross
24708 else
24709 cat >conftest.$ac_ext <<_ACEOF
24710 /* confdefs.h. */
24711 _ACEOF
24712 cat confdefs.h >>conftest.$ac_ext
24713 cat >>conftest.$ac_ext <<_ACEOF
24714 /* end confdefs.h. */
24715 $ac_includes_default
24716 int
24717 main ()
24718 {
24719
24720 /* By Ruediger Kuhlmann. */
24721 return fork () < 0;
24722
24723 ;
24724 return 0;
24725 }
24726 _ACEOF
24727 rm -f conftest$ac_exeext
24728 if { (ac_try="$ac_link"
24729 case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24732 esac
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_link") 2>&5
24735 ac_status=$?
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24738 { (case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24741 esac
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_try") 2>&5
24744 ac_status=$?
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; }; then
24747 ac_cv_func_fork_works=yes
24748 else
24749 echo "$as_me: program exited with status $ac_status" >&5
24750 echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24752
24753 ( exit $ac_status )
24754 ac_cv_func_fork_works=no
24755 fi
24756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24757 fi
24758
24759
24760 fi
24761 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24762 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24763
24764 else
24765 ac_cv_func_fork_works=$ac_cv_func_fork
24766 fi
24767 if test "x$ac_cv_func_fork_works" = xcross; then
24768 case $host in
24769 *-*-amigaos* | *-*-msdosdjgpp*)
24770 # Override, as these systems have only a dummy fork() stub
24771 ac_cv_func_fork_works=no
24772 ;;
24773 *)
24774 ac_cv_func_fork_works=yes
24775 ;;
24776 esac
24777 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24778 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24779 fi
24780 ac_cv_func_vfork_works=$ac_cv_func_vfork
24781 if test "x$ac_cv_func_vfork" = xyes; then
24782 { echo "$as_me:$LINENO: checking for working vfork" >&5
24783 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24784 if test "${ac_cv_func_vfork_works+set}" = set; then
24785 echo $ECHO_N "(cached) $ECHO_C" >&6
24786 else
24787 if test "$cross_compiling" = yes; then
24788 ac_cv_func_vfork_works=cross
24789 else
24790 cat >conftest.$ac_ext <<_ACEOF
24791 /* confdefs.h. */
24792 _ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24796 /* Thanks to Paul Eggert for this test. */
24797 $ac_includes_default
24798 #include <sys/wait.h>
24799 #ifdef HAVE_VFORK_H
24800 # include <vfork.h>
24801 #endif
24802 /* On some sparc systems, changes by the child to local and incoming
24803 argument registers are propagated back to the parent. The compiler
24804 is told about this with #include <vfork.h>, but some compilers
24805 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24806 static variable whose address is put into a register that is
24807 clobbered by the vfork. */
24808 static void
24809 #ifdef __cplusplus
24810 sparc_address_test (int arg)
24811 # else
24812 sparc_address_test (arg) int arg;
24813 #endif
24814 {
24815 static pid_t child;
24816 if (!child) {
24817 child = vfork ();
24818 if (child < 0) {
24819 perror ("vfork");
24820 _exit(2);
24821 }
24822 if (!child) {
24823 arg = getpid();
24824 write(-1, "", 0);
24825 _exit (arg);
24826 }
24827 }
24828 }
24829
24830 int
24831 main ()
24832 {
24833 pid_t parent = getpid ();
24834 pid_t child;
24835
24836 sparc_address_test (0);
24837
24838 child = vfork ();
24839
24840 if (child == 0) {
24841 /* Here is another test for sparc vfork register problems. This
24842 test uses lots of local variables, at least as many local
24843 variables as main has allocated so far including compiler
24844 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24845 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24846 reuse the register of parent for one of the local variables,
24847 since it will think that parent can't possibly be used any more
24848 in this routine. Assigning to the local variable will thus
24849 munge parent in the parent process. */
24850 pid_t
24851 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24852 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24853 /* Convince the compiler that p..p7 are live; otherwise, it might
24854 use the same hardware register for all 8 local variables. */
24855 if (p != p1 || p != p2 || p != p3 || p != p4
24856 || p != p5 || p != p6 || p != p7)
24857 _exit(1);
24858
24859 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24860 from child file descriptors. If the child closes a descriptor
24861 before it execs or exits, this munges the parent's descriptor
24862 as well. Test for this by closing stdout in the child. */
24863 _exit(close(fileno(stdout)) != 0);
24864 } else {
24865 int status;
24866 struct stat st;
24867
24868 while (wait(&status) != child)
24869 ;
24870 return (
24871 /* Was there some problem with vforking? */
24872 child < 0
24873
24874 /* Did the child fail? (This shouldn't happen.) */
24875 || status
24876
24877 /* Did the vfork/compiler bug occur? */
24878 || parent != getpid()
24879
24880 /* Did the file descriptor bug occur? */
24881 || fstat(fileno(stdout), &st) != 0
24882 );
24883 }
24884 }
24885 _ACEOF
24886 rm -f conftest$ac_exeext
24887 if { (ac_try="$ac_link"
24888 case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24891 esac
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_link") 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24897 { (case "(($ac_try" in
24898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24899 *) ac_try_echo=$ac_try;;
24900 esac
24901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24902 (eval "$ac_try") 2>&5
24903 ac_status=$?
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); }; }; then
24906 ac_cv_func_vfork_works=yes
24907 else
24908 echo "$as_me: program exited with status $ac_status" >&5
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24911
24912 ( exit $ac_status )
24913 ac_cv_func_vfork_works=no
24914 fi
24915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24916 fi
24917
24918
24919 fi
24920 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24921 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24922
24923 fi;
24924 if test "x$ac_cv_func_fork_works" = xcross; then
24925 ac_cv_func_vfork_works=$ac_cv_func_vfork
24926 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24927 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24928 fi
24929
24930 if test "x$ac_cv_func_vfork_works" = xyes; then
24931
24932 cat >>confdefs.h <<\_ACEOF
24933 #define HAVE_WORKING_VFORK 1
24934 _ACEOF
24935
24936 else
24937
24938 cat >>confdefs.h <<\_ACEOF
24939 #define vfork fork
24940 _ACEOF
24941
24942 fi
24943 if test "x$ac_cv_func_fork_works" = xyes; then
24944
24945 cat >>confdefs.h <<\_ACEOF
24946 #define HAVE_WORKING_FORK 1
24947 _ACEOF
24948
24949 fi
24950
24951
24952
24953 for ac_header in stdlib.h unistd.h
24954 do
24955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24961 fi
24962 ac_res=`eval echo '${'$as_ac_Header'}'`
24963 { echo "$as_me:$LINENO: result: $ac_res" >&5
24964 echo "${ECHO_T}$ac_res" >&6; }
24965 else
24966 # Is the header compilable?
24967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24969 cat >conftest.$ac_ext <<_ACEOF
24970 /* confdefs.h. */
24971 _ACEOF
24972 cat confdefs.h >>conftest.$ac_ext
24973 cat >>conftest.$ac_ext <<_ACEOF
24974 /* end confdefs.h. */
24975 $ac_includes_default
24976 #include <$ac_header>
24977 _ACEOF
24978 rm -f conftest.$ac_objext
24979 if { (ac_try="$ac_compile"
24980 case "(($ac_try" in
24981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982 *) ac_try_echo=$ac_try;;
24983 esac
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_compile") 2>conftest.er1
24986 ac_status=$?
24987 grep -v '^ *+' conftest.er1 >conftest.err
24988 rm -f conftest.er1
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest.$ac_objext; then
24995 ac_header_compiler=yes
24996 else
24997 echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
24999
25000 ac_header_compiler=no
25001 fi
25002
25003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25005 echo "${ECHO_T}$ac_header_compiler" >&6; }
25006
25007 # Is the header present?
25008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h. */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 #include <$ac_header>
25017 _ACEOF
25018 if { (ac_try="$ac_cpp conftest.$ac_ext"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25022 esac
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25025 ac_status=$?
25026 grep -v '^ *+' conftest.er1 >conftest.err
25027 rm -f conftest.er1
25028 cat conftest.err >&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } >/dev/null && {
25031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25032 test ! -s conftest.err
25033 }; then
25034 ac_header_preproc=yes
25035 else
25036 echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25038
25039 ac_header_preproc=no
25040 fi
25041
25042 rm -f conftest.err conftest.$ac_ext
25043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25044 echo "${ECHO_T}$ac_header_preproc" >&6; }
25045
25046 # So? What about this header?
25047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25048 yes:no: )
25049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25053 ac_header_preproc=yes
25054 ;;
25055 no:yes:* )
25056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25068
25069 ;;
25070 esac
25071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25074 echo $ECHO_N "(cached) $ECHO_C" >&6
25075 else
25076 eval "$as_ac_Header=\$ac_header_preproc"
25077 fi
25078 ac_res=`eval echo '${'$as_ac_Header'}'`
25079 { echo "$as_me:$LINENO: result: $ac_res" >&5
25080 echo "${ECHO_T}$ac_res" >&6; }
25081
25082 fi
25083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25084 cat >>confdefs.h <<_ACEOF
25085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25086 _ACEOF
25087
25088 fi
25089
25090 done
25091
25092
25093 for ac_func in getpagesize
25094 do
25095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25100 else
25101 cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h. */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25109 #define $ac_func innocuous_$ac_func
25110
25111 /* System header to define __stub macros and hopefully few prototypes,
25112 which can conflict with char $ac_func (); below.
25113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25114 <limits.h> exists even on freestanding compilers. */
25115
25116 #ifdef __STDC__
25117 # include <limits.h>
25118 #else
25119 # include <assert.h>
25120 #endif
25121
25122 #undef $ac_func
25123
25124 /* Override any GCC internal prototype to avoid an error.
25125 Use char because int might match the return type of a GCC
25126 builtin and then its argument prototype would still apply. */
25127 #ifdef __cplusplus
25128 extern "C"
25129 #endif
25130 char $ac_func ();
25131 /* The GNU C library defines this for functions which it implements
25132 to always fail with ENOSYS. Some functions are actually named
25133 something starting with __ and the normal name is an alias. */
25134 #if defined __stub_$ac_func || defined __stub___$ac_func
25135 choke me
25136 #endif
25137
25138 int
25139 main ()
25140 {
25141 return $ac_func ();
25142 ;
25143 return 0;
25144 }
25145 _ACEOF
25146 rm -f conftest.$ac_objext conftest$ac_exeext
25147 if { (ac_try="$ac_link"
25148 case "(($ac_try" in
25149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150 *) ac_try_echo=$ac_try;;
25151 esac
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_link") 2>conftest.er1
25154 ac_status=$?
25155 grep -v '^ *+' conftest.er1 >conftest.err
25156 rm -f conftest.er1
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest$ac_exeext &&
25163 $as_test_x conftest$ac_exeext; then
25164 eval "$as_ac_var=yes"
25165 else
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169 eval "$as_ac_var=no"
25170 fi
25171
25172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25173 conftest$ac_exeext conftest.$ac_ext
25174 fi
25175 ac_res=`eval echo '${'$as_ac_var'}'`
25176 { echo "$as_me:$LINENO: result: $ac_res" >&5
25177 echo "${ECHO_T}$ac_res" >&6; }
25178 if test `eval echo '${'$as_ac_var'}'` = yes; then
25179 cat >>confdefs.h <<_ACEOF
25180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25181 _ACEOF
25182
25183 fi
25184 done
25185
25186 { echo "$as_me:$LINENO: checking for working mmap" >&5
25187 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
25188 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25189 echo $ECHO_N "(cached) $ECHO_C" >&6
25190 else
25191 if test "$cross_compiling" = yes; then
25192 ac_cv_func_mmap_fixed_mapped=no
25193 else
25194 cat >conftest.$ac_ext <<_ACEOF
25195 /* confdefs.h. */
25196 _ACEOF
25197 cat confdefs.h >>conftest.$ac_ext
25198 cat >>conftest.$ac_ext <<_ACEOF
25199 /* end confdefs.h. */
25200 $ac_includes_default
25201 /* malloc might have been renamed as rpl_malloc. */
25202 #undef malloc
25203
25204 /* Thanks to Mike Haertel and Jim Avera for this test.
25205 Here is a matrix of mmap possibilities:
25206 mmap private not fixed
25207 mmap private fixed at somewhere currently unmapped
25208 mmap private fixed at somewhere already mapped
25209 mmap shared not fixed
25210 mmap shared fixed at somewhere currently unmapped
25211 mmap shared fixed at somewhere already mapped
25212 For private mappings, we should verify that changes cannot be read()
25213 back from the file, nor mmap's back from the file at a different
25214 address. (There have been systems where private was not correctly
25215 implemented like the infamous i386 svr4.0, and systems where the
25216 VM page cache was not coherent with the file system buffer cache
25217 like early versions of FreeBSD and possibly contemporary NetBSD.)
25218 For shared mappings, we should conversely verify that changes get
25219 propagated back to all the places they're supposed to be.
25220
25221 Grep wants private fixed already mapped.
25222 The main things grep needs to know about mmap are:
25223 * does it exist and is it safe to write into the mmap'd area
25224 * how to use it (BSD variants) */
25225
25226 #include <fcntl.h>
25227 #include <sys/mman.h>
25228
25229 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25230 char *malloc ();
25231 #endif
25232
25233 /* This mess was copied from the GNU getpagesize.h. */
25234 #ifndef HAVE_GETPAGESIZE
25235 /* Assume that all systems that can run configure have sys/param.h. */
25236 # ifndef HAVE_SYS_PARAM_H
25237 # define HAVE_SYS_PARAM_H 1
25238 # endif
25239
25240 # ifdef _SC_PAGESIZE
25241 # define getpagesize() sysconf(_SC_PAGESIZE)
25242 # else /* no _SC_PAGESIZE */
25243 # ifdef HAVE_SYS_PARAM_H
25244 # include <sys/param.h>
25245 # ifdef EXEC_PAGESIZE
25246 # define getpagesize() EXEC_PAGESIZE
25247 # else /* no EXEC_PAGESIZE */
25248 # ifdef NBPG
25249 # define getpagesize() NBPG * CLSIZE
25250 # ifndef CLSIZE
25251 # define CLSIZE 1
25252 # endif /* no CLSIZE */
25253 # else /* no NBPG */
25254 # ifdef NBPC
25255 # define getpagesize() NBPC
25256 # else /* no NBPC */
25257 # ifdef PAGESIZE
25258 # define getpagesize() PAGESIZE
25259 # endif /* PAGESIZE */
25260 # endif /* no NBPC */
25261 # endif /* no NBPG */
25262 # endif /* no EXEC_PAGESIZE */
25263 # else /* no HAVE_SYS_PARAM_H */
25264 # define getpagesize() 8192 /* punt totally */
25265 # endif /* no HAVE_SYS_PARAM_H */
25266 # endif /* no _SC_PAGESIZE */
25267
25268 #endif /* no HAVE_GETPAGESIZE */
25269
25270 int
25271 main ()
25272 {
25273 char *data, *data2, *data3;
25274 int i, pagesize;
25275 int fd;
25276
25277 pagesize = getpagesize ();
25278
25279 /* First, make a file with some known garbage in it. */
25280 data = (char *) malloc (pagesize);
25281 if (!data)
25282 return 1;
25283 for (i = 0; i < pagesize; ++i)
25284 *(data + i) = rand ();
25285 umask (0);
25286 fd = creat ("conftest.mmap", 0600);
25287 if (fd < 0)
25288 return 1;
25289 if (write (fd, data, pagesize) != pagesize)
25290 return 1;
25291 close (fd);
25292
25293 /* Next, try to mmap the file at a fixed address which already has
25294 something else allocated at it. If we can, also make sure that
25295 we see the same garbage. */
25296 fd = open ("conftest.mmap", O_RDWR);
25297 if (fd < 0)
25298 return 1;
25299 data2 = (char *) malloc (2 * pagesize);
25300 if (!data2)
25301 return 1;
25302 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25303 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25304 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25305 return 1;
25306 for (i = 0; i < pagesize; ++i)
25307 if (*(data + i) != *(data2 + i))
25308 return 1;
25309
25310 /* Finally, make sure that changes to the mapped area do not
25311 percolate back to the file as seen by read(). (This is a bug on
25312 some variants of i386 svr4.0.) */
25313 for (i = 0; i < pagesize; ++i)
25314 *(data2 + i) = *(data2 + i) + 1;
25315 data3 = (char *) malloc (pagesize);
25316 if (!data3)
25317 return 1;
25318 if (read (fd, data3, pagesize) != pagesize)
25319 return 1;
25320 for (i = 0; i < pagesize; ++i)
25321 if (*(data + i) != *(data3 + i))
25322 return 1;
25323 close (fd);
25324 return 0;
25325 }
25326 _ACEOF
25327 rm -f conftest$ac_exeext
25328 if { (ac_try="$ac_link"
25329 case "(($ac_try" in
25330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25331 *) ac_try_echo=$ac_try;;
25332 esac
25333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25334 (eval "$ac_link") 2>&5
25335 ac_status=$?
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25338 { (case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25341 esac
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343 (eval "$ac_try") 2>&5
25344 ac_status=$?
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 ac_cv_func_mmap_fixed_mapped=yes
25348 else
25349 echo "$as_me: program exited with status $ac_status" >&5
25350 echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25352
25353 ( exit $ac_status )
25354 ac_cv_func_mmap_fixed_mapped=no
25355 fi
25356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25357 fi
25358
25359
25360 fi
25361 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25362 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
25363 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25364
25365 cat >>confdefs.h <<\_ACEOF
25366 #define HAVE_MMAP 1
25367 _ACEOF
25368
25369 fi
25370 rm -f conftest.mmap
25371
25372
25373 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
25374 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
25375 if test -c "/dev/poll"; then
25376 { echo "$as_me:$LINENO: result: yes" >&5
25377 echo "${ECHO_T}yes" >&6; }
25378
25379 cat >>confdefs.h <<\_ACEOF
25380 #define HAVE_DEVPOLL 1
25381 _ACEOF
25382
25383 else
25384 { echo "$as_me:$LINENO: result: no" >&5
25385 echo "${ECHO_T}no" >&6; }
25386 fi
25387
25388
25389 if test "$is_mingw" = "yes"; then
25390
25391 cat >>confdefs.h <<\_ACEOF
25392 #define HAVE_WIN32 1
25393 _ACEOF
25394
25395 fi
25396
25397
25398 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
25399 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
25400 # Check whether --enable-openssl was given.
25401 if test "${enable_openssl+set}" = set; then
25402 enableval=$enable_openssl; cf_enable_openssl=$enableval
25403 else
25404 cf_enable_openssl="auto"
25405 fi
25406
25407
25408 if test "$cf_enable_openssl" != "no" ; then
25409 cf_openssl_basedir=""
25410 if test "$cf_enable_openssl" != "auto" &&
25411 test "$cf_enable_openssl" != "yes" ; then
25412 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
25413 else
25414 for dirs in /usr/local/ssl /usr/pkg /usr/local \
25415 /usr/local/openssl ; do
25416 if test -f "${dirs}/include/openssl/opensslv.h" ; then
25417 cf_openssl_basedir="${dirs}"
25418 break
25419 fi
25420 done
25421 unset dirs
25422 fi
25423 if test ! -z "$cf_openssl_basedir"; then
25424 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
25425 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
25426 SSL_LIBS="-L${cf_openssl_basedir}/lib"
25427 else
25428 cf_openssl_basedir=""
25429 fi
25430 else
25431 if test -f "/usr/include/openssl/opensslv.h" ; then
25432 cf_openssl_basedir="/usr"
25433 fi
25434 fi
25435
25436 if test ! -z "$cf_openssl_basedir"; then
25437 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
25438 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
25439 cf_enable_openssl="yes"
25440 else
25441 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
25442 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
25443 cf_enable_openssl="no"
25444 fi
25445 unset cf_openssl_basedir
25446 else
25447 { echo "$as_me:$LINENO: result: disabled" >&5
25448 echo "${ECHO_T}disabled" >&6; }
25449 fi
25450
25451 save_CPPFLAGS="$CPPFLAGS"
25452 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
25453 save_LIBS="$LIBS"
25454 LIBS="$LIBS $SSL_LIBS"
25455 if test "$cf_enable_openssl" != no; then
25456 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
25457 echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; }
25458 if test "$cross_compiling" = yes; then
25459 cf_enable_openssl=no
25460 else
25461 cat >conftest.$ac_ext <<_ACEOF
25462 /* confdefs.h. */
25463 _ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h. */
25467 #include <openssl/opensslv.h>
25468 #include <stdlib.h>
25469 int
25470 main ()
25471 {
25472 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
25473 exit(0); else exit(1);
25474 ;
25475 return 0;
25476 }
25477 _ACEOF
25478 rm -f conftest$ac_exeext
25479 if { (ac_try="$ac_link"
25480 case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482 *) ac_try_echo=$ac_try;;
25483 esac
25484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25485 (eval "$ac_link") 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25489 { (case "(($ac_try" in
25490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491 *) ac_try_echo=$ac_try;;
25492 esac
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494 (eval "$ac_try") 2>&5
25495 ac_status=$?
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; }; then
25498 cf_enable_openssl=yes
25499 else
25500 echo "$as_me: program exited with status $ac_status" >&5
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504 ( exit $ac_status )
25505 cf_enable_openssl=no
25506 fi
25507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25508 fi
25509
25510
25511
25512 if test "$cf_enable_openssl" != no; then
25513 { echo "$as_me:$LINENO: result: found" >&5
25514 echo "${ECHO_T}found" >&6; }
25515 else
25516 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
25517 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
25518 fi
25519
25520 fi
25521
25522
25523 if test "$cf_enable_openssl" != no; then
25524 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
25525 { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
25526 echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; }
25527 if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
25528 echo $ECHO_N "(cached) $ECHO_C" >&6
25529 else
25530 ac_check_lib_save_LIBS=$LIBS
25531 LIBS="-lcrypto $LIBS"
25532 cat >conftest.$ac_ext <<_ACEOF
25533 /* confdefs.h. */
25534 _ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h. */
25538
25539 /* Override any GCC internal prototype to avoid an error.
25540 Use char because int might match the return type of a GCC
25541 builtin and then its argument prototype would still apply. */
25542 #ifdef __cplusplus
25543 extern "C"
25544 #endif
25545 char RAND_status ();
25546 int
25547 main ()
25548 {
25549 return RAND_status ();
25550 ;
25551 return 0;
25552 }
25553 _ACEOF
25554 rm -f conftest.$ac_objext conftest$ac_exeext
25555 if { (ac_try="$ac_link"
25556 case "(($ac_try" in
25557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558 *) ac_try_echo=$ac_try;;
25559 esac
25560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25561 (eval "$ac_link") 2>conftest.er1
25562 ac_status=$?
25563 grep -v '^ *+' conftest.er1 >conftest.err
25564 rm -f conftest.er1
25565 cat conftest.err >&5
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); } && {
25568 test -z "$ac_c_werror_flag" ||
25569 test ! -s conftest.err
25570 } && test -s conftest$ac_exeext &&
25571 $as_test_x conftest$ac_exeext; then
25572 ac_cv_lib_crypto_RAND_status=yes
25573 else
25574 echo "$as_me: failed program was:" >&5
25575 sed 's/^/| /' conftest.$ac_ext >&5
25576
25577 ac_cv_lib_crypto_RAND_status=no
25578 fi
25579
25580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25581 conftest$ac_exeext conftest.$ac_ext
25582 LIBS=$ac_check_lib_save_LIBS
25583 fi
25584 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
25585 echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; }
25586 if test $ac_cv_lib_crypto_RAND_status = yes; then
25587 cf_enable_openssl=yes
25588 else
25589 cf_enable_openssl=no
25590 fi
25591
25592 fi
25593
25594
25595 if test "$cf_enable_openssl" != no; then
25596 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
25597 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
25598 echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
25599 if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
25600 echo $ECHO_N "(cached) $ECHO_C" >&6
25601 else
25602 ac_check_lib_save_LIBS=$LIBS
25603 LIBS="-lssl -lcrypto $LIBS"
25604 cat >conftest.$ac_ext <<_ACEOF
25605 /* confdefs.h. */
25606 _ACEOF
25607 cat confdefs.h >>conftest.$ac_ext
25608 cat >>conftest.$ac_ext <<_ACEOF
25609 /* end confdefs.h. */
25610
25611 /* Override any GCC internal prototype to avoid an error.
25612 Use char because int might match the return type of a GCC
25613 builtin and then its argument prototype would still apply. */
25614 #ifdef __cplusplus
25615 extern "C"
25616 #endif
25617 char SSL_read ();
25618 int
25619 main ()
25620 {
25621 return SSL_read ();
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 ac_cv_lib_ssl_SSL_read=yes
25645 else
25646 echo "$as_me: failed program was:" >&5
25647 sed 's/^/| /' conftest.$ac_ext >&5
25648
25649 ac_cv_lib_ssl_SSL_read=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 LIBS=$ac_check_lib_save_LIBS
25655 fi
25656 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
25657 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
25658 if test $ac_cv_lib_ssl_SSL_read = yes; then
25659 SSL_LIBS="-lssl -lcrypto"
25660 else
25661 cf_enable_openssl=no
25662 fi
25663
25664 fi
25665
25666 if test "$cf_enable_openssl" != no; then
25667
25668 cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_OPENSSL 1
25670 _ACEOF
25671
25672 fi
25673
25674
25675 CPPFLAGS="$save_CPPFLAGS"
25676 LIBS="$save_LIBS"
25677
25678
25679
25680
25681
25682
25683 # Check whether --enable-assert was given.
25684 if test "${enable_assert+set}" = set; then
25685 enableval=$enable_assert; assert=$enableval
25686 else
25687 assert=no
25688 fi
25689
25690
25691 if test "$assert" = no; then
25692
25693 cat >>confdefs.h <<\_ACEOF
25694 #define NDEBUG 1
25695 _ACEOF
25696
25697 elif test "$assert" = soft; then
25698
25699 cat >>confdefs.h <<\_ACEOF
25700 #define SOFT_ASSERT 1
25701 _ACEOF
25702
25703
25704 cat >>confdefs.h <<\_ACEOF
25705 #define NDEBUG 1
25706 _ACEOF
25707
25708 elif test "$assert" = yes; then
25709 assert = "hard";
25710 fi
25711
25712 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
25713 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
25714 # Check whether --enable-profile was given.
25715 if test "${enable_profile+set}" = set; then
25716 enableval=$enable_profile; profile=$enableval
25717 else
25718 profile=no
25719 fi
25720
25721
25722 if test "$profile" = yes; then
25723 if test "$ac_cv_c_compiler_gnu" = yes; then
25724 CFLAGS="$CFLAGS -pg -static"
25725 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
25726 echo "${ECHO_T}yes, adding -pg -static" >&6; }
25727
25728 cat >>confdefs.h <<\_ACEOF
25729 #define RATBOX_PROFILE 1
25730 _ACEOF
25731
25732 else
25733 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
25734 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
25735 fi
25736 else
25737 { echo "$as_me:$LINENO: result: no" >&5
25738 echo "${ECHO_T}no" >&6; }
25739 fi
25740
25741 # Check whether --enable-balloc was given.
25742 if test "${enable_balloc+set}" = set; then
25743 enableval=$enable_balloc; balloc=$enableval
25744 else
25745 balloc=yes
25746 fi
25747
25748
25749 if test "$balloc" = no; then
25750
25751 cat >>confdefs.h <<\_ACEOF
25752 #define NOBALLOC 1
25753 _ACEOF
25754
25755 fi
25756
25757 # Check whether --enable-warnings was given.
25758 if test "${enable_warnings+set}" = set; then
25759 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"
25760 fi
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771 if test "$prefix" = "NONE"; then
25772
25773 cat >>confdefs.h <<_ACEOF
25774 #define RB_PREFIX "$ac_default_prefix"
25775 _ACEOF
25776
25777
25778 else
25779
25780
25781 prefix=`echo $prefix | sed 's/\/$//'`
25782
25783 cat >>confdefs.h <<_ACEOF
25784 #define RB_PREFIX "$prefix"
25785 _ACEOF
25786
25787
25788 fi
25789
25790
25791
25792 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
25793 do
25794 var="\$ac_cv_c_${dtype}"
25795 t_type=$(eval echo $var);
25796 if test "x$t_type" = "xyes"; then
25797 eval rb_$dtype="\"$dtype\""
25798 else
25799 eval rb_$dtype="\"$t_type\""
25800 fi
25801 done
25802
25803 ac_config_commands="$ac_config_commands include/librb-config.h"
25804
25805
25806
25807 ac_config_files="$ac_config_files src/Makefile Makefile"
25808
25809
25810 cat >confcache <<\_ACEOF
25811 # This file is a shell script that caches the results of configure
25812 # tests run on this system so they can be shared between configure
25813 # scripts and configure runs, see configure's option --config-cache.
25814 # It is not useful on other systems. If it contains results you don't
25815 # want to keep, you may remove or edit it.
25816 #
25817 # config.status only pays attention to the cache file if you give it
25818 # the --recheck option to rerun configure.
25819 #
25820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25822 # following values.
25823
25824 _ACEOF
25825
25826 # The following way of writing the cache mishandles newlines in values,
25827 # but we know of no workaround that is simple, portable, and efficient.
25828 # So, we kill variables containing newlines.
25829 # Ultrix sh set writes to stderr and can't be redirected directly,
25830 # and sets the high bit in the cache file unless we assign to the vars.
25831 (
25832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25833 eval ac_val=\$$ac_var
25834 case $ac_val in #(
25835 *${as_nl}*)
25836 case $ac_var in #(
25837 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25838 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25839 esac
25840 case $ac_var in #(
25841 _ | IFS | as_nl) ;; #(
25842 *) $as_unset $ac_var ;;
25843 esac ;;
25844 esac
25845 done
25846
25847 (set) 2>&1 |
25848 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25849 *${as_nl}ac_space=\ *)
25850 # `set' does not quote correctly, so add quotes (double-quote
25851 # substitution turns \\\\ into \\, and sed turns \\ into \).
25852 sed -n \
25853 "s/'/'\\\\''/g;
25854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25855 ;; #(
25856 *)
25857 # `set' quotes correctly as required by POSIX, so do not add quotes.
25858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25859 ;;
25860 esac |
25861 sort
25862 ) |
25863 sed '
25864 /^ac_cv_env_/b end
25865 t clear
25866 :clear
25867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25868 t end
25869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25870 :end' >>confcache
25871 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25872 if test -w "$cache_file"; then
25873 test "x$cache_file" != "x/dev/null" &&
25874 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25875 echo "$as_me: updating cache $cache_file" >&6;}
25876 cat confcache >$cache_file
25877 else
25878 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25879 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25880 fi
25881 fi
25882 rm -f confcache
25883
25884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25885 # Let make expand exec_prefix.
25886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25887
25888 DEFS=-DHAVE_CONFIG_H
25889
25890 ac_libobjs=
25891 ac_ltlibobjs=
25892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25893 # 1. Remove the extension, and $U if already installed.
25894 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25895 ac_i=`echo "$ac_i" | sed "$ac_script"`
25896 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25897 # will be set to the directory where LIBOBJS objects are built.
25898 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25899 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25900 done
25901 LIBOBJS=$ac_libobjs
25902
25903 LTLIBOBJS=$ac_ltlibobjs
25904
25905
25906 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25907 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25908 Usually this means the macro was only invoked conditionally." >&5
25909 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25910 Usually this means the macro was only invoked conditionally." >&2;}
25911 { (exit 1); exit 1; }; }
25912 fi
25913 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25914 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25915 Usually this means the macro was only invoked conditionally." >&5
25916 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25917 Usually this means the macro was only invoked conditionally." >&2;}
25918 { (exit 1); exit 1; }; }
25919 fi
25920 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25921 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25922 Usually this means the macro was only invoked conditionally." >&5
25923 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25924 Usually this means the macro was only invoked conditionally." >&2;}
25925 { (exit 1); exit 1; }; }
25926 fi
25927 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25928 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25929 Usually this means the macro was only invoked conditionally." >&5
25930 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25931 Usually this means the macro was only invoked conditionally." >&2;}
25932 { (exit 1); exit 1; }; }
25933 fi
25934 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
25935 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
25936 Usually this means the macro was only invoked conditionally." >&5
25937 echo "$as_me: error: conditional \"MINGW\" was never defined.
25938 Usually this means the macro was only invoked conditionally." >&2;}
25939 { (exit 1); exit 1; }; }
25940 fi
25941 if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
25942 { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
25943 Usually this means the macro was only invoked conditionally." >&5
25944 echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
25945 Usually this means the macro was only invoked conditionally." >&2;}
25946 { (exit 1); exit 1; }; }
25947 fi
25948
25949 : ${CONFIG_STATUS=./config.status}
25950 ac_clean_files_save=$ac_clean_files
25951 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25952 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25953 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25954 cat >$CONFIG_STATUS <<_ACEOF
25955 #! $SHELL
25956 # Generated by $as_me.
25957 # Run this file to recreate the current configuration.
25958 # Compiler output produced by configure, useful for debugging
25959 # configure, is in config.log if it exists.
25960
25961 debug=false
25962 ac_cs_recheck=false
25963 ac_cs_silent=false
25964 SHELL=\${CONFIG_SHELL-$SHELL}
25965 _ACEOF
25966
25967 cat >>$CONFIG_STATUS <<\_ACEOF
25968 ## --------------------- ##
25969 ## M4sh Initialization. ##
25970 ## --------------------- ##
25971
25972 # Be more Bourne compatible
25973 DUALCASE=1; export DUALCASE # for MKS sh
25974 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25975 emulate sh
25976 NULLCMD=:
25977 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25978 # is contrary to our usage. Disable this feature.
25979 alias -g '${1+"$@"}'='"$@"'
25980 setopt NO_GLOB_SUBST
25981 else
25982 case `(set -o) 2>/dev/null` in
25983 *posix*) set -o posix ;;
25984 esac
25985
25986 fi
25987
25988
25989
25990
25991 # PATH needs CR
25992 # Avoid depending upon Character Ranges.
25993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25996 as_cr_digits='0123456789'
25997 as_cr_alnum=$as_cr_Letters$as_cr_digits
25998
25999 # The user is always right.
26000 if test "${PATH_SEPARATOR+set}" != set; then
26001 echo "#! /bin/sh" >conf$$.sh
26002 echo "exit 0" >>conf$$.sh
26003 chmod +x conf$$.sh
26004 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26005 PATH_SEPARATOR=';'
26006 else
26007 PATH_SEPARATOR=:
26008 fi
26009 rm -f conf$$.sh
26010 fi
26011
26012 # Support unset when possible.
26013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26014 as_unset=unset
26015 else
26016 as_unset=false
26017 fi
26018
26019
26020 # IFS
26021 # We need space, tab and new line, in precisely that order. Quoting is
26022 # there to prevent editors from complaining about space-tab.
26023 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26024 # splitting by setting IFS to empty value.)
26025 as_nl='
26026 '
26027 IFS=" "" $as_nl"
26028
26029 # Find who we are. Look in the path if we contain no directory separator.
26030 case $0 in
26031 *[\\/]* ) as_myself=$0 ;;
26032 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26033 for as_dir in $PATH
26034 do
26035 IFS=$as_save_IFS
26036 test -z "$as_dir" && as_dir=.
26037 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26038 done
26039 IFS=$as_save_IFS
26040
26041 ;;
26042 esac
26043 # We did not find ourselves, most probably we were run as `sh COMMAND'
26044 # in which case we are not to be found in the path.
26045 if test "x$as_myself" = x; then
26046 as_myself=$0
26047 fi
26048 if test ! -f "$as_myself"; then
26049 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26050 { (exit 1); exit 1; }
26051 fi
26052
26053 # Work around bugs in pre-3.0 UWIN ksh.
26054 for as_var in ENV MAIL MAILPATH
26055 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26056 done
26057 PS1='$ '
26058 PS2='> '
26059 PS4='+ '
26060
26061 # NLS nuisances.
26062 for as_var in \
26063 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26064 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26065 LC_TELEPHONE LC_TIME
26066 do
26067 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26068 eval $as_var=C; export $as_var
26069 else
26070 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26071 fi
26072 done
26073
26074 # Required to use basename.
26075 if expr a : '\(a\)' >/dev/null 2>&1 &&
26076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26077 as_expr=expr
26078 else
26079 as_expr=false
26080 fi
26081
26082 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26083 as_basename=basename
26084 else
26085 as_basename=false
26086 fi
26087
26088
26089 # Name of the executable.
26090 as_me=`$as_basename -- "$0" ||
26091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26092 X"$0" : 'X\(//\)$' \| \
26093 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26094 echo X/"$0" |
26095 sed '/^.*\/\([^/][^/]*\)\/*$/{
26096 s//\1/
26097 q
26098 }
26099 /^X\/\(\/\/\)$/{
26100 s//\1/
26101 q
26102 }
26103 /^X\/\(\/\).*/{
26104 s//\1/
26105 q
26106 }
26107 s/.*/./; q'`
26108
26109 # CDPATH.
26110 $as_unset CDPATH
26111
26112
26113
26114 as_lineno_1=$LINENO
26115 as_lineno_2=$LINENO
26116 test "x$as_lineno_1" != "x$as_lineno_2" &&
26117 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26118
26119 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26120 # uniformly replaced by the line number. The first 'sed' inserts a
26121 # line-number line after each line using $LINENO; the second 'sed'
26122 # does the real work. The second script uses 'N' to pair each
26123 # line-number line with the line containing $LINENO, and appends
26124 # trailing '-' during substitution so that $LINENO is not a special
26125 # case at line end.
26126 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26127 # scripts with optimization help from Paolo Bonzini. Blame Lee
26128 # E. McMahon (1931-1989) for sed's syntax. :-)
26129 sed -n '
26130 p
26131 /[$]LINENO/=
26132 ' <$as_myself |
26133 sed '
26134 s/[$]LINENO.*/&-/
26135 t lineno
26136 b
26137 :lineno
26138 N
26139 :loop
26140 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26141 t loop
26142 s/-\n.*//
26143 ' >$as_me.lineno &&
26144 chmod +x "$as_me.lineno" ||
26145 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26146 { (exit 1); exit 1; }; }
26147
26148 # Don't try to exec as it changes $[0], causing all sort of problems
26149 # (the dirname of $[0] is not the place where we might find the
26150 # original and so on. Autoconf is especially sensitive to this).
26151 . "./$as_me.lineno"
26152 # Exit status is that of the last command.
26153 exit
26154 }
26155
26156
26157 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26158 as_dirname=dirname
26159 else
26160 as_dirname=false
26161 fi
26162
26163 ECHO_C= ECHO_N= ECHO_T=
26164 case `echo -n x` in
26165 -n*)
26166 case `echo 'x\c'` in
26167 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26168 *) ECHO_C='\c';;
26169 esac;;
26170 *)
26171 ECHO_N='-n';;
26172 esac
26173
26174 if expr a : '\(a\)' >/dev/null 2>&1 &&
26175 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26176 as_expr=expr
26177 else
26178 as_expr=false
26179 fi
26180
26181 rm -f conf$$ conf$$.exe conf$$.file
26182 if test -d conf$$.dir; then
26183 rm -f conf$$.dir/conf$$.file
26184 else
26185 rm -f conf$$.dir
26186 mkdir conf$$.dir
26187 fi
26188 echo >conf$$.file
26189 if ln -s conf$$.file conf$$ 2>/dev/null; then
26190 as_ln_s='ln -s'
26191 # ... but there are two gotchas:
26192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26194 # In both cases, we have to default to `cp -p'.
26195 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26196 as_ln_s='cp -p'
26197 elif ln conf$$.file conf$$ 2>/dev/null; then
26198 as_ln_s=ln
26199 else
26200 as_ln_s='cp -p'
26201 fi
26202 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26203 rmdir conf$$.dir 2>/dev/null
26204
26205 if mkdir -p . 2>/dev/null; then
26206 as_mkdir_p=:
26207 else
26208 test -d ./-p && rmdir ./-p
26209 as_mkdir_p=false
26210 fi
26211
26212 if test -x / >/dev/null 2>&1; then
26213 as_test_x='test -x'
26214 else
26215 if ls -dL / >/dev/null 2>&1; then
26216 as_ls_L_option=L
26217 else
26218 as_ls_L_option=
26219 fi
26220 as_test_x='
26221 eval sh -c '\''
26222 if test -d "$1"; then
26223 test -d "$1/.";
26224 else
26225 case $1 in
26226 -*)set "./$1";;
26227 esac;
26228 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26229 ???[sx]*):;;*)false;;esac;fi
26230 '\'' sh
26231 '
26232 fi
26233 as_executable_p=$as_test_x
26234
26235 # Sed expression to map a string onto a valid CPP name.
26236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26237
26238 # Sed expression to map a string onto a valid variable name.
26239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26240
26241
26242 exec 6>&1
26243
26244 # Save the log message, to keep $[0] and so on meaningful, and to
26245 # report actual input values of CONFIG_FILES etc. instead of their
26246 # values after options handling.
26247 ac_log="
26248 This file was extended by libratbox $as_me devel, which was
26249 generated by GNU Autoconf 2.61. Invocation command line was
26250
26251 CONFIG_FILES = $CONFIG_FILES
26252 CONFIG_HEADERS = $CONFIG_HEADERS
26253 CONFIG_LINKS = $CONFIG_LINKS
26254 CONFIG_COMMANDS = $CONFIG_COMMANDS
26255 $ $0 $@
26256
26257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26258 "
26259
26260 _ACEOF
26261
26262 cat >>$CONFIG_STATUS <<_ACEOF
26263 # Files that config.status was made for.
26264 config_files="$ac_config_files"
26265 config_headers="$ac_config_headers"
26266 config_commands="$ac_config_commands"
26267
26268 _ACEOF
26269
26270 cat >>$CONFIG_STATUS <<\_ACEOF
26271 ac_cs_usage="\
26272 \`$as_me' instantiates files from templates according to the
26273 current configuration.
26274
26275 Usage: $0 [OPTIONS] [FILE]...
26276
26277 -h, --help print this help, then exit
26278 -V, --version print version number and configuration settings, then exit
26279 -q, --quiet do not print progress messages
26280 -d, --debug don't remove temporary files
26281 --recheck update $as_me by reconfiguring in the same conditions
26282 --file=FILE[:TEMPLATE]
26283 instantiate the configuration file FILE
26284 --header=FILE[:TEMPLATE]
26285 instantiate the configuration header FILE
26286
26287 Configuration files:
26288 $config_files
26289
26290 Configuration headers:
26291 $config_headers
26292
26293 Configuration commands:
26294 $config_commands
26295
26296 Report bugs to <bug-autoconf@gnu.org>."
26297
26298 _ACEOF
26299 cat >>$CONFIG_STATUS <<_ACEOF
26300 ac_cs_version="\\
26301 libratbox config.status devel
26302 configured by $0, generated by GNU Autoconf 2.61,
26303 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26304
26305 Copyright (C) 2006 Free Software Foundation, Inc.
26306 This config.status script is free software; the Free Software Foundation
26307 gives unlimited permission to copy, distribute and modify it."
26308
26309 ac_pwd='$ac_pwd'
26310 srcdir='$srcdir'
26311 INSTALL='$INSTALL'
26312 MKDIR_P='$MKDIR_P'
26313 _ACEOF
26314
26315 cat >>$CONFIG_STATUS <<\_ACEOF
26316 # If no file are specified by the user, then we need to provide default
26317 # value. By we need to know if files were specified by the user.
26318 ac_need_defaults=:
26319 while test $# != 0
26320 do
26321 case $1 in
26322 --*=*)
26323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26325 ac_shift=:
26326 ;;
26327 *)
26328 ac_option=$1
26329 ac_optarg=$2
26330 ac_shift=shift
26331 ;;
26332 esac
26333
26334 case $ac_option in
26335 # Handling of the options.
26336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26337 ac_cs_recheck=: ;;
26338 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26339 echo "$ac_cs_version"; exit ;;
26340 --debug | --debu | --deb | --de | --d | -d )
26341 debug=: ;;
26342 --file | --fil | --fi | --f )
26343 $ac_shift
26344 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26345 ac_need_defaults=false;;
26346 --header | --heade | --head | --hea )
26347 $ac_shift
26348 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26349 ac_need_defaults=false;;
26350 --he | --h)
26351 # Conflict between --help and --header
26352 { echo "$as_me: error: ambiguous option: $1
26353 Try \`$0 --help' for more information." >&2
26354 { (exit 1); exit 1; }; };;
26355 --help | --hel | -h )
26356 echo "$ac_cs_usage"; exit ;;
26357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26359 ac_cs_silent=: ;;
26360
26361 # This is an error.
26362 -*) { echo "$as_me: error: unrecognized option: $1
26363 Try \`$0 --help' for more information." >&2
26364 { (exit 1); exit 1; }; } ;;
26365
26366 *) ac_config_targets="$ac_config_targets $1"
26367 ac_need_defaults=false ;;
26368
26369 esac
26370 shift
26371 done
26372
26373 ac_configure_extra_args=
26374
26375 if $ac_cs_silent; then
26376 exec 6>/dev/null
26377 ac_configure_extra_args="$ac_configure_extra_args --silent"
26378 fi
26379
26380 _ACEOF
26381 cat >>$CONFIG_STATUS <<_ACEOF
26382 if \$ac_cs_recheck; then
26383 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26384 CONFIG_SHELL=$SHELL
26385 export CONFIG_SHELL
26386 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26387 fi
26388
26389 _ACEOF
26390 cat >>$CONFIG_STATUS <<\_ACEOF
26391 exec 5>>config.log
26392 {
26393 echo
26394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26395 ## Running $as_me. ##
26396 _ASBOX
26397 echo "$ac_log"
26398 } >&5
26399
26400 _ACEOF
26401 cat >>$CONFIG_STATUS <<_ACEOF
26402 #
26403 # INIT-COMMANDS
26404 #
26405 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26406
26407 rb_uint64_t="$rb_uint64_t"
26408 rb_uint32_t="$rb_uint32_t"
26409 rb_uint16_t="$rb_uint16_t"
26410 rb_uint8_t="$rb_uint8_t"
26411 rb_int64_t="$rb_int64_t"
26412 rb_int32_t="$rb_int32_t"
26413 rb_int16_t="$rb_int16_t"
26414 rb_int8_t="$rb_int8_t"
26415 rb_intmax_t="$rb_intmax_t"
26416 rb_intptr_t="$rb_intptr_t"
26417 rb_uintmax_t="$rb_uintmax_t"
26418 rb_uintptr_t="$rb_uintptr_t"
26419 if test x$ac_cv_header_stdc = xyes; then
26420 rb_header_stdc=yes
26421 fi
26422 if test x$ac_cv_header_stdlib_h = xyes; then
26423 rb_header_stdlib_h=yes
26424 fi
26425 if test x$ac_cv_header_string_h = xyes; then
26426 rb_header_string_h=yes
26427 fi
26428 if test x$ac_cv_header_memory_h = xyes; then
26429 rb_header_memory_h=yes
26430 fi
26431 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
26432 rb_alloca_h="$ac_cv_working_alloca_h"
26433 else
26434 rb_alloc_h="$ac_cv_header_alloca_h"
26435 fi
26436 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
26437 rb_sockaddr_sa_len=yes
26438 fi
26439 if test x$ac_cv_header_sys_socket_h = xyes; then
26440 rb_sys_socket_h=yes
26441 fi
26442 if test x$ac_cv_header_sys_types_h = xyes; then
26443 rb_sys_types_h=yes
26444 fi
26445 if test x$ac_cv_header_sys_stat_h = xyes; then
26446 rb_sys_stat_h=yes
26447 fi
26448 if test x$ac_cv_header_sys_time_h = xyes; then
26449 rb_sys_time_h=yes
26450 fi
26451 if test x$ac_cv_header_time = xyes; then
26452 rb_time_h=yes
26453 fi
26454
26455 if test x$ac_cv_header_stdint_h = xyes; then
26456 rb_stdint_h=yes
26457 fi
26458 if test x$ac_cv_header_inttypes_h = xyes; then
26459 rb_inttypes_h=yes
26460 fi
26461 if test x$ac_cv_header_netinet_in_h = xyes; then
26462 rb_netinet_in_h=yes
26463 fi
26464
26465 if test x$ac_cv_header_crypt_h = xyes; then
26466 rb_crypt_h=yes
26467 fi
26468 if test x$ac_cv_header_errno_h = xyes; then
26469 rb_errno_h=yes
26470 fi
26471 if test x$ac_cv_header_unistd_h = xyes; then
26472 rb_unistd_h=yes
26473 fi
26474 if test x$ac_cv_header_windows_h = xyes; then
26475 rb_windows_h=yes
26476 fi
26477 if test x$ac_cv_header_winsock2_h = xyes; then
26478 rb_winsock2_h=yes
26479 fi
26480 if test x$ac_cv_type_socklen_t = xyes; then
26481 rb_socklen_t="socklen_t"
26482 else
26483 rb_socklen_t="unsigned int"
26484 fi
26485 if test "x$rb_have_sockaddr_storage" = "xyes"; then
26486 rb_sockaddr_storage="yes"
26487 else
26488 rb_sockaddr_storage="no"
26489 fi
26490
26491 rb_have_ipv6="$have_v6"
26492
26493 rb_mv="$MV"
26494 rb_rm="$RM"
26495
26496
26497
26498
26499
26500
26501 _ACEOF
26502
26503 cat >>$CONFIG_STATUS <<\_ACEOF
26504
26505 # Handling of arguments.
26506 for ac_config_target in $ac_config_targets
26507 do
26508 case $ac_config_target in
26509 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
26510 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26511 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
26512 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26513 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26514
26515 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26516 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26517 { (exit 1); exit 1; }; };;
26518 esac
26519 done
26520
26521
26522 # If the user did not use the arguments to specify the items to instantiate,
26523 # then the envvar interface is used. Set only those that are not.
26524 # We use the long form for the default assignment because of an extremely
26525 # bizarre bug on SunOS 4.1.3.
26526 if $ac_need_defaults; then
26527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26530 fi
26531
26532 # Have a temporary directory for convenience. Make it in the build tree
26533 # simply because there is no reason against having it here, and in addition,
26534 # creating and moving files from /tmp can sometimes cause problems.
26535 # Hook for its removal unless debugging.
26536 # Note that there is a small window in which the directory will not be cleaned:
26537 # after its creation but before its name has been assigned to `$tmp'.
26538 $debug ||
26539 {
26540 tmp=
26541 trap 'exit_status=$?
26542 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26543 ' 0
26544 trap '{ (exit 1); exit 1; }' 1 2 13 15
26545 }
26546 # Create a (secure) tmp directory for tmp files.
26547
26548 {
26549 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26550 test -n "$tmp" && test -d "$tmp"
26551 } ||
26552 {
26553 tmp=./conf$$-$RANDOM
26554 (umask 077 && mkdir "$tmp")
26555 } ||
26556 {
26557 echo "$me: cannot create a temporary directory in ." >&2
26558 { (exit 1); exit 1; }
26559 }
26560
26561 #
26562 # Set up the sed scripts for CONFIG_FILES section.
26563 #
26564
26565 # No need to generate the scripts if there are no CONFIG_FILES.
26566 # This happens for instance when ./config.status config.h
26567 if test -n "$CONFIG_FILES"; then
26568
26569 _ACEOF
26570
26571
26572
26573 ac_delim='%!_!# '
26574 for ac_last_try in false false false false false :; do
26575 cat >conf$$subs.sed <<_ACEOF
26576 SHELL!$SHELL$ac_delim
26577 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26578 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26579 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26580 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26581 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26582 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26583 exec_prefix!$exec_prefix$ac_delim
26584 prefix!$prefix$ac_delim
26585 program_transform_name!$program_transform_name$ac_delim
26586 bindir!$bindir$ac_delim
26587 sbindir!$sbindir$ac_delim
26588 libexecdir!$libexecdir$ac_delim
26589 datarootdir!$datarootdir$ac_delim
26590 datadir!$datadir$ac_delim
26591 sysconfdir!$sysconfdir$ac_delim
26592 sharedstatedir!$sharedstatedir$ac_delim
26593 localstatedir!$localstatedir$ac_delim
26594 includedir!$includedir$ac_delim
26595 oldincludedir!$oldincludedir$ac_delim
26596 docdir!$docdir$ac_delim
26597 infodir!$infodir$ac_delim
26598 htmldir!$htmldir$ac_delim
26599 dvidir!$dvidir$ac_delim
26600 pdfdir!$pdfdir$ac_delim
26601 psdir!$psdir$ac_delim
26602 libdir!$libdir$ac_delim
26603 localedir!$localedir$ac_delim
26604 mandir!$mandir$ac_delim
26605 DEFS!$DEFS$ac_delim
26606 ECHO_C!$ECHO_C$ac_delim
26607 ECHO_N!$ECHO_N$ac_delim
26608 ECHO_T!$ECHO_T$ac_delim
26609 LIBS!$LIBS$ac_delim
26610 build_alias!$build_alias$ac_delim
26611 host_alias!$host_alias$ac_delim
26612 target_alias!$target_alias$ac_delim
26613 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26614 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26615 INSTALL_DATA!$INSTALL_DATA$ac_delim
26616 am__isrc!$am__isrc$ac_delim
26617 CYGPATH_W!$CYGPATH_W$ac_delim
26618 PACKAGE!$PACKAGE$ac_delim
26619 VERSION!$VERSION$ac_delim
26620 ACLOCAL!$ACLOCAL$ac_delim
26621 AUTOCONF!$AUTOCONF$ac_delim
26622 AUTOMAKE!$AUTOMAKE$ac_delim
26623 AUTOHEADER!$AUTOHEADER$ac_delim
26624 MAKEINFO!$MAKEINFO$ac_delim
26625 install_sh!$install_sh$ac_delim
26626 STRIP!$STRIP$ac_delim
26627 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26628 mkdir_p!$mkdir_p$ac_delim
26629 AWK!$AWK$ac_delim
26630 SET_MAKE!$SET_MAKE$ac_delim
26631 am__leading_dot!$am__leading_dot$ac_delim
26632 AMTAR!$AMTAR$ac_delim
26633 am__tar!$am__tar$ac_delim
26634 am__untar!$am__untar$ac_delim
26635 CC!$CC$ac_delim
26636 CFLAGS!$CFLAGS$ac_delim
26637 LDFLAGS!$LDFLAGS$ac_delim
26638 CPPFLAGS!$CPPFLAGS$ac_delim
26639 ac_ct_CC!$ac_ct_CC$ac_delim
26640 EXEEXT!$EXEEXT$ac_delim
26641 OBJEXT!$OBJEXT$ac_delim
26642 DEPDIR!$DEPDIR$ac_delim
26643 am__include!$am__include$ac_delim
26644 am__quote!$am__quote$ac_delim
26645 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26646 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26647 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26648 CCDEPMODE!$CCDEPMODE$ac_delim
26649 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26650 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26651 GREP!$GREP$ac_delim
26652 EGREP!$EGREP$ac_delim
26653 SED!$SED$ac_delim
26654 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26655 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26656 MAINT!$MAINT$ac_delim
26657 AS!$AS$ac_delim
26658 RM!$RM$ac_delim
26659 CP!$CP$ac_delim
26660 MV!$MV$ac_delim
26661 LN!$LN$ac_delim
26662 AR!$AR$ac_delim
26663 LD!$LD$ac_delim
26664 RANLIB!$RANLIB$ac_delim
26665 TOUCH!$TOUCH$ac_delim
26666 build!$build$ac_delim
26667 build_cpu!$build_cpu$ac_delim
26668 build_vendor!$build_vendor$ac_delim
26669 build_os!$build_os$ac_delim
26670 host!$host$ac_delim
26671 host_cpu!$host_cpu$ac_delim
26672 host_vendor!$host_vendor$ac_delim
26673 _ACEOF
26674
26675 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26676 break
26677 elif $ac_last_try; then
26678 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26679 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26680 { (exit 1); exit 1; }; }
26681 else
26682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26683 fi
26684 done
26685
26686 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26687 if test -n "$ac_eof"; then
26688 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26689 ac_eof=`expr $ac_eof + 1`
26690 fi
26691
26692 cat >>$CONFIG_STATUS <<_ACEOF
26693 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26695 _ACEOF
26696 sed '
26697 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26698 s/^/s,@/; s/!/@,|#_!!_#|/
26699 :n
26700 t n
26701 s/'"$ac_delim"'$/,g/; t
26702 s/$/\\/; p
26703 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26704 ' >>$CONFIG_STATUS <conf$$subs.sed
26705 rm -f conf$$subs.sed
26706 cat >>$CONFIG_STATUS <<_ACEOF
26707 CEOF$ac_eof
26708 _ACEOF
26709
26710
26711 ac_delim='%!_!# '
26712 for ac_last_try in false false false false false :; do
26713 cat >conf$$subs.sed <<_ACEOF
26714 host_os!$host_os$ac_delim
26715 LN_S!$LN_S$ac_delim
26716 ECHO!$ECHO$ac_delim
26717 CPP!$CPP$ac_delim
26718 CXX!$CXX$ac_delim
26719 CXXFLAGS!$CXXFLAGS$ac_delim
26720 ac_ct_CXX!$ac_ct_CXX$ac_delim
26721 CXXDEPMODE!$CXXDEPMODE$ac_delim
26722 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26723 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26724 CXXCPP!$CXXCPP$ac_delim
26725 F77!$F77$ac_delim
26726 FFLAGS!$FFLAGS$ac_delim
26727 ac_ct_F77!$ac_ct_F77$ac_delim
26728 LIBTOOL!$LIBTOOL$ac_delim
26729 subdirs!$subdirs$ac_delim
26730 MINGW_TRUE!$MINGW_TRUE$ac_delim
26731 MINGW_FALSE!$MINGW_FALSE$ac_delim
26732 NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim
26733 NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim
26734 CRYPT_LIB!$CRYPT_LIB$ac_delim
26735 ALLOCA!$ALLOCA$ac_delim
26736 PICFLAGS!$PICFLAGS$ac_delim
26737 SEDOBJ!$SEDOBJ$ac_delim
26738 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
26739 SSL_LIBS!$SSL_LIBS$ac_delim
26740 RB_PREFIX!$RB_PREFIX$ac_delim
26741 LIBOBJS!$LIBOBJS$ac_delim
26742 LTLIBOBJS!$LTLIBOBJS$ac_delim
26743 _ACEOF
26744
26745 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
26746 break
26747 elif $ac_last_try; then
26748 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26749 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26750 { (exit 1); exit 1; }; }
26751 else
26752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26753 fi
26754 done
26755
26756 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26757 if test -n "$ac_eof"; then
26758 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26759 ac_eof=`expr $ac_eof + 1`
26760 fi
26761
26762 cat >>$CONFIG_STATUS <<_ACEOF
26763 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26765 _ACEOF
26766 sed '
26767 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26768 s/^/s,@/; s/!/@,|#_!!_#|/
26769 :n
26770 t n
26771 s/'"$ac_delim"'$/,g/; t
26772 s/$/\\/; p
26773 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26774 ' >>$CONFIG_STATUS <conf$$subs.sed
26775 rm -f conf$$subs.sed
26776 cat >>$CONFIG_STATUS <<_ACEOF
26777 :end
26778 s/|#_!!_#|//g
26779 CEOF$ac_eof
26780 _ACEOF
26781
26782
26783 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26784 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26785 # trailing colons and then remove the whole line if VPATH becomes empty
26786 # (actually we leave an empty line to preserve line numbers).
26787 if test "x$srcdir" = x.; then
26788 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26789 s/:*\$(srcdir):*/:/
26790 s/:*\${srcdir}:*/:/
26791 s/:*@srcdir@:*/:/
26792 s/^\([^=]*=[ ]*\):*/\1/
26793 s/:*$//
26794 s/^[^=]*=[ ]*$//
26795 }'
26796 fi
26797
26798 cat >>$CONFIG_STATUS <<\_ACEOF
26799 fi # test -n "$CONFIG_FILES"
26800
26801
26802 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26803 do
26804 case $ac_tag in
26805 :[FHLC]) ac_mode=$ac_tag; continue;;
26806 esac
26807 case $ac_mode$ac_tag in
26808 :[FHL]*:*);;
26809 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26810 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26811 { (exit 1); exit 1; }; };;
26812 :[FH]-) ac_tag=-:-;;
26813 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26814 esac
26815 ac_save_IFS=$IFS
26816 IFS=:
26817 set x $ac_tag
26818 IFS=$ac_save_IFS
26819 shift
26820 ac_file=$1
26821 shift
26822
26823 case $ac_mode in
26824 :L) ac_source=$1;;
26825 :[FH])
26826 ac_file_inputs=
26827 for ac_f
26828 do
26829 case $ac_f in
26830 -) ac_f="$tmp/stdin";;
26831 *) # Look for the file first in the build tree, then in the source tree
26832 # (if the path is not absolute). The absolute path cannot be DOS-style,
26833 # because $ac_f cannot contain `:'.
26834 test -f "$ac_f" ||
26835 case $ac_f in
26836 [\\/$]*) false;;
26837 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26838 esac ||
26839 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26840 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26841 { (exit 1); exit 1; }; };;
26842 esac
26843 ac_file_inputs="$ac_file_inputs $ac_f"
26844 done
26845
26846 # Let's still pretend it is `configure' which instantiates (i.e., don't
26847 # use $as_me), people would be surprised to read:
26848 # /* config.h. Generated by config.status. */
26849 configure_input="Generated from "`IFS=:
26850 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26851 if test x"$ac_file" != x-; then
26852 configure_input="$ac_file. $configure_input"
26853 { echo "$as_me:$LINENO: creating $ac_file" >&5
26854 echo "$as_me: creating $ac_file" >&6;}
26855 fi
26856
26857 case $ac_tag in
26858 *:-:* | *:-) cat >"$tmp/stdin";;
26859 esac
26860 ;;
26861 esac
26862
26863 ac_dir=`$as_dirname -- "$ac_file" ||
26864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26865 X"$ac_file" : 'X\(//\)[^/]' \| \
26866 X"$ac_file" : 'X\(//\)$' \| \
26867 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26868 echo X"$ac_file" |
26869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26870 s//\1/
26871 q
26872 }
26873 /^X\(\/\/\)[^/].*/{
26874 s//\1/
26875 q
26876 }
26877 /^X\(\/\/\)$/{
26878 s//\1/
26879 q
26880 }
26881 /^X\(\/\).*/{
26882 s//\1/
26883 q
26884 }
26885 s/.*/./; q'`
26886 { as_dir="$ac_dir"
26887 case $as_dir in #(
26888 -*) as_dir=./$as_dir;;
26889 esac
26890 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26891 as_dirs=
26892 while :; do
26893 case $as_dir in #(
26894 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26895 *) as_qdir=$as_dir;;
26896 esac
26897 as_dirs="'$as_qdir' $as_dirs"
26898 as_dir=`$as_dirname -- "$as_dir" ||
26899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26900 X"$as_dir" : 'X\(//\)[^/]' \| \
26901 X"$as_dir" : 'X\(//\)$' \| \
26902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26903 echo X"$as_dir" |
26904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26905 s//\1/
26906 q
26907 }
26908 /^X\(\/\/\)[^/].*/{
26909 s//\1/
26910 q
26911 }
26912 /^X\(\/\/\)$/{
26913 s//\1/
26914 q
26915 }
26916 /^X\(\/\).*/{
26917 s//\1/
26918 q
26919 }
26920 s/.*/./; q'`
26921 test -d "$as_dir" && break
26922 done
26923 test -z "$as_dirs" || eval "mkdir $as_dirs"
26924 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26925 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26926 { (exit 1); exit 1; }; }; }
26927 ac_builddir=.
26928
26929 case "$ac_dir" in
26930 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26931 *)
26932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26933 # A ".." for each directory in $ac_dir_suffix.
26934 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26935 case $ac_top_builddir_sub in
26936 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26937 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26938 esac ;;
26939 esac
26940 ac_abs_top_builddir=$ac_pwd
26941 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26942 # for backward compatibility:
26943 ac_top_builddir=$ac_top_build_prefix
26944
26945 case $srcdir in
26946 .) # We are building in place.
26947 ac_srcdir=.
26948 ac_top_srcdir=$ac_top_builddir_sub
26949 ac_abs_top_srcdir=$ac_pwd ;;
26950 [\\/]* | ?:[\\/]* ) # Absolute name.
26951 ac_srcdir=$srcdir$ac_dir_suffix;
26952 ac_top_srcdir=$srcdir
26953 ac_abs_top_srcdir=$srcdir ;;
26954 *) # Relative name.
26955 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26956 ac_top_srcdir=$ac_top_build_prefix$srcdir
26957 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26958 esac
26959 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26960
26961
26962 case $ac_mode in
26963 :F)
26964 #
26965 # CONFIG_FILE
26966 #
26967
26968 case $INSTALL in
26969 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26970 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26971 esac
26972 ac_MKDIR_P=$MKDIR_P
26973 case $MKDIR_P in
26974 [\\/$]* | ?:[\\/]* ) ;;
26975 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26976 esac
26977 _ACEOF
26978
26979 cat >>$CONFIG_STATUS <<\_ACEOF
26980 # If the template does not know about datarootdir, expand it.
26981 # FIXME: This hack should be removed a few years after 2.60.
26982 ac_datarootdir_hack=; ac_datarootdir_seen=
26983
26984 case `sed -n '/datarootdir/ {
26985 p
26986 q
26987 }
26988 /@datadir@/p
26989 /@docdir@/p
26990 /@infodir@/p
26991 /@localedir@/p
26992 /@mandir@/p
26993 ' $ac_file_inputs` in
26994 *datarootdir*) ac_datarootdir_seen=yes;;
26995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26996 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26997 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26998 _ACEOF
26999 cat >>$CONFIG_STATUS <<_ACEOF
27000 ac_datarootdir_hack='
27001 s&@datadir@&$datadir&g
27002 s&@docdir@&$docdir&g
27003 s&@infodir@&$infodir&g
27004 s&@localedir@&$localedir&g
27005 s&@mandir@&$mandir&g
27006 s&\\\${datarootdir}&$datarootdir&g' ;;
27007 esac
27008 _ACEOF
27009
27010 # Neutralize VPATH when `$srcdir' = `.'.
27011 # Shell code in configure.ac might set extrasub.
27012 # FIXME: do we really want to maintain this feature?
27013 cat >>$CONFIG_STATUS <<_ACEOF
27014 sed "$ac_vpsub
27015 $extrasub
27016 _ACEOF
27017 cat >>$CONFIG_STATUS <<\_ACEOF
27018 :t
27019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27020 s&@configure_input@&$configure_input&;t t
27021 s&@top_builddir@&$ac_top_builddir_sub&;t t
27022 s&@srcdir@&$ac_srcdir&;t t
27023 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27024 s&@top_srcdir@&$ac_top_srcdir&;t t
27025 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27026 s&@builddir@&$ac_builddir&;t t
27027 s&@abs_builddir@&$ac_abs_builddir&;t t
27028 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27029 s&@INSTALL@&$ac_INSTALL&;t t
27030 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27031 $ac_datarootdir_hack
27032 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27033
27034 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27035 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27036 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27037 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27038 which seems to be undefined. Please make sure it is defined." >&5
27039 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27040 which seems to be undefined. Please make sure it is defined." >&2;}
27041
27042 rm -f "$tmp/stdin"
27043 case $ac_file in
27044 -) cat "$tmp/out"; rm -f "$tmp/out";;
27045 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27046 esac
27047 ;;
27048 :H)
27049 #
27050 # CONFIG_HEADER
27051 #
27052 _ACEOF
27053
27054 # Transform confdefs.h into a sed script `conftest.defines', that
27055 # substitutes the proper values into config.h.in to produce config.h.
27056 rm -f conftest.defines conftest.tail
27057 # First, append a space to every undef/define line, to ease matching.
27058 echo 's/$/ /' >conftest.defines
27059 # Then, protect against being on the right side of a sed subst, or in
27060 # an unquoted here document, in config.status. If some macros were
27061 # called several times there might be several #defines for the same
27062 # symbol, which is useless. But do not sort them, since the last
27063 # AC_DEFINE must be honored.
27064 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27065 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27066 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27067 # PARAMS is the parameter list in the macro definition--in most cases, it's
27068 # just an empty string.
27069 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27070 ac_dB='\\)[ (].*,\\1define\\2'
27071 ac_dC=' '
27072 ac_dD=' ,'
27073
27074 uniq confdefs.h |
27075 sed -n '
27076 t rset
27077 :rset
27078 s/^[ ]*#[ ]*define[ ][ ]*//
27079 t ok
27080 d
27081 :ok
27082 s/[\\&,]/\\&/g
27083 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27084 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27085 ' >>conftest.defines
27086
27087 # Remove the space that was appended to ease matching.
27088 # Then replace #undef with comments. This is necessary, for
27089 # example, in the case of _POSIX_SOURCE, which is predefined and required
27090 # on some systems where configure will not decide to define it.
27091 # (The regexp can be short, since the line contains either #define or #undef.)
27092 echo 's/ $//
27093 s,^[ #]*u.*,/* & */,' >>conftest.defines
27094
27095 # Break up conftest.defines:
27096 ac_max_sed_lines=50
27097
27098 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27099 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27100 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27101 # et cetera.
27102 ac_in='$ac_file_inputs'
27103 ac_out='"$tmp/out1"'
27104 ac_nxt='"$tmp/out2"'
27105
27106 while :
27107 do
27108 # Write a here document:
27109 cat >>$CONFIG_STATUS <<_ACEOF
27110 # First, check the format of the line:
27111 cat >"\$tmp/defines.sed" <<\\CEOF
27112 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27113 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27114 b
27115 :def
27116 _ACEOF
27117 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27118 echo 'CEOF
27119 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27120 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27121 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27122 grep . conftest.tail >/dev/null || break
27123 rm -f conftest.defines
27124 mv conftest.tail conftest.defines
27125 done
27126 rm -f conftest.defines conftest.tail
27127
27128 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27129 cat >>$CONFIG_STATUS <<\_ACEOF
27130 if test x"$ac_file" != x-; then
27131 echo "/* $configure_input */" >"$tmp/config.h"
27132 cat "$ac_result" >>"$tmp/config.h"
27133 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27134 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27135 echo "$as_me: $ac_file is unchanged" >&6;}
27136 else
27137 rm -f $ac_file
27138 mv "$tmp/config.h" $ac_file
27139 fi
27140 else
27141 echo "/* $configure_input */"
27142 cat "$ac_result"
27143 fi
27144 rm -f "$tmp/out12"
27145 # Compute $ac_file's index in $config_headers.
27146 _am_stamp_count=1
27147 for _am_header in $config_headers :; do
27148 case $_am_header in
27149 $ac_file | $ac_file:* )
27150 break ;;
27151 * )
27152 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27153 esac
27154 done
27155 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27156 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27157 X$ac_file : 'X\(//\)[^/]' \| \
27158 X$ac_file : 'X\(//\)$' \| \
27159 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27160 echo X$ac_file |
27161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27162 s//\1/
27163 q
27164 }
27165 /^X\(\/\/\)[^/].*/{
27166 s//\1/
27167 q
27168 }
27169 /^X\(\/\/\)$/{
27170 s//\1/
27171 q
27172 }
27173 /^X\(\/\).*/{
27174 s//\1/
27175 q
27176 }
27177 s/.*/./; q'`/stamp-h$_am_stamp_count
27178 ;;
27179
27180 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27181 echo "$as_me: executing $ac_file commands" >&6;}
27182 ;;
27183 esac
27184
27185
27186 case $ac_file$ac_mode in
27187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27188 # Strip MF so we end up with the name of the file.
27189 mf=`echo "$mf" | sed -e 's/:.*$//'`
27190 # Check whether this is an Automake generated Makefile or not.
27191 # We used to match only the files named `Makefile.in', but
27192 # some people rename them; so instead we look at the file content.
27193 # Grep'ing the first line is not enough: some people post-process
27194 # each Makefile.in and add a new line on top of each file to say so.
27195 # Grep'ing the whole file is not good either: AIX grep has a line
27196 # limit of 2048, but all sed's we know have understand at least 4000.
27197 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27198 dirpart=`$as_dirname -- "$mf" ||
27199 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27200 X"$mf" : 'X\(//\)[^/]' \| \
27201 X"$mf" : 'X\(//\)$' \| \
27202 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27203 echo X"$mf" |
27204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27205 s//\1/
27206 q
27207 }
27208 /^X\(\/\/\)[^/].*/{
27209 s//\1/
27210 q
27211 }
27212 /^X\(\/\/\)$/{
27213 s//\1/
27214 q
27215 }
27216 /^X\(\/\).*/{
27217 s//\1/
27218 q
27219 }
27220 s/.*/./; q'`
27221 else
27222 continue
27223 fi
27224 # Extract the definition of DEPDIR, am__include, and am__quote
27225 # from the Makefile without running `make'.
27226 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27227 test -z "$DEPDIR" && continue
27228 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27229 test -z "am__include" && continue
27230 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27231 # When using ansi2knr, U may be empty or an underscore; expand it
27232 U=`sed -n 's/^U = //p' < "$mf"`
27233 # Find all dependency output files, they are included files with
27234 # $(DEPDIR) in their names. We invoke sed twice because it is the
27235 # simplest approach to changing $(DEPDIR) to its actual value in the
27236 # expansion.
27237 for file in `sed -n "
27238 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27239 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27240 # Make sure the directory exists.
27241 test -f "$dirpart/$file" && continue
27242 fdir=`$as_dirname -- "$file" ||
27243 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27244 X"$file" : 'X\(//\)[^/]' \| \
27245 X"$file" : 'X\(//\)$' \| \
27246 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27247 echo X"$file" |
27248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27249 s//\1/
27250 q
27251 }
27252 /^X\(\/\/\)[^/].*/{
27253 s//\1/
27254 q
27255 }
27256 /^X\(\/\/\)$/{
27257 s//\1/
27258 q
27259 }
27260 /^X\(\/\).*/{
27261 s//\1/
27262 q
27263 }
27264 s/.*/./; q'`
27265 { as_dir=$dirpart/$fdir
27266 case $as_dir in #(
27267 -*) as_dir=./$as_dir;;
27268 esac
27269 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27270 as_dirs=
27271 while :; do
27272 case $as_dir in #(
27273 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27274 *) as_qdir=$as_dir;;
27275 esac
27276 as_dirs="'$as_qdir' $as_dirs"
27277 as_dir=`$as_dirname -- "$as_dir" ||
27278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27279 X"$as_dir" : 'X\(//\)[^/]' \| \
27280 X"$as_dir" : 'X\(//\)$' \| \
27281 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27282 echo X"$as_dir" |
27283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27284 s//\1/
27285 q
27286 }
27287 /^X\(\/\/\)[^/].*/{
27288 s//\1/
27289 q
27290 }
27291 /^X\(\/\/\)$/{
27292 s//\1/
27293 q
27294 }
27295 /^X\(\/\).*/{
27296 s//\1/
27297 q
27298 }
27299 s/.*/./; q'`
27300 test -d "$as_dir" && break
27301 done
27302 test -z "$as_dirs" || eval "mkdir $as_dirs"
27303 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27304 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27305 { (exit 1); exit 1; }; }; }
27306 # echo "creating $dirpart/$file"
27307 echo '# dummy' > "$dirpart/$file"
27308 done
27309 done
27310 ;;
27311 "include/librb-config.h":C)
27312 outfile=include/librb-config.h.tmp
27313 cat > $outfile <<\_______EOF
27314 /*
27315 * librb-config.h: libratbox config file. Please modify configure.ac
27316 */
27317
27318 #ifndef __LIBRB_CONFIG_H
27319 #define __LIBRB_CONFIG_H
27320
27321 _______EOF
27322
27323 if test "x$rb_have_ipv6" = "xyes"; then
27324 echo "#define RB_IPV6 1" >> $outfile
27325 fi
27326
27327 if test "x$rb_windows_h" = "xyes"; then
27328 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
27329 echo '#include <windows.h>' >> $outfile
27330 echo '#include <winsock2.h>' >> $outfile
27331 echo '#include <iphlpapi.h>' >> $outfile
27332 fi
27333
27334 if test "x$rb_alloca_h" = "xyes"; then
27335 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
27336 fi
27337
27338 if test "x$rb_header_stdc" = "xyes"; then
27339 echo '#include <stdlib.h>' >> $outfile
27340 echo '#include <stddef.h>' >> $outfile
27341 elif test "x$rb_header_stdlib" = "xyes"; then
27342 echo '#include <stdlib.h>' >> $outfile
27343 fi
27344
27345 if test "x$rb_header_string_h" = "xyes"; then
27346 echo '#include <string.h>' >> $outfile
27347 fi
27348
27349 if test "x$rb_stdint_h" = "xyes"; then
27350 echo '#include <stdint.h>' >> $outfile
27351 fi
27352
27353 if test "x$rb_inttypes_h" = "xyes"; then
27354 echo '#include <inttypes.h>' >> $outfile
27355 fi
27356
27357 if test "x$rb_sys_types_h" = "xyes"; then
27358 echo '#include <sys/types.h>' >> $outfile
27359 fi
27360 if test "x$rb_sys_time_h" = "xyes"; then
27361 echo '#include <sys/time.h>' >> $outfile
27362 fi
27363 if test "x$rb_sys_stat_h" = "xyes"; then
27364 echo '#include <sys/stat.h>' >> $outfile
27365 fi
27366 if test "x$rb_time_h" = "xyes"; then
27367 echo '#include <time.h>' >> $outfile
27368 fi
27369
27370 if test "x$rb_sys_socket_h" = "xyes"; then
27371 echo '#include <sys/socket.h>' >> $outfile
27372 fi
27373
27374 if test "x$rb_netinet_in_h" = "xyes"; then
27375 echo '#include <netinet/in.h>' >> $outfile
27376 fi
27377
27378 if test "x$rb_arpa_inet_h" = "xyes"; then
27379 echo '#include <arpa/inet.h>' >> $outfile
27380 fi
27381
27382 if test "x$rb_unistd_h" = "xyes"; then
27383 echo '#include <unistd.h>' >> $outfile
27384 fi
27385
27386 if test "x$rb_crypt_h" = "xyes"; then
27387 echo '#include <crypt.h>' >> $outfile
27388 fi
27389
27390 if test "x$rb_errno_h" = "xyes"; then
27391 echo '#include <errno.h>' >> $outfile
27392 fi
27393
27394 if test "x$rb_sockaddr_sa_len" = "xyes"; then
27395 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
27396 fi
27397
27398 echo "typedef $rb_uint64_t rb_uint64_t;" >> $outfile
27399 echo "typedef $rb_uint32_t rb_uint32_t;" >> $outfile
27400 echo "typedef $rb_uint16_t rb_uint16_t;" >> $outfile
27401 echo "typedef $rb_uint8_t rb_uint8_t;" >> $outfile
27402 echo "typedef $rb_int64_t rb_int64_t;" >> $outfile
27403 echo "typedef $rb_int32_t rb_int32_t;" >> $outfile
27404 echo "typedef $rb_int16_t rb_int16_t;" >> $outfile
27405 echo "typedef $rb_int8_t rb_int8_t;" >> $outfile
27406 echo "typedef $rb_intmax_t rb_intmax_t;" >> $outfile
27407 echo "typedef $rb_intptr_t rb_intptr_t;" >> $outfile
27408 echo "typedef $rb_uintmax_t rb_uintmax_t;" >> $outfile
27409 echo "typedef $rb_uintptr_t rb_uintptr_t;" >> $outfile
27410 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
27411
27412 if test "x$rb_sockaddr_storage" = "xyes"; then
27413 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
27414 else
27415 echo 'struct rb_sockaddr_storage { rb_uint8_t _padding128; };' >> $outfile
27416 fi
27417
27418 cat >> $outfile <<\_______EOF
27419 #endif /* __LIBRB_CONFIG_H */
27420 _______EOF
27421
27422 if cmp -s $outfile include/librb-config.h; then
27423 { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
27424 echo "$as_me: include/librb-config.h is unchanged" >&6;}
27425 ${rb_rm} -f $outfile
27426 else
27427 ${rb_mv} $outfile include/librb-config.h
27428 fi
27429
27430 ;;
27431
27432 esac
27433 done # for ac_tag
27434
27435
27436 { (exit 0); exit 0; }
27437 _ACEOF
27438 chmod +x $CONFIG_STATUS
27439 ac_clean_files=$ac_clean_files_save
27440
27441
27442 # configure is writing to config.log, and then calls config.status.
27443 # config.status does its own redirection, appending to config.log.
27444 # Unfortunately, on DOS this fails, as config.log is still kept open
27445 # by configure, so config.status won't be able to write to it; its
27446 # output is simply discarded. So we exec the FD to /dev/null,
27447 # effectively closing config.log, so it can be properly (re)opened and
27448 # appended to by config.status. When coming back to configure, we
27449 # need to make the FD available again.
27450 if test "$no_create" != yes; then
27451 ac_cs_success=:
27452 ac_config_status_args=
27453 test "$silent" = yes &&
27454 ac_config_status_args="$ac_config_status_args --quiet"
27455 exec 5>/dev/null
27456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27457 exec 5>>config.log
27458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27459 # would make configure fail if this is the last instruction.
27460 $ac_cs_success || { (exit 1); exit 1; }
27461 fi
27462
27463 #
27464 # CONFIG_SUBDIRS section.
27465 #
27466 if test "$no_recursion" != yes; then
27467
27468 # Remove --cache-file and --srcdir arguments so they do not pile up.
27469 ac_sub_configure_args=
27470 ac_prev=
27471 eval "set x $ac_configure_args"
27472 shift
27473 for ac_arg
27474 do
27475 if test -n "$ac_prev"; then
27476 ac_prev=
27477 continue
27478 fi
27479 case $ac_arg in
27480 -cache-file | --cache-file | --cache-fil | --cache-fi \
27481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27482 ac_prev=cache_file ;;
27483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27485 | --c=*)
27486 ;;
27487 --config-cache | -C)
27488 ;;
27489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27490 ac_prev=srcdir ;;
27491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27492 ;;
27493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27494 ac_prev=prefix ;;
27495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27496 ;;
27497 *)
27498 case $ac_arg in
27499 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27500 esac
27501 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27502 esac
27503 done
27504
27505 # Always prepend --prefix to ensure using the same prefix
27506 # in subdir configurations.
27507 ac_arg="--prefix=$prefix"
27508 case $ac_arg in
27509 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27510 esac
27511 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27512
27513 # Pass --silent
27514 if test "$silent" = yes; then
27515 ac_sub_configure_args="--silent $ac_sub_configure_args"
27516 fi
27517
27518 ac_popdir=`pwd`
27519 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27520
27521 # Do not complain, so a configure script can configure whichever
27522 # parts of a large source tree are present.
27523 test -d "$srcdir/$ac_dir" || continue
27524
27525 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27526 echo "$as_me:$LINENO: $ac_msg" >&5
27527 echo "$ac_msg" >&6
27528 { as_dir="$ac_dir"
27529 case $as_dir in #(
27530 -*) as_dir=./$as_dir;;
27531 esac
27532 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27533 as_dirs=
27534 while :; do
27535 case $as_dir in #(
27536 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27537 *) as_qdir=$as_dir;;
27538 esac
27539 as_dirs="'$as_qdir' $as_dirs"
27540 as_dir=`$as_dirname -- "$as_dir" ||
27541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27542 X"$as_dir" : 'X\(//\)[^/]' \| \
27543 X"$as_dir" : 'X\(//\)$' \| \
27544 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27545 echo X"$as_dir" |
27546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27547 s//\1/
27548 q
27549 }
27550 /^X\(\/\/\)[^/].*/{
27551 s//\1/
27552 q
27553 }
27554 /^X\(\/\/\)$/{
27555 s//\1/
27556 q
27557 }
27558 /^X\(\/\).*/{
27559 s//\1/
27560 q
27561 }
27562 s/.*/./; q'`
27563 test -d "$as_dir" && break
27564 done
27565 test -z "$as_dirs" || eval "mkdir $as_dirs"
27566 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27567 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27568 { (exit 1); exit 1; }; }; }
27569 ac_builddir=.
27570
27571 case "$ac_dir" in
27572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27573 *)
27574 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27575 # A ".." for each directory in $ac_dir_suffix.
27576 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27577 case $ac_top_builddir_sub in
27578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27580 esac ;;
27581 esac
27582 ac_abs_top_builddir=$ac_pwd
27583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27584 # for backward compatibility:
27585 ac_top_builddir=$ac_top_build_prefix
27586
27587 case $srcdir in
27588 .) # We are building in place.
27589 ac_srcdir=.
27590 ac_top_srcdir=$ac_top_builddir_sub
27591 ac_abs_top_srcdir=$ac_pwd ;;
27592 [\\/]* | ?:[\\/]* ) # Absolute name.
27593 ac_srcdir=$srcdir$ac_dir_suffix;
27594 ac_top_srcdir=$srcdir
27595 ac_abs_top_srcdir=$srcdir ;;
27596 *) # Relative name.
27597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27598 ac_top_srcdir=$ac_top_build_prefix$srcdir
27599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27600 esac
27601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27602
27603
27604 cd "$ac_dir"
27605
27606 # Check for guested configure; otherwise get Cygnus style configure.
27607 if test -f "$ac_srcdir/configure.gnu"; then
27608 ac_sub_configure=$ac_srcdir/configure.gnu
27609 elif test -f "$ac_srcdir/configure"; then
27610 ac_sub_configure=$ac_srcdir/configure
27611 elif test -f "$ac_srcdir/configure.in"; then
27612 # This should be Cygnus configure.
27613 ac_sub_configure=$ac_aux_dir/configure
27614 else
27615 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27616 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27617 ac_sub_configure=
27618 fi
27619
27620 # The recursion is here.
27621 if test -n "$ac_sub_configure"; then
27622 # Make the cache file name correct relative to the subdirectory.
27623 case $cache_file in
27624 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27625 *) # Relative name.
27626 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27627 esac
27628
27629 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27630 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27631 # The eval makes quoting arguments work.
27632 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27633 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27634 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27635 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27636 { (exit 1); exit 1; }; }
27637 fi
27638
27639 cd "$ac_popdir"
27640 done
27641 fi
27642
27643
27644
27645 echo
27646 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
27647 echo
27648
27649 echo "Installing into: $prefix"
27650
27651 echo "IPv6 support ................... $have_v6"
27652 echo "Assert debugging ............... $assert"
27653 echo "Block allocator ................ $balloc"
27654 echo "OpenSSL ........................ $cf_enable_openssl"
27655 echo
27656