]> jfr.im git - irc/rqf/shadowircd.git/blob - libratbox/configure
c0875e3bc7926b50cbb99886d167ab8b2c0e0f49
[irc/rqf/shadowircd.git] / libratbox / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libratbox devel.
4 #
5 # $Id: configure.ac 25689 2008-07-10 17:13:27Z androsyn $
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libratbox'
730 PACKAGE_TARNAME='libratbox'
731 PACKAGE_VERSION='devel'
732 PACKAGE_STRING='libratbox devel'
733 PACKAGE_BUGREPORT=''
734
735 ac_default_prefix=/usr/local/libratbox
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 GREP
848 EGREP
849 SED
850 MAINTAINER_MODE_TRUE
851 MAINTAINER_MODE_FALSE
852 MAINT
853 AS
854 RM
855 CP
856 MV
857 LN
858 AR
859 LD
860 RANLIB
861 TOUCH
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 LN_S
871 ECHO
872 DSYMUTIL
873 NMEDIT
874 CPP
875 CXX
876 CXXFLAGS
877 ac_ct_CXX
878 CXXDEPMODE
879 am__fastdepCXX_TRUE
880 am__fastdepCXX_FALSE
881 CXXCPP
882 F77
883 FFLAGS
884 ac_ct_F77
885 LIBTOOL
886 subdirs
887 MINGW_TRUE
888 MINGW_FALSE
889 NEED_CRYPT_TRUE
890 NEED_CRYPT_FALSE
891 CRYPT_LIB
892 ALLOCA
893 PKG_CONFIG
894 GNUTLS_CFLAGS
895 GNUTLS_LIBS
896 PICFLAGS
897 SEDOBJ
898 SSL_CFLAGS
899 SSL_LIBS
900 RB_PREFIX
901 LIBOBJS
902 LTLIBOBJS'
903 ac_subst_files=''
904 ac_precious_vars='build_alias
905 host_alias
906 target_alias
907 CC
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
912 CPP
913 CXX
914 CXXFLAGS
915 CCC
916 CXXCPP
917 F77
918 FFLAGS
919 PKG_CONFIG
920 GNUTLS_CFLAGS
921 GNUTLS_LIBS'
922 ac_subdirs_all='libltdl'
923
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
943
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
969
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
980
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
991
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
996
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1001
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1011
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1016
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1023
1024 -disable-* | --disable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
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 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=\$ac_optarg ;;
1248
1249 -without-* | --without-*)
1250 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=no ;;
1257
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1261
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1268
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1275
1276 -*) { echo "$as_me: error: unrecognized option: $ac_option
1277 Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286 { (exit 1); exit 1; }; }
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1289
1290 *)
1291 # FIXME: should be removed in autoconf 3.0.
1292 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 ;;
1297
1298 esac
1299 done
1300
1301 if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 { echo "$as_me: error: missing argument to $ac_option" >&2
1304 { (exit 1); exit 1; }; }
1305 fi
1306
1307 # Be sure to have absolute directory names.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
1320 done
1321
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1328
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338 fi
1339
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343 test "$silent" = yes && exec 6>/dev/null
1344
1345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 { echo "$as_me: error: Working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1354
1355
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$0" ||
1361 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$0" : 'X\(//\)[^/]' \| \
1363 X"$0" : 'X\(//\)$' \| \
1364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1365 echo X"$0" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387 else
1388 ac_srcdir_defaulted=no
1389 fi
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393 { (exit 1); exit 1; }; }
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398 { (exit 1); exit 1; }; }
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures libratbox devel to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of libratbox devel:";;
1495 esac
1496 cat <<\_ACEOF
1497
1498 Optional Features:
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --disable-dependency-tracking speeds up one-time build
1502 --enable-dependency-tracking do not reject slow dependency extractors
1503 --enable-static[=PKGS] build static libraries [default=no]
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-maintainer-mode enable make rules and dependencies not useful
1506 (and sometimes confusing) to the casual installer
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --disable-ipv6 Disable IPv6 support
1511 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1512 --disable-openssl Disable OpenSSL support.
1513 --enable-gnutls Enable GnuTLS support.
1514 --disable-gnutls Disable GnuTLS support.
1515 --enable-assert Enable assert(). Choose between soft(warnings) and
1516 hard(aborts the daemon)
1517 --enable-profile Enable profiling
1518 --disable-balloc Disable the block allocator.
1519 --enable-warnings Enable all sorts of warnings for debugging.
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1525 --with-pic try to use only PIC/non-PIC objects [default=use
1526 both]
1527 --with-tags[=TAGS] include additional configurations [automatic]
1528
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 CPP C preprocessor
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
1540 CXXCPP C++ preprocessor
1541 F77 Fortran 77 compiler command
1542 FFLAGS Fortran 77 compiler flags
1543 PKG_CONFIG path to pkg-config utility
1544 GNUTLS_CFLAGS
1545 C compiler flags for GNUTLS, overriding pkg-config
1546 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1547
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1550
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" || continue
1559 ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 libratbox configure devel
1612 generated by GNU Autoconf 2.61
1613
1614 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1615 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618
1619 $Id: configure.ac 25689 2008-07-10 17:13:27Z androsyn $
1620 _ACEOF
1621 exit
1622 fi
1623 cat >config.log <<_ACEOF
1624 This file contains any messages produced by compilers while
1625 running configure, to aid debugging if configure makes a mistake.
1626
1627 It was created by libratbox $as_me devel, which was
1628 generated by GNU Autoconf 2.61. Invocation command line was
1629
1630 $ $0 $@
1631
1632 _ACEOF
1633 exec 5>>config.log
1634 {
1635 cat <<_ASUNAME
1636 ## --------- ##
1637 ## Platform. ##
1638 ## --------- ##
1639
1640 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1641 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1642 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1643 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1644 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1645
1646 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1647 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1648
1649 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1650 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1651 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1652 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1653 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1654 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1655 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1656
1657 _ASUNAME
1658
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 echo "PATH: $as_dir"
1665 done
1666 IFS=$as_save_IFS
1667
1668 } >&5
1669
1670 cat >&5 <<_ACEOF
1671
1672
1673 ## ----------- ##
1674 ## Core tests. ##
1675 ## ----------- ##
1676
1677 _ACEOF
1678
1679
1680 # Keep a trace of the command line.
1681 # Strip out --no-create and --no-recursion so they do not pile up.
1682 # Strip out --silent because we don't want to record it for future runs.
1683 # Also quote any args containing shell meta-characters.
1684 # Make two passes to allow for proper duplicate-argument suppression.
1685 ac_configure_args=
1686 ac_configure_args0=
1687 ac_configure_args1=
1688 ac_must_keep_next=false
1689 for ac_pass in 1 2
1690 do
1691 for ac_arg
1692 do
1693 case $ac_arg in
1694 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1696 | -silent | --silent | --silen | --sile | --sil)
1697 continue ;;
1698 *\'*)
1699 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1700 esac
1701 case $ac_pass in
1702 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703 2)
1704 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1705 if test $ac_must_keep_next = true; then
1706 ac_must_keep_next=false # Got value, back to normal.
1707 else
1708 case $ac_arg in
1709 *=* | --config-cache | -C | -disable-* | --disable-* \
1710 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1711 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1712 | -with-* | --with-* | -without-* | --without-* | --x)
1713 case "$ac_configure_args0 " in
1714 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1715 esac
1716 ;;
1717 -* ) ac_must_keep_next=true ;;
1718 esac
1719 fi
1720 ac_configure_args="$ac_configure_args '$ac_arg'"
1721 ;;
1722 esac
1723 done
1724 done
1725 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1726 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727
1728 # When interrupted or exit'd, cleanup temporary files, and complete
1729 # config.log. We remove comments because anyway the quotes in there
1730 # would cause problems or look ugly.
1731 # WARNING: Use '\'' to represent an apostrophe within the trap.
1732 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1733 trap 'exit_status=$?
1734 # Save into config.log some information that might help in debugging.
1735 {
1736 echo
1737
1738 cat <<\_ASBOX
1739 ## ---------------- ##
1740 ## Cache variables. ##
1741 ## ---------------- ##
1742 _ASBOX
1743 echo
1744 # The following way of writing the cache mishandles newlines in values,
1745 (
1746 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1747 eval ac_val=\$$ac_var
1748 case $ac_val in #(
1749 *${as_nl}*)
1750 case $ac_var in #(
1751 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1752 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1753 esac
1754 case $ac_var in #(
1755 _ | IFS | as_nl) ;; #(
1756 *) $as_unset $ac_var ;;
1757 esac ;;
1758 esac
1759 done
1760 (set) 2>&1 |
1761 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1762 *${as_nl}ac_space=\ *)
1763 sed -n \
1764 "s/'\''/'\''\\\\'\'''\''/g;
1765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1766 ;; #(
1767 *)
1768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1769 ;;
1770 esac |
1771 sort
1772 )
1773 echo
1774
1775 cat <<\_ASBOX
1776 ## ----------------- ##
1777 ## Output variables. ##
1778 ## ----------------- ##
1779 _ASBOX
1780 echo
1781 for ac_var in $ac_subst_vars
1782 do
1783 eval ac_val=\$$ac_var
1784 case $ac_val in
1785 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 esac
1787 echo "$ac_var='\''$ac_val'\''"
1788 done | sort
1789 echo
1790
1791 if test -n "$ac_subst_files"; then
1792 cat <<\_ASBOX
1793 ## ------------------- ##
1794 ## File substitutions. ##
1795 ## ------------------- ##
1796 _ASBOX
1797 echo
1798 for ac_var in $ac_subst_files
1799 do
1800 eval ac_val=\$$ac_var
1801 case $ac_val in
1802 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 esac
1804 echo "$ac_var='\''$ac_val'\''"
1805 done | sort
1806 echo
1807 fi
1808
1809 if test -s confdefs.h; then
1810 cat <<\_ASBOX
1811 ## ----------- ##
1812 ## confdefs.h. ##
1813 ## ----------- ##
1814 _ASBOX
1815 echo
1816 cat confdefs.h
1817 echo
1818 fi
1819 test "$ac_signal" != 0 &&
1820 echo "$as_me: caught signal $ac_signal"
1821 echo "$as_me: exit $exit_status"
1822 } >&5
1823 rm -f core *.core core.conftest.* &&
1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1825 exit $exit_status
1826 ' 0
1827 for ac_signal in 1 2 13 15; do
1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1829 done
1830 ac_signal=0
1831
1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1833 rm -f -r conftest* confdefs.h
1834
1835 # Predefined preprocessor variables.
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_NAME "$PACKAGE_NAME"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_STRING "$PACKAGE_STRING"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1859 _ACEOF
1860
1861
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer explicitly selected file to automatically selected ones.
1864 if test -n "$CONFIG_SITE"; then
1865 set x "$CONFIG_SITE"
1866 elif test "x$prefix" != xNONE; then
1867 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1868 else
1869 set x "$ac_default_prefix/share/config.site" \
1870 "$ac_default_prefix/etc/config.site"
1871 fi
1872 shift
1873 for ac_site_file
1874 do
1875 if test -r "$ac_site_file"; then
1876 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1877 echo "$as_me: loading site script $ac_site_file" >&6;}
1878 sed 's/^/| /' "$ac_site_file" >&5
1879 . "$ac_site_file"
1880 fi
1881 done
1882
1883 if test -r "$cache_file"; then
1884 # Some versions of bash will fail to source /dev/null (special
1885 # files actually), so we avoid doing that.
1886 if test -f "$cache_file"; then
1887 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888 echo "$as_me: loading cache $cache_file" >&6;}
1889 case $cache_file in
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
1892 esac
1893 fi
1894 else
1895 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1896 echo "$as_me: creating cache $cache_file" >&6;}
1897 >$cache_file
1898 fi
1899
1900 # Check that the precious variables saved in the cache have kept the same
1901 # value.
1902 ac_cache_corrupted=false
1903 for ac_var in $ac_precious_vars; do
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
1908 case $ac_old_set,$ac_new_set in
1909 set,)
1910 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1913 ,set)
1914 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1917 ,);;
1918 *)
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
1920 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1923 echo "$as_me: former value: $ac_old_val" >&2;}
1924 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1925 echo "$as_me: current value: $ac_new_val" >&2;}
1926 ac_cache_corrupted=:
1927 fi;;
1928 esac
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1931 case $ac_new_val in
1932 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1934 esac
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938 esac
1939 fi
1940 done
1941 if $ac_cache_corrupted; then
1942 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1947 fi
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980 am__api_version='1.10'
1981
1982 ac_aux_dir=
1983 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1984 if test -f "$ac_dir/install-sh"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1987 break
1988 elif test -f "$ac_dir/install.sh"; then
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1991 break
1992 elif test -f "$ac_dir/shtool"; then
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1995 break
1996 fi
1997 done
1998 if test -z "$ac_aux_dir"; then
1999 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2001 { (exit 1); exit 1; }; }
2002 fi
2003
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2011
2012
2013 # Find a good install program. We prefer a C program (faster),
2014 # so one script is as good as another. But avoid the broken or
2015 # incompatible versions:
2016 # SysV /etc/install, /usr/sbin/install
2017 # SunOS /usr/etc/install
2018 # IRIX /sbin/install
2019 # AIX /bin/install
2020 # AmigaOS /C/install, which installs bootblocks on floppy discs
2021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2024 # OS/2's system install, which has a completely different semantic
2025 # ./install, which can be erroneously created by make from ./install.sh.
2026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2028 if test -z "$INSTALL"; then
2029 if test "${ac_cv_path_install+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 # Account for people who put trailing slashes in PATH elements.
2038 case $as_dir/ in
2039 ./ | .// | /cC/* | \
2040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2042 /usr/ucb/* ) ;;
2043 *)
2044 # OSF1 and SCO ODT 3.0 have their own names for install.
2045 # Don't use installbsd from OSF since it installs stuff as root
2046 # by default.
2047 for ac_prog in ginstall scoinst install; do
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2050 if test $ac_prog = install &&
2051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052 # AIX install. It has an incompatible calling convention.
2053 :
2054 elif test $ac_prog = install &&
2055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056 # program-specific install script used by HP pwplus--don't use.
2057 :
2058 else
2059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2060 break 3
2061 fi
2062 fi
2063 done
2064 done
2065 ;;
2066 esac
2067 done
2068 IFS=$as_save_IFS
2069
2070
2071 fi
2072 if test "${ac_cv_path_install+set}" = set; then
2073 INSTALL=$ac_cv_path_install
2074 else
2075 # As a last resort, use the slow shell script. Don't cache a
2076 # value for INSTALL within a source directory, because that will
2077 # break other packages using the cache if that directory is
2078 # removed, or if the value is a relative name.
2079 INSTALL=$ac_install_sh
2080 fi
2081 fi
2082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2083 echo "${ECHO_T}$INSTALL" >&6; }
2084
2085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2086 # It thinks the first close brace ends the variable substitution.
2087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2088
2089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2090
2091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2092
2093 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2094 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2095 # Just in case
2096 sleep 1
2097 echo timestamp > conftest.file
2098 # Do `set' in a subshell so we don't clobber the current shell's
2099 # arguments. Must try -L first in case configure is actually a
2100 # symlink; some systems play weird games with the mod time of symlinks
2101 # (eg FreeBSD returns the mod time of the symlink's containing
2102 # directory).
2103 if (
2104 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2105 if test "$*" = "X"; then
2106 # -L didn't work.
2107 set X `ls -t $srcdir/configure conftest.file`
2108 fi
2109 rm -f conftest.file
2110 if test "$*" != "X $srcdir/configure conftest.file" \
2111 && test "$*" != "X conftest.file $srcdir/configure"; then
2112
2113 # If neither matched, then we have a broken ls. This can happen
2114 # if, for instance, CONFIG_SHELL is bash and it inherits a
2115 # broken ls alias from the environment. This has actually
2116 # happened. Such a system could not be considered "sane".
2117 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2118 alias in your environment" >&5
2119 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2120 alias in your environment" >&2;}
2121 { (exit 1); exit 1; }; }
2122 fi
2123
2124 test "$2" = conftest.file
2125 )
2126 then
2127 # Ok.
2128 :
2129 else
2130 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2131 Check your system clock" >&5
2132 echo "$as_me: error: newly created file is older than distributed files!
2133 Check your system clock" >&2;}
2134 { (exit 1); exit 1; }; }
2135 fi
2136 { echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6; }
2138 test "$program_prefix" != NONE &&
2139 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2140 # Use a double $ so make ignores it.
2141 test "$program_suffix" != NONE &&
2142 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2143 # Double any \ or $. echo might interpret backslashes.
2144 # By default was `s,x,x', remove it if useless.
2145 cat <<\_ACEOF >conftest.sed
2146 s/[\\$]/&&/g;s/;s,x,x,$//
2147 _ACEOF
2148 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2149 rm -f conftest.sed
2150
2151 # expand $ac_aux_dir to an absolute path
2152 am_aux_dir=`cd $ac_aux_dir && pwd`
2153
2154 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2155 # Use eval to expand $SHELL
2156 if eval "$MISSING --run true"; then
2157 am_missing_run="$MISSING --run "
2158 else
2159 am_missing_run=
2160 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2161 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2162 fi
2163
2164 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2165 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2166 if test -z "$MKDIR_P"; then
2167 if test "${ac_cv_path_mkdir+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2172 do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_prog in mkdir gmkdir; do
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2178 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2179 'mkdir (GNU coreutils) '* | \
2180 'mkdir (coreutils) '* | \
2181 'mkdir (fileutils) '4.1*)
2182 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2183 break 3;;
2184 esac
2185 done
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191
2192 if test "${ac_cv_path_mkdir+set}" = set; then
2193 MKDIR_P="$ac_cv_path_mkdir -p"
2194 else
2195 # As a last resort, use the slow shell script. Don't cache a
2196 # value for MKDIR_P within a source directory, because that will
2197 # break other packages using the cache if that directory is
2198 # removed, or if the value is a relative name.
2199 test -d ./--version && rmdir ./--version
2200 MKDIR_P="$ac_install_sh -d"
2201 fi
2202 fi
2203 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2204 echo "${ECHO_T}$MKDIR_P" >&6; }
2205
2206 mkdir_p="$MKDIR_P"
2207 case $mkdir_p in
2208 [\\/$]* | ?:[\\/]*) ;;
2209 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2210 esac
2211
2212 for ac_prog in gawk mawk nawk awk
2213 do
2214 # Extract the first word of "$ac_prog", so it can be a program name with args.
2215 set dummy $ac_prog; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_AWK+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 if test -n "$AWK"; then
2222 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_AWK="$ac_prog"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2234 fi
2235 done
2236 done
2237 IFS=$as_save_IFS
2238
2239 fi
2240 fi
2241 AWK=$ac_cv_prog_AWK
2242 if test -n "$AWK"; then
2243 { echo "$as_me:$LINENO: result: $AWK" >&5
2244 echo "${ECHO_T}$AWK" >&6; }
2245 else
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2248 fi
2249
2250
2251 test -n "$AWK" && break
2252 done
2253
2254 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2256 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2257 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 cat >conftest.make <<\_ACEOF
2261 SHELL = /bin/sh
2262 all:
2263 @echo '@@@%%%=$(MAKE)=@@@%%%'
2264 _ACEOF
2265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2267 *@@@%%%=?*=@@@%%%*)
2268 eval ac_cv_prog_make_${ac_make}_set=yes;;
2269 *)
2270 eval ac_cv_prog_make_${ac_make}_set=no;;
2271 esac
2272 rm -f conftest.make
2273 fi
2274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2277 SET_MAKE=
2278 else
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 SET_MAKE="MAKE=${MAKE-make}"
2282 fi
2283
2284 rm -rf .tst 2>/dev/null
2285 mkdir .tst 2>/dev/null
2286 if test -d .tst; then
2287 am__leading_dot=.
2288 else
2289 am__leading_dot=_
2290 fi
2291 rmdir .tst 2>/dev/null
2292
2293 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2295 # is not polluted with repeated "-I."
2296 am__isrc=' -I$(srcdir)'
2297 # test to see if srcdir already configured
2298 if test -f $srcdir/config.status; then
2299 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2301 { (exit 1); exit 1; }; }
2302 fi
2303 fi
2304
2305 # test whether we have cygpath
2306 if test -z "$CYGPATH_W"; then
2307 if (cygpath --version) >/dev/null 2>/dev/null; then
2308 CYGPATH_W='cygpath -w'
2309 else
2310 CYGPATH_W=echo
2311 fi
2312 fi
2313
2314
2315 # Define the identity of the package.
2316 PACKAGE=libratbox
2317 VERSION=devel
2318
2319
2320 # Some tools Automake needs.
2321
2322 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2323
2324
2325 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2326
2327
2328 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2329
2330
2331 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2332
2333
2334 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335
2336 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2337
2338 # Installed binaries are usually stripped using `strip' when the user
2339 # run `make install-strip'. However `strip' might not be the right
2340 # tool to use in cross-compilation environments, therefore Automake
2341 # will honor the `STRIP' environment variable to overrule this program.
2342 if test "$cross_compiling" != no; then
2343 if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2345 set dummy ${ac_tool_prefix}strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test -n "$STRIP"; then
2352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 STRIP=$ac_cv_prog_STRIP
2372 if test -n "$STRIP"; then
2373 { echo "$as_me:$LINENO: result: $STRIP" >&5
2374 echo "${ECHO_T}$STRIP" >&6; }
2375 else
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380
2381 fi
2382 if test -z "$ac_cv_prog_STRIP"; then
2383 ac_ct_STRIP=$STRIP
2384 # Extract the first word of "strip", so it can be a program name with args.
2385 set dummy strip; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391 if test -n "$ac_ct_STRIP"; then
2392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_ac_ct_STRIP="strip"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 fi
2410 fi
2411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2412 if test -n "$ac_ct_STRIP"; then
2413 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2414 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2415 else
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2418 fi
2419
2420 if test "x$ac_ct_STRIP" = x; then
2421 STRIP=":"
2422 else
2423 case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433 STRIP=$ac_ct_STRIP
2434 fi
2435 else
2436 STRIP="$ac_cv_prog_STRIP"
2437 fi
2438
2439 fi
2440 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2441
2442 # We need awk for the "check" target. The system "awk" is bad on
2443 # some platforms.
2444 # Always define AMTAR for backward compatibility.
2445
2446 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447
2448 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2449
2450
2451
2452
2453
2454
2455 ac_config_headers="$ac_config_headers include/libratbox_config.h"
2456
2457
2458
2459
2460 cat >>confdefs.h <<\_ACEOF
2461 #define _GNU_SOURCE 1
2462 _ACEOF
2463
2464
2465
2466 DEPDIR="${am__leading_dot}deps"
2467
2468 ac_config_commands="$ac_config_commands depfiles"
2469
2470
2471 am_make=${MAKE-make}
2472 cat > confinc << 'END'
2473 am__doit:
2474 @echo done
2475 .PHONY: am__doit
2476 END
2477 # If we don't find an include directive, just comment out the code.
2478 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2479 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2480 am__include="#"
2481 am__quote=
2482 _am_result=none
2483 # First try GNU make style include.
2484 echo "include confinc" > confmf
2485 # We grep out `Entering directory' and `Leaving directory'
2486 # messages which can occur if `w' ends up in MAKEFLAGS.
2487 # In particular we don't look at `^make:' because GNU make might
2488 # be invoked under some other name (usually "gmake"), in which
2489 # case it prints its new name instead of `make'.
2490 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2491 am__include=include
2492 am__quote=
2493 _am_result=GNU
2494 fi
2495 # Now try BSD make style include.
2496 if test "$am__include" = "#"; then
2497 echo '.include "confinc"' > confmf
2498 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2499 am__include=.include
2500 am__quote="\""
2501 _am_result=BSD
2502 fi
2503 fi
2504
2505
2506 { echo "$as_me:$LINENO: result: $_am_result" >&5
2507 echo "${ECHO_T}$_am_result" >&6; }
2508 rm -f confinc confmf
2509
2510 # Check whether --enable-dependency-tracking was given.
2511 if test "${enable_dependency_tracking+set}" = set; then
2512 enableval=$enable_dependency_tracking;
2513 fi
2514
2515 if test "x$enable_dependency_tracking" != xno; then
2516 am_depcomp="$ac_aux_dir/depcomp"
2517 AMDEPBACKSLASH='\'
2518 fi
2519 if test "x$enable_dependency_tracking" != xno; then
2520 AMDEP_TRUE=
2521 AMDEP_FALSE='#'
2522 else
2523 AMDEP_TRUE='#'
2524 AMDEP_FALSE=
2525 fi
2526
2527
2528 ac_ext=c
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533 if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2535 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2554 fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 fi
2560 fi
2561 CC=$ac_cv_prog_CC
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2565 else
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2568 fi
2569
2570
2571 fi
2572 if test -z "$ac_cv_prog_CC"; then
2573 ac_ct_CC=$CC
2574 # Extract the first word of "gcc", so it can be a program name with args.
2575 set dummy gcc; ac_word=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$ac_ct_CC"; then
2582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_ac_ct_CC="gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2602 if test -n "$ac_ct_CC"; then
2603 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2604 echo "${ECHO_T}$ac_ct_CC" >&6; }
2605 else
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610 if test "x$ac_ct_CC" = x; then
2611 CC=""
2612 else
2613 case $cross_compiling:$ac_tool_warned in
2614 yes:)
2615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2616 whose name does not start with the host triplet. If you think this
2617 configuration is useful to you, please write to autoconf@gnu.org." >&5
2618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2619 whose name does not start with the host triplet. If you think this
2620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2621 ac_tool_warned=yes ;;
2622 esac
2623 CC=$ac_ct_CC
2624 fi
2625 else
2626 CC="$ac_cv_prog_CC"
2627 fi
2628
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}cc; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668 fi
2669 fi
2670 if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672 set dummy cc; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 ac_prog_rejected=no
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected=yes
2691 continue
2692 fi
2693 ac_cv_prog_CC="cc"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2704 shift
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2709 shift
2710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2711 fi
2712 fi
2713 fi
2714 fi
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 { echo "$as_me:$LINENO: result: $CC" >&5
2718 echo "${ECHO_T}$CC" >&6; }
2719 else
2720 { echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6; }
2722 fi
2723
2724
2725 fi
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog in cl.exe
2729 do
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 CC=$ac_cv_prog_CC
2758 if test -n "$CC"; then
2759 { echo "$as_me:$LINENO: result: $CC" >&5
2760 echo "${ECHO_T}$CC" >&6; }
2761 else
2762 { echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6; }
2764 fi
2765
2766
2767 test -n "$CC" && break
2768 done
2769 fi
2770 if test -z "$CC"; then
2771 ac_ct_CC=$CC
2772 for ac_prog in cl.exe
2773 do
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_ac_ct_CC="$ac_prog"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802 if test -n "$ac_ct_CC"; then
2803 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2804 echo "${ECHO_T}$ac_ct_CC" >&6; }
2805 else
2806 { echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6; }
2808 fi
2809
2810
2811 test -n "$ac_ct_CC" && break
2812 done
2813
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2820 whose name does not start with the host triplet. If you think this
2821 configuration is useful to you, please write to autoconf@gnu.org." >&5
2822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet. If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827 CC=$ac_ct_CC
2828 fi
2829 fi
2830
2831 fi
2832
2833
2834 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2835 See \`config.log' for more details." >&5
2836 echo "$as_me: error: no acceptable C compiler found in \$PATH
2837 See \`config.log' for more details." >&2;}
2838 { (exit 1); exit 1; }; }
2839
2840 # Provide some information about the compiler.
2841 echo "$as_me:$LINENO: checking for C compiler version" >&5
2842 ac_compiler=`set X $ac_compile; echo $2`
2843 { (ac_try="$ac_compiler --version >&5"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compiler --version >&5") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }
2853 { (ac_try="$ac_compiler -v >&5"
2854 case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857 esac
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compiler -v >&5") 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }
2863 { (ac_try="$ac_compiler -V >&5"
2864 case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867 esac
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compiler -V >&5") 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880
2881 int
2882 main ()
2883 {
2884
2885 ;
2886 return 0;
2887 }
2888 _ACEOF
2889 ac_clean_files_save=$ac_clean_files
2890 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2891 # Try to create an executable without -o first, disregard a.out.
2892 # It will help us diagnose broken compilers, and finding out an intuition
2893 # of exeext.
2894 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2895 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2896 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2897 #
2898 # List of possible output files, starting from the most likely.
2899 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2900 # only as a last resort. b.out is created by i960 compilers.
2901 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2902 #
2903 # The IRIX 6 linker writes into existing files which may not be
2904 # executable, retaining their permissions. Remove them first so a
2905 # subsequent execution test works.
2906 ac_rmfiles=
2907 for ac_file in $ac_files
2908 do
2909 case $ac_file in
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2911 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2912 esac
2913 done
2914 rm -f $ac_rmfiles
2915
2916 if { (ac_try="$ac_link_default"
2917 case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_link_default") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2927 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2928 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2929 # so that the user can short-circuit this test for compilers unknown to
2930 # Autoconf.
2931 for ac_file in $ac_files ''
2932 do
2933 test -f "$ac_file" || continue
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2936 ;;
2937 [ab].out )
2938 # We found the default executable, but exeext='' is most
2939 # certainly right.
2940 break;;
2941 *.* )
2942 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2943 then :; else
2944 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 fi
2946 # We set ac_cv_exeext here because the later test for it is not
2947 # safe: cross compilers may not add the suffix if given an `-o'
2948 # argument, so we may need to know it at that point already.
2949 # Even if this section looks crufty: it has the advantage of
2950 # actually working.
2951 break;;
2952 * )
2953 break;;
2954 esac
2955 done
2956 test "$ac_cv_exeext" = no && ac_cv_exeext=
2957
2958 else
2959 ac_file=''
2960 fi
2961
2962 { echo "$as_me:$LINENO: result: $ac_file" >&5
2963 echo "${ECHO_T}$ac_file" >&6; }
2964 if test -z "$ac_file"; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C compiler cannot create executables
2971 See \`config.log' for more details." >&2;}
2972 { (exit 77); exit 77; }; }
2973 fi
2974
2975 ac_exeext=$ac_cv_exeext
2976
2977 # Check that the compiler produces executables we can run. If not, either
2978 # the compiler is broken, or we cross compile.
2979 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2980 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2981 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2982 # If not cross compiling, check that we can run a simple program.
2983 if test "$cross_compiling" != yes; then
2984 if { ac_try='./$ac_file'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 cross_compiling=no
2995 else
2996 if test "$cross_compiling" = maybe; then
2997 cross_compiling=yes
2998 else
2999 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3000 If you meant to cross compile, use \`--host'.
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: cannot run C compiled programs.
3003 If you meant to cross compile, use \`--host'.
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3006 fi
3007 fi
3008 fi
3009 { echo "$as_me:$LINENO: result: yes" >&5
3010 echo "${ECHO_T}yes" >&6; }
3011
3012 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3013 ac_clean_files=$ac_clean_files_save
3014 # Check that the compiler produces executables we can run. If not, either
3015 # the compiler is broken, or we cross compile.
3016 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3017 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3018 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3019 echo "${ECHO_T}$cross_compiling" >&6; }
3020
3021 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3022 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3023 if { (ac_try="$ac_link"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_link") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3035 # work properly (i.e., refer to `conftest.exe'), while it won't with
3036 # `rm'.
3037 for ac_file in conftest.exe conftest conftest.*; do
3038 test -f "$ac_file" || continue
3039 case $ac_file in
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 break;;
3043 * ) break;;
3044 esac
3045 done
3046 else
3047 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3048 See \`config.log' for more details." >&5
3049 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3050 See \`config.log' for more details." >&2;}
3051 { (exit 1); exit 1; }; }
3052 fi
3053
3054 rm -f conftest$ac_cv_exeext
3055 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3056 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3057
3058 rm -f conftest.$ac_ext
3059 EXEEXT=$ac_cv_exeext
3060 ac_exeext=$EXEEXT
3061 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3062 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3063 if test "${ac_cv_objext+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072
3073 int
3074 main ()
3075 {
3076
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.o conftest.obj
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; then
3092 for ac_file in conftest.o conftest.obj conftest.*; do
3093 test -f "$ac_file" || continue;
3094 case $ac_file in
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3097 break;;
3098 esac
3099 done
3100 else
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3109 fi
3110
3111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3112 fi
3113 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3114 echo "${ECHO_T}$ac_cv_objext" >&6; }
3115 OBJEXT=$ac_cv_objext
3116 ac_objext=$OBJEXT
3117 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3118 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3119 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128
3129 int
3130 main ()
3131 {
3132 #ifndef __GNUC__
3133 choke me
3134 #endif
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3157 ac_compiler_gnu=yes
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 ac_compiler_gnu=no
3163 fi
3164
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167
3168 fi
3169 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3170 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3171 GCC=`test $ac_compiler_gnu = yes && echo yes`
3172 ac_test_CFLAGS=${CFLAGS+set}
3173 ac_save_CFLAGS=$CFLAGS
3174 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3176 if test "${ac_cv_prog_cc_g+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 ac_save_c_werror_flag=$ac_c_werror_flag
3180 ac_c_werror_flag=yes
3181 ac_cv_prog_cc_g=no
3182 CFLAGS="-g"
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189
3190 int
3191 main ()
3192 {
3193
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3215 ac_cv_prog_cc_g=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 CFLAGS=""
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3253 :
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 ac_c_werror_flag=$ac_save_c_werror_flag
3259 CFLAGS="-g"
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266
3267 int
3268 main ()
3269 {
3270
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3292 ac_cv_prog_cc_g=yes
3293 else
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297
3298 fi
3299
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 fi
3302
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 fi
3305
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3308 fi
3309 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3310 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3311 if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313 elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3315 CFLAGS="-g -O2"
3316 else
3317 CFLAGS="-g"
3318 fi
3319 else
3320 if test "$GCC" = yes; then
3321 CFLAGS="-O2"
3322 else
3323 CFLAGS=
3324 fi
3325 fi
3326 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3327 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3328 if test "${ac_cv_prog_cc_c89+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 ac_cv_prog_cc_c89=no
3332 ac_save_CC=$CC
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347 char **p;
3348 int i;
3349 {
3350 return p[i];
3351 }
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3353 {
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360 }
3361
3362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3370
3371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3373 #define FOO(x) 'x'
3374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3375
3376 int test (int i, double x);
3377 struct s1 {int (*f) (int a);};
3378 struct s2 {int (*f) (double a);};
3379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380 int argc;
3381 char **argv;
3382 int
3383 main ()
3384 {
3385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 ;
3387 return 0;
3388 }
3389 _ACEOF
3390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3392 do
3393 CC="$ac_save_CC $ac_arg"
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_cv_prog_cc_c89=$ac_arg
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417 fi
3418
3419 rm -f core conftest.err conftest.$ac_objext
3420 test "x$ac_cv_prog_cc_c89" != "xno" && break
3421 done
3422 rm -f conftest.$ac_ext
3423 CC=$ac_save_CC
3424
3425 fi
3426 # AC_CACHE_VAL
3427 case "x$ac_cv_prog_cc_c89" in
3428 x)
3429 { echo "$as_me:$LINENO: result: none needed" >&5
3430 echo "${ECHO_T}none needed" >&6; } ;;
3431 xno)
3432 { echo "$as_me:$LINENO: result: unsupported" >&5
3433 echo "${ECHO_T}unsupported" >&6; } ;;
3434 *)
3435 CC="$CC $ac_cv_prog_cc_c89"
3436 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3437 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3438 esac
3439
3440
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446
3447 depcc="$CC" am_compiler_list=
3448
3449 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3450 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3451 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3455 # We make a subdir and do the tests there. Otherwise we can end up
3456 # making bogus files that we don't know about and never remove. For
3457 # instance it was reported that on HP-UX the gcc test will end up
3458 # making a dummy file named `D' -- because `-MD' means `put the output
3459 # in D'.
3460 mkdir conftest.dir
3461 # Copy depcomp to subdir because otherwise we won't find it if we're
3462 # using a relative directory.
3463 cp "$am_depcomp" conftest.dir
3464 cd conftest.dir
3465 # We will build objects and dependencies in a subdirectory because
3466 # it helps to detect inapplicable dependency modes. For instance
3467 # both Tru64's cc and ICC support -MD to output dependencies as a
3468 # side effect of compilation, but ICC will put the dependencies in
3469 # the current directory while Tru64 will put them in the object
3470 # directory.
3471 mkdir sub
3472
3473 am_cv_CC_dependencies_compiler_type=none
3474 if test "$am_compiler_list" = ""; then
3475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3476 fi
3477 for depmode in $am_compiler_list; do
3478 # Setup a source with many dependencies, because some compilers
3479 # like to wrap large dependency lists on column 80 (with \), and
3480 # we should not choose a depcomp mode which is confused by this.
3481 #
3482 # We need to recreate these files for each test, as the compiler may
3483 # overwrite some of them when testing with obscure command lines.
3484 # This happens at least with the AIX C compiler.
3485 : > sub/conftest.c
3486 for i in 1 2 3 4 5 6; do
3487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3488 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3489 # Solaris 8's {/usr,}/bin/sh.
3490 touch sub/conftst$i.h
3491 done
3492 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3493
3494 case $depmode in
3495 nosideeffect)
3496 # after this tag, mechanisms are not by side-effect, so they'll
3497 # only be used when explicitly requested
3498 if test "x$enable_dependency_tracking" = xyes; then
3499 continue
3500 else
3501 break
3502 fi
3503 ;;
3504 none) break ;;
3505 esac
3506 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3507 # mode. It turns out that the SunPro C++ compiler does not properly
3508 # handle `-M -o', and we need to detect this.
3509 if depmode=$depmode \
3510 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3511 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3512 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3513 >/dev/null 2>conftest.err &&
3514 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3515 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3516 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3517 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3518 # icc doesn't choke on unknown options, it will just issue warnings
3519 # or remarks (even with -Werror). So we grep stderr for any message
3520 # that says an option was ignored or not supported.
3521 # When given -MP, icc 7.0 and 7.1 complain thusly:
3522 # icc: Command line warning: ignoring option '-M'; no argument required
3523 # The diagnosis changed in icc 8.0:
3524 # icc: Command line remark: option '-MP' not supported
3525 if (grep 'ignoring option' conftest.err ||
3526 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3527 am_cv_CC_dependencies_compiler_type=$depmode
3528 break
3529 fi
3530 fi
3531 done
3532
3533 cd ..
3534 rm -rf conftest.dir
3535 else
3536 am_cv_CC_dependencies_compiler_type=none
3537 fi
3538
3539 fi
3540 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3541 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3542 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3543
3544 if
3545 test "x$enable_dependency_tracking" != xno \
3546 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3547 am__fastdepCC_TRUE=
3548 am__fastdepCC_FALSE='#'
3549 else
3550 am__fastdepCC_TRUE='#'
3551 am__fastdepCC_FALSE=
3552 fi
3553
3554
3555 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3556 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3557 if test "${ac_cv_prog_cc_c99+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 ac_cv_prog_cc_c99=no
3561 ac_save_CC=$CC
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568 #include <stdarg.h>
3569 #include <stdbool.h>
3570 #include <stdlib.h>
3571 #include <wchar.h>
3572 #include <stdio.h>
3573
3574 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3575 #define debug(...) fprintf (stderr, __VA_ARGS__)
3576 #define showlist(...) puts (#__VA_ARGS__)
3577 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3578 static void
3579 test_varargs_macros (void)
3580 {
3581 int x = 1234;
3582 int y = 5678;
3583 debug ("Flag");
3584 debug ("X = %d\n", x);
3585 showlist (The first, second, and third items.);
3586 report (x>y, "x is %d but y is %d", x, y);
3587 }
3588
3589 // Check long long types.
3590 #define BIG64 18446744073709551615ull
3591 #define BIG32 4294967295ul
3592 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3593 #if !BIG_OK
3594 your preprocessor is broken;
3595 #endif
3596 #if BIG_OK
3597 #else
3598 your preprocessor is broken;
3599 #endif
3600 static long long int bignum = -9223372036854775807LL;
3601 static unsigned long long int ubignum = BIG64;
3602
3603 struct incomplete_array
3604 {
3605 int datasize;
3606 double data[];
3607 };
3608
3609 struct named_init {
3610 int number;
3611 const wchar_t *name;
3612 double average;
3613 };
3614
3615 typedef const char *ccp;
3616
3617 static inline int
3618 test_restrict (ccp restrict text)
3619 {
3620 // See if C++-style comments work.
3621 // Iterate through items via the restricted pointer.
3622 // Also check for declarations in for loops.
3623 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3624 continue;
3625 return 0;
3626 }
3627
3628 // Check varargs and va_copy.
3629 static void
3630 test_varargs (const char *format, ...)
3631 {
3632 va_list args;
3633 va_start (args, format);
3634 va_list args_copy;
3635 va_copy (args_copy, args);
3636
3637 const char *str;
3638 int number;
3639 float fnumber;
3640
3641 while (*format)
3642 {
3643 switch (*format++)
3644 {
3645 case 's': // string
3646 str = va_arg (args_copy, const char *);
3647 break;
3648 case 'd': // int
3649 number = va_arg (args_copy, int);
3650 break;
3651 case 'f': // float
3652 fnumber = va_arg (args_copy, double);
3653 break;
3654 default:
3655 break;
3656 }
3657 }
3658 va_end (args_copy);
3659 va_end (args);
3660 }
3661
3662 int
3663 main ()
3664 {
3665
3666 // Check bool.
3667 _Bool success = false;
3668
3669 // Check restrict.
3670 if (test_restrict ("String literal") == 0)
3671 success = true;
3672 char *restrict newvar = "Another string";
3673
3674 // Check varargs.
3675 test_varargs ("s, d' f .", "string", 65, 34.234);
3676 test_varargs_macros ();
3677
3678 // Check flexible array members.
3679 struct incomplete_array *ia =
3680 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3681 ia->datasize = 10;
3682 for (int i = 0; i < ia->datasize; ++i)
3683 ia->data[i] = i * 1.234;
3684
3685 // Check named initializers.
3686 struct named_init ni = {
3687 .number = 34,
3688 .name = L"Test wide string",
3689 .average = 543.34343,
3690 };
3691
3692 ni.number = 58;
3693
3694 int dynamic_array[ni.number];
3695 dynamic_array[ni.number - 1] = 543;
3696
3697 // work around unused variable warnings
3698 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3699 || dynamic_array[ni.number - 1] != 543);
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3706 do
3707 CC="$ac_save_CC $ac_arg"
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715 (eval "$ac_compile") 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && {
3722 test -z "$ac_c_werror_flag" ||
3723 test ! -s conftest.err
3724 } && test -s conftest.$ac_objext; then
3725 ac_cv_prog_cc_c99=$ac_arg
3726 else
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730
3731 fi
3732
3733 rm -f core conftest.err conftest.$ac_objext
3734 test "x$ac_cv_prog_cc_c99" != "xno" && break
3735 done
3736 rm -f conftest.$ac_ext
3737 CC=$ac_save_CC
3738
3739 fi
3740 # AC_CACHE_VAL
3741 case "x$ac_cv_prog_cc_c99" in
3742 x)
3743 { echo "$as_me:$LINENO: result: none needed" >&5
3744 echo "${ECHO_T}none needed" >&6; } ;;
3745 xno)
3746 { echo "$as_me:$LINENO: result: unsupported" >&5
3747 echo "${ECHO_T}unsupported" >&6; } ;;
3748 *)
3749 CC="$CC $ac_cv_prog_cc_c99"
3750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3751 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3752 esac
3753
3754
3755
3756
3757 if test x"$ac_cv_prog_cc_c99" = "xno"; then
3758 { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
3759 echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
3760 { (exit 1); exit 1; }; }
3761 fi
3762
3763
3764 # Find a good install program. We prefer a C program (faster),
3765 # so one script is as good as another. But avoid the broken or
3766 # incompatible versions:
3767 # SysV /etc/install, /usr/sbin/install
3768 # SunOS /usr/etc/install
3769 # IRIX /sbin/install
3770 # AIX /bin/install
3771 # AmigaOS /C/install, which installs bootblocks on floppy discs
3772 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3775 # OS/2's system install, which has a completely different semantic
3776 # ./install, which can be erroneously created by make from ./install.sh.
3777 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3778 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3779 if test -z "$INSTALL"; then
3780 if test "${ac_cv_path_install+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 # Account for people who put trailing slashes in PATH elements.
3789 case $as_dir/ in
3790 ./ | .// | /cC/* | \
3791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3792 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3793 /usr/ucb/* ) ;;
3794 *)
3795 # OSF1 and SCO ODT 3.0 have their own names for install.
3796 # Don't use installbsd from OSF since it installs stuff as root
3797 # by default.
3798 for ac_prog in ginstall scoinst install; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3801 if test $ac_prog = install &&
3802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803 # AIX install. It has an incompatible calling convention.
3804 :
3805 elif test $ac_prog = install &&
3806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3807 # program-specific install script used by HP pwplus--don't use.
3808 :
3809 else
3810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3811 break 3
3812 fi
3813 fi
3814 done
3815 done
3816 ;;
3817 esac
3818 done
3819 IFS=$as_save_IFS
3820
3821
3822 fi
3823 if test "${ac_cv_path_install+set}" = set; then
3824 INSTALL=$ac_cv_path_install
3825 else
3826 # As a last resort, use the slow shell script. Don't cache a
3827 # value for INSTALL within a source directory, because that will
3828 # break other packages using the cache if that directory is
3829 # removed, or if the value is a relative name.
3830 INSTALL=$ac_install_sh
3831 fi
3832 fi
3833 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3834 echo "${ECHO_T}$INSTALL" >&6; }
3835
3836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3837 # It thinks the first close brace ends the variable substitution.
3838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3839
3840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3841
3842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3843
3844 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3845 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3846 if test "${ac_cv_path_GREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 # Extract the first word of "grep ggrep" to use in msg output
3850 if test -z "$GREP"; then
3851 set dummy grep ggrep; ac_prog_name=$2
3852 if test "${ac_cv_path_GREP+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855 ac_path_GREP_found=false
3856 # Loop through the user's path and test for each of PROGNAME-LIST
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3859 do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_prog in grep ggrep; do
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3865 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3866 # Check for GNU ac_path_GREP and select it if it is found.
3867 # Check for GNU $ac_path_GREP
3868 case `"$ac_path_GREP" --version 2>&1` in
3869 *GNU*)
3870 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3871 *)
3872 ac_count=0
3873 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3874 while :
3875 do
3876 cat "conftest.in" "conftest.in" >"conftest.tmp"
3877 mv "conftest.tmp" "conftest.in"
3878 cp "conftest.in" "conftest.nl"
3879 echo 'GREP' >> "conftest.nl"
3880 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3882 ac_count=`expr $ac_count + 1`
3883 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3884 # Best one so far, save it but keep looking for a better one
3885 ac_cv_path_GREP="$ac_path_GREP"
3886 ac_path_GREP_max=$ac_count
3887 fi
3888 # 10*(2^10) chars as input seems more than enough
3889 test $ac_count -gt 10 && break
3890 done
3891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3892 esac
3893
3894
3895 $ac_path_GREP_found && break 3
3896 done
3897 done
3898
3899 done
3900 IFS=$as_save_IFS
3901
3902
3903 fi
3904
3905 GREP="$ac_cv_path_GREP"
3906 if test -z "$GREP"; then
3907 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3908 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3909 { (exit 1); exit 1; }; }
3910 fi
3911
3912 else
3913 ac_cv_path_GREP=$GREP
3914 fi
3915
3916
3917 fi
3918 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3919 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3920 GREP="$ac_cv_path_GREP"
3921
3922
3923 { echo "$as_me:$LINENO: checking for egrep" >&5
3924 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3925 if test "${ac_cv_path_EGREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3929 then ac_cv_path_EGREP="$GREP -E"
3930 else
3931 # Extract the first word of "egrep" to use in msg output
3932 if test -z "$EGREP"; then
3933 set dummy egrep; ac_prog_name=$2
3934 if test "${ac_cv_path_EGREP+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 ac_path_EGREP_found=false
3938 # Loop through the user's path and test for each of PROGNAME-LIST
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3941 do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_prog in egrep; do
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3948 # Check for GNU ac_path_EGREP and select it if it is found.
3949 # Check for GNU $ac_path_EGREP
3950 case `"$ac_path_EGREP" --version 2>&1` in
3951 *GNU*)
3952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3953 *)
3954 ac_count=0
3955 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3956 while :
3957 do
3958 cat "conftest.in" "conftest.in" >"conftest.tmp"
3959 mv "conftest.tmp" "conftest.in"
3960 cp "conftest.in" "conftest.nl"
3961 echo 'EGREP' >> "conftest.nl"
3962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3964 ac_count=`expr $ac_count + 1`
3965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3966 # Best one so far, save it but keep looking for a better one
3967 ac_cv_path_EGREP="$ac_path_EGREP"
3968 ac_path_EGREP_max=$ac_count
3969 fi
3970 # 10*(2^10) chars as input seems more than enough
3971 test $ac_count -gt 10 && break
3972 done
3973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974 esac
3975
3976
3977 $ac_path_EGREP_found && break 3
3978 done
3979 done
3980
3981 done
3982 IFS=$as_save_IFS
3983
3984
3985 fi
3986
3987 EGREP="$ac_cv_path_EGREP"
3988 if test -z "$EGREP"; then
3989 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3990 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3991 { (exit 1); exit 1; }; }
3992 fi
3993
3994 else
3995 ac_cv_path_EGREP=$EGREP
3996 fi
3997
3998
3999 fi
4000 fi
4001 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4002 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4003 EGREP="$ac_cv_path_EGREP"
4004
4005
4006 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4007 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4008 if test "${ac_cv_path_SED+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4012 for ac_i in 1 2 3 4 5 6 7; do
4013 ac_script="$ac_script$as_nl$ac_script"
4014 done
4015 echo "$ac_script" | sed 99q >conftest.sed
4016 $as_unset ac_script || ac_script=
4017 # Extract the first word of "sed gsed" to use in msg output
4018 if test -z "$SED"; then
4019 set dummy sed gsed; ac_prog_name=$2
4020 if test "${ac_cv_path_SED+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 ac_path_SED_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in sed gsed; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4033 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4034 # Check for GNU ac_path_SED and select it if it is found.
4035 # Check for GNU $ac_path_SED
4036 case `"$ac_path_SED" --version 2>&1` in
4037 *GNU*)
4038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4039 *)
4040 ac_count=0
4041 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4042 while :
4043 do
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 echo '' >> "conftest.nl"
4048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 ac_count=`expr $ac_count + 1`
4051 if test $ac_count -gt ${ac_path_SED_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_SED="$ac_path_SED"
4054 ac_path_SED_max=$ac_count
4055 fi
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4058 done
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 esac
4061
4062
4063 $ac_path_SED_found && break 3
4064 done
4065 done
4066
4067 done
4068 IFS=$as_save_IFS
4069
4070
4071 fi
4072
4073 SED="$ac_cv_path_SED"
4074 if test -z "$SED"; then
4075 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4076 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4077 { (exit 1); exit 1; }; }
4078 fi
4079
4080 else
4081 ac_cv_path_SED=$SED
4082 fi
4083
4084 fi
4085 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4086 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4087 SED="$ac_cv_path_SED"
4088 rm -f conftest.sed
4089
4090
4091 F77=no
4092 CXX=no
4093 GCJ=no
4094
4095 # Check whether --enable-static was given.
4096 if test "${enable_static+set}" = set; then
4097 enableval=$enable_static; p=${PACKAGE-default}
4098 case $enableval in
4099 yes) enable_static=yes ;;
4100 no) enable_static=no ;;
4101 *)
4102 enable_static=no
4103 # Look at the argument we got. We use all the common list separators.
4104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4105 for pkg in $enableval; do
4106 IFS="$lt_save_ifs"
4107 if test "X$pkg" = "X$p"; then
4108 enable_static=yes
4109 fi
4110 done
4111 IFS="$lt_save_ifs"
4112 ;;
4113 esac
4114 else
4115 enable_static=no
4116 fi
4117
4118
4119
4120 # Check whether --enable-shared was given.
4121 if test "${enable_shared+set}" = set; then
4122 enableval=$enable_shared; p=${PACKAGE-default}
4123 case $enableval in
4124 yes) enable_shared=yes ;;
4125 no) enable_shared=no ;;
4126 *)
4127 enable_shared=no
4128 # Look at the argument we got. We use all the common list separators.
4129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4130 for pkg in $enableval; do
4131 IFS="$lt_save_ifs"
4132 if test "X$pkg" = "X$p"; then
4133 enable_shared=yes
4134 fi
4135 done
4136 IFS="$lt_save_ifs"
4137 ;;
4138 esac
4139 else
4140 enable_shared=yes
4141 fi
4142
4143
4144 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4145 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4146 # Check whether --enable-maintainer-mode was given.
4147 if test "${enable_maintainer_mode+set}" = set; then
4148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4149 else
4150 USE_MAINTAINER_MODE=no
4151 fi
4152
4153 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4154 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4155 if test $USE_MAINTAINER_MODE = yes; then
4156 MAINTAINER_MODE_TRUE=
4157 MAINTAINER_MODE_FALSE='#'
4158 else
4159 MAINTAINER_MODE_TRUE='#'
4160 MAINTAINER_MODE_FALSE=
4161 fi
4162
4163 MAINT=$MAINTAINER_MODE_TRUE
4164
4165
4166
4167
4168 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4169 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4170 if test "${ac_cv_search_strerror+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 ac_func_search_save_LIBS=$LIBS
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180
4181 /* Override any GCC internal prototype to avoid an error.
4182 Use char because int might match the return type of a GCC
4183 builtin and then its argument prototype would still apply. */
4184 #ifdef __cplusplus
4185 extern "C"
4186 #endif
4187 char strerror ();
4188 int
4189 main ()
4190 {
4191 return strerror ();
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 for ac_lib in '' cposix; do
4197 if test -z "$ac_lib"; then
4198 ac_res="none required"
4199 else
4200 ac_res=-l$ac_lib
4201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4202 fi
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204 if { (ac_try="$ac_link"
4205 case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_link") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest$ac_exeext &&
4220 $as_test_x conftest$ac_exeext; then
4221 ac_cv_search_strerror=$ac_res
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226
4227 fi
4228
4229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4230 conftest$ac_exeext
4231 if test "${ac_cv_search_strerror+set}" = set; then
4232 break
4233 fi
4234 done
4235 if test "${ac_cv_search_strerror+set}" = set; then
4236 :
4237 else
4238 ac_cv_search_strerror=no
4239 fi
4240 rm conftest.$ac_ext
4241 LIBS=$ac_func_search_save_LIBS
4242 fi
4243 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4244 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4245 ac_res=$ac_cv_search_strerror
4246 if test "$ac_res" != no; then
4247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4248
4249 fi
4250
4251 { echo "$as_me:$LINENO: checking for inline" >&5
4252 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4253 if test "${ac_cv_c_inline+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 ac_cv_c_inline=no
4257 for ac_kw in inline __inline__ __inline; do
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #ifndef __cplusplus
4265 typedef int foo_t;
4266 static $ac_kw foo_t static_foo () {return 0; }
4267 $ac_kw foo_t foo () {return 0; }
4268 #endif
4269
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (ac_try="$ac_compile"
4273 case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest.$ac_objext; then
4288 ac_cv_c_inline=$ac_kw
4289 else
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293
4294 fi
4295
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 test "$ac_cv_c_inline" != no && break
4298 done
4299
4300 fi
4301 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4302 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4303
4304
4305 case $ac_cv_c_inline in
4306 inline | yes) ;;
4307 *)
4308 case $ac_cv_c_inline in
4309 no) ac_val=;;
4310 *) ac_val=$ac_cv_c_inline;;
4311 esac
4312 cat >>confdefs.h <<_ACEOF
4313 #ifndef __cplusplus
4314 #define inline $ac_val
4315 #endif
4316 _ACEOF
4317 ;;
4318 esac
4319
4320 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4321 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4322 if test "${ac_cv_c_const+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331
4332 int
4333 main ()
4334 {
4335 /* FIXME: Include the comments suggested by Paul. */
4336 #ifndef __cplusplus
4337 /* Ultrix mips cc rejects this. */
4338 typedef int charset[2];
4339 const charset cs;
4340 /* SunOS 4.1.1 cc rejects this. */
4341 char const *const *pcpcc;
4342 char **ppc;
4343 /* NEC SVR4.0.2 mips cc rejects this. */
4344 struct point {int x, y;};
4345 static struct point const zero = {0,0};
4346 /* AIX XL C 1.02.0.0 rejects this.
4347 It does not let you subtract one const X* pointer from another in
4348 an arm of an if-expression whose if-part is not a constant
4349 expression */
4350 const char *g = "string";
4351 pcpcc = &g + (g ? g-g : 0);
4352 /* HPUX 7.0 cc rejects these. */
4353 ++pcpcc;
4354 ppc = (char**) pcpcc;
4355 pcpcc = (char const *const *) ppc;
4356 { /* SCO 3.2v4 cc rejects this. */
4357 char *t;
4358 char const *s = 0 ? (char *) 0 : (char const *) 0;
4359
4360 *t++ = 0;
4361 if (s) return 0;
4362 }
4363 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4364 int x[] = {25, 17};
4365 const int *foo = &x[0];
4366 ++foo;
4367 }
4368 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4369 typedef const int *iptr;
4370 iptr p = 0;
4371 ++p;
4372 }
4373 { /* AIX XL C 1.02.0.0 rejects this saying
4374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4375 struct s { int j; const int *ap[3]; };
4376 struct s *b; b->j = 5;
4377 }
4378 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4379 const int foo = 10;
4380 if (!foo) return 0;
4381 }
4382 return !cs[0] && !zero.x;
4383 #endif
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (ac_try="$ac_compile"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_compile") 2>conftest.er1
4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && {
4403 test -z "$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 } && test -s conftest.$ac_objext; then
4406 ac_cv_c_const=yes
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_cv_c_const=no
4412 fi
4413
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 fi
4416 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4417 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4418 if test $ac_cv_c_const = no; then
4419
4420 cat >>confdefs.h <<\_ACEOF
4421 #define const
4422 _ACEOF
4423
4424 fi
4425
4426 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4427 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4428 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4429 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 cat >conftest.make <<\_ACEOF
4433 SHELL = /bin/sh
4434 all:
4435 @echo '@@@%%%=$(MAKE)=@@@%%%'
4436 _ACEOF
4437 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4438 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4439 *@@@%%%=?*=@@@%%%*)
4440 eval ac_cv_prog_make_${ac_make}_set=yes;;
4441 *)
4442 eval ac_cv_prog_make_${ac_make}_set=no;;
4443 esac
4444 rm -f conftest.make
4445 fi
4446 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4447 { echo "$as_me:$LINENO: result: yes" >&5
4448 echo "${ECHO_T}yes" >&6; }
4449 SET_MAKE=
4450 else
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4453 SET_MAKE="MAKE=${MAKE-make}"
4454 fi
4455
4456 # Find a good install program. We prefer a C program (faster),
4457 # so one script is as good as another. But avoid the broken or
4458 # incompatible versions:
4459 # SysV /etc/install, /usr/sbin/install
4460 # SunOS /usr/etc/install
4461 # IRIX /sbin/install
4462 # AIX /bin/install
4463 # AmigaOS /C/install, which installs bootblocks on floppy discs
4464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4467 # OS/2's system install, which has a completely different semantic
4468 # ./install, which can be erroneously created by make from ./install.sh.
4469 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4470 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4471 if test -z "$INSTALL"; then
4472 if test "${ac_cv_path_install+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 # Account for people who put trailing slashes in PATH elements.
4481 case $as_dir/ in
4482 ./ | .// | /cC/* | \
4483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4485 /usr/ucb/* ) ;;
4486 *)
4487 # OSF1 and SCO ODT 3.0 have their own names for install.
4488 # Don't use installbsd from OSF since it installs stuff as root
4489 # by default.
4490 for ac_prog in ginstall scoinst install; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4493 if test $ac_prog = install &&
4494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4495 # AIX install. It has an incompatible calling convention.
4496 :
4497 elif test $ac_prog = install &&
4498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4499 # program-specific install script used by HP pwplus--don't use.
4500 :
4501 else
4502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4503 break 3
4504 fi
4505 fi
4506 done
4507 done
4508 ;;
4509 esac
4510 done
4511 IFS=$as_save_IFS
4512
4513
4514 fi
4515 if test "${ac_cv_path_install+set}" = set; then
4516 INSTALL=$ac_cv_path_install
4517 else
4518 # As a last resort, use the slow shell script. Don't cache a
4519 # value for INSTALL within a source directory, because that will
4520 # break other packages using the cache if that directory is
4521 # removed, or if the value is a relative name.
4522 INSTALL=$ac_install_sh
4523 fi
4524 fi
4525 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4526 echo "${ECHO_T}$INSTALL" >&6; }
4527
4528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4529 # It thinks the first close brace ends the variable substitution.
4530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4531
4532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4533
4534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4535
4536 # Extract the first word of "automake", so it can be a program name with args.
4537 set dummy automake; ac_word=$2
4538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4540 if test "${ac_cv_path_AUTOMAKE+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 case $AUTOMAKE in
4544 [\\/]* | ?:[\\/]*)
4545 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
4546 ;;
4547 *)
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559 done
4560 done
4561 IFS=$as_save_IFS
4562
4563 ;;
4564 esac
4565 fi
4566 AUTOMAKE=$ac_cv_path_AUTOMAKE
4567 if test -n "$AUTOMAKE"; then
4568 { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
4569 echo "${ECHO_T}$AUTOMAKE" >&6; }
4570 else
4571 { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4573 fi
4574
4575
4576 # Extract the first word of "aclocal", so it can be a program name with args.
4577 set dummy aclocal; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_path_ACLOCAL+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 case $ACLOCAL in
4584 [\\/]* | ?:[\\/]*)
4585 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
4586 ;;
4587 *)
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 ;;
4604 esac
4605 fi
4606 ACLOCAL=$ac_cv_path_ACLOCAL
4607 if test -n "$ACLOCAL"; then
4608 { echo "$as_me:$LINENO: result: $ACLOCAL" >&5
4609 echo "${ECHO_T}$ACLOCAL" >&6; }
4610 else
4611 { echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6; }
4613 fi
4614
4615
4616 # Extract the first word of "autoheader", so it can be a program name with args.
4617 set dummy autoheader; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_path_AUTOHEADER+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 case $AUTOHEADER in
4624 [\\/]* | ?:[\\/]*)
4625 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
4626 ;;
4627 *)
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 ;;
4644 esac
4645 fi
4646 AUTOHEADER=$ac_cv_path_AUTOHEADER
4647 if test -n "$AUTOHEADER"; then
4648 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
4649 echo "${ECHO_T}$AUTOHEADER" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 fi
4654
4655
4656 # Extract the first word of "as", so it can be a program name with args.
4657 set dummy as; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_path_AS+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 case $AS in
4664 [\\/]* | ?:[\\/]*)
4665 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4666 ;;
4667 *)
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 ;;
4684 esac
4685 fi
4686 AS=$ac_cv_path_AS
4687 if test -n "$AS"; then
4688 { echo "$as_me:$LINENO: result: $AS" >&5
4689 echo "${ECHO_T}$AS" >&6; }
4690 else
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696 # Extract the first word of "rm", so it can be a program name with args.
4697 set dummy rm; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_RM+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 case $RM in
4704 [\\/]* | ?:[\\/]*)
4705 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4706 ;;
4707 *)
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723 ;;
4724 esac
4725 fi
4726 RM=$ac_cv_path_RM
4727 if test -n "$RM"; then
4728 { echo "$as_me:$LINENO: result: $RM" >&5
4729 echo "${ECHO_T}$RM" >&6; }
4730 else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733 fi
4734
4735
4736 # Extract the first word of "cp", so it can be a program name with args.
4737 set dummy cp; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_CP+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 case $CP in
4744 [\\/]* | ?:[\\/]*)
4745 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4746 ;;
4747 *)
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759 done
4760 done
4761 IFS=$as_save_IFS
4762
4763 ;;
4764 esac
4765 fi
4766 CP=$ac_cv_path_CP
4767 if test -n "$CP"; then
4768 { echo "$as_me:$LINENO: result: $CP" >&5
4769 echo "${ECHO_T}$CP" >&6; }
4770 else
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4773 fi
4774
4775
4776 # Extract the first word of "mv", so it can be a program name with args.
4777 set dummy mv; ac_word=$2
4778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780 if test "${ac_cv_path_MV+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 case $MV in
4784 [\\/]* | ?:[\\/]*)
4785 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4786 ;;
4787 *)
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803 ;;
4804 esac
4805 fi
4806 MV=$ac_cv_path_MV
4807 if test -n "$MV"; then
4808 { echo "$as_me:$LINENO: result: $MV" >&5
4809 echo "${ECHO_T}$MV" >&6; }
4810 else
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816 # Extract the first word of "ln", so it can be a program name with args.
4817 set dummy ln; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_LN+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823 case $LN in
4824 [\\/]* | ?:[\\/]*)
4825 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4826 ;;
4827 *)
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843 ;;
4844 esac
4845 fi
4846 LN=$ac_cv_path_LN
4847 if test -n "$LN"; then
4848 { echo "$as_me:$LINENO: result: $LN" >&5
4849 echo "${ECHO_T}$LN" >&6; }
4850 else
4851 { echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6; }
4853 fi
4854
4855
4856 # Extract the first word of "ar", so it can be a program name with args.
4857 set dummy ar; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_path_AR+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863 case $AR in
4864 [\\/]* | ?:[\\/]*)
4865 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4866 ;;
4867 *)
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 ;;
4884 esac
4885 fi
4886 AR=$ac_cv_path_AR
4887 if test -n "$AR"; then
4888 { echo "$as_me:$LINENO: result: $AR" >&5
4889 echo "${ECHO_T}$AR" >&6; }
4890 else
4891 { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4893 fi
4894
4895
4896 # Extract the first word of "ld", so it can be a program name with args.
4897 set dummy ld; ac_word=$2
4898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4900 if test "${ac_cv_path_LD+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903 case $LD in
4904 [\\/]* | ?:[\\/]*)
4905 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4906 ;;
4907 *)
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923 ;;
4924 esac
4925 fi
4926 LD=$ac_cv_path_LD
4927 if test -n "$LD"; then
4928 { echo "$as_me:$LINENO: result: $LD" >&5
4929 echo "${ECHO_T}$LD" >&6; }
4930 else
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4933 fi
4934
4935
4936 # Extract the first word of "ranlib", so it can be a program name with args.
4937 set dummy ranlib; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_path_RANLIB+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 case $RANLIB in
4944 [\\/]* | ?:[\\/]*)
4945 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4946 ;;
4947 *)
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 ;;
4964 esac
4965 fi
4966 RANLIB=$ac_cv_path_RANLIB
4967 if test -n "$RANLIB"; then
4968 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4969 echo "${ECHO_T}$RANLIB" >&6; }
4970 else
4971 { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4973 fi
4974
4975
4976 # Extract the first word of "touch", so it can be a program name with args.
4977 set dummy touch; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_TOUCH+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 case $TOUCH in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4986 ;;
4987 *)
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003 ;;
5004 esac
5005 fi
5006 TOUCH=$ac_cv_path_TOUCH
5007 if test -n "$TOUCH"; then
5008 { echo "$as_me:$LINENO: result: $TOUCH" >&5
5009 echo "${ECHO_T}$TOUCH" >&6; }
5010 else
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5013 fi
5014
5015
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022
5023 # Check whether --enable-fast-install was given.
5024 if test "${enable_fast_install+set}" = set; then
5025 enableval=$enable_fast_install; p=${PACKAGE-default}
5026 case $enableval in
5027 yes) enable_fast_install=yes ;;
5028 no) enable_fast_install=no ;;
5029 *)
5030 enable_fast_install=no
5031 # Look at the argument we got. We use all the common list separators.
5032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5033 for pkg in $enableval; do
5034 IFS="$lt_save_ifs"
5035 if test "X$pkg" = "X$p"; then
5036 enable_fast_install=yes
5037 fi
5038 done
5039 IFS="$lt_save_ifs"
5040 ;;
5041 esac
5042 else
5043 enable_fast_install=yes
5044 fi
5045
5046
5047 # Make sure we can run config.sub.
5048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5049 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5050 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5051 { (exit 1); exit 1; }; }
5052
5053 { echo "$as_me:$LINENO: checking build system type" >&5
5054 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5055 if test "${ac_cv_build+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058 ac_build_alias=$build_alias
5059 test "x$ac_build_alias" = x &&
5060 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5061 test "x$ac_build_alias" = x &&
5062 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5063 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5064 { (exit 1); exit 1; }; }
5065 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5067 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5068 { (exit 1); exit 1; }; }
5069
5070 fi
5071 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5072 echo "${ECHO_T}$ac_cv_build" >&6; }
5073 case $ac_cv_build in
5074 *-*-*) ;;
5075 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5076 echo "$as_me: error: invalid value of canonical build" >&2;}
5077 { (exit 1); exit 1; }; };;
5078 esac
5079 build=$ac_cv_build
5080 ac_save_IFS=$IFS; IFS='-'
5081 set x $ac_cv_build
5082 shift
5083 build_cpu=$1
5084 build_vendor=$2
5085 shift; shift
5086 # Remember, the first character of IFS is used to create $*,
5087 # except with old shells:
5088 build_os=$*
5089 IFS=$ac_save_IFS
5090 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5091
5092
5093 { echo "$as_me:$LINENO: checking host system type" >&5
5094 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5095 if test "${ac_cv_host+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 if test "x$host_alias" = x; then
5099 ac_cv_host=$ac_cv_build
5100 else
5101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5102 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5103 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5104 { (exit 1); exit 1; }; }
5105 fi
5106
5107 fi
5108 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5109 echo "${ECHO_T}$ac_cv_host" >&6; }
5110 case $ac_cv_host in
5111 *-*-*) ;;
5112 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5113 echo "$as_me: error: invalid value of canonical host" >&2;}
5114 { (exit 1); exit 1; }; };;
5115 esac
5116 host=$ac_cv_host
5117 ac_save_IFS=$IFS; IFS='-'
5118 set x $ac_cv_host
5119 shift
5120 host_cpu=$1
5121 host_vendor=$2
5122 shift; shift
5123 # Remember, the first character of IFS is used to create $*,
5124 # except with old shells:
5125 host_os=$*
5126 IFS=$ac_save_IFS
5127 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5128
5129
5130 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5131 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5132 if test "${lt_cv_path_SED+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 # Loop through the user's path and test for sed and gsed.
5136 # Then use that list of sed's as ones to test for truncation.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for lt_ac_prog in sed gsed; do
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5145 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5146 fi
5147 done
5148 done
5149 done
5150 IFS=$as_save_IFS
5151 lt_ac_max=0
5152 lt_ac_count=0
5153 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5154 # along with /bin/sed that truncates output.
5155 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5156 test ! -f $lt_ac_sed && continue
5157 cat /dev/null > conftest.in
5158 lt_ac_count=0
5159 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5160 # Check for GNU sed and select it if it is found.
5161 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5162 lt_cv_path_SED=$lt_ac_sed
5163 break
5164 fi
5165 while true; do
5166 cat conftest.in conftest.in >conftest.tmp
5167 mv conftest.tmp conftest.in
5168 cp conftest.in conftest.nl
5169 echo >>conftest.nl
5170 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5171 cmp -s conftest.out conftest.nl || break
5172 # 10000 chars as input seems more than enough
5173 test $lt_ac_count -gt 10 && break
5174 lt_ac_count=`expr $lt_ac_count + 1`
5175 if test $lt_ac_count -gt $lt_ac_max; then
5176 lt_ac_max=$lt_ac_count
5177 lt_cv_path_SED=$lt_ac_sed
5178 fi
5179 done
5180 done
5181
5182 fi
5183
5184 SED=$lt_cv_path_SED
5185
5186 { echo "$as_me:$LINENO: result: $SED" >&5
5187 echo "${ECHO_T}$SED" >&6; }
5188
5189
5190 # Check whether --with-gnu-ld was given.
5191 if test "${with_gnu_ld+set}" = set; then
5192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5193 else
5194 with_gnu_ld=no
5195 fi
5196
5197 ac_prog=ld
5198 if test "$GCC" = yes; then
5199 # Check if gcc -print-prog-name=ld gives a path.
5200 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5201 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5202 case $host in
5203 *-*-mingw*)
5204 # gcc leaves a trailing carriage return which upsets mingw
5205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5206 *)
5207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5208 esac
5209 case $ac_prog in
5210 # Accept absolute paths.
5211 [\\/]* | ?:[\\/]*)
5212 re_direlt='/[^/][^/]*/\.\./'
5213 # Canonicalize the pathname of ld
5214 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5215 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5216 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5217 done
5218 test -z "$LD" && LD="$ac_prog"
5219 ;;
5220 "")
5221 # If it fails, then pretend we aren't using GCC.
5222 ac_prog=ld
5223 ;;
5224 *)
5225 # If it is relative, then search for the first ld in PATH.
5226 with_gnu_ld=unknown
5227 ;;
5228 esac
5229 elif test "$with_gnu_ld" = yes; then
5230 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5231 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5232 else
5233 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5234 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5235 fi
5236 if test "${lt_cv_path_LD+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 if test -z "$LD"; then
5240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5241 for ac_dir in $PATH; do
5242 IFS="$lt_save_ifs"
5243 test -z "$ac_dir" && ac_dir=.
5244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5245 lt_cv_path_LD="$ac_dir/$ac_prog"
5246 # Check to see if the program is GNU ld. I'd rather use --version,
5247 # but apparently some variants of GNU ld only accept -v.
5248 # Break only if it was the GNU/non-GNU ld that we prefer.
5249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5250 *GNU* | *'with BFD'*)
5251 test "$with_gnu_ld" != no && break
5252 ;;
5253 *)
5254 test "$with_gnu_ld" != yes && break
5255 ;;
5256 esac
5257 fi
5258 done
5259 IFS="$lt_save_ifs"
5260 else
5261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5262 fi
5263 fi
5264
5265 LD="$lt_cv_path_LD"
5266 if test -n "$LD"; then
5267 { echo "$as_me:$LINENO: result: $LD" >&5
5268 echo "${ECHO_T}$LD" >&6; }
5269 else
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272 fi
5273 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5274 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5275 { (exit 1); exit 1; }; }
5276 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5277 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5278 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5282 case `$LD -v 2>&1 </dev/null` in
5283 *GNU* | *'with BFD'*)
5284 lt_cv_prog_gnu_ld=yes
5285 ;;
5286 *)
5287 lt_cv_prog_gnu_ld=no
5288 ;;
5289 esac
5290 fi
5291 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5292 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5293 with_gnu_ld=$lt_cv_prog_gnu_ld
5294
5295
5296 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5297 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5298 if test "${lt_cv_ld_reload_flag+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 lt_cv_ld_reload_flag='-r'
5302 fi
5303 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5304 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5305 reload_flag=$lt_cv_ld_reload_flag
5306 case $reload_flag in
5307 "" | " "*) ;;
5308 *) reload_flag=" $reload_flag" ;;
5309 esac
5310 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5311 case $host_os in
5312 darwin*)
5313 if test "$GCC" = yes; then
5314 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5315 else
5316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5317 fi
5318 ;;
5319 esac
5320
5321 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5322 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5323 if test "${lt_cv_path_NM+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 if test -n "$NM"; then
5327 # Let the user override the test.
5328 lt_cv_path_NM="$NM"
5329 else
5330 lt_nm_to_check="${ac_tool_prefix}nm"
5331 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5332 lt_nm_to_check="$lt_nm_to_check nm"
5333 fi
5334 for lt_tmp_nm in $lt_nm_to_check; do
5335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5336 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5337 IFS="$lt_save_ifs"
5338 test -z "$ac_dir" && ac_dir=.
5339 tmp_nm="$ac_dir/$lt_tmp_nm"
5340 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5341 # Check to see if the nm accepts a BSD-compat flag.
5342 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5343 # nm: unknown option "B" ignored
5344 # Tru64's nm complains that /dev/null is an invalid object file
5345 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5346 */dev/null* | *'Invalid file or object type'*)
5347 lt_cv_path_NM="$tmp_nm -B"
5348 break
5349 ;;
5350 *)
5351 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5352 */dev/null*)
5353 lt_cv_path_NM="$tmp_nm -p"
5354 break
5355 ;;
5356 *)
5357 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5358 continue # so that we can try to find one that supports BSD flags
5359 ;;
5360 esac
5361 ;;
5362 esac
5363 fi
5364 done
5365 IFS="$lt_save_ifs"
5366 done
5367 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5368 fi
5369 fi
5370 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5371 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5372 NM="$lt_cv_path_NM"
5373
5374 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5375 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5376 LN_S=$as_ln_s
5377 if test "$LN_S" = "ln -s"; then
5378 { echo "$as_me:$LINENO: result: yes" >&5
5379 echo "${ECHO_T}yes" >&6; }
5380 else
5381 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5382 echo "${ECHO_T}no, using $LN_S" >&6; }
5383 fi
5384
5385 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5386 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5387 if test "${lt_cv_deplibs_check_method+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 lt_cv_file_magic_cmd='$MAGIC_CMD'
5391 lt_cv_file_magic_test_file=
5392 lt_cv_deplibs_check_method='unknown'
5393 # Need to set the preceding variable on all platforms that support
5394 # interlibrary dependencies.
5395 # 'none' -- dependencies not supported.
5396 # `unknown' -- same as none, but documents that we really don't know.
5397 # 'pass_all' -- all dependencies passed with no checks.
5398 # 'test_compile' -- check by making test program.
5399 # 'file_magic [[regex]]' -- check by looking for files in library path
5400 # which responds to the $file_magic_cmd with a given extended regex.
5401 # If you have `file' or equivalent on your system and you're not sure
5402 # whether `pass_all' will *always* work, you probably want this one.
5403
5404 case $host_os in
5405 aix[4-9]*)
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408
5409 beos*)
5410 lt_cv_deplibs_check_method=pass_all
5411 ;;
5412
5413 bsdi[45]*)
5414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5415 lt_cv_file_magic_cmd='/usr/bin/file -L'
5416 lt_cv_file_magic_test_file=/shlib/libc.so
5417 ;;
5418
5419 cygwin*)
5420 # func_win32_libid is a shell function defined in ltmain.sh
5421 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5422 lt_cv_file_magic_cmd='func_win32_libid'
5423 ;;
5424
5425 mingw* | pw32*)
5426 # Base MSYS/MinGW do not provide the 'file' command needed by
5427 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5428 # unless we find 'file', for example because we are cross-compiling.
5429 if ( file / ) >/dev/null 2>&1; then
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5432 else
5433 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5434 lt_cv_file_magic_cmd='$OBJDUMP -f'
5435 fi
5436 ;;
5437
5438 darwin* | rhapsody*)
5439 lt_cv_deplibs_check_method=pass_all
5440 ;;
5441
5442 freebsd* | dragonfly*)
5443 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5444 case $host_cpu in
5445 i*86 )
5446 # Not sure whether the presence of OpenBSD here was a mistake.
5447 # Let's accept both of them until this is cleared up.
5448 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5449 lt_cv_file_magic_cmd=/usr/bin/file
5450 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5451 ;;
5452 esac
5453 else
5454 lt_cv_deplibs_check_method=pass_all
5455 fi
5456 ;;
5457
5458 gnu*)
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461
5462 hpux10.20* | hpux11*)
5463 lt_cv_file_magic_cmd=/usr/bin/file
5464 case $host_cpu in
5465 ia64*)
5466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5467 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5468 ;;
5469 hppa*64*)
5470 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]'
5471 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5472 ;;
5473 *)
5474 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5475 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5476 ;;
5477 esac
5478 ;;
5479
5480 interix[3-9]*)
5481 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5483 ;;
5484
5485 irix5* | irix6* | nonstopux*)
5486 case $LD in
5487 *-32|*"-32 ") libmagic=32-bit;;
5488 *-n32|*"-n32 ") libmagic=N32;;
5489 *-64|*"-64 ") libmagic=64-bit;;
5490 *) libmagic=never-match;;
5491 esac
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
5494
5495 # This must be Linux ELF.
5496 linux* | k*bsd*-gnu)
5497 lt_cv_deplibs_check_method=pass_all
5498 ;;
5499
5500 netbsd* | netbsdelf*-gnu)
5501 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5503 else
5504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5505 fi
5506 ;;
5507
5508 newos6*)
5509 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5510 lt_cv_file_magic_cmd=/usr/bin/file
5511 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5512 ;;
5513
5514 nto-qnx*)
5515 lt_cv_deplibs_check_method=unknown
5516 ;;
5517
5518 openbsd*)
5519 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5521 else
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5523 fi
5524 ;;
5525
5526 osf3* | osf4* | osf5*)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529
5530 rdos*)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533
5534 solaris*)
5535 lt_cv_deplibs_check_method=pass_all
5536 ;;
5537
5538 sysv4 | sysv4.3*)
5539 case $host_vendor in
5540 motorola)
5541 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]'
5542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5543 ;;
5544 ncr)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547 sequent)
5548 lt_cv_file_magic_cmd='/bin/file'
5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5550 ;;
5551 sni)
5552 lt_cv_file_magic_cmd='/bin/file'
5553 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5554 lt_cv_file_magic_test_file=/lib/libc.so
5555 ;;
5556 siemens)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559 pc)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562 esac
5563 ;;
5564
5565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568 esac
5569
5570 fi
5571 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5572 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5573 file_magic_cmd=$lt_cv_file_magic_cmd
5574 deplibs_check_method=$lt_cv_deplibs_check_method
5575 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5576
5577
5578
5579
5580 # If no C compiler was specified, use CC.
5581 LTCC=${LTCC-"$CC"}
5582
5583 # If no C compiler flags were specified, use CFLAGS.
5584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5585
5586 # Allow CC to be a program name with arguments.
5587 compiler=$CC
5588
5589 # Check whether --enable-libtool-lock was given.
5590 if test "${enable_libtool_lock+set}" = set; then
5591 enableval=$enable_libtool_lock;
5592 fi
5593
5594 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5595
5596 # Some flags need to be propagated to the compiler or linker for good
5597 # libtool support.
5598 case $host in
5599 ia64-*-hpux*)
5600 # Find out which ABI we are using.
5601 echo 'int i;' > conftest.$ac_ext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; then
5607 case `/usr/bin/file conftest.$ac_objext` in
5608 *ELF-32*)
5609 HPUX_IA64_MODE="32"
5610 ;;
5611 *ELF-64*)
5612 HPUX_IA64_MODE="64"
5613 ;;
5614 esac
5615 fi
5616 rm -rf conftest*
5617 ;;
5618 *-*-irix6*)
5619 # Find out which ABI we are using.
5620 echo '#line 5620 "configure"' > conftest.$ac_ext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; then
5626 if test "$lt_cv_prog_gnu_ld" = yes; then
5627 case `/usr/bin/file conftest.$ac_objext` in
5628 *32-bit*)
5629 LD="${LD-ld} -melf32bsmip"
5630 ;;
5631 *N32*)
5632 LD="${LD-ld} -melf32bmipn32"
5633 ;;
5634 *64-bit*)
5635 LD="${LD-ld} -melf64bmip"
5636 ;;
5637 esac
5638 else
5639 case `/usr/bin/file conftest.$ac_objext` in
5640 *32-bit*)
5641 LD="${LD-ld} -32"
5642 ;;
5643 *N32*)
5644 LD="${LD-ld} -n32"
5645 ;;
5646 *64-bit*)
5647 LD="${LD-ld} -64"
5648 ;;
5649 esac
5650 fi
5651 fi
5652 rm -rf conftest*
5653 ;;
5654
5655 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5656 s390*-*linux*|sparc*-*linux*)
5657 # Find out which ABI we are using.
5658 echo 'int i;' > conftest.$ac_ext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; then
5664 case `/usr/bin/file conftest.o` in
5665 *32-bit*)
5666 case $host in
5667 x86_64-*kfreebsd*-gnu)
5668 LD="${LD-ld} -m elf_i386_fbsd"
5669 ;;
5670 x86_64-*linux*)
5671 LD="${LD-ld} -m elf_i386"
5672 ;;
5673 ppc64-*linux*|powerpc64-*linux*)
5674 LD="${LD-ld} -m elf32ppclinux"
5675 ;;
5676 s390x-*linux*)
5677 LD="${LD-ld} -m elf_s390"
5678 ;;
5679 sparc64-*linux*)
5680 LD="${LD-ld} -m elf32_sparc"
5681 ;;
5682 esac
5683 ;;
5684 *64-bit*)
5685 case $host in
5686 x86_64-*kfreebsd*-gnu)
5687 LD="${LD-ld} -m elf_x86_64_fbsd"
5688 ;;
5689 x86_64-*linux*)
5690 LD="${LD-ld} -m elf_x86_64"
5691 ;;
5692 ppc*-*linux*|powerpc*-*linux*)
5693 LD="${LD-ld} -m elf64ppc"
5694 ;;
5695 s390*-*linux*)
5696 LD="${LD-ld} -m elf64_s390"
5697 ;;
5698 sparc*-*linux*)
5699 LD="${LD-ld} -m elf64_sparc"
5700 ;;
5701 esac
5702 ;;
5703 esac
5704 fi
5705 rm -rf conftest*
5706 ;;
5707
5708 *-*-sco3.2v5*)
5709 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5710 SAVE_CFLAGS="$CFLAGS"
5711 CFLAGS="$CFLAGS -belf"
5712 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5713 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5714 if test "${lt_cv_cc_needs_belf+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 ac_ext=c
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729
5730 int
5731 main ()
5732 {
5733
5734 ;
5735 return 0;
5736 }
5737 _ACEOF
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (ac_try="$ac_link"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_link") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest$ac_exeext &&
5755 $as_test_x conftest$ac_exeext; then
5756 lt_cv_cc_needs_belf=yes
5757 else
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 lt_cv_cc_needs_belf=no
5762 fi
5763
5764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5765 conftest$ac_exeext conftest.$ac_ext
5766 ac_ext=c
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771
5772 fi
5773 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5774 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5775 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5776 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5777 CFLAGS="$SAVE_CFLAGS"
5778 fi
5779 ;;
5780 sparc*-*solaris*)
5781 # Find out which ABI we are using.
5782 echo 'int i;' > conftest.$ac_ext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; then
5788 case `/usr/bin/file conftest.o` in
5789 *64-bit*)
5790 case $lt_cv_prog_gnu_ld in
5791 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5792 *)
5793 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5794 LD="${LD-ld} -64"
5795 fi
5796 ;;
5797 esac
5798 ;;
5799 esac
5800 fi
5801 rm -rf conftest*
5802 ;;
5803
5804
5805 esac
5806
5807 need_locks="$enable_libtool_lock"
5808
5809
5810 ac_ext=c
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5817 # On Suns, sometimes $CPP names a directory.
5818 if test -n "$CPP" && test -d "$CPP"; then
5819 CPP=
5820 fi
5821 if test -z "$CPP"; then
5822 if test "${ac_cv_prog_CPP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825 # Double quotes because CPP needs to be expanded
5826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5827 do
5828 ac_preproc_ok=false
5829 for ac_c_preproc_warn_flag in '' yes
5830 do
5831 # Use a header file that comes with gcc, so configuring glibc
5832 # with a fresh cross-compiler works.
5833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834 # <limits.h> exists even on freestanding compilers.
5835 # On the NeXT, cc -E runs the code through the compiler's parser,
5836 # not just through cpp. "Syntax error" is here to catch this case.
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #ifdef __STDC__
5844 # include <limits.h>
5845 #else
5846 # include <assert.h>
5847 #endif
5848 Syntax error
5849 _ACEOF
5850 if { (ac_try="$ac_cpp conftest.$ac_ext"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev/null && {
5863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 }; then
5866 :
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 # Broken: fails on valid input.
5872 continue
5873 fi
5874
5875 rm -f conftest.err conftest.$ac_ext
5876
5877 # OK, works on sane cases. Now check whether nonexistent headers
5878 # can be detected and how.
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <ac_nonexistent.h>
5886 _ACEOF
5887 if { (ac_try="$ac_cpp conftest.$ac_ext"
5888 case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891 esac
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } >/dev/null && {
5900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 }; then
5903 # Broken: success on invalid input.
5904 continue
5905 else
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 # Passes both tests.
5910 ac_preproc_ok=:
5911 break
5912 fi
5913
5914 rm -f conftest.err conftest.$ac_ext
5915
5916 done
5917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918 rm -f conftest.err conftest.$ac_ext
5919 if $ac_preproc_ok; then
5920 break
5921 fi
5922
5923 done
5924 ac_cv_prog_CPP=$CPP
5925
5926 fi
5927 CPP=$ac_cv_prog_CPP
5928 else
5929 ac_cv_prog_CPP=$CPP
5930 fi
5931 { echo "$as_me:$LINENO: result: $CPP" >&5
5932 echo "${ECHO_T}$CPP" >&6; }
5933 ac_preproc_ok=false
5934 for ac_c_preproc_warn_flag in '' yes
5935 do
5936 # Use a header file that comes with gcc, so configuring glibc
5937 # with a fresh cross-compiler works.
5938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939 # <limits.h> exists even on freestanding compilers.
5940 # On the NeXT, cc -E runs the code through the compiler's parser,
5941 # not just through cpp. "Syntax error" is here to catch this case.
5942 cat >conftest.$ac_ext <<_ACEOF
5943 /* confdefs.h. */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5948 #ifdef __STDC__
5949 # include <limits.h>
5950 #else
5951 # include <assert.h>
5952 #endif
5953 Syntax error
5954 _ACEOF
5955 if { (ac_try="$ac_cpp conftest.$ac_ext"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 }; then
5971 :
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 # Broken: fails on valid input.
5977 continue
5978 fi
5979
5980 rm -f conftest.err conftest.$ac_ext
5981
5982 # OK, works on sane cases. Now check whether nonexistent headers
5983 # can be detected and how.
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <ac_nonexistent.h>
5991 _ACEOF
5992 if { (ac_try="$ac_cpp conftest.$ac_ext"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev/null && {
6005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 }; then
6008 # Broken: success on invalid input.
6009 continue
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 # Passes both tests.
6015 ac_preproc_ok=:
6016 break
6017 fi
6018
6019 rm -f conftest.err conftest.$ac_ext
6020
6021 done
6022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6023 rm -f conftest.err conftest.$ac_ext
6024 if $ac_preproc_ok; then
6025 :
6026 else
6027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6028 See \`config.log' for more details." >&5
6029 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6030 See \`config.log' for more details." >&2;}
6031 { (exit 1); exit 1; }; }
6032 fi
6033
6034 ac_ext=c
6035 ac_cpp='$CPP $CPPFLAGS'
6036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039
6040
6041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6043 if test "${ac_cv_header_stdc+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <stdlib.h>
6053 #include <stdarg.h>
6054 #include <string.h>
6055 #include <float.h>
6056
6057 int
6058 main ()
6059 {
6060
6061 ;
6062 return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compile") 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
6082 ac_cv_header_stdc=yes
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087 ac_cv_header_stdc=no
6088 fi
6089
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091
6092 if test $ac_cv_header_stdc = yes; then
6093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 #include <string.h>
6101
6102 _ACEOF
6103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6104 $EGREP "memchr" >/dev/null 2>&1; then
6105 :
6106 else
6107 ac_cv_header_stdc=no
6108 fi
6109 rm -f conftest*
6110
6111 fi
6112
6113 if test $ac_cv_header_stdc = yes; then
6114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h. */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 #include <stdlib.h>
6122
6123 _ACEOF
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 $EGREP "free" >/dev/null 2>&1; then
6126 :
6127 else
6128 ac_cv_header_stdc=no
6129 fi
6130 rm -f conftest*
6131
6132 fi
6133
6134 if test $ac_cv_header_stdc = yes; then
6135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6136 if test "$cross_compiling" = yes; then
6137 :
6138 else
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <ctype.h>
6146 #include <stdlib.h>
6147 #if ((' ' & 0x0FF) == 0x020)
6148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6150 #else
6151 # define ISLOWER(c) \
6152 (('a' <= (c) && (c) <= 'i') \
6153 || ('j' <= (c) && (c) <= 'r') \
6154 || ('s' <= (c) && (c) <= 'z'))
6155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6156 #endif
6157
6158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6159 int
6160 main ()
6161 {
6162 int i;
6163 for (i = 0; i < 256; i++)
6164 if (XOR (islower (i), ISLOWER (i))
6165 || toupper (i) != TOUPPER (i))
6166 return 2;
6167 return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest$ac_exeext
6171 if { (ac_try="$ac_link"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_link") 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6181 { (case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 :
6191 else
6192 echo "$as_me: program exited with status $ac_status" >&5
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ( exit $ac_status )
6197 ac_cv_header_stdc=no
6198 fi
6199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6200 fi
6201
6202
6203 fi
6204 fi
6205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6207 if test $ac_cv_header_stdc = yes; then
6208
6209 cat >>confdefs.h <<\_ACEOF
6210 #define STDC_HEADERS 1
6211 _ACEOF
6212
6213 fi
6214
6215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6226 inttypes.h stdint.h unistd.h
6227 do
6228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241
6242 #include <$ac_header>
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 eval "$as_ac_Header=yes"
6262 else
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6265
6266 eval "$as_ac_Header=no"
6267 fi
6268
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 fi
6271 ac_res=`eval echo '${'$as_ac_Header'}'`
6272 { echo "$as_me:$LINENO: result: $ac_res" >&5
6273 echo "${ECHO_T}$ac_res" >&6; }
6274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6275 cat >>confdefs.h <<_ACEOF
6276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6277 _ACEOF
6278
6279 fi
6280
6281 done
6282
6283
6284
6285 for ac_header in dlfcn.h
6286 do
6287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 fi
6294 ac_res=`eval echo '${'$as_ac_Header'}'`
6295 { echo "$as_me:$LINENO: result: $ac_res" >&5
6296 echo "${ECHO_T}$ac_res" >&6; }
6297 else
6298 # Is the header compilable?
6299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 $ac_includes_default
6308 #include <$ac_header>
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (ac_try="$ac_compile"
6312 case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_compile") 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && {
6324 test -z "$ac_c_werror_flag" ||
6325 test ! -s conftest.err
6326 } && test -s conftest.$ac_objext; then
6327 ac_header_compiler=yes
6328 else
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 ac_header_compiler=no
6333 fi
6334
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6337 echo "${ECHO_T}$ac_header_compiler" >&6; }
6338
6339 # Is the header present?
6340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 #include <$ac_header>
6349 _ACEOF
6350 if { (ac_try="$ac_cpp conftest.$ac_ext"
6351 case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } >/dev/null && {
6363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 }; then
6366 ac_header_preproc=yes
6367 else
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 ac_header_preproc=no
6372 fi
6373
6374 rm -f conftest.err conftest.$ac_ext
6375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376 echo "${ECHO_T}$ac_header_preproc" >&6; }
6377
6378 # So? What about this header?
6379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 yes:no: )
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6386 ;;
6387 no:yes:* )
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6400
6401 ;;
6402 esac
6403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408 eval "$as_ac_Header=\$ac_header_preproc"
6409 fi
6410 ac_res=`eval echo '${'$as_ac_Header'}'`
6411 { echo "$as_me:$LINENO: result: $ac_res" >&5
6412 echo "${ECHO_T}$ac_res" >&6; }
6413
6414 fi
6415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416 cat >>confdefs.h <<_ACEOF
6417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418 _ACEOF
6419
6420 fi
6421
6422 done
6423
6424 ac_ext=cpp
6425 ac_cpp='$CXXCPP $CPPFLAGS'
6426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6429 if test -z "$CXX"; then
6430 if test -n "$CCC"; then
6431 CXX=$CCC
6432 else
6433 if test -n "$ac_tool_prefix"; then
6434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6435 do
6436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_CXX+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 if test -n "$CXX"; then
6444 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 CXX=$ac_cv_prog_CXX
6464 if test -n "$CXX"; then
6465 { echo "$as_me:$LINENO: result: $CXX" >&5
6466 echo "${ECHO_T}$CXX" >&6; }
6467 else
6468 { echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6; }
6470 fi
6471
6472
6473 test -n "$CXX" && break
6474 done
6475 fi
6476 if test -z "$CXX"; then
6477 ac_ct_CXX=$CXX
6478 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6479 do
6480 # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 if test -n "$ac_ct_CXX"; then
6488 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_CXX="$ac_prog"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6500 fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6508 if test -n "$ac_ct_CXX"; then
6509 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6510 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6511 else
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6514 fi
6515
6516
6517 test -n "$ac_ct_CXX" && break
6518 done
6519
6520 if test "x$ac_ct_CXX" = x; then
6521 CXX="g++"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6526 whose name does not start with the host triplet. If you think this
6527 configuration is useful to you, please write to autoconf@gnu.org." >&5
6528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet. If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533 CXX=$ac_ct_CXX
6534 fi
6535 fi
6536
6537 fi
6538 fi
6539 # Provide some information about the compiler.
6540 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6541 ac_compiler=`set X $ac_compile; echo $2`
6542 { (ac_try="$ac_compiler --version >&5"
6543 case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compiler --version >&5") 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }
6552 { (ac_try="$ac_compiler -v >&5"
6553 case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compiler -v >&5") 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }
6562 { (ac_try="$ac_compiler -V >&5"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compiler -V >&5") 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }
6572
6573 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584
6585 int
6586 main ()
6587 {
6588 #ifndef __GNUC__
6589 choke me
6590 #endif
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (ac_try="$ac_compile"
6598 case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_cxx_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 ac_compiler_gnu=yes
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_compiler_gnu=no
6619 fi
6620
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6623
6624 fi
6625 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6626 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6627 GXX=`test $ac_compiler_gnu = yes && echo yes`
6628 ac_test_CXXFLAGS=${CXXFLAGS+set}
6629 ac_save_CXXFLAGS=$CXXFLAGS
6630 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6631 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6632 if test "${ac_cv_prog_cxx_g+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6636 ac_cxx_werror_flag=yes
6637 ac_cv_prog_cxx_g=no
6638 CXXFLAGS="-g"
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645
6646 int
6647 main ()
6648 {
6649
6650 ;
6651 return 0;
6652 }
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (ac_try="$ac_compile"
6656 case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659 esac
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_cxx_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_prog_cxx_g=yes
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6675
6676 CXXFLAGS=""
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683
6684 int
6685 main ()
6686 {
6687
6688 ;
6689 return 0;
6690 }
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6694 case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697 esac
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_compile") 2>conftest.er1
6700 ac_status=$?
6701 grep -v '^ *+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_cxx_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest.$ac_objext; then
6709 :
6710 else
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6715 CXXFLAGS="-g"
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722
6723 int
6724 main ()
6725 {
6726
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext
6732 if { (ac_try="$ac_compile"
6733 case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736 esac
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_cxx_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_cv_prog_cxx_g=yes
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753
6754 fi
6755
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 fi
6758
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 fi
6761
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6764 fi
6765 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6766 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6767 if test "$ac_test_CXXFLAGS" = set; then
6768 CXXFLAGS=$ac_save_CXXFLAGS
6769 elif test $ac_cv_prog_cxx_g = yes; then
6770 if test "$GXX" = yes; then
6771 CXXFLAGS="-g -O2"
6772 else
6773 CXXFLAGS="-g"
6774 fi
6775 else
6776 if test "$GXX" = yes; then
6777 CXXFLAGS="-O2"
6778 else
6779 CXXFLAGS=
6780 fi
6781 fi
6782 ac_ext=cpp
6783 ac_cpp='$CXXCPP $CPPFLAGS'
6784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6787
6788 depcc="$CXX" am_compiler_list=
6789
6790 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6792 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6796 # We make a subdir and do the tests there. Otherwise we can end up
6797 # making bogus files that we don't know about and never remove. For
6798 # instance it was reported that on HP-UX the gcc test will end up
6799 # making a dummy file named `D' -- because `-MD' means `put the output
6800 # in D'.
6801 mkdir conftest.dir
6802 # Copy depcomp to subdir because otherwise we won't find it if we're
6803 # using a relative directory.
6804 cp "$am_depcomp" conftest.dir
6805 cd conftest.dir
6806 # We will build objects and dependencies in a subdirectory because
6807 # it helps to detect inapplicable dependency modes. For instance
6808 # both Tru64's cc and ICC support -MD to output dependencies as a
6809 # side effect of compilation, but ICC will put the dependencies in
6810 # the current directory while Tru64 will put them in the object
6811 # directory.
6812 mkdir sub
6813
6814 am_cv_CXX_dependencies_compiler_type=none
6815 if test "$am_compiler_list" = ""; then
6816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6817 fi
6818 for depmode in $am_compiler_list; do
6819 # Setup a source with many dependencies, because some compilers
6820 # like to wrap large dependency lists on column 80 (with \), and
6821 # we should not choose a depcomp mode which is confused by this.
6822 #
6823 # We need to recreate these files for each test, as the compiler may
6824 # overwrite some of them when testing with obscure command lines.
6825 # This happens at least with the AIX C compiler.
6826 : > sub/conftest.c
6827 for i in 1 2 3 4 5 6; do
6828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6830 # Solaris 8's {/usr,}/bin/sh.
6831 touch sub/conftst$i.h
6832 done
6833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6834
6835 case $depmode in
6836 nosideeffect)
6837 # after this tag, mechanisms are not by side-effect, so they'll
6838 # only be used when explicitly requested
6839 if test "x$enable_dependency_tracking" = xyes; then
6840 continue
6841 else
6842 break
6843 fi
6844 ;;
6845 none) break ;;
6846 esac
6847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6848 # mode. It turns out that the SunPro C++ compiler does not properly
6849 # handle `-M -o', and we need to detect this.
6850 if depmode=$depmode \
6851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6854 >/dev/null 2>conftest.err &&
6855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6857 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6859 # icc doesn't choke on unknown options, it will just issue warnings
6860 # or remarks (even with -Werror). So we grep stderr for any message
6861 # that says an option was ignored or not supported.
6862 # When given -MP, icc 7.0 and 7.1 complain thusly:
6863 # icc: Command line warning: ignoring option '-M'; no argument required
6864 # The diagnosis changed in icc 8.0:
6865 # icc: Command line remark: option '-MP' not supported
6866 if (grep 'ignoring option' conftest.err ||
6867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6868 am_cv_CXX_dependencies_compiler_type=$depmode
6869 break
6870 fi
6871 fi
6872 done
6873
6874 cd ..
6875 rm -rf conftest.dir
6876 else
6877 am_cv_CXX_dependencies_compiler_type=none
6878 fi
6879
6880 fi
6881 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6882 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6883 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6884
6885 if
6886 test "x$enable_dependency_tracking" != xno \
6887 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6888 am__fastdepCXX_TRUE=
6889 am__fastdepCXX_FALSE='#'
6890 else
6891 am__fastdepCXX_TRUE='#'
6892 am__fastdepCXX_FALSE=
6893 fi
6894
6895
6896
6897
6898 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6899 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6900 (test "X$CXX" != "Xg++"))) ; then
6901 ac_ext=cpp
6902 ac_cpp='$CXXCPP $CPPFLAGS'
6903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6906 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6907 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6908 if test -z "$CXXCPP"; then
6909 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912 # Double quotes because CXXCPP needs to be expanded
6913 for CXXCPP in "$CXX -E" "/lib/cpp"
6914 do
6915 ac_preproc_ok=false
6916 for ac_cxx_preproc_warn_flag in '' yes
6917 do
6918 # Use a header file that comes with gcc, so configuring glibc
6919 # with a fresh cross-compiler works.
6920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 # <limits.h> exists even on freestanding compilers.
6922 # On the NeXT, cc -E runs the code through the compiler's parser,
6923 # not just through cpp. "Syntax error" is here to catch this case.
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 #ifdef __STDC__
6931 # include <limits.h>
6932 #else
6933 # include <assert.h>
6934 #endif
6935 Syntax error
6936 _ACEOF
6937 if { (ac_try="$ac_cpp conftest.$ac_ext"
6938 case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941 esac
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } >/dev/null && {
6950 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6951 test ! -s conftest.err
6952 }; then
6953 :
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 # Broken: fails on valid input.
6959 continue
6960 fi
6961
6962 rm -f conftest.err conftest.$ac_ext
6963
6964 # OK, works on sane cases. Now check whether nonexistent headers
6965 # can be detected and how.
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <ac_nonexistent.h>
6973 _ACEOF
6974 if { (ac_try="$ac_cpp conftest.$ac_ext"
6975 case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978 esac
6979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } >/dev/null && {
6987 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6988 test ! -s conftest.err
6989 }; then
6990 # Broken: success on invalid input.
6991 continue
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 # Passes both tests.
6997 ac_preproc_ok=:
6998 break
6999 fi
7000
7001 rm -f conftest.err conftest.$ac_ext
7002
7003 done
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.err conftest.$ac_ext
7006 if $ac_preproc_ok; then
7007 break
7008 fi
7009
7010 done
7011 ac_cv_prog_CXXCPP=$CXXCPP
7012
7013 fi
7014 CXXCPP=$ac_cv_prog_CXXCPP
7015 else
7016 ac_cv_prog_CXXCPP=$CXXCPP
7017 fi
7018 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7019 echo "${ECHO_T}$CXXCPP" >&6; }
7020 ac_preproc_ok=false
7021 for ac_cxx_preproc_warn_flag in '' yes
7022 do
7023 # Use a header file that comes with gcc, so configuring glibc
7024 # with a fresh cross-compiler works.
7025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 # <limits.h> exists even on freestanding compilers.
7027 # On the NeXT, cc -E runs the code through the compiler's parser,
7028 # not just through cpp. "Syntax error" is here to catch this case.
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7040 Syntax error
7041 _ACEOF
7042 if { (ac_try="$ac_cpp conftest.$ac_ext"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7056 test ! -s conftest.err
7057 }; then
7058 :
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 # Broken: fails on valid input.
7064 continue
7065 fi
7066
7067 rm -f conftest.err conftest.$ac_ext
7068
7069 # OK, works on sane cases. Now check whether nonexistent headers
7070 # can be detected and how.
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 #include <ac_nonexistent.h>
7078 _ACEOF
7079 if { (ac_try="$ac_cpp conftest.$ac_ext"
7080 case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083 esac
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } >/dev/null && {
7092 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7093 test ! -s conftest.err
7094 }; then
7095 # Broken: success on invalid input.
7096 continue
7097 else
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101 # Passes both tests.
7102 ac_preproc_ok=:
7103 break
7104 fi
7105
7106 rm -f conftest.err conftest.$ac_ext
7107
7108 done
7109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7110 rm -f conftest.err conftest.$ac_ext
7111 if $ac_preproc_ok; then
7112 :
7113 else
7114 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7115 See \`config.log' for more details." >&5
7116 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7117 See \`config.log' for more details." >&2;}
7118 { (exit 1); exit 1; }; }
7119 fi
7120
7121 ac_ext=cpp
7122 ac_cpp='$CXXCPP $CPPFLAGS'
7123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7126
7127 fi
7128
7129
7130 ac_ext=f
7131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7134 if test -n "$ac_tool_prefix"; then
7135 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
7136 do
7137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_prog_F77+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 if test -n "$F77"; then
7145 ac_cv_prog_F77="$F77" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 F77=$ac_cv_prog_F77
7165 if test -n "$F77"; then
7166 { echo "$as_me:$LINENO: result: $F77" >&5
7167 echo "${ECHO_T}$F77" >&6; }
7168 else
7169 { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7171 fi
7172
7173
7174 test -n "$F77" && break
7175 done
7176 fi
7177 if test -z "$F77"; then
7178 ac_ct_F77=$F77
7179 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
7180 do
7181 # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy $ac_prog; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 if test -n "$ac_ct_F77"; then
7189 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_ac_ct_F77="$ac_prog"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7209 if test -n "$ac_ct_F77"; then
7210 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7211 echo "${ECHO_T}$ac_ct_F77" >&6; }
7212 else
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217
7218 test -n "$ac_ct_F77" && break
7219 done
7220
7221 if test "x$ac_ct_F77" = x; then
7222 F77=""
7223 else
7224 case $cross_compiling:$ac_tool_warned in
7225 yes:)
7226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7227 whose name does not start with the host triplet. If you think this
7228 configuration is useful to you, please write to autoconf@gnu.org." >&5
7229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7230 whose name does not start with the host triplet. If you think this
7231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7232 ac_tool_warned=yes ;;
7233 esac
7234 F77=$ac_ct_F77
7235 fi
7236 fi
7237
7238
7239 # Provide some information about the compiler.
7240 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7241 ac_compiler=`set X $ac_compile; echo $2`
7242 { (ac_try="$ac_compiler --version >&5"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compiler --version >&5") 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }
7252 { (ac_try="$ac_compiler -v >&5"
7253 case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256 esac
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compiler -v >&5") 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }
7262 { (ac_try="$ac_compiler -V >&5"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compiler -V >&5") 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }
7272 rm -f a.out
7273
7274 # If we don't use `.F' as extension, the preprocessor is not run on the
7275 # input file. (Note that this only needs to work for GNU compilers.)
7276 ac_save_ext=$ac_ext
7277 ac_ext=F
7278 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7279 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7280 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 cat >conftest.$ac_ext <<_ACEOF
7284 program main
7285 #ifndef __GNUC__
7286 choke me
7287 #endif
7288
7289 end
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_f77_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 ac_compiler_gnu=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_compiler_gnu=no
7314 fi
7315
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7318
7319 fi
7320 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7321 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7322 ac_ext=$ac_save_ext
7323 ac_test_FFLAGS=${FFLAGS+set}
7324 ac_save_FFLAGS=$FFLAGS
7325 FFLAGS=
7326 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7327 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7328 if test "${ac_cv_prog_f77_g+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 FFLAGS=-g
7332 cat >conftest.$ac_ext <<_ACEOF
7333 program main
7334
7335 end
7336 _ACEOF
7337 rm -f conftest.$ac_objext
7338 if { (ac_try="$ac_compile"
7339 case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_compile") 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_f77_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest.$ac_objext; then
7354 ac_cv_prog_f77_g=yes
7355 else
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 ac_cv_prog_f77_g=no
7360 fi
7361
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363
7364 fi
7365 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7366 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7367 if test "$ac_test_FFLAGS" = set; then
7368 FFLAGS=$ac_save_FFLAGS
7369 elif test $ac_cv_prog_f77_g = yes; then
7370 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7371 FFLAGS="-g -O2"
7372 else
7373 FFLAGS="-g"
7374 fi
7375 else
7376 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7377 FFLAGS="-O2"
7378 else
7379 FFLAGS=
7380 fi
7381 fi
7382
7383 G77=`test $ac_compiler_gnu = yes && echo yes`
7384 ac_ext=c
7385 ac_cpp='$CPP $CPPFLAGS'
7386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389
7390
7391
7392 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7393 # find the maximum length of command line arguments
7394 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7395 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7396 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399 i=0
7400 teststring="ABCD"
7401
7402 case $build_os in
7403 msdosdjgpp*)
7404 # On DJGPP, this test can blow up pretty badly due to problems in libc
7405 # (any single argument exceeding 2000 bytes causes a buffer overrun
7406 # during glob expansion). Even if it were fixed, the result of this
7407 # check would be larger than it should be.
7408 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7409 ;;
7410
7411 gnu*)
7412 # Under GNU Hurd, this test is not required because there is
7413 # no limit to the length of command line arguments.
7414 # Libtool will interpret -1 as no limit whatsoever
7415 lt_cv_sys_max_cmd_len=-1;
7416 ;;
7417
7418 cygwin* | mingw*)
7419 # On Win9x/ME, this test blows up -- it succeeds, but takes
7420 # about 5 minutes as the teststring grows exponentially.
7421 # Worse, since 9x/ME are not pre-emptively multitasking,
7422 # you end up with a "frozen" computer, even though with patience
7423 # the test eventually succeeds (with a max line length of 256k).
7424 # Instead, let's just punt: use the minimum linelength reported by
7425 # all of the supported platforms: 8192 (on NT/2K/XP).
7426 lt_cv_sys_max_cmd_len=8192;
7427 ;;
7428
7429 amigaos*)
7430 # On AmigaOS with pdksh, this test takes hours, literally.
7431 # So we just punt and use a minimum line length of 8192.
7432 lt_cv_sys_max_cmd_len=8192;
7433 ;;
7434
7435 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7436 # This has been around since 386BSD, at least. Likely further.
7437 if test -x /sbin/sysctl; then
7438 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7439 elif test -x /usr/sbin/sysctl; then
7440 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7441 else
7442 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7443 fi
7444 # And add a safety zone
7445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7447 ;;
7448
7449 interix*)
7450 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7451 lt_cv_sys_max_cmd_len=196608
7452 ;;
7453
7454 osf*)
7455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7457 # nice to cause kernel panics so lets avoid the loop below.
7458 # First set a reasonable default.
7459 lt_cv_sys_max_cmd_len=16384
7460 #
7461 if test -x /sbin/sysconfig; then
7462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7463 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7464 esac
7465 fi
7466 ;;
7467 sco3.2v5*)
7468 lt_cv_sys_max_cmd_len=102400
7469 ;;
7470 sysv5* | sco5v6* | sysv4.2uw2*)
7471 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7472 if test -n "$kargmax"; then
7473 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7474 else
7475 lt_cv_sys_max_cmd_len=32768
7476 fi
7477 ;;
7478 *)
7479 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7480 if test -n "$lt_cv_sys_max_cmd_len"; then
7481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7483 else
7484 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7485 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7486 = "XX$teststring") >/dev/null 2>&1 &&
7487 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7488 lt_cv_sys_max_cmd_len=$new_result &&
7489 test $i != 17 # 1/2 MB should be enough
7490 do
7491 i=`expr $i + 1`
7492 teststring=$teststring$teststring
7493 done
7494 teststring=
7495 # Add a significant safety factor because C++ compilers can tack on massive
7496 # amounts of additional arguments before passing them to the linker.
7497 # It appears as though 1/2 is a usable value.
7498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7499 fi
7500 ;;
7501 esac
7502
7503 fi
7504
7505 if test -n $lt_cv_sys_max_cmd_len ; then
7506 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7507 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7508 else
7509 { echo "$as_me:$LINENO: result: none" >&5
7510 echo "${ECHO_T}none" >&6; }
7511 fi
7512
7513
7514
7515
7516
7517 # Check for command to grab the raw symbol name followed by C symbol from nm.
7518 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7519 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7520 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523
7524 # These are sane defaults that work on at least a few old systems.
7525 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7526
7527 # Character class describing NM global symbol codes.
7528 symcode='[BCDEGRST]'
7529
7530 # Regexp to match symbols that can be accessed directly from C.
7531 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7532
7533 # Transform an extracted symbol line into a proper C declaration
7534 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7535
7536 # Transform an extracted symbol line into symbol name and symbol address
7537 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'"
7538
7539 # Define system-specific variables.
7540 case $host_os in
7541 aix*)
7542 symcode='[BCDT]'
7543 ;;
7544 cygwin* | mingw* | pw32*)
7545 symcode='[ABCDGISTW]'
7546 ;;
7547 hpux*) # Its linker distinguishes data from code symbols
7548 if test "$host_cpu" = ia64; then
7549 symcode='[ABCDEGRST]'
7550 fi
7551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7552 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'"
7553 ;;
7554 linux* | k*bsd*-gnu)
7555 if test "$host_cpu" = ia64; then
7556 symcode='[ABCDGIRSTW]'
7557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7558 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'"
7559 fi
7560 ;;
7561 irix* | nonstopux*)
7562 symcode='[BCDEGRST]'
7563 ;;
7564 osf*)
7565 symcode='[BCDEGQRST]'
7566 ;;
7567 solaris*)
7568 symcode='[BDRT]'
7569 ;;
7570 sco3.2v5*)
7571 symcode='[DT]'
7572 ;;
7573 sysv4.2uw2*)
7574 symcode='[DT]'
7575 ;;
7576 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7577 symcode='[ABDT]'
7578 ;;
7579 sysv4)
7580 symcode='[DFNSTU]'
7581 ;;
7582 esac
7583
7584 # Handle CRLF in mingw tool chain
7585 opt_cr=
7586 case $build_os in
7587 mingw*)
7588 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7589 ;;
7590 esac
7591
7592 # If we're using GNU nm, then use its standard symbol codes.
7593 case `$NM -V 2>&1` in
7594 *GNU* | *'with BFD'*)
7595 symcode='[ABCDGIRSTW]' ;;
7596 esac
7597
7598 # Try without a prefix undercore, then with it.
7599 for ac_symprfx in "" "_"; do
7600
7601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7602 symxfrm="\\1 $ac_symprfx\\2 \\2"
7603
7604 # Write the raw and C identifiers.
7605 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7606
7607 # Check to see that the pipe works correctly.
7608 pipe_works=no
7609
7610 rm -f conftest*
7611 cat > conftest.$ac_ext <<EOF
7612 #ifdef __cplusplus
7613 extern "C" {
7614 #endif
7615 char nm_test_var;
7616 void nm_test_func(){}
7617 #ifdef __cplusplus
7618 }
7619 #endif
7620 int main(){nm_test_var='a';nm_test_func();return(0);}
7621 EOF
7622
7623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624 (eval $ac_compile) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; then
7628 # Now try to grab the symbols.
7629 nlist=conftest.nm
7630 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7631 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && test -s "$nlist"; then
7635 # Try sorting and uniquifying the output.
7636 if sort "$nlist" | uniq > "$nlist"T; then
7637 mv -f "$nlist"T "$nlist"
7638 else
7639 rm -f "$nlist"T
7640 fi
7641
7642 # Make sure that we snagged all the symbols we need.
7643 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7644 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7645 cat <<EOF > conftest.$ac_ext
7646 #ifdef __cplusplus
7647 extern "C" {
7648 #endif
7649
7650 EOF
7651 # Now generate the symbol file.
7652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7653
7654 cat <<EOF >> conftest.$ac_ext
7655 #if defined (__STDC__) && __STDC__
7656 # define lt_ptr_t void *
7657 #else
7658 # define lt_ptr_t char *
7659 # define const
7660 #endif
7661
7662 /* The mapping between symbol names and symbols. */
7663 const struct {
7664 const char *name;
7665 lt_ptr_t address;
7666 }
7667 lt_preloaded_symbols[] =
7668 {
7669 EOF
7670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7671 cat <<\EOF >> conftest.$ac_ext
7672 {0, (lt_ptr_t) 0}
7673 };
7674
7675 #ifdef __cplusplus
7676 }
7677 #endif
7678 EOF
7679 # Now try linking the two files.
7680 mv conftest.$ac_objext conftstm.$ac_objext
7681 lt_save_LIBS="$LIBS"
7682 lt_save_CFLAGS="$CFLAGS"
7683 LIBS="conftstm.$ac_objext"
7684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7690 pipe_works=yes
7691 fi
7692 LIBS="$lt_save_LIBS"
7693 CFLAGS="$lt_save_CFLAGS"
7694 else
7695 echo "cannot find nm_test_func in $nlist" >&5
7696 fi
7697 else
7698 echo "cannot find nm_test_var in $nlist" >&5
7699 fi
7700 else
7701 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7702 fi
7703 else
7704 echo "$progname: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7706 fi
7707 rm -rf conftest* conftst*
7708
7709 # Do not use the global_symbol_pipe unless it works.
7710 if test "$pipe_works" = yes; then
7711 break
7712 else
7713 lt_cv_sys_global_symbol_pipe=
7714 fi
7715 done
7716
7717 fi
7718
7719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7720 lt_cv_sys_global_symbol_to_cdecl=
7721 fi
7722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7723 { echo "$as_me:$LINENO: result: failed" >&5
7724 echo "${ECHO_T}failed" >&6; }
7725 else
7726 { echo "$as_me:$LINENO: result: ok" >&5
7727 echo "${ECHO_T}ok" >&6; }
7728 fi
7729
7730 { echo "$as_me:$LINENO: checking for objdir" >&5
7731 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7732 if test "${lt_cv_objdir+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 rm -f .libs 2>/dev/null
7736 mkdir .libs 2>/dev/null
7737 if test -d .libs; then
7738 lt_cv_objdir=.libs
7739 else
7740 # MS-DOS does not allow filenames that begin with a dot.
7741 lt_cv_objdir=_libs
7742 fi
7743 rmdir .libs 2>/dev/null
7744 fi
7745 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7746 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7747 objdir=$lt_cv_objdir
7748
7749
7750
7751
7752
7753 case $host_os in
7754 aix3*)
7755 # AIX sometimes has problems with the GCC collect2 program. For some
7756 # reason, if we set the COLLECT_NAMES environment variable, the problems
7757 # vanish in a puff of smoke.
7758 if test "X${COLLECT_NAMES+set}" != Xset; then
7759 COLLECT_NAMES=
7760 export COLLECT_NAMES
7761 fi
7762 ;;
7763 esac
7764
7765 # Sed substitution that helps us do robust quoting. It backslashifies
7766 # metacharacters that are still active within double-quoted strings.
7767 Xsed='sed -e 1s/^X//'
7768 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7769
7770 # Same as above, but do not quote variable references.
7771 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7772
7773 # Sed substitution to delay expansion of an escaped shell variable in a
7774 # double_quote_subst'ed string.
7775 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7776
7777 # Sed substitution to avoid accidental globbing in evaled expressions
7778 no_glob_subst='s/\*/\\\*/g'
7779
7780 # Constants:
7781 rm="rm -f"
7782
7783 # Global variables:
7784 default_ofile=libtool
7785 can_build_shared=yes
7786
7787 # All known linkers require a `.a' archive for static linking (except MSVC,
7788 # which needs '.lib').
7789 libext=a
7790 ltmain="$ac_aux_dir/ltmain.sh"
7791 ofile="$default_ofile"
7792 with_gnu_ld="$lt_cv_prog_gnu_ld"
7793
7794 if test -n "$ac_tool_prefix"; then
7795 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7796 set dummy ${ac_tool_prefix}ar; ac_word=$2
7797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7799 if test "${ac_cv_prog_AR+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 if test -n "$AR"; then
7803 ac_cv_prog_AR="$AR" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_AR="${ac_tool_prefix}ar"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820 fi
7821 fi
7822 AR=$ac_cv_prog_AR
7823 if test -n "$AR"; then
7824 { echo "$as_me:$LINENO: result: $AR" >&5
7825 echo "${ECHO_T}$AR" >&6; }
7826 else
7827 { echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6; }
7829 fi
7830
7831
7832 fi
7833 if test -z "$ac_cv_prog_AR"; then
7834 ac_ct_AR=$AR
7835 # Extract the first word of "ar", so it can be a program name with args.
7836 set dummy ar; ac_word=$2
7837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7839 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 if test -n "$ac_ct_AR"; then
7843 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_prog_ac_ct_AR="ar"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856 done
7857 done
7858 IFS=$as_save_IFS
7859
7860 fi
7861 fi
7862 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7863 if test -n "$ac_ct_AR"; then
7864 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7865 echo "${ECHO_T}$ac_ct_AR" >&6; }
7866 else
7867 { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7869 fi
7870
7871 if test "x$ac_ct_AR" = x; then
7872 AR="false"
7873 else
7874 case $cross_compiling:$ac_tool_warned in
7875 yes:)
7876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7877 whose name does not start with the host triplet. If you think this
7878 configuration is useful to you, please write to autoconf@gnu.org." >&5
7879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7880 whose name does not start with the host triplet. If you think this
7881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7882 ac_tool_warned=yes ;;
7883 esac
7884 AR=$ac_ct_AR
7885 fi
7886 else
7887 AR="$ac_cv_prog_AR"
7888 fi
7889
7890 if test -n "$ac_tool_prefix"; then
7891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7892 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7895 if test "${ac_cv_prog_RANLIB+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898 if test -n "$RANLIB"; then
7899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7903 do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912 done
7913 done
7914 IFS=$as_save_IFS
7915
7916 fi
7917 fi
7918 RANLIB=$ac_cv_prog_RANLIB
7919 if test -n "$RANLIB"; then
7920 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7921 echo "${ECHO_T}$RANLIB" >&6; }
7922 else
7923 { echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6; }
7925 fi
7926
7927
7928 fi
7929 if test -z "$ac_cv_prog_RANLIB"; then
7930 ac_ct_RANLIB=$RANLIB
7931 # Extract the first word of "ranlib", so it can be a program name with args.
7932 set dummy ranlib; ac_word=$2
7933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7935 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 if test -n "$ac_ct_RANLIB"; then
7939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_ac_ct_RANLIB="ranlib"
7949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7951 fi
7952 done
7953 done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7959 if test -n "$ac_ct_RANLIB"; then
7960 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7961 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7962 else
7963 { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7965 fi
7966
7967 if test "x$ac_ct_RANLIB" = x; then
7968 RANLIB=":"
7969 else
7970 case $cross_compiling:$ac_tool_warned in
7971 yes:)
7972 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7973 whose name does not start with the host triplet. If you think this
7974 configuration is useful to you, please write to autoconf@gnu.org." >&5
7975 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7976 whose name does not start with the host triplet. If you think this
7977 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7978 ac_tool_warned=yes ;;
7979 esac
7980 RANLIB=$ac_ct_RANLIB
7981 fi
7982 else
7983 RANLIB="$ac_cv_prog_RANLIB"
7984 fi
7985
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}strip; ac_word=$2
7989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991 if test "${ac_cv_prog_STRIP+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994 if test -n "$STRIP"; then
7995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008 done
8009 done
8010 IFS=$as_save_IFS
8011
8012 fi
8013 fi
8014 STRIP=$ac_cv_prog_STRIP
8015 if test -n "$STRIP"; then
8016 { echo "$as_me:$LINENO: result: $STRIP" >&5
8017 echo "${ECHO_T}$STRIP" >&6; }
8018 else
8019 { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8021 fi
8022
8023
8024 fi
8025 if test -z "$ac_cv_prog_STRIP"; then
8026 ac_ct_STRIP=$STRIP
8027 # Extract the first word of "strip", so it can be a program name with args.
8028 set dummy strip; ac_word=$2
8029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8031 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034 if test -n "$ac_ct_STRIP"; then
8035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_prog_ac_ct_STRIP="strip"
8045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8055 if test -n "$ac_ct_STRIP"; then
8056 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8057 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8058 else
8059 { echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6; }
8061 fi
8062
8063 if test "x$ac_ct_STRIP" = x; then
8064 STRIP=":"
8065 else
8066 case $cross_compiling:$ac_tool_warned in
8067 yes:)
8068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8069 whose name does not start with the host triplet. If you think this
8070 configuration is useful to you, please write to autoconf@gnu.org." >&5
8071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8072 whose name does not start with the host triplet. If you think this
8073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076 STRIP=$ac_ct_STRIP
8077 fi
8078 else
8079 STRIP="$ac_cv_prog_STRIP"
8080 fi
8081
8082
8083 old_CC="$CC"
8084 old_CFLAGS="$CFLAGS"
8085
8086 # Set sane defaults for various variables
8087 test -z "$AR" && AR=ar
8088 test -z "$AR_FLAGS" && AR_FLAGS=cru
8089 test -z "$AS" && AS=as
8090 test -z "$CC" && CC=cc
8091 test -z "$LTCC" && LTCC=$CC
8092 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8093 test -z "$DLLTOOL" && DLLTOOL=dlltool
8094 test -z "$LD" && LD=ld
8095 test -z "$LN_S" && LN_S="ln -s"
8096 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8097 test -z "$NM" && NM=nm
8098 test -z "$SED" && SED=sed
8099 test -z "$OBJDUMP" && OBJDUMP=objdump
8100 test -z "$RANLIB" && RANLIB=:
8101 test -z "$STRIP" && STRIP=:
8102 test -z "$ac_objext" && ac_objext=o
8103
8104 # Determine commands to create old-style static archives.
8105 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8106 old_postinstall_cmds='chmod 644 $oldlib'
8107 old_postuninstall_cmds=
8108
8109 if test -n "$RANLIB"; then
8110 case $host_os in
8111 openbsd*)
8112 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8113 ;;
8114 *)
8115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8116 ;;
8117 esac
8118 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8119 fi
8120
8121 for cc_temp in $compiler""; do
8122 case $cc_temp in
8123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8125 \-*) ;;
8126 *) break;;
8127 esac
8128 done
8129 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8130
8131
8132 # Only perform the check for file, if the check method requires it
8133 case $deplibs_check_method in
8134 file_magic*)
8135 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8136 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8137 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8138 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 case $MAGIC_CMD in
8142 [\\/*] | ?:[\\/]*)
8143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8144 ;;
8145 *)
8146 lt_save_MAGIC_CMD="$MAGIC_CMD"
8147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8148 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8149 for ac_dir in $ac_dummy; do
8150 IFS="$lt_save_ifs"
8151 test -z "$ac_dir" && ac_dir=.
8152 if test -f $ac_dir/${ac_tool_prefix}file; then
8153 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8154 if test -n "$file_magic_test_file"; then
8155 case $deplibs_check_method in
8156 "file_magic "*)
8157 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8160 $EGREP "$file_magic_regex" > /dev/null; then
8161 :
8162 else
8163 cat <<EOF 1>&2
8164
8165 *** Warning: the command libtool uses to detect shared libraries,
8166 *** $file_magic_cmd, produces output that libtool cannot recognize.
8167 *** The result is that libtool may fail to recognize shared libraries
8168 *** as such. This will affect the creation of libtool libraries that
8169 *** depend on shared libraries, but programs linked with such libtool
8170 *** libraries will work regardless of this problem. Nevertheless, you
8171 *** may want to report the problem to your system manager and/or to
8172 *** bug-libtool@gnu.org
8173
8174 EOF
8175 fi ;;
8176 esac
8177 fi
8178 break
8179 fi
8180 done
8181 IFS="$lt_save_ifs"
8182 MAGIC_CMD="$lt_save_MAGIC_CMD"
8183 ;;
8184 esac
8185 fi
8186
8187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188 if test -n "$MAGIC_CMD"; then
8189 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8190 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8191 else
8192 { echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6; }
8194 fi
8195
8196 if test -z "$lt_cv_path_MAGIC_CMD"; then
8197 if test -n "$ac_tool_prefix"; then
8198 { echo "$as_me:$LINENO: checking for file" >&5
8199 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8200 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203 case $MAGIC_CMD in
8204 [\\/*] | ?:[\\/]*)
8205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8206 ;;
8207 *)
8208 lt_save_MAGIC_CMD="$MAGIC_CMD"
8209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8211 for ac_dir in $ac_dummy; do
8212 IFS="$lt_save_ifs"
8213 test -z "$ac_dir" && ac_dir=.
8214 if test -f $ac_dir/file; then
8215 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8216 if test -n "$file_magic_test_file"; then
8217 case $deplibs_check_method in
8218 "file_magic "*)
8219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8222 $EGREP "$file_magic_regex" > /dev/null; then
8223 :
8224 else
8225 cat <<EOF 1>&2
8226
8227 *** Warning: the command libtool uses to detect shared libraries,
8228 *** $file_magic_cmd, produces output that libtool cannot recognize.
8229 *** The result is that libtool may fail to recognize shared libraries
8230 *** as such. This will affect the creation of libtool libraries that
8231 *** depend on shared libraries, but programs linked with such libtool
8232 *** libraries will work regardless of this problem. Nevertheless, you
8233 *** may want to report the problem to your system manager and/or to
8234 *** bug-libtool@gnu.org
8235
8236 EOF
8237 fi ;;
8238 esac
8239 fi
8240 break
8241 fi
8242 done
8243 IFS="$lt_save_ifs"
8244 MAGIC_CMD="$lt_save_MAGIC_CMD"
8245 ;;
8246 esac
8247 fi
8248
8249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8250 if test -n "$MAGIC_CMD"; then
8251 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8252 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8253 else
8254 { echo "$as_me:$LINENO: result: no" >&5
8255 echo "${ECHO_T}no" >&6; }
8256 fi
8257
8258 else
8259 MAGIC_CMD=:
8260 fi
8261 fi
8262
8263 fi
8264 ;;
8265 esac
8266
8267
8268 case $host_os in
8269 rhapsody* | darwin*)
8270 if test -n "$ac_tool_prefix"; then
8271 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8272 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8275 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278 if test -n "$DSYMUTIL"; then
8279 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292 done
8293 done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8299 if test -n "$DSYMUTIL"; then
8300 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8301 echo "${ECHO_T}$DSYMUTIL" >&6; }
8302 else
8303 { echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6; }
8305 fi
8306
8307
8308 fi
8309 if test -z "$ac_cv_prog_DSYMUTIL"; then
8310 ac_ct_DSYMUTIL=$DSYMUTIL
8311 # Extract the first word of "dsymutil", so it can be a program name with args.
8312 set dummy dsymutil; ac_word=$2
8313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8315 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 if test -n "$ac_ct_DSYMUTIL"; then
8319 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332 done
8333 done
8334 IFS=$as_save_IFS
8335
8336 fi
8337 fi
8338 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8339 if test -n "$ac_ct_DSYMUTIL"; then
8340 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8341 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8342 else
8343 { echo "$as_me:$LINENO: result: no" >&5
8344 echo "${ECHO_T}no" >&6; }
8345 fi
8346
8347 if test "x$ac_ct_DSYMUTIL" = x; then
8348 DSYMUTIL=":"
8349 else
8350 case $cross_compiling:$ac_tool_warned in
8351 yes:)
8352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8353 whose name does not start with the host triplet. If you think this
8354 configuration is useful to you, please write to autoconf@gnu.org." >&5
8355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8356 whose name does not start with the host triplet. If you think this
8357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8358 ac_tool_warned=yes ;;
8359 esac
8360 DSYMUTIL=$ac_ct_DSYMUTIL
8361 fi
8362 else
8363 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8364 fi
8365
8366 if test -n "$ac_tool_prefix"; then
8367 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8368 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 if test -n "$NMEDIT"; then
8375 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 break 2
8387 fi
8388 done
8389 done
8390 IFS=$as_save_IFS
8391
8392 fi
8393 fi
8394 NMEDIT=$ac_cv_prog_NMEDIT
8395 if test -n "$NMEDIT"; then
8396 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8397 echo "${ECHO_T}$NMEDIT" >&6; }
8398 else
8399 { echo "$as_me:$LINENO: result: no" >&5
8400 echo "${ECHO_T}no" >&6; }
8401 fi
8402
8403
8404 fi
8405 if test -z "$ac_cv_prog_NMEDIT"; then
8406 ac_ct_NMEDIT=$NMEDIT
8407 # Extract the first word of "nmedit", so it can be a program name with args.
8408 set dummy nmedit; ac_word=$2
8409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 if test -n "$ac_ct_NMEDIT"; then
8415 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8427 fi
8428 done
8429 done
8430 IFS=$as_save_IFS
8431
8432 fi
8433 fi
8434 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8435 if test -n "$ac_ct_NMEDIT"; then
8436 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8437 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8438 else
8439 { echo "$as_me:$LINENO: result: no" >&5
8440 echo "${ECHO_T}no" >&6; }
8441 fi
8442
8443 if test "x$ac_ct_NMEDIT" = x; then
8444 NMEDIT=":"
8445 else
8446 case $cross_compiling:$ac_tool_warned in
8447 yes:)
8448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet. If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&5
8451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8452 whose name does not start with the host triplet. If you think this
8453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8454 ac_tool_warned=yes ;;
8455 esac
8456 NMEDIT=$ac_ct_NMEDIT
8457 fi
8458 else
8459 NMEDIT="$ac_cv_prog_NMEDIT"
8460 fi
8461
8462
8463 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8464 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8465 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 lt_cv_apple_cc_single_mod=no
8469 if test -z "${LT_MULTI_MODULE}"; then
8470 # By default we will add the -single_module flag. You can override
8471 # by either setting the environment variable LT_MULTI_MODULE
8472 # non-empty at configure time, or by adding -multi_module to the
8473 # link flags.
8474 echo "int foo(void){return 1;}" > conftest.c
8475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8476 -dynamiclib ${wl}-single_module conftest.c
8477 if test -f libconftest.dylib; then
8478 lt_cv_apple_cc_single_mod=yes
8479 rm -rf libconftest.dylib*
8480 fi
8481 rm conftest.c
8482 fi
8483 fi
8484 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8485 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8486 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8487 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8488 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491 lt_cv_ld_exported_symbols_list=no
8492 save_LDFLAGS=$LDFLAGS
8493 echo "_main" > conftest.sym
8494 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h. */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501
8502 int
8503 main ()
8504 {
8505
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest$ac_exeext &&
8527 $as_test_x conftest$ac_exeext; then
8528 lt_cv_ld_exported_symbols_list=yes
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 lt_cv_ld_exported_symbols_list=no
8534 fi
8535
8536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LDFLAGS="$save_LDFLAGS"
8539
8540 fi
8541 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8542 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8543 case $host_os in
8544 rhapsody* | darwin1.[0123])
8545 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8546 darwin1.*)
8547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8548 darwin*)
8549 # if running on 10.5 or later, the deployment target defaults
8550 # to the OS version, if on x86, and 10.4, the deployment
8551 # target defaults to 10.4. Don't you love it?
8552 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8553 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8555 10.[012]*)
8556 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8557 10.*)
8558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8559 esac
8560 ;;
8561 esac
8562 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8563 _lt_dar_single_mod='$single_module'
8564 fi
8565 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8566 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8567 else
8568 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8569 fi
8570 if test "$DSYMUTIL" != ":"; then
8571 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8572 else
8573 _lt_dsymutil=
8574 fi
8575 ;;
8576 esac
8577
8578
8579 enable_dlopen=no
8580 enable_win32_dll=no
8581
8582 # Check whether --enable-libtool-lock was given.
8583 if test "${enable_libtool_lock+set}" = set; then
8584 enableval=$enable_libtool_lock;
8585 fi
8586
8587 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8588
8589
8590 # Check whether --with-pic was given.
8591 if test "${with_pic+set}" = set; then
8592 withval=$with_pic; pic_mode="$withval"
8593 else
8594 pic_mode=default
8595 fi
8596
8597 test -z "$pic_mode" && pic_mode=default
8598
8599 # Use C for the default configuration in the libtool script
8600 tagname=
8601 lt_save_CC="$CC"
8602 ac_ext=c
8603 ac_cpp='$CPP $CPPFLAGS'
8604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607
8608
8609 # Source file extension for C test sources.
8610 ac_ext=c
8611
8612 # Object file extension for compiled C test sources.
8613 objext=o
8614 objext=$objext
8615
8616 # Code to be used in simple compile tests
8617 lt_simple_compile_test_code="int some_variable = 0;"
8618
8619 # Code to be used in simple link tests
8620 lt_simple_link_test_code='int main(){return(0);}'
8621
8622
8623 # If no C compiler was specified, use CC.
8624 LTCC=${LTCC-"$CC"}
8625
8626 # If no C compiler flags were specified, use CFLAGS.
8627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8628
8629 # Allow CC to be a program name with arguments.
8630 compiler=$CC
8631
8632
8633 # save warnings/boilerplate of simple test code
8634 ac_outfile=conftest.$ac_objext
8635 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8637 _lt_compiler_boilerplate=`cat conftest.err`
8638 $rm conftest*
8639
8640 ac_outfile=conftest.$ac_objext
8641 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8643 _lt_linker_boilerplate=`cat conftest.err`
8644 $rm -r conftest*
8645
8646
8647
8648 lt_prog_compiler_no_builtin_flag=
8649
8650 if test "$GCC" = yes; then
8651 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8652
8653
8654 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8655 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8656 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659 lt_cv_prog_compiler_rtti_exceptions=no
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="-fno-rtti -fno-exceptions"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 # The option is referenced via a variable to avoid confusing sed.
8668 lt_compile=`echo "$ac_compile" | $SED \
8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671 -e 's:$: $lt_compiler_flag:'`
8672 (eval echo "\"\$as_me:8672: $lt_compile\"" >&5)
8673 (eval "$lt_compile" 2>conftest.err)
8674 ac_status=$?
8675 cat conftest.err >&5
8676 echo "$as_me:8676: \$? = $ac_status" >&5
8677 if (exit $ac_status) && test -s "$ac_outfile"; then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings other than the usual output.
8680 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_rtti_exceptions=yes
8684 fi
8685 fi
8686 $rm conftest*
8687
8688 fi
8689 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8690 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8691
8692 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8694 else
8695 :
8696 fi
8697
8698 fi
8699
8700 lt_prog_compiler_wl=
8701 lt_prog_compiler_pic=
8702 lt_prog_compiler_static=
8703
8704 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8705 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8706
8707 if test "$GCC" = yes; then
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_static='-static'
8710
8711 case $host_os in
8712 aix*)
8713 # All AIX code is PIC.
8714 if test "$host_cpu" = ia64; then
8715 # AIX 5 now supports IA64 processor
8716 lt_prog_compiler_static='-Bstatic'
8717 fi
8718 ;;
8719
8720 amigaos*)
8721 # FIXME: we need at least 68020 code to build shared libraries, but
8722 # adding the `-m68020' flag to GCC prevents building anything better,
8723 # like `-m68040'.
8724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8725 ;;
8726
8727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8728 # PIC is the default for these OSes.
8729 ;;
8730
8731 mingw* | cygwin* | pw32* | os2*)
8732 # This hack is so that the source file can tell whether it is being
8733 # built for inclusion in a dll (and should export symbols for example).
8734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8735 # (--disable-auto-import) libraries
8736 lt_prog_compiler_pic='-DDLL_EXPORT'
8737 ;;
8738
8739 darwin* | rhapsody*)
8740 # PIC is the default on this platform
8741 # Common symbols not allowed in MH_DYLIB files
8742 lt_prog_compiler_pic='-fno-common'
8743 ;;
8744
8745 interix[3-9]*)
8746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8747 # Instead, we relocate shared libraries at runtime.
8748 ;;
8749
8750 msdosdjgpp*)
8751 # Just because we use GCC doesn't mean we suddenly get shared libraries
8752 # on systems that don't support them.
8753 lt_prog_compiler_can_build_shared=no
8754 enable_shared=no
8755 ;;
8756
8757 sysv4*MP*)
8758 if test -d /usr/nec; then
8759 lt_prog_compiler_pic=-Kconform_pic
8760 fi
8761 ;;
8762
8763 hpux*)
8764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8765 # not for PA HP-UX.
8766 case $host_cpu in
8767 hppa*64*|ia64*)
8768 # +Z the default
8769 ;;
8770 *)
8771 lt_prog_compiler_pic='-fPIC'
8772 ;;
8773 esac
8774 ;;
8775
8776 *)
8777 lt_prog_compiler_pic='-fPIC'
8778 ;;
8779 esac
8780 else
8781 # PORTME Check for flag to pass linker flags through the system compiler.
8782 case $host_os in
8783 aix*)
8784 lt_prog_compiler_wl='-Wl,'
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 now supports IA64 processor
8787 lt_prog_compiler_static='-Bstatic'
8788 else
8789 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8790 fi
8791 ;;
8792 darwin*)
8793 # PIC is the default on this platform
8794 # Common symbols not allowed in MH_DYLIB files
8795 case $cc_basename in
8796 xlc*)
8797 lt_prog_compiler_pic='-qnocommon'
8798 lt_prog_compiler_wl='-Wl,'
8799 ;;
8800 esac
8801 ;;
8802
8803 mingw* | cygwin* | pw32* | os2*)
8804 # This hack is so that the source file can tell whether it is being
8805 # built for inclusion in a dll (and should export symbols for example).
8806 lt_prog_compiler_pic='-DDLL_EXPORT'
8807 ;;
8808
8809 hpux9* | hpux10* | hpux11*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8812 # not for PA HP-UX.
8813 case $host_cpu in
8814 hppa*64*|ia64*)
8815 # +Z the default
8816 ;;
8817 *)
8818 lt_prog_compiler_pic='+Z'
8819 ;;
8820 esac
8821 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8822 lt_prog_compiler_static='${wl}-a ${wl}archive'
8823 ;;
8824
8825 irix5* | irix6* | nonstopux*)
8826 lt_prog_compiler_wl='-Wl,'
8827 # PIC (with -KPIC) is the default.
8828 lt_prog_compiler_static='-non_shared'
8829 ;;
8830
8831 newsos6)
8832 lt_prog_compiler_pic='-KPIC'
8833 lt_prog_compiler_static='-Bstatic'
8834 ;;
8835
8836 linux* | k*bsd*-gnu)
8837 case $cc_basename in
8838 icc* | ecc*)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-static'
8842 ;;
8843 pgcc* | pgf77* | pgf90* | pgf95*)
8844 # Portland Group compilers (*not* the Pentium gcc compiler,
8845 # which looks to be a dead project)
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='-fpic'
8848 lt_prog_compiler_static='-Bstatic'
8849 ;;
8850 ccc*)
8851 lt_prog_compiler_wl='-Wl,'
8852 # All Alpha code is PIC.
8853 lt_prog_compiler_static='-non_shared'
8854 ;;
8855 *)
8856 case `$CC -V 2>&1 | sed 5q` in
8857 *Sun\ C*)
8858 # Sun C 5.9
8859 lt_prog_compiler_pic='-KPIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 lt_prog_compiler_wl='-Wl,'
8862 ;;
8863 *Sun\ F*)
8864 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8867 lt_prog_compiler_wl=''
8868 ;;
8869 esac
8870 ;;
8871 esac
8872 ;;
8873
8874 osf3* | osf4* | osf5*)
8875 lt_prog_compiler_wl='-Wl,'
8876 # All OSF/1 code is PIC.
8877 lt_prog_compiler_static='-non_shared'
8878 ;;
8879
8880 rdos*)
8881 lt_prog_compiler_static='-non_shared'
8882 ;;
8883
8884 solaris*)
8885 lt_prog_compiler_pic='-KPIC'
8886 lt_prog_compiler_static='-Bstatic'
8887 case $cc_basename in
8888 f77* | f90* | f95*)
8889 lt_prog_compiler_wl='-Qoption ld ';;
8890 *)
8891 lt_prog_compiler_wl='-Wl,';;
8892 esac
8893 ;;
8894
8895 sunos4*)
8896 lt_prog_compiler_wl='-Qoption ld '
8897 lt_prog_compiler_pic='-PIC'
8898 lt_prog_compiler_static='-Bstatic'
8899 ;;
8900
8901 sysv4 | sysv4.2uw2* | sysv4.3*)
8902 lt_prog_compiler_wl='-Wl,'
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 ;;
8906
8907 sysv4*MP*)
8908 if test -d /usr/nec ;then
8909 lt_prog_compiler_pic='-Kconform_pic'
8910 lt_prog_compiler_static='-Bstatic'
8911 fi
8912 ;;
8913
8914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 ;;
8919
8920 unicos*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_can_build_shared=no
8923 ;;
8924
8925 uts4*)
8926 lt_prog_compiler_pic='-pic'
8927 lt_prog_compiler_static='-Bstatic'
8928 ;;
8929
8930 *)
8931 lt_prog_compiler_can_build_shared=no
8932 ;;
8933 esac
8934 fi
8935
8936 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8937 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8938
8939 #
8940 # Check to make sure the PIC flag actually works.
8941 #
8942 if test -n "$lt_prog_compiler_pic"; then
8943
8944 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8945 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8946 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 lt_cv_prog_compiler_pic_works=no
8950 ac_outfile=conftest.$ac_objext
8951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8952 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8953 # Insert the option either (1) after the last *FLAGS variable, or
8954 # (2) before a word containing "conftest.", or (3) at the end.
8955 # Note that $ac_compile itself does not contain backslashes and begins
8956 # with a dollar sign (not a hyphen), so the echo should work correctly.
8957 # The option is referenced via a variable to avoid confusing sed.
8958 lt_compile=`echo "$ac_compile" | $SED \
8959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8961 -e 's:$: $lt_compiler_flag:'`
8962 (eval echo "\"\$as_me:8962: $lt_compile\"" >&5)
8963 (eval "$lt_compile" 2>conftest.err)
8964 ac_status=$?
8965 cat conftest.err >&5
8966 echo "$as_me:8966: \$? = $ac_status" >&5
8967 if (exit $ac_status) && test -s "$ac_outfile"; then
8968 # The compiler can only warn and ignore the option if not recognized
8969 # So say no if there are warnings other than the usual output.
8970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8972 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8973 lt_cv_prog_compiler_pic_works=yes
8974 fi
8975 fi
8976 $rm conftest*
8977
8978 fi
8979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8980 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8981
8982 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8983 case $lt_prog_compiler_pic in
8984 "" | " "*) ;;
8985 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8986 esac
8987 else
8988 lt_prog_compiler_pic=
8989 lt_prog_compiler_can_build_shared=no
8990 fi
8991
8992 fi
8993 case $host_os in
8994 # For platforms which do not support PIC, -DPIC is meaningless:
8995 *djgpp*)
8996 lt_prog_compiler_pic=
8997 ;;
8998 *)
8999 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9000 ;;
9001 esac
9002
9003 #
9004 # Check to make sure the static flag actually works.
9005 #
9006 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9007 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9008 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9009 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 lt_cv_prog_compiler_static_works=no
9013 save_LDFLAGS="$LDFLAGS"
9014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9017 # The linker can only warn and ignore the option if not recognized
9018 # So say no if there are warnings
9019 if test -s conftest.err; then
9020 # Append any errors to the config.log.
9021 cat conftest.err 1>&5
9022 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9024 if diff conftest.exp conftest.er2 >/dev/null; then
9025 lt_cv_prog_compiler_static_works=yes
9026 fi
9027 else
9028 lt_cv_prog_compiler_static_works=yes
9029 fi
9030 fi
9031 $rm -r conftest*
9032 LDFLAGS="$save_LDFLAGS"
9033
9034 fi
9035 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9036 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9037
9038 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9039 :
9040 else
9041 lt_prog_compiler_static=
9042 fi
9043
9044
9045 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9046 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9047 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 lt_cv_prog_compiler_c_o=no
9051 $rm -r conftest 2>/dev/null
9052 mkdir conftest
9053 cd conftest
9054 mkdir out
9055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9056
9057 lt_compiler_flag="-o out/conftest2.$ac_objext"
9058 # Insert the option either (1) after the last *FLAGS variable, or
9059 # (2) before a word containing "conftest.", or (3) at the end.
9060 # Note that $ac_compile itself does not contain backslashes and begins
9061 # with a dollar sign (not a hyphen), so the echo should work correctly.
9062 lt_compile=`echo "$ac_compile" | $SED \
9063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9065 -e 's:$: $lt_compiler_flag:'`
9066 (eval echo "\"\$as_me:9066: $lt_compile\"" >&5)
9067 (eval "$lt_compile" 2>out/conftest.err)
9068 ac_status=$?
9069 cat out/conftest.err >&5
9070 echo "$as_me:9070: \$? = $ac_status" >&5
9071 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9072 then
9073 # The compiler can only warn and ignore the option if not recognized
9074 # So say no if there are warnings
9075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9078 lt_cv_prog_compiler_c_o=yes
9079 fi
9080 fi
9081 chmod u+w . 2>&5
9082 $rm conftest*
9083 # SGI C++ compiler will create directory out/ii_files/ for
9084 # template instantiation
9085 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9086 $rm out/* && rmdir out
9087 cd ..
9088 rmdir conftest
9089 $rm conftest*
9090
9091 fi
9092 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9093 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9094
9095
9096 hard_links="nottested"
9097 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9098 # do not overwrite the value of need_locks provided by the user
9099 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9100 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9101 hard_links=yes
9102 $rm conftest*
9103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9104 touch conftest.a
9105 ln conftest.a conftest.b 2>&5 || hard_links=no
9106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9107 { echo "$as_me:$LINENO: result: $hard_links" >&5
9108 echo "${ECHO_T}$hard_links" >&6; }
9109 if test "$hard_links" = no; then
9110 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9111 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9112 need_locks=warn
9113 fi
9114 else
9115 need_locks=no
9116 fi
9117
9118 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9119 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9120
9121 runpath_var=
9122 allow_undefined_flag=
9123 enable_shared_with_static_runtimes=no
9124 archive_cmds=
9125 archive_expsym_cmds=
9126 old_archive_From_new_cmds=
9127 old_archive_from_expsyms_cmds=
9128 export_dynamic_flag_spec=
9129 whole_archive_flag_spec=
9130 thread_safe_flag_spec=
9131 hardcode_libdir_flag_spec=
9132 hardcode_libdir_flag_spec_ld=
9133 hardcode_libdir_separator=
9134 hardcode_direct=no
9135 hardcode_minus_L=no
9136 hardcode_shlibpath_var=unsupported
9137 link_all_deplibs=unknown
9138 hardcode_automatic=no
9139 module_cmds=
9140 module_expsym_cmds=
9141 always_export_symbols=no
9142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9143 # include_expsyms should be a list of space-separated symbols to be *always*
9144 # included in the symbol list
9145 include_expsyms=
9146 # exclude_expsyms can be an extended regexp of symbols to exclude
9147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9149 # as well as any symbol that contains `d'.
9150 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9152 # platforms (ab)use it in PIC code, but their linkers get confused if
9153 # the symbol is explicitly referenced. Since portable code cannot
9154 # rely on this symbol name, it's probably fine to never include it in
9155 # preloaded symbol tables.
9156 # Exclude shared library initialization/finalization symbols.
9157 extract_expsyms_cmds=
9158 # Just being paranoid about ensuring that cc_basename is set.
9159 for cc_temp in $compiler""; do
9160 case $cc_temp in
9161 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9162 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9163 \-*) ;;
9164 *) break;;
9165 esac
9166 done
9167 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9168
9169 case $host_os in
9170 cygwin* | mingw* | pw32*)
9171 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9172 # When not using gcc, we currently assume that we are using
9173 # Microsoft Visual C++.
9174 if test "$GCC" != yes; then
9175 with_gnu_ld=no
9176 fi
9177 ;;
9178 interix*)
9179 # we just hope/assume this is gcc and not c89 (= MSVC++)
9180 with_gnu_ld=yes
9181 ;;
9182 openbsd*)
9183 with_gnu_ld=no
9184 ;;
9185 esac
9186
9187 ld_shlibs=yes
9188 if test "$with_gnu_ld" = yes; then
9189 # If archive_cmds runs LD, not CC, wlarc should be empty
9190 wlarc='${wl}'
9191
9192 # Set some defaults for GNU ld with shared library support. These
9193 # are reset later if shared libraries are not supported. Putting them
9194 # here allows them to be overridden if necessary.
9195 runpath_var=LD_RUN_PATH
9196 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9197 export_dynamic_flag_spec='${wl}--export-dynamic'
9198 # ancient GNU ld didn't support --whole-archive et. al.
9199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9200 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9201 else
9202 whole_archive_flag_spec=
9203 fi
9204 supports_anon_versioning=no
9205 case `$LD -v 2>/dev/null` in
9206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9209 *\ 2.11.*) ;; # other 2.11 versions
9210 *) supports_anon_versioning=yes ;;
9211 esac
9212
9213 # See if GNU ld supports shared libraries.
9214 case $host_os in
9215 aix[3-9]*)
9216 # On AIX/PPC, the GNU linker is very broken
9217 if test "$host_cpu" != ia64; then
9218 ld_shlibs=no
9219 cat <<EOF 1>&2
9220
9221 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9222 *** to be unable to reliably create shared libraries on AIX.
9223 *** Therefore, libtool is disabling shared libraries support. If you
9224 *** really care for shared libraries, you may want to modify your PATH
9225 *** so that a non-GNU linker is found, and then restart.
9226
9227 EOF
9228 fi
9229 ;;
9230
9231 amigaos*)
9232 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)'
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_minus_L=yes
9235
9236 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9237 # that the semantics of dynamic libraries on AmigaOS, at least up
9238 # to version 4, is to share data among multiple programs linked
9239 # with the same dynamic library. Since this doesn't match the
9240 # behavior of shared libraries on other platforms, we can't use
9241 # them.
9242 ld_shlibs=no
9243 ;;
9244
9245 beos*)
9246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9247 allow_undefined_flag=unsupported
9248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9249 # support --undefined. This deserves some investigation. FIXME
9250 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 else
9252 ld_shlibs=no
9253 fi
9254 ;;
9255
9256 cygwin* | mingw* | pw32*)
9257 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9258 # as there is no search path for DLLs.
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 allow_undefined_flag=unsupported
9261 always_export_symbols=no
9262 enable_shared_with_static_runtimes=yes
9263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9264
9265 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9267 # If the export-symbols file already is a .def file (1st line
9268 # is EXPORTS), use it as is; otherwise, prepend...
9269 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9270 cp $export_symbols $output_objdir/$soname.def;
9271 else
9272 echo EXPORTS > $output_objdir/$soname.def;
9273 cat $export_symbols >> $output_objdir/$soname.def;
9274 fi~
9275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280
9281 interix[3-9]*)
9282 hardcode_direct=no
9283 hardcode_shlibpath_var=no
9284 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9285 export_dynamic_flag_spec='${wl}-E'
9286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9287 # Instead, shared libraries are loaded at an image base (0x10000000 by
9288 # default) and relocated if they conflict, which is a slow very memory
9289 # consuming and fragmenting process. To avoid this, we pick a random,
9290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9293 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'
9294 ;;
9295
9296 gnu* | linux* | k*bsd*-gnu)
9297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9298 tmp_addflag=
9299 case $cc_basename,$host_cpu in
9300 pgcc*) # Portland Group C compiler
9301 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'
9302 tmp_addflag=' $pic_flag'
9303 ;;
9304 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9305 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'
9306 tmp_addflag=' $pic_flag -Mnomain' ;;
9307 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9308 tmp_addflag=' -i_dynamic' ;;
9309 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9310 tmp_addflag=' -i_dynamic -nofor_main' ;;
9311 ifc* | ifort*) # Intel Fortran compiler
9312 tmp_addflag=' -nofor_main' ;;
9313 esac
9314 case `$CC -V 2>&1 | sed 5q` in
9315 *Sun\ C*) # Sun C 5.9
9316 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'
9317 tmp_sharedflag='-G' ;;
9318 *Sun\ F*) # Sun Fortran 8.3
9319 tmp_sharedflag='-G' ;;
9320 *)
9321 tmp_sharedflag='-shared' ;;
9322 esac
9323 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324
9325 if test $supports_anon_versioning = yes; then
9326 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9328 $echo "local: *; };" >> $output_objdir/$libname.ver~
9329 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9330 fi
9331 link_all_deplibs=no
9332 else
9333 ld_shlibs=no
9334 fi
9335 ;;
9336
9337 netbsd* | netbsdelf*-gnu)
9338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9339 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9340 wlarc=
9341 else
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344 fi
9345 ;;
9346
9347 solaris*)
9348 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9349 ld_shlibs=no
9350 cat <<EOF 1>&2
9351
9352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9353 *** create shared libraries on Solaris systems. Therefore, libtool
9354 *** is disabling shared libraries support. We urge you to upgrade GNU
9355 *** binutils to release 2.9.1 or newer. Another option is to modify
9356 *** your PATH or compiler configuration so that the native linker is
9357 *** used, and then restart.
9358
9359 EOF
9360 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9363 else
9364 ld_shlibs=no
9365 fi
9366 ;;
9367
9368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9369 case `$LD -v 2>&1` in
9370 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9371 ld_shlibs=no
9372 cat <<_LT_EOF 1>&2
9373
9374 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9375 *** reliably create shared libraries on SCO systems. Therefore, libtool
9376 *** is disabling shared libraries support. We urge you to upgrade GNU
9377 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9378 *** your PATH or compiler configuration so that the native linker is
9379 *** used, and then restart.
9380
9381 _LT_EOF
9382 ;;
9383 *)
9384 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9385 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9388 else
9389 ld_shlibs=no
9390 fi
9391 ;;
9392 esac
9393 ;;
9394
9395 sunos4*)
9396 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397 wlarc=
9398 hardcode_direct=yes
9399 hardcode_shlibpath_var=no
9400 ;;
9401
9402 *)
9403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 else
9407 ld_shlibs=no
9408 fi
9409 ;;
9410 esac
9411
9412 if test "$ld_shlibs" = no; then
9413 runpath_var=
9414 hardcode_libdir_flag_spec=
9415 export_dynamic_flag_spec=
9416 whole_archive_flag_spec=
9417 fi
9418 else
9419 # PORTME fill in a description of your system's linker (not GNU ld)
9420 case $host_os in
9421 aix3*)
9422 allow_undefined_flag=unsupported
9423 always_export_symbols=yes
9424 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'
9425 # Note: this linker hardcodes the directories in LIBPATH if there
9426 # are no directories specified by -L.
9427 hardcode_minus_L=yes
9428 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9429 # Neither direct hardcoding nor static linking is supported with a
9430 # broken collect2.
9431 hardcode_direct=unsupported
9432 fi
9433 ;;
9434
9435 aix[4-9]*)
9436 if test "$host_cpu" = ia64; then
9437 # On IA64, the linker does run time linking by default, so we don't
9438 # have to do anything special.
9439 aix_use_runtimelinking=no
9440 exp_sym_flag='-Bexport'
9441 no_entry_flag=""
9442 else
9443 # If we're using GNU nm, then we don't want the "-C" option.
9444 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9445 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9446 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'
9447 else
9448 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'
9449 fi
9450 aix_use_runtimelinking=no
9451
9452 # Test if we are trying to use run time linking or normal
9453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9454 # need to do runtime linking.
9455 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9456 for ld_flag in $LDFLAGS; do
9457 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9458 aix_use_runtimelinking=yes
9459 break
9460 fi
9461 done
9462 ;;
9463 esac
9464
9465 exp_sym_flag='-bexport'
9466 no_entry_flag='-bnoentry'
9467 fi
9468
9469 # When large executables or shared objects are built, AIX ld can
9470 # have problems creating the table of contents. If linking a library
9471 # or program results in "error TOC overflow" add -mminimal-toc to
9472 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9473 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9474
9475 archive_cmds=''
9476 hardcode_direct=yes
9477 hardcode_libdir_separator=':'
9478 link_all_deplibs=yes
9479
9480 if test "$GCC" = yes; then
9481 case $host_os in aix4.[012]|aix4.[012].*)
9482 # We only want to do this on AIX 4.2 and lower, the check
9483 # below for broken collect2 doesn't work under 4.3+
9484 collect2name=`${CC} -print-prog-name=collect2`
9485 if test -f "$collect2name" && \
9486 strings "$collect2name" | grep resolve_lib_name >/dev/null
9487 then
9488 # We have reworked collect2
9489 :
9490 else
9491 # We have old collect2
9492 hardcode_direct=unsupported
9493 # It fails to find uninstalled libraries when the uninstalled
9494 # path is not listed in the libpath. Setting hardcode_minus_L
9495 # to unsupported forces relinking
9496 hardcode_minus_L=yes
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_libdir_separator=
9499 fi
9500 ;;
9501 esac
9502 shared_flag='-shared'
9503 if test "$aix_use_runtimelinking" = yes; then
9504 shared_flag="$shared_flag "'${wl}-G'
9505 fi
9506 else
9507 # not using gcc
9508 if test "$host_cpu" = ia64; then
9509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9510 # chokes on -Wl,-G. The following line is correct:
9511 shared_flag='-G'
9512 else
9513 if test "$aix_use_runtimelinking" = yes; then
9514 shared_flag='${wl}-G'
9515 else
9516 shared_flag='${wl}-bM:SRE'
9517 fi
9518 fi
9519 fi
9520
9521 # It seems that -bexpall does not export symbols beginning with
9522 # underscore (_), so it is better to generate a list of symbols to export.
9523 always_export_symbols=yes
9524 if test "$aix_use_runtimelinking" = yes; then
9525 # Warning - without using the other runtime loading flags (-brtl),
9526 # -berok will link without error, but may produce a broken library.
9527 allow_undefined_flag='-berok'
9528 # Determine the default libpath from the value encoded in an empty executable.
9529 cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h. */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535
9536 int
9537 main ()
9538 {
9539
9540 ;
9541 return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (ac_try="$ac_link"
9546 case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549 esac
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext &&
9561 $as_test_x conftest$ac_exeext; then
9562
9563 lt_aix_libpath_sed='
9564 /Import File Strings/,/^$/ {
9565 /^0/ {
9566 s/^0 *\(.*\)$/\1/
9567 p
9568 }
9569 }'
9570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571 # Check for a 64-bit object if we didn't find anything.
9572 if test -z "$aix_libpath"; then
9573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574 fi
9575 else
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9578
9579
9580 fi
9581
9582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9583 conftest$ac_exeext conftest.$ac_ext
9584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9585
9586 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9587 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"
9588 else
9589 if test "$host_cpu" = ia64; then
9590 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9591 allow_undefined_flag="-z nodefs"
9592 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"
9593 else
9594 # Determine the default libpath from the value encoded in an empty executable.
9595 cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h. */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9601
9602 int
9603 main ()
9604 {
9605
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9612 case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest$ac_exeext &&
9627 $as_test_x conftest$ac_exeext; then
9628
9629 lt_aix_libpath_sed='
9630 /Import File Strings/,/^$/ {
9631 /^0/ {
9632 s/^0 *\(.*\)$/\1/
9633 p
9634 }
9635 }'
9636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9637 # Check for a 64-bit object if we didn't find anything.
9638 if test -z "$aix_libpath"; then
9639 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640 fi
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645
9646 fi
9647
9648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9649 conftest$ac_exeext conftest.$ac_ext
9650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9651
9652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9653 # Warning - without using the other run time loading flags,
9654 # -berok will link without error, but may produce a broken library.
9655 no_undefined_flag=' ${wl}-bernotok'
9656 allow_undefined_flag=' ${wl}-berok'
9657 # Exported symbols can be pulled into shared objects from archives
9658 whole_archive_flag_spec='$convenience'
9659 archive_cmds_need_lc=yes
9660 # This is similar to how AIX traditionally builds its shared libraries.
9661 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'
9662 fi
9663 fi
9664 ;;
9665
9666 amigaos*)
9667 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)'
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_minus_L=yes
9670 # see comment about different semantics on the GNU ld section
9671 ld_shlibs=no
9672 ;;
9673
9674 bsdi[45]*)
9675 export_dynamic_flag_spec=-rdynamic
9676 ;;
9677
9678 cygwin* | mingw* | pw32*)
9679 # When not using gcc, we currently assume that we are using
9680 # Microsoft Visual C++.
9681 # hardcode_libdir_flag_spec is actually meaningless, as there is
9682 # no search path for DLLs.
9683 hardcode_libdir_flag_spec=' '
9684 allow_undefined_flag=unsupported
9685 # Tell ltmain to make .lib files, not .a files.
9686 libext=lib
9687 # Tell ltmain to make .dll files, not .so files.
9688 shrext_cmds=".dll"
9689 # FIXME: Setting linknames here is a bad hack.
9690 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9691 # The linker will automatically build a .lib file if we build a DLL.
9692 old_archive_From_new_cmds='true'
9693 # FIXME: Should let the user specify the lib program.
9694 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9695 fix_srcfile_path='`cygpath -w "$srcfile"`'
9696 enable_shared_with_static_runtimes=yes
9697 ;;
9698
9699 darwin* | rhapsody*)
9700 case $host_os in
9701 rhapsody* | darwin1.[012])
9702 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9703 ;;
9704 *) # Darwin 1.3 on
9705 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9706 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9707 else
9708 case ${MACOSX_DEPLOYMENT_TARGET} in
9709 10.[012])
9710 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9711 ;;
9712 10.*)
9713 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9714 ;;
9715 esac
9716 fi
9717 ;;
9718 esac
9719 archive_cmds_need_lc=no
9720 hardcode_direct=no
9721 hardcode_automatic=yes
9722 hardcode_shlibpath_var=unsupported
9723 whole_archive_flag_spec=''
9724 link_all_deplibs=yes
9725 if test "$GCC" = yes ; then
9726 output_verbose_link_cmd='echo'
9727 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9728 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9729 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9730 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9731 else
9732 case $cc_basename in
9733 xlc*)
9734 output_verbose_link_cmd='echo'
9735 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9736 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9738 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}'
9739 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}'
9740 ;;
9741 *)
9742 ld_shlibs=no
9743 ;;
9744 esac
9745 fi
9746 ;;
9747
9748 dgux*)
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 hardcode_shlibpath_var=no
9752 ;;
9753
9754 freebsd1*)
9755 ld_shlibs=no
9756 ;;
9757
9758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9759 # support. Future versions do this automatically, but an explicit c++rt0.o
9760 # does not break anything, and helps significantly (at the cost of a little
9761 # extra space).
9762 freebsd2.2*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 hardcode_direct=yes
9766 hardcode_shlibpath_var=no
9767 ;;
9768
9769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9770 freebsd2*)
9771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_direct=yes
9773 hardcode_minus_L=yes
9774 hardcode_shlibpath_var=no
9775 ;;
9776
9777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9778 freebsd* | dragonfly*)
9779 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_direct=yes
9782 hardcode_shlibpath_var=no
9783 ;;
9784
9785 hpux9*)
9786 if test "$GCC" = yes; then
9787 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'
9788 else
9789 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'
9790 fi
9791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9792 hardcode_libdir_separator=:
9793 hardcode_direct=yes
9794
9795 # hardcode_minus_L: Not really in the search PATH,
9796 # but as the default location of the library.
9797 hardcode_minus_L=yes
9798 export_dynamic_flag_spec='${wl}-E'
9799 ;;
9800
9801 hpux10*)
9802 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9803 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804 else
9805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9806 fi
9807 if test "$with_gnu_ld" = no; then
9808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9809 hardcode_libdir_separator=:
9810
9811 hardcode_direct=yes
9812 export_dynamic_flag_spec='${wl}-E'
9813
9814 # hardcode_minus_L: Not really in the search PATH,
9815 # but as the default location of the library.
9816 hardcode_minus_L=yes
9817 fi
9818 ;;
9819
9820 hpux11*)
9821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9822 case $host_cpu in
9823 hppa*64*)
9824 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 ;;
9826 ia64*)
9827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 *)
9830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831 ;;
9832 esac
9833 else
9834 case $host_cpu in
9835 hppa*64*)
9836 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 ;;
9838 ia64*)
9839 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9840 ;;
9841 *)
9842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 esac
9845 fi
9846 if test "$with_gnu_ld" = no; then
9847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_separator=:
9849
9850 case $host_cpu in
9851 hppa*64*|ia64*)
9852 hardcode_libdir_flag_spec_ld='+b $libdir'
9853 hardcode_direct=no
9854 hardcode_shlibpath_var=no
9855 ;;
9856 *)
9857 hardcode_direct=yes
9858 export_dynamic_flag_spec='${wl}-E'
9859
9860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L=yes
9863 ;;
9864 esac
9865 fi
9866 ;;
9867
9868 irix5* | irix6* | nonstopux*)
9869 if test "$GCC" = yes; then
9870 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'
9871 else
9872 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'
9873 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9874 fi
9875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9876 hardcode_libdir_separator=:
9877 link_all_deplibs=yes
9878 ;;
9879
9880 netbsd* | netbsdelf*-gnu)
9881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9883 else
9884 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9885 fi
9886 hardcode_libdir_flag_spec='-R$libdir'
9887 hardcode_direct=yes
9888 hardcode_shlibpath_var=no
9889 ;;
9890
9891 newsos6)
9892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 hardcode_direct=yes
9894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895 hardcode_libdir_separator=:
9896 hardcode_shlibpath_var=no
9897 ;;
9898
9899 openbsd*)
9900 if test -f /usr/libexec/ld.so; then
9901 hardcode_direct=yes
9902 hardcode_shlibpath_var=no
9903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9907 export_dynamic_flag_spec='${wl}-E'
9908 else
9909 case $host_os in
9910 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912 hardcode_libdir_flag_spec='-R$libdir'
9913 ;;
9914 *)
9915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9917 ;;
9918 esac
9919 fi
9920 else
9921 ld_shlibs=no
9922 fi
9923 ;;
9924
9925 os2*)
9926 hardcode_libdir_flag_spec='-L$libdir'
9927 hardcode_minus_L=yes
9928 allow_undefined_flag=unsupported
9929 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'
9930 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9931 ;;
9932
9933 osf3*)
9934 if test "$GCC" = yes; then
9935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9936 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9937 else
9938 allow_undefined_flag=' -expect_unresolved \*'
9939 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'
9940 fi
9941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942 hardcode_libdir_separator=:
9943 ;;
9944
9945 osf4* | osf5*) # as osf3* with the addition of -msym flag
9946 if test "$GCC" = yes; then
9947 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9948 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'
9949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950 else
9951 allow_undefined_flag=' -expect_unresolved \*'
9952 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'
9953 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9954 $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'
9955
9956 # Both c and cxx compiler support -rpath directly
9957 hardcode_libdir_flag_spec='-rpath $libdir'
9958 fi
9959 hardcode_libdir_separator=:
9960 ;;
9961
9962 solaris*)
9963 no_undefined_flag=' -z text'
9964 if test "$GCC" = yes; then
9965 wlarc='${wl}'
9966 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9968 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9969 else
9970 wlarc=''
9971 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9973 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9974 fi
9975 hardcode_libdir_flag_spec='-R$libdir'
9976 hardcode_shlibpath_var=no
9977 case $host_os in
9978 solaris2.[0-5] | solaris2.[0-5].*) ;;
9979 *)
9980 # The compiler driver will combine and reorder linker options,
9981 # but understands `-z linker_flag'. GCC discards it without `$wl',
9982 # but is careful enough not to reorder.
9983 # Supported since Solaris 2.6 (maybe 2.5.1?)
9984 if test "$GCC" = yes; then
9985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9986 else
9987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9988 fi
9989 ;;
9990 esac
9991 link_all_deplibs=yes
9992 ;;
9993
9994 sunos4*)
9995 if test "x$host_vendor" = xsequent; then
9996 # Use $CC to link under sequent, because it throws in some extra .o
9997 # files that make .init and .fini sections work.
9998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9999 else
10000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10001 fi
10002 hardcode_libdir_flag_spec='-L$libdir'
10003 hardcode_direct=yes
10004 hardcode_minus_L=yes
10005 hardcode_shlibpath_var=no
10006 ;;
10007
10008 sysv4)
10009 case $host_vendor in
10010 sni)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_direct=yes # is this really true???
10013 ;;
10014 siemens)
10015 ## LD is ld it makes a PLAMLIB
10016 ## CC just makes a GrossModule.
10017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10018 reload_cmds='$CC -r -o $output$reload_objs'
10019 hardcode_direct=no
10020 ;;
10021 motorola)
10022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10024 ;;
10025 esac
10026 runpath_var='LD_RUN_PATH'
10027 hardcode_shlibpath_var=no
10028 ;;
10029
10030 sysv4.3*)
10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 hardcode_shlibpath_var=no
10033 export_dynamic_flag_spec='-Bexport'
10034 ;;
10035
10036 sysv4*MP*)
10037 if test -d /usr/nec; then
10038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_shlibpath_var=no
10040 runpath_var=LD_RUN_PATH
10041 hardcode_runpath_var=yes
10042 ld_shlibs=yes
10043 fi
10044 ;;
10045
10046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10047 no_undefined_flag='${wl}-z,text'
10048 archive_cmds_need_lc=no
10049 hardcode_shlibpath_var=no
10050 runpath_var='LD_RUN_PATH'
10051
10052 if test "$GCC" = yes; then
10053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 else
10056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 fi
10059 ;;
10060
10061 sysv5* | sco3.2v5* | sco5v6*)
10062 # Note: We can NOT use -z defs as we might desire, because we do not
10063 # link with -lc, and that would cause any symbols used from libc to
10064 # always be unresolved, which means just about no library would
10065 # ever link correctly. If we're not using GNU ld we use -z text
10066 # though, which does catch some bad symbols but isn't as heavy-handed
10067 # as -z defs.
10068 no_undefined_flag='${wl}-z,text'
10069 allow_undefined_flag='${wl}-z,nodefs'
10070 archive_cmds_need_lc=no
10071 hardcode_shlibpath_var=no
10072 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10073 hardcode_libdir_separator=':'
10074 link_all_deplibs=yes
10075 export_dynamic_flag_spec='${wl}-Bexport'
10076 runpath_var='LD_RUN_PATH'
10077
10078 if test "$GCC" = yes; then
10079 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 else
10082 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 fi
10085 ;;
10086
10087 uts4*)
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_shlibpath_var=no
10091 ;;
10092
10093 *)
10094 ld_shlibs=no
10095 ;;
10096 esac
10097 fi
10098
10099 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10100 echo "${ECHO_T}$ld_shlibs" >&6; }
10101 test "$ld_shlibs" = no && can_build_shared=no
10102
10103 #
10104 # Do we need to explicitly link libc?
10105 #
10106 case "x$archive_cmds_need_lc" in
10107 x|xyes)
10108 # Assume -lc should be added
10109 archive_cmds_need_lc=yes
10110
10111 if test "$enable_shared" = yes && test "$GCC" = yes; then
10112 case $archive_cmds in
10113 *'~'*)
10114 # FIXME: we may have to deal with multi-command sequences.
10115 ;;
10116 '$CC '*)
10117 # Test whether the compiler implicitly links with -lc since on some
10118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10119 # to ld, don't add -lc before -lgcc.
10120 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10121 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10122 $rm conftest*
10123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10124
10125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10126 (eval $ac_compile) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } 2>conftest.err; then
10130 soname=conftest
10131 lib=conftest
10132 libobjs=conftest.$ac_objext
10133 deplibs=
10134 wl=$lt_prog_compiler_wl
10135 pic_flag=$lt_prog_compiler_pic
10136 compiler_flags=-v
10137 linker_flags=-v
10138 verstring=
10139 output_objdir=.
10140 libname=conftest
10141 lt_save_allow_undefined_flag=$allow_undefined_flag
10142 allow_undefined_flag=
10143 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10144 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }
10148 then
10149 archive_cmds_need_lc=no
10150 else
10151 archive_cmds_need_lc=yes
10152 fi
10153 allow_undefined_flag=$lt_save_allow_undefined_flag
10154 else
10155 cat conftest.err 1>&5
10156 fi
10157 $rm conftest*
10158 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10159 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10160 ;;
10161 esac
10162 fi
10163 ;;
10164 esac
10165
10166 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10168 library_names_spec=
10169 libname_spec='lib$name'
10170 soname_spec=
10171 shrext_cmds=".so"
10172 postinstall_cmds=
10173 postuninstall_cmds=
10174 finish_cmds=
10175 finish_eval=
10176 shlibpath_var=
10177 shlibpath_overrides_runpath=unknown
10178 version_type=none
10179 dynamic_linker="$host_os ld.so"
10180 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10181
10182 if test "$GCC" = yes; then
10183 case $host_os in
10184 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10185 *) lt_awk_arg="/^libraries:/" ;;
10186 esac
10187 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10188 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10189 # if the path contains ";" then we assume it to be the separator
10190 # otherwise default to the standard path separator (i.e. ":") - it is
10191 # assumed that no part of a normal pathname contains ";" but that should
10192 # okay in the real world where ";" in dirpaths is itself problematic.
10193 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10194 else
10195 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10196 fi
10197 # Ok, now we have the path, separated by spaces, we can step through it
10198 # and add multilib dir if necessary.
10199 lt_tmp_lt_search_path_spec=
10200 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10201 for lt_sys_path in $lt_search_path_spec; do
10202 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10204 else
10205 test -d "$lt_sys_path" && \
10206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10207 fi
10208 done
10209 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10210 BEGIN {RS=" "; FS="/|\n";} {
10211 lt_foo="";
10212 lt_count=0;
10213 for (lt_i = NF; lt_i > 0; lt_i--) {
10214 if ($lt_i != "" && $lt_i != ".") {
10215 if ($lt_i == "..") {
10216 lt_count++;
10217 } else {
10218 if (lt_count == 0) {
10219 lt_foo="/" $lt_i lt_foo;
10220 } else {
10221 lt_count--;
10222 }
10223 }
10224 }
10225 }
10226 if (lt_foo != "") { lt_freq[lt_foo]++; }
10227 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10228 }'`
10229 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10230 else
10231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10232 fi
10233 need_lib_prefix=unknown
10234 hardcode_into_libs=no
10235
10236 # when you set need_version to no, make sure it does not cause -set_version
10237 # flags to be left without arguments
10238 need_version=unknown
10239
10240 case $host_os in
10241 aix3*)
10242 version_type=linux
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10244 shlibpath_var=LIBPATH
10245
10246 # AIX 3 has no versioning support, so we append a major version to the name.
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 ;;
10249
10250 aix[4-9]*)
10251 version_type=linux
10252 need_lib_prefix=no
10253 need_version=no
10254 hardcode_into_libs=yes
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 supports IA64
10257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 else
10260 # With GCC up to 2.95.x, collect2 would create an import file
10261 # for dependence libraries. The import file would start with
10262 # the line `#! .'. This would cause the generated library to
10263 # depend on `.', always an invalid library. This was fixed in
10264 # development snapshots of GCC prior to 3.0.
10265 case $host_os in
10266 aix4 | aix4.[01] | aix4.[01].*)
10267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10268 echo ' yes '
10269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10270 :
10271 else
10272 can_build_shared=no
10273 fi
10274 ;;
10275 esac
10276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10277 # soname into executable. Probably we can add versioning support to
10278 # collect2, so additional links can be useful in future.
10279 if test "$aix_use_runtimelinking" = yes; then
10280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10281 # instead of lib<name>.a to let people know that these are not
10282 # typical AIX shared libraries.
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 else
10285 # We preserve .a as extension for shared libraries through AIX4.2
10286 # and later when we are not doing run time linking.
10287 library_names_spec='${libname}${release}.a $libname.a'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 fi
10290 shlibpath_var=LIBPATH
10291 fi
10292 ;;
10293
10294 amigaos*)
10295 library_names_spec='$libname.ixlibrary $libname.a'
10296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10297 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'
10298 ;;
10299
10300 beos*)
10301 library_names_spec='${libname}${shared_ext}'
10302 dynamic_linker="$host_os ld.so"
10303 shlibpath_var=LIBRARY_PATH
10304 ;;
10305
10306 bsdi[45]*)
10307 version_type=linux
10308 need_version=no
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10315 # the default ld.so.conf also contains /usr/contrib/lib and
10316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10317 # libtool to hard-code these into programs
10318 ;;
10319
10320 cygwin* | mingw* | pw32*)
10321 version_type=windows
10322 shrext_cmds=".dll"
10323 need_version=no
10324 need_lib_prefix=no
10325
10326 case $GCC,$host_os in
10327 yes,cygwin* | yes,mingw* | yes,pw32*)
10328 library_names_spec='$libname.dll.a'
10329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10330 postinstall_cmds='base_file=`basename \${file}`~
10331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10332 dldir=$destdir/`dirname \$dlpath`~
10333 test -d \$dldir || mkdir -p \$dldir~
10334 $install_prog $dir/$dlname \$dldir/$dlname~
10335 chmod a+x \$dldir/$dlname'
10336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10337 dlpath=$dir/\$dldll~
10338 $rm \$dlpath'
10339 shlibpath_overrides_runpath=yes
10340
10341 case $host_os in
10342 cygwin*)
10343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10346 ;;
10347 mingw*)
10348 # MinGW DLLs use traditional 'lib' prefix
10349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10352 # It is most probably a Windows format PATH printed by
10353 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10354 # path with ; separators, and with drive letters. We can handle the
10355 # drive letters (cygwin fileutils understands them), so leave them,
10356 # especially as we might pass files found there to a mingw objdump,
10357 # which wouldn't understand a cygwinified path. Ahh.
10358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10359 else
10360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10361 fi
10362 ;;
10363 pw32*)
10364 # pw32 DLLs use 'pw' prefix rather than 'lib'
10365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10366 ;;
10367 esac
10368 ;;
10369
10370 *)
10371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10372 ;;
10373 esac
10374 dynamic_linker='Win32 ld.exe'
10375 # FIXME: first we should search . and the directory the executable is in
10376 shlibpath_var=PATH
10377 ;;
10378
10379 darwin* | rhapsody*)
10380 dynamic_linker="$host_os dyld"
10381 version_type=darwin
10382 need_lib_prefix=no
10383 need_version=no
10384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10385 soname_spec='${libname}${release}${major}$shared_ext'
10386 shlibpath_overrides_runpath=yes
10387 shlibpath_var=DYLD_LIBRARY_PATH
10388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10389
10390 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10392 ;;
10393
10394 dgux*)
10395 version_type=linux
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 ;;
10402
10403 freebsd1*)
10404 dynamic_linker=no
10405 ;;
10406
10407 freebsd* | dragonfly*)
10408 # DragonFly does not have aout. When/if they implement a new
10409 # versioning mechanism, adjust this.
10410 if test -x /usr/bin/objformat; then
10411 objformat=`/usr/bin/objformat`
10412 else
10413 case $host_os in
10414 freebsd[123]*) objformat=aout ;;
10415 *) objformat=elf ;;
10416 esac
10417 fi
10418 version_type=freebsd-$objformat
10419 case $version_type in
10420 freebsd-elf*)
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 need_version=no
10423 need_lib_prefix=no
10424 ;;
10425 freebsd-*)
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10427 need_version=yes
10428 ;;
10429 esac
10430 shlibpath_var=LD_LIBRARY_PATH
10431 case $host_os in
10432 freebsd2*)
10433 shlibpath_overrides_runpath=yes
10434 ;;
10435 freebsd3.[01]* | freebsdelf3.[01]*)
10436 shlibpath_overrides_runpath=yes
10437 hardcode_into_libs=yes
10438 ;;
10439 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10440 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10441 shlibpath_overrides_runpath=no
10442 hardcode_into_libs=yes
10443 ;;
10444 *) # from 4.6 on, and DragonFly
10445 shlibpath_overrides_runpath=yes
10446 hardcode_into_libs=yes
10447 ;;
10448 esac
10449 ;;
10450
10451 gnu*)
10452 version_type=linux
10453 need_lib_prefix=no
10454 need_version=no
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 hardcode_into_libs=yes
10459 ;;
10460
10461 hpux9* | hpux10* | hpux11*)
10462 # Give a soname corresponding to the major version so that dld.sl refuses to
10463 # link against other versions.
10464 version_type=sunos
10465 need_lib_prefix=no
10466 need_version=no
10467 case $host_cpu in
10468 ia64*)
10469 shrext_cmds='.so'
10470 hardcode_into_libs=yes
10471 dynamic_linker="$host_os dld.so"
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 if test "X$HPUX_IA64_MODE" = X32; then
10477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10478 else
10479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10480 fi
10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482 ;;
10483 hppa*64*)
10484 shrext_cmds='.sl'
10485 hardcode_into_libs=yes
10486 dynamic_linker="$host_os dld.sl"
10487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493 ;;
10494 *)
10495 shrext_cmds='.sl'
10496 dynamic_linker="$host_os dld.sl"
10497 shlibpath_var=SHLIB_PATH
10498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 ;;
10502 esac
10503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10504 postinstall_cmds='chmod 555 $lib'
10505 ;;
10506
10507 interix[3-9]*)
10508 version_type=linux
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=no
10516 hardcode_into_libs=yes
10517 ;;
10518
10519 irix5* | irix6* | nonstopux*)
10520 case $host_os in
10521 nonstopux*) version_type=nonstopux ;;
10522 *)
10523 if test "$lt_cv_prog_gnu_ld" = yes; then
10524 version_type=linux
10525 else
10526 version_type=irix
10527 fi ;;
10528 esac
10529 need_lib_prefix=no
10530 need_version=no
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10533 case $host_os in
10534 irix5* | nonstopux*)
10535 libsuff= shlibsuff=
10536 ;;
10537 *)
10538 case $LD in # libtool.m4 will add one of these switches to LD
10539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10540 libsuff= shlibsuff= libmagic=32-bit;;
10541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10542 libsuff=32 shlibsuff=N32 libmagic=N32;;
10543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10544 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10545 *) libsuff= shlibsuff= libmagic=never-match;;
10546 esac
10547 ;;
10548 esac
10549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10550 shlibpath_overrides_runpath=no
10551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10553 hardcode_into_libs=yes
10554 ;;
10555
10556 # No shared lib support for Linux oldld, aout, or coff.
10557 linux*oldld* | linux*aout* | linux*coff*)
10558 dynamic_linker=no
10559 ;;
10560
10561 # This must be Linux ELF.
10562 linux* | k*bsd*-gnu)
10563 version_type=linux
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath=no
10571 # This implies no fast_install, which is unacceptable.
10572 # Some rework will be needed to allow for fast_install
10573 # before this can be enabled.
10574 hardcode_into_libs=yes
10575
10576 # Append ld.so.conf contents to the search path
10577 if test -f /etc/ld.so.conf; then
10578 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' ' '`
10579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10580 fi
10581
10582 # We used to test for /lib/ld.so.1 and disable shared libraries on
10583 # powerpc, because MkLinux only supported shared libraries with the
10584 # GNU dynamic linker. Since this was broken with cross compilers,
10585 # most powerpc-linux boxes support dynamic linking these days and
10586 # people can always --disable-shared, the test was removed, and we
10587 # assume the GNU/Linux dynamic linker is in use.
10588 dynamic_linker='GNU/Linux ld.so'
10589 ;;
10590
10591 netbsdelf*-gnu)
10592 version_type=linux
10593 need_lib_prefix=no
10594 need_version=no
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=no
10599 hardcode_into_libs=yes
10600 dynamic_linker='NetBSD ld.elf_so'
10601 ;;
10602
10603 netbsd*)
10604 version_type=sunos
10605 need_lib_prefix=no
10606 need_version=no
10607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10610 dynamic_linker='NetBSD (a.out) ld.so'
10611 else
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 dynamic_linker='NetBSD ld.elf_so'
10615 fi
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10619 ;;
10620
10621 newsos6)
10622 version_type=linux
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10626 ;;
10627
10628 nto-qnx*)
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=yes
10636 ;;
10637
10638 openbsd*)
10639 version_type=sunos
10640 sys_lib_dlsearch_path_spec="/usr/lib"
10641 need_lib_prefix=no
10642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10643 case $host_os in
10644 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10645 *) need_version=no ;;
10646 esac
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10651 case $host_os in
10652 openbsd2.[89] | openbsd2.[89].*)
10653 shlibpath_overrides_runpath=no
10654 ;;
10655 *)
10656 shlibpath_overrides_runpath=yes
10657 ;;
10658 esac
10659 else
10660 shlibpath_overrides_runpath=yes
10661 fi
10662 ;;
10663
10664 os2*)
10665 libname_spec='$name'
10666 shrext_cmds=".dll"
10667 need_lib_prefix=no
10668 library_names_spec='$libname${shared_ext} $libname.a'
10669 dynamic_linker='OS/2 ld.exe'
10670 shlibpath_var=LIBPATH
10671 ;;
10672
10673 osf3* | osf4* | osf5*)
10674 version_type=osf
10675 need_lib_prefix=no
10676 need_version=no
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10681 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10682 ;;
10683
10684 rdos*)
10685 dynamic_linker=no
10686 ;;
10687
10688 solaris*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes
10696 hardcode_into_libs=yes
10697 # ldd complains unless libraries are executable
10698 postinstall_cmds='chmod +x $lib'
10699 ;;
10700
10701 sunos4*)
10702 version_type=sunos
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes
10707 if test "$with_gnu_ld" = yes; then
10708 need_lib_prefix=no
10709 fi
10710 need_version=yes
10711 ;;
10712
10713 sysv4 | sysv4.3*)
10714 version_type=linux
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 case $host_vendor in
10719 sni)
10720 shlibpath_overrides_runpath=no
10721 need_lib_prefix=no
10722 export_dynamic_flag_spec='${wl}-Blargedynsym'
10723 runpath_var=LD_RUN_PATH
10724 ;;
10725 siemens)
10726 need_lib_prefix=no
10727 ;;
10728 motorola)
10729 need_lib_prefix=no
10730 need_version=no
10731 shlibpath_overrides_runpath=no
10732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10733 ;;
10734 esac
10735 ;;
10736
10737 sysv4*MP*)
10738 if test -d /usr/nec ;then
10739 version_type=linux
10740 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10741 soname_spec='$libname${shared_ext}.$major'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 fi
10744 ;;
10745
10746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10747 version_type=freebsd-elf
10748 need_lib_prefix=no
10749 need_version=no
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 hardcode_into_libs=yes
10754 if test "$with_gnu_ld" = yes; then
10755 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10756 shlibpath_overrides_runpath=no
10757 else
10758 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10759 shlibpath_overrides_runpath=yes
10760 case $host_os in
10761 sco3.2v5*)
10762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10763 ;;
10764 esac
10765 fi
10766 sys_lib_dlsearch_path_spec='/usr/lib'
10767 ;;
10768
10769 uts4*)
10770 version_type=linux
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772 soname_spec='${libname}${release}${shared_ext}$major'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 ;;
10775
10776 *)
10777 dynamic_linker=no
10778 ;;
10779 esac
10780 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10781 echo "${ECHO_T}$dynamic_linker" >&6; }
10782 test "$dynamic_linker" = no && can_build_shared=no
10783
10784 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10788 fi
10789
10790 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10791 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10795 fi
10796
10797 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10798
10799 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10800 if test "$GCC" = yes; then
10801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10802 fi
10803
10804 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10806 hardcode_action=
10807 if test -n "$hardcode_libdir_flag_spec" || \
10808 test -n "$runpath_var" || \
10809 test "X$hardcode_automatic" = "Xyes" ; then
10810
10811 # We can hardcode non-existant directories.
10812 if test "$hardcode_direct" != no &&
10813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10814 # have to relink, otherwise we might link with an installed library
10815 # when we should be linking with a yet-to-be-installed one
10816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10817 test "$hardcode_minus_L" != no; then
10818 # Linking always hardcodes the temporary library directory.
10819 hardcode_action=relink
10820 else
10821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10822 hardcode_action=immediate
10823 fi
10824 else
10825 # We cannot hardcode anything, or else we can only hardcode existing
10826 # directories.
10827 hardcode_action=unsupported
10828 fi
10829 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10830 echo "${ECHO_T}$hardcode_action" >&6; }
10831
10832 if test "$hardcode_action" = relink; then
10833 # Fast installation is not supported
10834 enable_fast_install=no
10835 elif test "$shlibpath_overrides_runpath" = yes ||
10836 test "$enable_shared" = no; then
10837 # Fast installation is not necessary
10838 enable_fast_install=needless
10839 fi
10840
10841 striplib=
10842 old_striplib=
10843 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10844 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10845 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10848 { echo "$as_me:$LINENO: result: yes" >&5
10849 echo "${ECHO_T}yes" >&6; }
10850 else
10851 # FIXME - insert some real tests, host_os isn't really good enough
10852 case $host_os in
10853 darwin*)
10854 if test -n "$STRIP" ; then
10855 striplib="$STRIP -x"
10856 old_striplib="$STRIP -S"
10857 { echo "$as_me:$LINENO: result: yes" >&5
10858 echo "${ECHO_T}yes" >&6; }
10859 else
10860 { echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6; }
10862 fi
10863 ;;
10864 *)
10865 { echo "$as_me:$LINENO: result: no" >&5
10866 echo "${ECHO_T}no" >&6; }
10867 ;;
10868 esac
10869 fi
10870
10871 if test "x$enable_dlopen" != xyes; then
10872 enable_dlopen=unknown
10873 enable_dlopen_self=unknown
10874 enable_dlopen_self_static=unknown
10875 else
10876 lt_cv_dlopen=no
10877 lt_cv_dlopen_libs=
10878
10879 case $host_os in
10880 beos*)
10881 lt_cv_dlopen="load_add_on"
10882 lt_cv_dlopen_libs=
10883 lt_cv_dlopen_self=yes
10884 ;;
10885
10886 mingw* | pw32*)
10887 lt_cv_dlopen="LoadLibrary"
10888 lt_cv_dlopen_libs=
10889 ;;
10890
10891 cygwin*)
10892 lt_cv_dlopen="dlopen"
10893 lt_cv_dlopen_libs=
10894 ;;
10895
10896 darwin*)
10897 # if libdl is installed we need to link against it
10898 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10899 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-ldl $LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char dlopen ();
10919 int
10920 main ()
10921 {
10922 return dlopen ();
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 ac_cv_lib_dl_dlopen=yes
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950 ac_cv_lib_dl_dlopen=no
10951 fi
10952
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10956 fi
10957 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10958 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10959 if test $ac_cv_lib_dl_dlopen = yes; then
10960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10961 else
10962
10963 lt_cv_dlopen="dyld"
10964 lt_cv_dlopen_libs=
10965 lt_cv_dlopen_self=yes
10966
10967 fi
10968
10969 ;;
10970
10971 *)
10972 { echo "$as_me:$LINENO: checking for shl_load" >&5
10973 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10974 if test "${ac_cv_func_shl_load+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10985 #define shl_load innocuous_shl_load
10986
10987 /* System header to define __stub macros and hopefully few prototypes,
10988 which can conflict with char shl_load (); below.
10989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10990 <limits.h> exists even on freestanding compilers. */
10991
10992 #ifdef __STDC__
10993 # include <limits.h>
10994 #else
10995 # include <assert.h>
10996 #endif
10997
10998 #undef shl_load
10999
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char shl_load ();
11007 /* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010 #if defined __stub_shl_load || defined __stub___shl_load
11011 choke me
11012 #endif
11013
11014 int
11015 main ()
11016 {
11017 return shl_load ();
11018 ;
11019 return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (ac_try="$ac_link"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_link") 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } && {
11036 test -z "$ac_c_werror_flag" ||
11037 test ! -s conftest.err
11038 } && test -s conftest$ac_exeext &&
11039 $as_test_x conftest$ac_exeext; then
11040 ac_cv_func_shl_load=yes
11041 else
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045 ac_cv_func_shl_load=no
11046 fi
11047
11048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11049 conftest$ac_exeext conftest.$ac_ext
11050 fi
11051 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11052 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11053 if test $ac_cv_func_shl_load = yes; then
11054 lt_cv_dlopen="shl_load"
11055 else
11056 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11057 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11058 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061 ac_check_lib_save_LIBS=$LIBS
11062 LIBS="-ldld $LIBS"
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char shl_load ();
11077 int
11078 main ()
11079 {
11080 return shl_load ();
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest$ac_exeext &&
11102 $as_test_x conftest$ac_exeext; then
11103 ac_cv_lib_dld_shl_load=yes
11104 else
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 ac_cv_lib_dld_shl_load=no
11109 fi
11110
11111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11112 conftest$ac_exeext conftest.$ac_ext
11113 LIBS=$ac_check_lib_save_LIBS
11114 fi
11115 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11116 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11117 if test $ac_cv_lib_dld_shl_load = yes; then
11118 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11119 else
11120 { echo "$as_me:$LINENO: checking for dlopen" >&5
11121 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11122 if test "${ac_cv_func_dlopen+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h. */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133 #define dlopen innocuous_dlopen
11134
11135 /* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char dlopen (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11139
11140 #ifdef __STDC__
11141 # include <limits.h>
11142 #else
11143 # include <assert.h>
11144 #endif
11145
11146 #undef dlopen
11147
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char dlopen ();
11155 /* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158 #if defined __stub_dlopen || defined __stub___dlopen
11159 choke me
11160 #endif
11161
11162 int
11163 main ()
11164 {
11165 return dlopen ();
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (ac_try="$ac_link"
11172 case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_link") 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest$ac_exeext &&
11187 $as_test_x conftest$ac_exeext; then
11188 ac_cv_func_dlopen=yes
11189 else
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 ac_cv_func_dlopen=no
11194 fi
11195
11196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11197 conftest$ac_exeext conftest.$ac_ext
11198 fi
11199 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11200 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11201 if test $ac_cv_func_dlopen = yes; then
11202 lt_cv_dlopen="dlopen"
11203 else
11204 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209 ac_check_lib_save_LIBS=$LIBS
11210 LIBS="-ldl $LIBS"
11211 cat >conftest.$ac_ext <<_ACEOF
11212 /* confdefs.h. */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11217
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11221 #ifdef __cplusplus
11222 extern "C"
11223 #endif
11224 char dlopen ();
11225 int
11226 main ()
11227 {
11228 return dlopen ();
11229 ;
11230 return 0;
11231 }
11232 _ACEOF
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (ac_try="$ac_link"
11235 case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238 esac
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_link") 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } && {
11247 test -z "$ac_c_werror_flag" ||
11248 test ! -s conftest.err
11249 } && test -s conftest$ac_exeext &&
11250 $as_test_x conftest$ac_exeext; then
11251 ac_cv_lib_dl_dlopen=yes
11252 else
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 ac_cv_lib_dl_dlopen=no
11257 fi
11258
11259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_lib_save_LIBS
11262 fi
11263 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11264 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11265 if test $ac_cv_lib_dl_dlopen = yes; then
11266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11267 else
11268 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11269 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11270 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-lsvld $LIBS"
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 char dlopen ();
11289 int
11290 main ()
11291 {
11292 return dlopen ();
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (ac_try="$ac_link"
11299 case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_link") 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest$ac_exeext &&
11314 $as_test_x conftest$ac_exeext; then
11315 ac_cv_lib_svld_dlopen=yes
11316 else
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11319
11320 ac_cv_lib_svld_dlopen=no
11321 fi
11322
11323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11324 conftest$ac_exeext conftest.$ac_ext
11325 LIBS=$ac_check_lib_save_LIBS
11326 fi
11327 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11328 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11329 if test $ac_cv_lib_svld_dlopen = yes; then
11330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11331 else
11332 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11333 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11334 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337 ac_check_lib_save_LIBS=$LIBS
11338 LIBS="-ldld $LIBS"
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char dld_link ();
11353 int
11354 main ()
11355 {
11356 return dld_link ();
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (ac_try="$ac_link"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_link") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest$ac_exeext &&
11378 $as_test_x conftest$ac_exeext; then
11379 ac_cv_lib_dld_dld_link=yes
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 ac_cv_lib_dld_dld_link=no
11385 fi
11386
11387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11390 fi
11391 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11392 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11393 if test $ac_cv_lib_dld_dld_link = yes; then
11394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11395 fi
11396
11397
11398 fi
11399
11400
11401 fi
11402
11403
11404 fi
11405
11406
11407 fi
11408
11409
11410 fi
11411
11412 ;;
11413 esac
11414
11415 if test "x$lt_cv_dlopen" != xno; then
11416 enable_dlopen=yes
11417 else
11418 enable_dlopen=no
11419 fi
11420
11421 case $lt_cv_dlopen in
11422 dlopen)
11423 save_CPPFLAGS="$CPPFLAGS"
11424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11425
11426 save_LDFLAGS="$LDFLAGS"
11427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11428
11429 save_LIBS="$LIBS"
11430 LIBS="$lt_cv_dlopen_libs $LIBS"
11431
11432 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11433 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11434 if test "${lt_cv_dlopen_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 if test "$cross_compiling" = yes; then :
11438 lt_cv_dlopen_self=cross
11439 else
11440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11441 lt_status=$lt_dlunknown
11442 cat > conftest.$ac_ext <<EOF
11443 #line 11443 "configure"
11444 #include "confdefs.h"
11445
11446 #if HAVE_DLFCN_H
11447 #include <dlfcn.h>
11448 #endif
11449
11450 #include <stdio.h>
11451
11452 #ifdef RTLD_GLOBAL
11453 # define LT_DLGLOBAL RTLD_GLOBAL
11454 #else
11455 # ifdef DL_GLOBAL
11456 # define LT_DLGLOBAL DL_GLOBAL
11457 # else
11458 # define LT_DLGLOBAL 0
11459 # endif
11460 #endif
11461
11462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11463 find out it does not work in some platform. */
11464 #ifndef LT_DLLAZY_OR_NOW
11465 # ifdef RTLD_LAZY
11466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11467 # else
11468 # ifdef DL_LAZY
11469 # define LT_DLLAZY_OR_NOW DL_LAZY
11470 # else
11471 # ifdef RTLD_NOW
11472 # define LT_DLLAZY_OR_NOW RTLD_NOW
11473 # else
11474 # ifdef DL_NOW
11475 # define LT_DLLAZY_OR_NOW DL_NOW
11476 # else
11477 # define LT_DLLAZY_OR_NOW 0
11478 # endif
11479 # endif
11480 # endif
11481 # endif
11482 #endif
11483
11484 #ifdef __cplusplus
11485 extern "C" void exit (int);
11486 #endif
11487
11488 void fnord() { int i=42;}
11489 int main ()
11490 {
11491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11492 int status = $lt_dlunknown;
11493
11494 if (self)
11495 {
11496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11497 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11498 /* dlclose (self); */
11499 }
11500 else
11501 puts (dlerror ());
11502
11503 exit (status);
11504 }
11505 EOF
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507 (eval $ac_link) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11511 (./conftest; exit; ) >&5 2>/dev/null
11512 lt_status=$?
11513 case x$lt_status in
11514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11517 esac
11518 else :
11519 # compilation failed
11520 lt_cv_dlopen_self=no
11521 fi
11522 fi
11523 rm -fr conftest*
11524
11525
11526 fi
11527 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11528 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11529
11530 if test "x$lt_cv_dlopen_self" = xyes; then
11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11532 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11533 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11534 if test "${lt_cv_dlopen_self_static+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 if test "$cross_compiling" = yes; then :
11538 lt_cv_dlopen_self_static=cross
11539 else
11540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11541 lt_status=$lt_dlunknown
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11543 "configure"
11544 #include "confdefs.h"
11545
11546 #if HAVE_DLFCN_H
11547 #include <dlfcn.h>
11548 #endif
11549
11550 #include <stdio.h>
11551
11552 #ifdef RTLD_GLOBAL
11553 # define LT_DLGLOBAL RTLD_GLOBAL
11554 #else
11555 # ifdef DL_GLOBAL
11556 # define LT_DLGLOBAL DL_GLOBAL
11557 # else
11558 # define LT_DLGLOBAL 0
11559 # endif
11560 #endif
11561
11562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11563 find out it does not work in some platform. */
11564 #ifndef LT_DLLAZY_OR_NOW
11565 # ifdef RTLD_LAZY
11566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11567 # else
11568 # ifdef DL_LAZY
11569 # define LT_DLLAZY_OR_NOW DL_LAZY
11570 # else
11571 # ifdef RTLD_NOW
11572 # define LT_DLLAZY_OR_NOW RTLD_NOW
11573 # else
11574 # ifdef DL_NOW
11575 # define LT_DLLAZY_OR_NOW DL_NOW
11576 # else
11577 # define LT_DLLAZY_OR_NOW 0
11578 # endif
11579 # endif
11580 # endif
11581 # endif
11582 #endif
11583
11584 #ifdef __cplusplus
11585 extern "C" void exit (int);
11586 #endif
11587
11588 void fnord() { int i=42;}
11589 int main ()
11590 {
11591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11592 int status = $lt_dlunknown;
11593
11594 if (self)
11595 {
11596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 /* dlclose (self); */
11599 }
11600 else
11601 puts (dlerror ());
11602
11603 exit (status);
11604 }
11605 EOF
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11611 (./conftest; exit; ) >&5 2>/dev/null
11612 lt_status=$?
11613 case x$lt_status in
11614 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11615 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11616 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11617 esac
11618 else :
11619 # compilation failed
11620 lt_cv_dlopen_self_static=no
11621 fi
11622 fi
11623 rm -fr conftest*
11624
11625
11626 fi
11627 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11628 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11629 fi
11630
11631 CPPFLAGS="$save_CPPFLAGS"
11632 LDFLAGS="$save_LDFLAGS"
11633 LIBS="$save_LIBS"
11634 ;;
11635 esac
11636
11637 case $lt_cv_dlopen_self in
11638 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11639 *) enable_dlopen_self=unknown ;;
11640 esac
11641
11642 case $lt_cv_dlopen_self_static in
11643 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11644 *) enable_dlopen_self_static=unknown ;;
11645 esac
11646 fi
11647
11648
11649 # Report which library types will actually be built
11650 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11651 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11652 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11653 echo "${ECHO_T}$can_build_shared" >&6; }
11654
11655 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11656 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11657 test "$can_build_shared" = "no" && enable_shared=no
11658
11659 # On AIX, shared libraries and static libraries use the same namespace, and
11660 # are all built from PIC.
11661 case $host_os in
11662 aix3*)
11663 test "$enable_shared" = yes && enable_static=no
11664 if test -n "$RANLIB"; then
11665 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11666 postinstall_cmds='$RANLIB $lib'
11667 fi
11668 ;;
11669
11670 aix[4-9]*)
11671 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11672 test "$enable_shared" = yes && enable_static=no
11673 fi
11674 ;;
11675 esac
11676 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11677 echo "${ECHO_T}$enable_shared" >&6; }
11678
11679 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11680 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11681 # Make sure either enable_shared or enable_static is yes.
11682 test "$enable_shared" = yes || enable_static=yes
11683 { echo "$as_me:$LINENO: result: $enable_static" >&5
11684 echo "${ECHO_T}$enable_static" >&6; }
11685
11686 # The else clause should only fire when bootstrapping the
11687 # libtool distribution, otherwise you forgot to ship ltmain.sh
11688 # with your package, and you will get complaints that there are
11689 # no rules to generate ltmain.sh.
11690 if test -f "$ltmain"; then
11691 # See if we are running on zsh, and set the options which allow our commands through
11692 # without removal of \ escapes.
11693 if test -n "${ZSH_VERSION+set}" ; then
11694 setopt NO_GLOB_SUBST
11695 fi
11696 # Now quote all the things that may contain metacharacters while being
11697 # careful not to overquote the AC_SUBSTed values. We take copies of the
11698 # variables and quote the copies for generation of the libtool script.
11699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11700 SED SHELL STRIP \
11701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11703 deplibs_check_method reload_flag reload_cmds need_locks \
11704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11705 lt_cv_sys_global_symbol_to_c_name_address \
11706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11707 old_postinstall_cmds old_postuninstall_cmds \
11708 compiler \
11709 CC \
11710 LD \
11711 lt_prog_compiler_wl \
11712 lt_prog_compiler_pic \
11713 lt_prog_compiler_static \
11714 lt_prog_compiler_no_builtin_flag \
11715 export_dynamic_flag_spec \
11716 thread_safe_flag_spec \
11717 whole_archive_flag_spec \
11718 enable_shared_with_static_runtimes \
11719 old_archive_cmds \
11720 old_archive_from_new_cmds \
11721 predep_objects \
11722 postdep_objects \
11723 predeps \
11724 postdeps \
11725 compiler_lib_search_path \
11726 compiler_lib_search_dirs \
11727 archive_cmds \
11728 archive_expsym_cmds \
11729 postinstall_cmds \
11730 postuninstall_cmds \
11731 old_archive_from_expsyms_cmds \
11732 allow_undefined_flag \
11733 no_undefined_flag \
11734 export_symbols_cmds \
11735 hardcode_libdir_flag_spec \
11736 hardcode_libdir_flag_spec_ld \
11737 hardcode_libdir_separator \
11738 hardcode_automatic \
11739 module_cmds \
11740 module_expsym_cmds \
11741 lt_cv_prog_compiler_c_o \
11742 fix_srcfile_path \
11743 exclude_expsyms \
11744 include_expsyms; do
11745
11746 case $var in
11747 old_archive_cmds | \
11748 old_archive_from_new_cmds | \
11749 archive_cmds | \
11750 archive_expsym_cmds | \
11751 module_cmds | \
11752 module_expsym_cmds | \
11753 old_archive_from_expsyms_cmds | \
11754 export_symbols_cmds | \
11755 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11756 postinstall_cmds | postuninstall_cmds | \
11757 old_postinstall_cmds | old_postuninstall_cmds | \
11758 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11759 # Double-quote double-evaled strings.
11760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11761 ;;
11762 *)
11763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11764 ;;
11765 esac
11766 done
11767
11768 case $lt_echo in
11769 *'\$0 --fallback-echo"')
11770 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11771 ;;
11772 esac
11773
11774 cfgfile="${ofile}T"
11775 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11776 $rm -f "$cfgfile"
11777 { echo "$as_me:$LINENO: creating $ofile" >&5
11778 echo "$as_me: creating $ofile" >&6;}
11779
11780 cat <<__EOF__ >> "$cfgfile"
11781 #! $SHELL
11782
11783 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11784 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11785 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11786 #
11787 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11788 # Free Software Foundation, Inc.
11789 #
11790 # This file is part of GNU Libtool:
11791 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11792 #
11793 # This program is free software; you can redistribute it and/or modify
11794 # it under the terms of the GNU General Public License as published by
11795 # the Free Software Foundation; either version 2 of the License, or
11796 # (at your option) any later version.
11797 #
11798 # This program is distributed in the hope that it will be useful, but
11799 # WITHOUT ANY WARRANTY; without even the implied warranty of
11800 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11801 # General Public License for more details.
11802 #
11803 # You should have received a copy of the GNU General Public License
11804 # along with this program; if not, write to the Free Software
11805 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11806 #
11807 # As a special exception to the GNU General Public License, if you
11808 # distribute this file as part of a program that contains a
11809 # configuration script generated by Autoconf, you may include it under
11810 # the same distribution terms that you use for the rest of that program.
11811
11812 # A sed program that does not truncate output.
11813 SED=$lt_SED
11814
11815 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11816 Xsed="$SED -e 1s/^X//"
11817
11818 # The HP-UX ksh and POSIX shell print the target directory to stdout
11819 # if CDPATH is set.
11820 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11821
11822 # The names of the tagged configurations supported by this script.
11823 available_tags=
11824
11825 # ### BEGIN LIBTOOL CONFIG
11826
11827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11828
11829 # Shell to use when invoking shell scripts.
11830 SHELL=$lt_SHELL
11831
11832 # Whether or not to build shared libraries.
11833 build_libtool_libs=$enable_shared
11834
11835 # Whether or not to build static libraries.
11836 build_old_libs=$enable_static
11837
11838 # Whether or not to add -lc for building shared libraries.
11839 build_libtool_need_lc=$archive_cmds_need_lc
11840
11841 # Whether or not to disallow shared libs when runtime libs are static
11842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11843
11844 # Whether or not to optimize for fast installation.
11845 fast_install=$enable_fast_install
11846
11847 # The host system.
11848 host_alias=$host_alias
11849 host=$host
11850 host_os=$host_os
11851
11852 # The build system.
11853 build_alias=$build_alias
11854 build=$build
11855 build_os=$build_os
11856
11857 # An echo program that does not interpret backslashes.
11858 echo=$lt_echo
11859
11860 # The archiver.
11861 AR=$lt_AR
11862 AR_FLAGS=$lt_AR_FLAGS
11863
11864 # A C compiler.
11865 LTCC=$lt_LTCC
11866
11867 # LTCC compiler flags.
11868 LTCFLAGS=$lt_LTCFLAGS
11869
11870 # A language-specific compiler.
11871 CC=$lt_compiler
11872
11873 # Is the compiler the GNU C compiler?
11874 with_gcc=$GCC
11875
11876 # An ERE matcher.
11877 EGREP=$lt_EGREP
11878
11879 # The linker used to build libraries.
11880 LD=$lt_LD
11881
11882 # Whether we need hard or soft links.
11883 LN_S=$lt_LN_S
11884
11885 # A BSD-compatible nm program.
11886 NM=$lt_NM
11887
11888 # A symbol stripping program
11889 STRIP=$lt_STRIP
11890
11891 # Used to examine libraries when file_magic_cmd begins "file"
11892 MAGIC_CMD=$MAGIC_CMD
11893
11894 # Used on cygwin: DLL creation program.
11895 DLLTOOL="$DLLTOOL"
11896
11897 # Used on cygwin: object dumper.
11898 OBJDUMP="$OBJDUMP"
11899
11900 # Used on cygwin: assembler.
11901 AS="$AS"
11902
11903 # The name of the directory that contains temporary libtool files.
11904 objdir=$objdir
11905
11906 # How to create reloadable object files.
11907 reload_flag=$lt_reload_flag
11908 reload_cmds=$lt_reload_cmds
11909
11910 # How to pass a linker flag through the compiler.
11911 wl=$lt_lt_prog_compiler_wl
11912
11913 # Object file suffix (normally "o").
11914 objext="$ac_objext"
11915
11916 # Old archive suffix (normally "a").
11917 libext="$libext"
11918
11919 # Shared library suffix (normally ".so").
11920 shrext_cmds='$shrext_cmds'
11921
11922 # Executable file suffix (normally "").
11923 exeext="$exeext"
11924
11925 # Additional compiler flags for building library objects.
11926 pic_flag=$lt_lt_prog_compiler_pic
11927 pic_mode=$pic_mode
11928
11929 # What is the maximum length of a command?
11930 max_cmd_len=$lt_cv_sys_max_cmd_len
11931
11932 # Does compiler simultaneously support -c and -o options?
11933 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11934
11935 # Must we lock files when doing compilation?
11936 need_locks=$lt_need_locks
11937
11938 # Do we need the lib prefix for modules?
11939 need_lib_prefix=$need_lib_prefix
11940
11941 # Do we need a version for libraries?
11942 need_version=$need_version
11943
11944 # Whether dlopen is supported.
11945 dlopen_support=$enable_dlopen
11946
11947 # Whether dlopen of programs is supported.
11948 dlopen_self=$enable_dlopen_self
11949
11950 # Whether dlopen of statically linked programs is supported.
11951 dlopen_self_static=$enable_dlopen_self_static
11952
11953 # Compiler flag to prevent dynamic linking.
11954 link_static_flag=$lt_lt_prog_compiler_static
11955
11956 # Compiler flag to turn off builtin functions.
11957 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11958
11959 # Compiler flag to allow reflexive dlopens.
11960 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11961
11962 # Compiler flag to generate shared objects directly from archives.
11963 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11964
11965 # Compiler flag to generate thread-safe objects.
11966 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11967
11968 # Library versioning type.
11969 version_type=$version_type
11970
11971 # Format of library name prefix.
11972 libname_spec=$lt_libname_spec
11973
11974 # List of archive names. First name is the real one, the rest are links.
11975 # The last name is the one that the linker finds with -lNAME.
11976 library_names_spec=$lt_library_names_spec
11977
11978 # The coded name of the library, if different from the real name.
11979 soname_spec=$lt_soname_spec
11980
11981 # Commands used to build and install an old-style archive.
11982 RANLIB=$lt_RANLIB
11983 old_archive_cmds=$lt_old_archive_cmds
11984 old_postinstall_cmds=$lt_old_postinstall_cmds
11985 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11986
11987 # Create an old-style archive from a shared archive.
11988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11989
11990 # Create a temporary old-style archive to link instead of a shared archive.
11991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11992
11993 # Commands used to build and install a shared archive.
11994 archive_cmds=$lt_archive_cmds
11995 archive_expsym_cmds=$lt_archive_expsym_cmds
11996 postinstall_cmds=$lt_postinstall_cmds
11997 postuninstall_cmds=$lt_postuninstall_cmds
11998
11999 # Commands used to build a loadable module (assumed same as above if empty)
12000 module_cmds=$lt_module_cmds
12001 module_expsym_cmds=$lt_module_expsym_cmds
12002
12003 # Commands to strip libraries.
12004 old_striplib=$lt_old_striplib
12005 striplib=$lt_striplib
12006
12007 # Dependencies to place before the objects being linked to create a
12008 # shared library.
12009 predep_objects=$lt_predep_objects
12010
12011 # Dependencies to place after the objects being linked to create a
12012 # shared library.
12013 postdep_objects=$lt_postdep_objects
12014
12015 # Dependencies to place before the objects being linked to create a
12016 # shared library.
12017 predeps=$lt_predeps
12018
12019 # Dependencies to place after the objects being linked to create a
12020 # shared library.
12021 postdeps=$lt_postdeps
12022
12023 # The directories searched by this compiler when creating a shared
12024 # library
12025 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12026
12027 # The library search path used internally by the compiler when linking
12028 # a shared library.
12029 compiler_lib_search_path=$lt_compiler_lib_search_path
12030
12031 # Method to check whether dependent libraries are shared objects.
12032 deplibs_check_method=$lt_deplibs_check_method
12033
12034 # Command to use when deplibs_check_method == file_magic.
12035 file_magic_cmd=$lt_file_magic_cmd
12036
12037 # Flag that allows shared libraries with undefined symbols to be built.
12038 allow_undefined_flag=$lt_allow_undefined_flag
12039
12040 # Flag that forces no undefined symbols.
12041 no_undefined_flag=$lt_no_undefined_flag
12042
12043 # Commands used to finish a libtool library installation in a directory.
12044 finish_cmds=$lt_finish_cmds
12045
12046 # Same as above, but a single script fragment to be evaled but not shown.
12047 finish_eval=$lt_finish_eval
12048
12049 # Take the output of nm and produce a listing of raw symbols and C names.
12050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12051
12052 # Transform the output of nm in a proper C declaration
12053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12054
12055 # Transform the output of nm in a C name address pair
12056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12057
12058 # This is the shared library runtime path variable.
12059 runpath_var=$runpath_var
12060
12061 # This is the shared library path variable.
12062 shlibpath_var=$shlibpath_var
12063
12064 # Is shlibpath searched before the hard-coded library search path?
12065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12066
12067 # How to hardcode a shared library path into an executable.
12068 hardcode_action=$hardcode_action
12069
12070 # Whether we should hardcode library paths into libraries.
12071 hardcode_into_libs=$hardcode_into_libs
12072
12073 # Flag to hardcode \$libdir into a binary during linking.
12074 # This must work even if \$libdir does not exist.
12075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12076
12077 # If ld is used when linking, flag to hardcode \$libdir into
12078 # a binary during linking. This must work even if \$libdir does
12079 # not exist.
12080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12081
12082 # Whether we need a single -rpath flag with a separated argument.
12083 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12084
12085 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12086 # resulting binary.
12087 hardcode_direct=$hardcode_direct
12088
12089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12090 # resulting binary.
12091 hardcode_minus_L=$hardcode_minus_L
12092
12093 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12094 # the resulting binary.
12095 hardcode_shlibpath_var=$hardcode_shlibpath_var
12096
12097 # Set to yes if building a shared library automatically hardcodes DIR into the library
12098 # and all subsequent libraries and executables linked against it.
12099 hardcode_automatic=$hardcode_automatic
12100
12101 # Variables whose values should be saved in libtool wrapper scripts and
12102 # restored at relink time.
12103 variables_saved_for_relink="$variables_saved_for_relink"
12104
12105 # Whether libtool must link a program against all its dependency libraries.
12106 link_all_deplibs=$link_all_deplibs
12107
12108 # Compile-time system search path for libraries
12109 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12110
12111 # Run-time system search path for libraries
12112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12113
12114 # Fix the shell variable \$srcfile for the compiler.
12115 fix_srcfile_path=$lt_fix_srcfile_path
12116
12117 # Set to yes if exported symbols are required.
12118 always_export_symbols=$always_export_symbols
12119
12120 # The commands to list exported symbols.
12121 export_symbols_cmds=$lt_export_symbols_cmds
12122
12123 # The commands to extract the exported symbol list from a shared archive.
12124 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12125
12126 # Symbols that should not be listed in the preloaded symbols.
12127 exclude_expsyms=$lt_exclude_expsyms
12128
12129 # Symbols that must always be exported.
12130 include_expsyms=$lt_include_expsyms
12131
12132 # ### END LIBTOOL CONFIG
12133
12134 __EOF__
12135
12136
12137 case $host_os in
12138 aix3*)
12139 cat <<\EOF >> "$cfgfile"
12140
12141 # AIX sometimes has problems with the GCC collect2 program. For some
12142 # reason, if we set the COLLECT_NAMES environment variable, the problems
12143 # vanish in a puff of smoke.
12144 if test "X${COLLECT_NAMES+set}" != Xset; then
12145 COLLECT_NAMES=
12146 export COLLECT_NAMES
12147 fi
12148 EOF
12149 ;;
12150 esac
12151
12152 # We use sed instead of cat because bash on DJGPP gets confused if
12153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12154 # text mode, it properly converts lines to CR/LF. This bash problem
12155 # is reportedly fixed, but why not run on old versions too?
12156 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12157
12158 mv -f "$cfgfile" "$ofile" || \
12159 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12160 chmod +x "$ofile"
12161
12162 else
12163 # If there is no Makefile yet, we rely on a make rule to execute
12164 # `config.status --recheck' to rerun these tests and create the
12165 # libtool script then.
12166 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12167 if test -f "$ltmain_in"; then
12168 test -f Makefile && make "$ltmain"
12169 fi
12170 fi
12171
12172
12173 ac_ext=c
12174 ac_cpp='$CPP $CPPFLAGS'
12175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179 CC="$lt_save_CC"
12180
12181
12182 # Check whether --with-tags was given.
12183 if test "${with_tags+set}" = set; then
12184 withval=$with_tags; tagnames="$withval"
12185 fi
12186
12187
12188 if test -f "$ltmain" && test -n "$tagnames"; then
12189 if test ! -f "${ofile}"; then
12190 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12191 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12192 fi
12193
12194 if test -z "$LTCC"; then
12195 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12196 if test -z "$LTCC"; then
12197 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12198 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12199 else
12200 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12201 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12202 fi
12203 fi
12204 if test -z "$LTCFLAGS"; then
12205 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12206 fi
12207
12208 # Extract list of available tagged configurations in $ofile.
12209 # Note that this assumes the entire list is on one line.
12210 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12211
12212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12213 for tagname in $tagnames; do
12214 IFS="$lt_save_ifs"
12215 # Check whether tagname contains only valid characters
12216 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12217 "") ;;
12218 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12219 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12220 { (exit 1); exit 1; }; }
12221 ;;
12222 esac
12223
12224 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12225 then
12226 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12227 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12228 { (exit 1); exit 1; }; }
12229 fi
12230
12231 # Update the list of available tags.
12232 if test -n "$tagname"; then
12233 echo appending configuration tag \"$tagname\" to $ofile
12234
12235 case $tagname in
12236 CXX)
12237 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12238 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12239 (test "X$CXX" != "Xg++"))) ; then
12240 ac_ext=cpp
12241 ac_cpp='$CXXCPP $CPPFLAGS'
12242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12245
12246
12247
12248
12249 archive_cmds_need_lc_CXX=no
12250 allow_undefined_flag_CXX=
12251 always_export_symbols_CXX=no
12252 archive_expsym_cmds_CXX=
12253 export_dynamic_flag_spec_CXX=
12254 hardcode_direct_CXX=no
12255 hardcode_libdir_flag_spec_CXX=
12256 hardcode_libdir_flag_spec_ld_CXX=
12257 hardcode_libdir_separator_CXX=
12258 hardcode_minus_L_CXX=no
12259 hardcode_shlibpath_var_CXX=unsupported
12260 hardcode_automatic_CXX=no
12261 module_cmds_CXX=
12262 module_expsym_cmds_CXX=
12263 link_all_deplibs_CXX=unknown
12264 old_archive_cmds_CXX=$old_archive_cmds
12265 no_undefined_flag_CXX=
12266 whole_archive_flag_spec_CXX=
12267 enable_shared_with_static_runtimes_CXX=no
12268
12269 # Dependencies to place before and after the object being linked:
12270 predep_objects_CXX=
12271 postdep_objects_CXX=
12272 predeps_CXX=
12273 postdeps_CXX=
12274 compiler_lib_search_path_CXX=
12275 compiler_lib_search_dirs_CXX=
12276
12277 # Source file extension for C++ test sources.
12278 ac_ext=cpp
12279
12280 # Object file extension for compiled C++ test sources.
12281 objext=o
12282 objext_CXX=$objext
12283
12284 # Code to be used in simple compile tests
12285 lt_simple_compile_test_code="int some_variable = 0;"
12286
12287 # Code to be used in simple link tests
12288 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12289
12290 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12291
12292 # If no C compiler was specified, use CC.
12293 LTCC=${LTCC-"$CC"}
12294
12295 # If no C compiler flags were specified, use CFLAGS.
12296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12297
12298 # Allow CC to be a program name with arguments.
12299 compiler=$CC
12300
12301
12302 # save warnings/boilerplate of simple test code
12303 ac_outfile=conftest.$ac_objext
12304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12306 _lt_compiler_boilerplate=`cat conftest.err`
12307 $rm conftest*
12308
12309 ac_outfile=conftest.$ac_objext
12310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12312 _lt_linker_boilerplate=`cat conftest.err`
12313 $rm -r conftest*
12314
12315
12316 # Allow CC to be a program name with arguments.
12317 lt_save_CC=$CC
12318 lt_save_LD=$LD
12319 lt_save_GCC=$GCC
12320 GCC=$GXX
12321 lt_save_with_gnu_ld=$with_gnu_ld
12322 lt_save_path_LD=$lt_cv_path_LD
12323 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12324 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12325 else
12326 $as_unset lt_cv_prog_gnu_ld
12327 fi
12328 if test -n "${lt_cv_path_LDCXX+set}"; then
12329 lt_cv_path_LD=$lt_cv_path_LDCXX
12330 else
12331 $as_unset lt_cv_path_LD
12332 fi
12333 test -z "${LDCXX+set}" || LD=$LDCXX
12334 CC=${CXX-"c++"}
12335 compiler=$CC
12336 compiler_CXX=$CC
12337 for cc_temp in $compiler""; do
12338 case $cc_temp in
12339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12341 \-*) ;;
12342 *) break;;
12343 esac
12344 done
12345 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12346
12347
12348 # We don't want -fno-exception wen compiling C++ code, so set the
12349 # no_builtin_flag separately
12350 if test "$GXX" = yes; then
12351 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12352 else
12353 lt_prog_compiler_no_builtin_flag_CXX=
12354 fi
12355
12356 if test "$GXX" = yes; then
12357 # Set up default GNU C++ configuration
12358
12359
12360 # Check whether --with-gnu-ld was given.
12361 if test "${with_gnu_ld+set}" = set; then
12362 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12363 else
12364 with_gnu_ld=no
12365 fi
12366
12367 ac_prog=ld
12368 if test "$GCC" = yes; then
12369 # Check if gcc -print-prog-name=ld gives a path.
12370 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12371 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12372 case $host in
12373 *-*-mingw*)
12374 # gcc leaves a trailing carriage return which upsets mingw
12375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12376 *)
12377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12378 esac
12379 case $ac_prog in
12380 # Accept absolute paths.
12381 [\\/]* | ?:[\\/]*)
12382 re_direlt='/[^/][^/]*/\.\./'
12383 # Canonicalize the pathname of ld
12384 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12385 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12386 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12387 done
12388 test -z "$LD" && LD="$ac_prog"
12389 ;;
12390 "")
12391 # If it fails, then pretend we aren't using GCC.
12392 ac_prog=ld
12393 ;;
12394 *)
12395 # If it is relative, then search for the first ld in PATH.
12396 with_gnu_ld=unknown
12397 ;;
12398 esac
12399 elif test "$with_gnu_ld" = yes; then
12400 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12401 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12402 else
12403 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12404 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12405 fi
12406 if test "${lt_cv_path_LD+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409 if test -z "$LD"; then
12410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12411 for ac_dir in $PATH; do
12412 IFS="$lt_save_ifs"
12413 test -z "$ac_dir" && ac_dir=.
12414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12415 lt_cv_path_LD="$ac_dir/$ac_prog"
12416 # Check to see if the program is GNU ld. I'd rather use --version,
12417 # but apparently some variants of GNU ld only accept -v.
12418 # Break only if it was the GNU/non-GNU ld that we prefer.
12419 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12420 *GNU* | *'with BFD'*)
12421 test "$with_gnu_ld" != no && break
12422 ;;
12423 *)
12424 test "$with_gnu_ld" != yes && break
12425 ;;
12426 esac
12427 fi
12428 done
12429 IFS="$lt_save_ifs"
12430 else
12431 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12432 fi
12433 fi
12434
12435 LD="$lt_cv_path_LD"
12436 if test -n "$LD"; then
12437 { echo "$as_me:$LINENO: result: $LD" >&5
12438 echo "${ECHO_T}$LD" >&6; }
12439 else
12440 { echo "$as_me:$LINENO: result: no" >&5
12441 echo "${ECHO_T}no" >&6; }
12442 fi
12443 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12444 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12445 { (exit 1); exit 1; }; }
12446 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12447 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12448 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12452 case `$LD -v 2>&1 </dev/null` in
12453 *GNU* | *'with BFD'*)
12454 lt_cv_prog_gnu_ld=yes
12455 ;;
12456 *)
12457 lt_cv_prog_gnu_ld=no
12458 ;;
12459 esac
12460 fi
12461 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12462 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12463 with_gnu_ld=$lt_cv_prog_gnu_ld
12464
12465
12466
12467 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12468 # archiving commands below assume that GNU ld is being used.
12469 if test "$with_gnu_ld" = yes; then
12470 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12471 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'
12472
12473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12475
12476 # If archive_cmds runs LD, not CC, wlarc should be empty
12477 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12478 # investigate it a little bit more. (MM)
12479 wlarc='${wl}'
12480
12481 # ancient GNU ld didn't support --whole-archive et. al.
12482 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12483 grep 'no-whole-archive' > /dev/null; then
12484 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12485 else
12486 whole_archive_flag_spec_CXX=
12487 fi
12488 else
12489 with_gnu_ld=no
12490 wlarc=
12491
12492 # A generic and very simple default shared library creation
12493 # command for GNU C++ for the case where it uses the native
12494 # linker, instead of GNU ld. If possible, this setting should
12495 # overridden to take advantage of the native linker features on
12496 # the platform it is being used on.
12497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12498 fi
12499
12500 # Commands to make compiler produce verbose output that lists
12501 # what "hidden" libraries, object files and flags are used when
12502 # linking a shared library.
12503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12504
12505 else
12506 GXX=no
12507 with_gnu_ld=no
12508 wlarc=
12509 fi
12510
12511 # PORTME: fill in a description of your system's C++ link characteristics
12512 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12513 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12514 ld_shlibs_CXX=yes
12515 case $host_os in
12516 aix3*)
12517 # FIXME: insert proper C++ library support
12518 ld_shlibs_CXX=no
12519 ;;
12520 aix[4-9]*)
12521 if test "$host_cpu" = ia64; then
12522 # On IA64, the linker does run time linking by default, so we don't
12523 # have to do anything special.
12524 aix_use_runtimelinking=no
12525 exp_sym_flag='-Bexport'
12526 no_entry_flag=""
12527 else
12528 aix_use_runtimelinking=no
12529
12530 # Test if we are trying to use run time linking or normal
12531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12532 # need to do runtime linking.
12533 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12534 for ld_flag in $LDFLAGS; do
12535 case $ld_flag in
12536 *-brtl*)
12537 aix_use_runtimelinking=yes
12538 break
12539 ;;
12540 esac
12541 done
12542 ;;
12543 esac
12544
12545 exp_sym_flag='-bexport'
12546 no_entry_flag='-bnoentry'
12547 fi
12548
12549 # When large executables or shared objects are built, AIX ld can
12550 # have problems creating the table of contents. If linking a library
12551 # or program results in "error TOC overflow" add -mminimal-toc to
12552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12554
12555 archive_cmds_CXX=''
12556 hardcode_direct_CXX=yes
12557 hardcode_libdir_separator_CXX=':'
12558 link_all_deplibs_CXX=yes
12559
12560 if test "$GXX" = yes; then
12561 case $host_os in aix4.[012]|aix4.[012].*)
12562 # We only want to do this on AIX 4.2 and lower, the check
12563 # below for broken collect2 doesn't work under 4.3+
12564 collect2name=`${CC} -print-prog-name=collect2`
12565 if test -f "$collect2name" && \
12566 strings "$collect2name" | grep resolve_lib_name >/dev/null
12567 then
12568 # We have reworked collect2
12569 :
12570 else
12571 # We have old collect2
12572 hardcode_direct_CXX=unsupported
12573 # It fails to find uninstalled libraries when the uninstalled
12574 # path is not listed in the libpath. Setting hardcode_minus_L
12575 # to unsupported forces relinking
12576 hardcode_minus_L_CXX=yes
12577 hardcode_libdir_flag_spec_CXX='-L$libdir'
12578 hardcode_libdir_separator_CXX=
12579 fi
12580 ;;
12581 esac
12582 shared_flag='-shared'
12583 if test "$aix_use_runtimelinking" = yes; then
12584 shared_flag="$shared_flag "'${wl}-G'
12585 fi
12586 else
12587 # not using gcc
12588 if test "$host_cpu" = ia64; then
12589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12590 # chokes on -Wl,-G. The following line is correct:
12591 shared_flag='-G'
12592 else
12593 if test "$aix_use_runtimelinking" = yes; then
12594 shared_flag='${wl}-G'
12595 else
12596 shared_flag='${wl}-bM:SRE'
12597 fi
12598 fi
12599 fi
12600
12601 # It seems that -bexpall does not export symbols beginning with
12602 # underscore (_), so it is better to generate a list of symbols to export.
12603 always_export_symbols_CXX=yes
12604 if test "$aix_use_runtimelinking" = yes; then
12605 # Warning - without using the other runtime loading flags (-brtl),
12606 # -berok will link without error, but may produce a broken library.
12607 allow_undefined_flag_CXX='-berok'
12608 # Determine the default libpath from the value encoded in an empty executable.
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615
12616 int
12617 main ()
12618 {
12619
12620 ;
12621 return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_cxx_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest$ac_exeext &&
12641 $as_test_x conftest$ac_exeext; then
12642
12643 lt_aix_libpath_sed='
12644 /Import File Strings/,/^$/ {
12645 /^0/ {
12646 s/^0 *\(.*\)$/\1/
12647 p
12648 }
12649 }'
12650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12651 # Check for a 64-bit object if we didn't find anything.
12652 if test -z "$aix_libpath"; then
12653 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12654 fi
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659
12660 fi
12661
12662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12663 conftest$ac_exeext conftest.$ac_ext
12664 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12665
12666 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12667
12668 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"
12669 else
12670 if test "$host_cpu" = ia64; then
12671 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12672 allow_undefined_flag_CXX="-z nodefs"
12673 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"
12674 else
12675 # Determine the default libpath from the value encoded in an empty executable.
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682
12683 int
12684 main ()
12685 {
12686
12687 ;
12688 return 0;
12689 }
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (ac_try="$ac_link"
12693 case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696 esac
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_link") 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_cxx_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest$ac_exeext &&
12708 $as_test_x conftest$ac_exeext; then
12709
12710 lt_aix_libpath_sed='
12711 /Import File Strings/,/^$/ {
12712 /^0/ {
12713 s/^0 *\(.*\)$/\1/
12714 p
12715 }
12716 }'
12717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12718 # Check for a 64-bit object if we didn't find anything.
12719 if test -z "$aix_libpath"; then
12720 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12721 fi
12722 else
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726
12727 fi
12728
12729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12730 conftest$ac_exeext conftest.$ac_ext
12731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12732
12733 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12734 # Warning - without using the other run time loading flags,
12735 # -berok will link without error, but may produce a broken library.
12736 no_undefined_flag_CXX=' ${wl}-bernotok'
12737 allow_undefined_flag_CXX=' ${wl}-berok'
12738 # Exported symbols can be pulled into shared objects from archives
12739 whole_archive_flag_spec_CXX='$convenience'
12740 archive_cmds_need_lc_CXX=yes
12741 # This is similar to how AIX traditionally builds its shared libraries.
12742 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'
12743 fi
12744 fi
12745 ;;
12746
12747 beos*)
12748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12749 allow_undefined_flag_CXX=unsupported
12750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12751 # support --undefined. This deserves some investigation. FIXME
12752 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753 else
12754 ld_shlibs_CXX=no
12755 fi
12756 ;;
12757
12758 chorus*)
12759 case $cc_basename in
12760 *)
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12763 ;;
12764 esac
12765 ;;
12766
12767 cygwin* | mingw* | pw32*)
12768 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12769 # as there is no search path for DLLs.
12770 hardcode_libdir_flag_spec_CXX='-L$libdir'
12771 allow_undefined_flag_CXX=unsupported
12772 always_export_symbols_CXX=no
12773 enable_shared_with_static_runtimes_CXX=yes
12774
12775 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12776 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'
12777 # If the export-symbols file already is a .def file (1st line
12778 # is EXPORTS), use it as is; otherwise, prepend...
12779 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12780 cp $export_symbols $output_objdir/$soname.def;
12781 else
12782 echo EXPORTS > $output_objdir/$soname.def;
12783 cat $export_symbols >> $output_objdir/$soname.def;
12784 fi~
12785 $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'
12786 else
12787 ld_shlibs_CXX=no
12788 fi
12789 ;;
12790 darwin* | rhapsody*)
12791 archive_cmds_need_lc_CXX=no
12792 hardcode_direct_CXX=no
12793 hardcode_automatic_CXX=yes
12794 hardcode_shlibpath_var_CXX=unsupported
12795 whole_archive_flag_spec_CXX=''
12796 link_all_deplibs_CXX=yes
12797 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12798 if test "$GXX" = yes ; then
12799 output_verbose_link_cmd='echo'
12800 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12801 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12802 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12803 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12804 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12805 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12806 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12807 fi
12808 else
12809 case $cc_basename in
12810 xlc*)
12811 output_verbose_link_cmd='echo'
12812 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'
12813 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12815 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}'
12816 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}'
12817 ;;
12818 *)
12819 ld_shlibs_CXX=no
12820 ;;
12821 esac
12822 fi
12823 ;;
12824
12825 dgux*)
12826 case $cc_basename in
12827 ec++*)
12828 # FIXME: insert proper C++ library support
12829 ld_shlibs_CXX=no
12830 ;;
12831 ghcx*)
12832 # Green Hills C++ Compiler
12833 # FIXME: insert proper C++ library support
12834 ld_shlibs_CXX=no
12835 ;;
12836 *)
12837 # FIXME: insert proper C++ library support
12838 ld_shlibs_CXX=no
12839 ;;
12840 esac
12841 ;;
12842 freebsd[12]*)
12843 # C++ shared libraries reported to be fairly broken before switch to ELF
12844 ld_shlibs_CXX=no
12845 ;;
12846 freebsd-elf*)
12847 archive_cmds_need_lc_CXX=no
12848 ;;
12849 freebsd* | dragonfly*)
12850 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12851 # conventions
12852 ld_shlibs_CXX=yes
12853 ;;
12854 gnu*)
12855 ;;
12856 hpux9*)
12857 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12858 hardcode_libdir_separator_CXX=:
12859 export_dynamic_flag_spec_CXX='${wl}-E'
12860 hardcode_direct_CXX=yes
12861 hardcode_minus_L_CXX=yes # Not in the search PATH,
12862 # but as the default
12863 # location of the library.
12864
12865 case $cc_basename in
12866 CC*)
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 ;;
12870 aCC*)
12871 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'
12872 # Commands to make compiler produce verbose output that lists
12873 # what "hidden" libraries, object files and flags are used when
12874 # linking a shared library.
12875 #
12876 # There doesn't appear to be a way to prevent this compiler from
12877 # explicitly linking system object files so we need to strip them
12878 # from the output so that they don't get included in the library
12879 # dependencies.
12880 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'
12881 ;;
12882 *)
12883 if test "$GXX" = yes; then
12884 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'
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 fi
12889 ;;
12890 esac
12891 ;;
12892 hpux10*|hpux11*)
12893 if test $with_gnu_ld = no; then
12894 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12895 hardcode_libdir_separator_CXX=:
12896
12897 case $host_cpu in
12898 hppa*64*|ia64*) ;;
12899 *)
12900 export_dynamic_flag_spec_CXX='${wl}-E'
12901 ;;
12902 esac
12903 fi
12904 case $host_cpu in
12905 hppa*64*|ia64*)
12906 hardcode_direct_CXX=no
12907 hardcode_shlibpath_var_CXX=no
12908 ;;
12909 *)
12910 hardcode_direct_CXX=yes
12911 hardcode_minus_L_CXX=yes # Not in the search PATH,
12912 # but as the default
12913 # location of the library.
12914 ;;
12915 esac
12916
12917 case $cc_basename in
12918 CC*)
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922 aCC*)
12923 case $host_cpu in
12924 hppa*64*)
12925 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926 ;;
12927 ia64*)
12928 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 ;;
12930 *)
12931 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12932 ;;
12933 esac
12934 # Commands to make compiler produce verbose output that lists
12935 # what "hidden" libraries, object files and flags are used when
12936 # linking a shared library.
12937 #
12938 # There doesn't appear to be a way to prevent this compiler from
12939 # explicitly linking system object files so we need to strip them
12940 # from the output so that they don't get included in the library
12941 # dependencies.
12942 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'
12943 ;;
12944 *)
12945 if test "$GXX" = yes; then
12946 if test $with_gnu_ld = no; then
12947 case $host_cpu in
12948 hppa*64*)
12949 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12950 ;;
12951 ia64*)
12952 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12953 ;;
12954 *)
12955 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'
12956 ;;
12957 esac
12958 fi
12959 else
12960 # FIXME: insert proper C++ library support
12961 ld_shlibs_CXX=no
12962 fi
12963 ;;
12964 esac
12965 ;;
12966 interix[3-9]*)
12967 hardcode_direct_CXX=no
12968 hardcode_shlibpath_var_CXX=no
12969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12970 export_dynamic_flag_spec_CXX='${wl}-E'
12971 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12972 # Instead, shared libraries are loaded at an image base (0x10000000 by
12973 # default) and relocated if they conflict, which is a slow very memory
12974 # consuming and fragmenting process. To avoid this, we pick a random,
12975 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12976 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12977 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'
12978 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'
12979 ;;
12980 irix5* | irix6*)
12981 case $cc_basename in
12982 CC*)
12983 # SGI C++
12984 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'
12985
12986 # Archives containing C++ object files must be created using
12987 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12988 # necessary to make sure instantiated templates are included
12989 # in the archive.
12990 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12991 ;;
12992 *)
12993 if test "$GXX" = yes; then
12994 if test "$with_gnu_ld" = no; then
12995 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'
12996 else
12997 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'
12998 fi
12999 fi
13000 link_all_deplibs_CXX=yes
13001 ;;
13002 esac
13003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004 hardcode_libdir_separator_CXX=:
13005 ;;
13006 linux* | k*bsd*-gnu)
13007 case $cc_basename in
13008 KCC*)
13009 # Kuck and Associates, Inc. (KAI) C++ Compiler
13010
13011 # KCC will only create a shared library if the output file
13012 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13013 # to its proper name (with version) after linking.
13014 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'
13015 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'
13016 # Commands to make compiler produce verbose output that lists
13017 # what "hidden" libraries, object files and flags are used when
13018 # linking a shared library.
13019 #
13020 # There doesn't appear to be a way to prevent this compiler from
13021 # explicitly linking system object files so we need to strip them
13022 # from the output so that they don't get included in the library
13023 # dependencies.
13024 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'
13025
13026 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13028
13029 # Archives containing C++ object files must be created using
13030 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13031 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13032 ;;
13033 icpc*)
13034 # Intel C++
13035 with_gnu_ld=yes
13036 # version 8.0 and above of icpc choke on multiply defined symbols
13037 # if we add $predep_objects and $postdep_objects, however 7.1 and
13038 # earlier do not add the objects themselves.
13039 case `$CC -V 2>&1` in
13040 *"Version 7."*)
13041 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13042 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'
13043 ;;
13044 *) # Version 8.0 or newer
13045 tmp_idyn=
13046 case $host_cpu in
13047 ia64*) tmp_idyn=' -i_dynamic';;
13048 esac
13049 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050 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'
13051 ;;
13052 esac
13053 archive_cmds_need_lc_CXX=no
13054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13056 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13057 ;;
13058 pgCC* | pgcpp*)
13059 # Portland Group C++ compiler
13060 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13061 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'
13062
13063 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13065 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'
13066 ;;
13067 cxx*)
13068 # Compaq C++
13069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070 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'
13071
13072 runpath_var=LD_RUN_PATH
13073 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13074 hardcode_libdir_separator_CXX=:
13075
13076 # Commands to make compiler produce verbose output that lists
13077 # what "hidden" libraries, object files and flags are used when
13078 # linking a shared library.
13079 #
13080 # There doesn't appear to be a way to prevent this compiler from
13081 # explicitly linking system object files so we need to strip them
13082 # from the output so that they don't get included in the library
13083 # dependencies.
13084 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'
13085 ;;
13086 *)
13087 case `$CC -V 2>&1 | sed 5q` in
13088 *Sun\ C*)
13089 # Sun C++ 5.9
13090 no_undefined_flag_CXX=' -zdefs'
13091 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13092 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'
13093 hardcode_libdir_flag_spec_CXX='-R$libdir'
13094 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'
13095
13096 # Not sure whether something based on
13097 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13098 # would be better.
13099 output_verbose_link_cmd='echo'
13100
13101 # Archives containing C++ object files must be created using
13102 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13103 # necessary to make sure instantiated templates are included
13104 # in the archive.
13105 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13106 ;;
13107 esac
13108 ;;
13109 esac
13110 ;;
13111 lynxos*)
13112 # FIXME: insert proper C++ library support
13113 ld_shlibs_CXX=no
13114 ;;
13115 m88k*)
13116 # FIXME: insert proper C++ library support
13117 ld_shlibs_CXX=no
13118 ;;
13119 mvs*)
13120 case $cc_basename in
13121 cxx*)
13122 # FIXME: insert proper C++ library support
13123 ld_shlibs_CXX=no
13124 ;;
13125 *)
13126 # FIXME: insert proper C++ library support
13127 ld_shlibs_CXX=no
13128 ;;
13129 esac
13130 ;;
13131 netbsd* | netbsdelf*-gnu)
13132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13133 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13134 wlarc=
13135 hardcode_libdir_flag_spec_CXX='-R$libdir'
13136 hardcode_direct_CXX=yes
13137 hardcode_shlibpath_var_CXX=no
13138 fi
13139 # Workaround some broken pre-1.5 toolchains
13140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13141 ;;
13142 openbsd2*)
13143 # C++ shared libraries are fairly broken
13144 ld_shlibs_CXX=no
13145 ;;
13146 openbsd*)
13147 if test -f /usr/libexec/ld.so; then
13148 hardcode_direct_CXX=yes
13149 hardcode_shlibpath_var_CXX=no
13150 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13153 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13154 export_dynamic_flag_spec_CXX='${wl}-E'
13155 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13156 fi
13157 output_verbose_link_cmd='echo'
13158 else
13159 ld_shlibs_CXX=no
13160 fi
13161 ;;
13162 osf3*)
13163 case $cc_basename in
13164 KCC*)
13165 # Kuck and Associates, Inc. (KAI) C++ Compiler
13166
13167 # KCC will only create a shared library if the output file
13168 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13169 # to its proper name (with version) after linking.
13170 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'
13171
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13173 hardcode_libdir_separator_CXX=:
13174
13175 # Archives containing C++ object files must be created using
13176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13177 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13178
13179 ;;
13180 RCC*)
13181 # Rational C++ 2.4.1
13182 # FIXME: insert proper C++ library support
13183 ld_shlibs_CXX=no
13184 ;;
13185 cxx*)
13186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13187 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'
13188
13189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13190 hardcode_libdir_separator_CXX=:
13191
13192 # Commands to make compiler produce verbose output that lists
13193 # what "hidden" libraries, object files and flags are used when
13194 # linking a shared library.
13195 #
13196 # There doesn't appear to be a way to prevent this compiler from
13197 # explicitly linking system object files so we need to strip them
13198 # from the output so that they don't get included in the library
13199 # dependencies.
13200 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'
13201 ;;
13202 *)
13203 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13204 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13205 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'
13206
13207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13208 hardcode_libdir_separator_CXX=:
13209
13210 # Commands to make compiler produce verbose output that lists
13211 # what "hidden" libraries, object files and flags are used when
13212 # linking a shared library.
13213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13214
13215 else
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13218 fi
13219 ;;
13220 esac
13221 ;;
13222 osf4* | osf5*)
13223 case $cc_basename in
13224 KCC*)
13225 # Kuck and Associates, Inc. (KAI) C++ Compiler
13226
13227 # KCC will only create a shared library if the output file
13228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13229 # to its proper name (with version) after linking.
13230 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'
13231
13232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13233 hardcode_libdir_separator_CXX=:
13234
13235 # Archives containing C++ object files must be created using
13236 # the KAI C++ compiler.
13237 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13238 ;;
13239 RCC*)
13240 # Rational C++ 2.4.1
13241 # FIXME: insert proper C++ library support
13242 ld_shlibs_CXX=no
13243 ;;
13244 cxx*)
13245 allow_undefined_flag_CXX=' -expect_unresolved \*'
13246 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'
13247 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13248 echo "-hidden">> $lib.exp~
13249 $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~
13250 $rm $lib.exp'
13251
13252 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13253 hardcode_libdir_separator_CXX=:
13254
13255 # Commands to make compiler produce verbose output that lists
13256 # what "hidden" libraries, object files and flags are used when
13257 # linking a shared library.
13258 #
13259 # There doesn't appear to be a way to prevent this compiler from
13260 # explicitly linking system object files so we need to strip them
13261 # from the output so that they don't get included in the library
13262 # dependencies.
13263 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'
13264 ;;
13265 *)
13266 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13267 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13268 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'
13269
13270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13271 hardcode_libdir_separator_CXX=:
13272
13273 # Commands to make compiler produce verbose output that lists
13274 # what "hidden" libraries, object files and flags are used when
13275 # linking a shared library.
13276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13277
13278 else
13279 # FIXME: insert proper C++ library support
13280 ld_shlibs_CXX=no
13281 fi
13282 ;;
13283 esac
13284 ;;
13285 psos*)
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13288 ;;
13289 sunos4*)
13290 case $cc_basename in
13291 CC*)
13292 # Sun C++ 4.x
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13295 ;;
13296 lcc*)
13297 # Lucid
13298 # FIXME: insert proper C++ library support
13299 ld_shlibs_CXX=no
13300 ;;
13301 *)
13302 # FIXME: insert proper C++ library support
13303 ld_shlibs_CXX=no
13304 ;;
13305 esac
13306 ;;
13307 solaris*)
13308 case $cc_basename in
13309 CC*)
13310 # Sun C++ 4.2, 5.x and Centerline C++
13311 archive_cmds_need_lc_CXX=yes
13312 no_undefined_flag_CXX=' -zdefs'
13313 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13314 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13315 $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'
13316
13317 hardcode_libdir_flag_spec_CXX='-R$libdir'
13318 hardcode_shlibpath_var_CXX=no
13319 case $host_os in
13320 solaris2.[0-5] | solaris2.[0-5].*) ;;
13321 *)
13322 # The compiler driver will combine and reorder linker options,
13323 # but understands `-z linker_flag'.
13324 # Supported since Solaris 2.6 (maybe 2.5.1?)
13325 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13326 ;;
13327 esac
13328 link_all_deplibs_CXX=yes
13329
13330 output_verbose_link_cmd='echo'
13331
13332 # Archives containing C++ object files must be created using
13333 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13334 # necessary to make sure instantiated templates are included
13335 # in the archive.
13336 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13337 ;;
13338 gcx*)
13339 # Green Hills C++ Compiler
13340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13341
13342 # The C++ compiler must be used to create the archive.
13343 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13344 ;;
13345 *)
13346 # GNU C++ compiler with Solaris linker
13347 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13348 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13349 if $CC --version | grep -v '^2\.7' > /dev/null; then
13350 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13352 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13353
13354 # Commands to make compiler produce verbose output that lists
13355 # what "hidden" libraries, object files and flags are used when
13356 # linking a shared library.
13357 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13358 else
13359 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13360 # platform.
13361 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13362 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13363 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13364
13365 # Commands to make compiler produce verbose output that lists
13366 # what "hidden" libraries, object files and flags are used when
13367 # linking a shared library.
13368 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13369 fi
13370
13371 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13372 case $host_os in
13373 solaris2.[0-5] | solaris2.[0-5].*) ;;
13374 *)
13375 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13376 ;;
13377 esac
13378 fi
13379 ;;
13380 esac
13381 ;;
13382 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13383 no_undefined_flag_CXX='${wl}-z,text'
13384 archive_cmds_need_lc_CXX=no
13385 hardcode_shlibpath_var_CXX=no
13386 runpath_var='LD_RUN_PATH'
13387
13388 case $cc_basename in
13389 CC*)
13390 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13392 ;;
13393 *)
13394 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13395 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13396 ;;
13397 esac
13398 ;;
13399 sysv5* | sco3.2v5* | sco5v6*)
13400 # Note: We can NOT use -z defs as we might desire, because we do not
13401 # link with -lc, and that would cause any symbols used from libc to
13402 # always be unresolved, which means just about no library would
13403 # ever link correctly. If we're not using GNU ld we use -z text
13404 # though, which does catch some bad symbols but isn't as heavy-handed
13405 # as -z defs.
13406 # For security reasons, it is highly recommended that you always
13407 # use absolute paths for naming shared libraries, and exclude the
13408 # DT_RUNPATH tag from executables and libraries. But doing so
13409 # requires that you compile everything twice, which is a pain.
13410 # So that behaviour is only enabled if SCOABSPATH is set to a
13411 # non-empty value in the environment. Most likely only useful for
13412 # creating official distributions of packages.
13413 # This is a hack until libtool officially supports absolute path
13414 # names for shared libraries.
13415 no_undefined_flag_CXX='${wl}-z,text'
13416 allow_undefined_flag_CXX='${wl}-z,nodefs'
13417 archive_cmds_need_lc_CXX=no
13418 hardcode_shlibpath_var_CXX=no
13419 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13420 hardcode_libdir_separator_CXX=':'
13421 link_all_deplibs_CXX=yes
13422 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13423 runpath_var='LD_RUN_PATH'
13424
13425 case $cc_basename in
13426 CC*)
13427 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13428 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13429 ;;
13430 *)
13431 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13432 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13433 ;;
13434 esac
13435 ;;
13436 tandem*)
13437 case $cc_basename in
13438 NCC*)
13439 # NonStop-UX NCC 3.20
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13442 ;;
13443 *)
13444 # FIXME: insert proper C++ library support
13445 ld_shlibs_CXX=no
13446 ;;
13447 esac
13448 ;;
13449 vxworks*)
13450 # FIXME: insert proper C++ library support
13451 ld_shlibs_CXX=no
13452 ;;
13453 *)
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457 esac
13458 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13459 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13460 test "$ld_shlibs_CXX" = no && can_build_shared=no
13461
13462 GCC_CXX="$GXX"
13463 LD_CXX="$LD"
13464
13465 cat > conftest.$ac_ext <<EOF
13466 class Foo
13467 {
13468 public:
13469 Foo (void) { a = 0; }
13470 private:
13471 int a;
13472 };
13473 EOF
13474
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; then
13480 # Parse the compiler output and extract the necessary
13481 # objects, libraries and library flags.
13482
13483 # Sentinel used to keep track of whether or not we are before
13484 # the conftest object file.
13485 pre_test_object_deps_done=no
13486
13487 # The `*' in the case matches for architectures that use `case' in
13488 # $output_verbose_cmd can trigger glob expansion during the loop
13489 # eval without this substitution.
13490 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13491
13492 for p in `eval $output_verbose_link_cmd`; do
13493 case $p in
13494
13495 -L* | -R* | -l*)
13496 # Some compilers place space between "-{L,R}" and the path.
13497 # Remove the space.
13498 if test $p = "-L" \
13499 || test $p = "-R"; then
13500 prev=$p
13501 continue
13502 else
13503 prev=
13504 fi
13505
13506 if test "$pre_test_object_deps_done" = no; then
13507 case $p in
13508 -L* | -R*)
13509 # Internal compiler library paths should come after those
13510 # provided the user. The postdeps already come after the
13511 # user supplied libs so there is no need to process them.
13512 if test -z "$compiler_lib_search_path_CXX"; then
13513 compiler_lib_search_path_CXX="${prev}${p}"
13514 else
13515 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13516 fi
13517 ;;
13518 # The "-l" case would never come before the object being
13519 # linked, so don't bother handling this case.
13520 esac
13521 else
13522 if test -z "$postdeps_CXX"; then
13523 postdeps_CXX="${prev}${p}"
13524 else
13525 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13526 fi
13527 fi
13528 ;;
13529
13530 *.$objext)
13531 # This assumes that the test object file only shows up
13532 # once in the compiler output.
13533 if test "$p" = "conftest.$objext"; then
13534 pre_test_object_deps_done=yes
13535 continue
13536 fi
13537
13538 if test "$pre_test_object_deps_done" = no; then
13539 if test -z "$predep_objects_CXX"; then
13540 predep_objects_CXX="$p"
13541 else
13542 predep_objects_CXX="$predep_objects_CXX $p"
13543 fi
13544 else
13545 if test -z "$postdep_objects_CXX"; then
13546 postdep_objects_CXX="$p"
13547 else
13548 postdep_objects_CXX="$postdep_objects_CXX $p"
13549 fi
13550 fi
13551 ;;
13552
13553 *) ;; # Ignore the rest.
13554
13555 esac
13556 done
13557
13558 # Clean up.
13559 rm -f a.out a.exe
13560 else
13561 echo "libtool.m4: error: problem compiling CXX test program"
13562 fi
13563
13564 $rm -f confest.$objext
13565
13566 compiler_lib_search_dirs_CXX=
13567 if test -n "$compiler_lib_search_path_CXX"; then
13568 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13569 fi
13570
13571 # PORTME: override above test on systems where it is broken
13572 case $host_os in
13573 interix[3-9]*)
13574 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13575 # hack all around it, let's just trust "g++" to DTRT.
13576 predep_objects_CXX=
13577 postdep_objects_CXX=
13578 postdeps_CXX=
13579 ;;
13580
13581 linux*)
13582 case `$CC -V 2>&1 | sed 5q` in
13583 *Sun\ C*)
13584 # Sun C++ 5.9
13585 #
13586 # The more standards-conforming stlport4 library is
13587 # incompatible with the Cstd library. Avoid specifying
13588 # it if it's in CXXFLAGS. Ignore libCrun as
13589 # -library=stlport4 depends on it.
13590 case " $CXX $CXXFLAGS " in
13591 *" -library=stlport4 "*)
13592 solaris_use_stlport4=yes
13593 ;;
13594 esac
13595 if test "$solaris_use_stlport4" != yes; then
13596 postdeps_CXX='-library=Cstd -library=Crun'
13597 fi
13598 ;;
13599 esac
13600 ;;
13601
13602 solaris*)
13603 case $cc_basename in
13604 CC*)
13605 # The more standards-conforming stlport4 library is
13606 # incompatible with the Cstd library. Avoid specifying
13607 # it if it's in CXXFLAGS. Ignore libCrun as
13608 # -library=stlport4 depends on it.
13609 case " $CXX $CXXFLAGS " in
13610 *" -library=stlport4 "*)
13611 solaris_use_stlport4=yes
13612 ;;
13613 esac
13614
13615 # Adding this requires a known-good setup of shared libraries for
13616 # Sun compiler versions before 5.6, else PIC objects from an old
13617 # archive will be linked into the output, leading to subtle bugs.
13618 if test "$solaris_use_stlport4" != yes; then
13619 postdeps_CXX='-library=Cstd -library=Crun'
13620 fi
13621 ;;
13622 esac
13623 ;;
13624 esac
13625
13626 case " $postdeps_CXX " in
13627 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13628 esac
13629
13630 lt_prog_compiler_wl_CXX=
13631 lt_prog_compiler_pic_CXX=
13632 lt_prog_compiler_static_CXX=
13633
13634 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13636
13637 # C++ specific cases for pic, static, wl, etc.
13638 if test "$GXX" = yes; then
13639 lt_prog_compiler_wl_CXX='-Wl,'
13640 lt_prog_compiler_static_CXX='-static'
13641
13642 case $host_os in
13643 aix*)
13644 # All AIX code is PIC.
13645 if test "$host_cpu" = ia64; then
13646 # AIX 5 now supports IA64 processor
13647 lt_prog_compiler_static_CXX='-Bstatic'
13648 fi
13649 ;;
13650 amigaos*)
13651 # FIXME: we need at least 68020 code to build shared libraries, but
13652 # adding the `-m68020' flag to GCC prevents building anything better,
13653 # like `-m68040'.
13654 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13655 ;;
13656 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13657 # PIC is the default for these OSes.
13658 ;;
13659 mingw* | cygwin* | os2* | pw32*)
13660 # This hack is so that the source file can tell whether it is being
13661 # built for inclusion in a dll (and should export symbols for example).
13662 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13663 # (--disable-auto-import) libraries
13664 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13665 ;;
13666 darwin* | rhapsody*)
13667 # PIC is the default on this platform
13668 # Common symbols not allowed in MH_DYLIB files
13669 lt_prog_compiler_pic_CXX='-fno-common'
13670 ;;
13671 *djgpp*)
13672 # DJGPP does not support shared libraries at all
13673 lt_prog_compiler_pic_CXX=
13674 ;;
13675 interix[3-9]*)
13676 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13677 # Instead, we relocate shared libraries at runtime.
13678 ;;
13679 sysv4*MP*)
13680 if test -d /usr/nec; then
13681 lt_prog_compiler_pic_CXX=-Kconform_pic
13682 fi
13683 ;;
13684 hpux*)
13685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13686 # not for PA HP-UX.
13687 case $host_cpu in
13688 hppa*64*|ia64*)
13689 ;;
13690 *)
13691 lt_prog_compiler_pic_CXX='-fPIC'
13692 ;;
13693 esac
13694 ;;
13695 *)
13696 lt_prog_compiler_pic_CXX='-fPIC'
13697 ;;
13698 esac
13699 else
13700 case $host_os in
13701 aix[4-9]*)
13702 # All AIX code is PIC.
13703 if test "$host_cpu" = ia64; then
13704 # AIX 5 now supports IA64 processor
13705 lt_prog_compiler_static_CXX='-Bstatic'
13706 else
13707 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13708 fi
13709 ;;
13710 chorus*)
13711 case $cc_basename in
13712 cxch68*)
13713 # Green Hills C++ Compiler
13714 # _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"
13715 ;;
13716 esac
13717 ;;
13718 darwin*)
13719 # PIC is the default on this platform
13720 # Common symbols not allowed in MH_DYLIB files
13721 case $cc_basename in
13722 xlc*)
13723 lt_prog_compiler_pic_CXX='-qnocommon'
13724 lt_prog_compiler_wl_CXX='-Wl,'
13725 ;;
13726 esac
13727 ;;
13728 dgux*)
13729 case $cc_basename in
13730 ec++*)
13731 lt_prog_compiler_pic_CXX='-KPIC'
13732 ;;
13733 ghcx*)
13734 # Green Hills C++ Compiler
13735 lt_prog_compiler_pic_CXX='-pic'
13736 ;;
13737 *)
13738 ;;
13739 esac
13740 ;;
13741 freebsd* | dragonfly*)
13742 # FreeBSD uses GNU C++
13743 ;;
13744 hpux9* | hpux10* | hpux11*)
13745 case $cc_basename in
13746 CC*)
13747 lt_prog_compiler_wl_CXX='-Wl,'
13748 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13749 if test "$host_cpu" != ia64; then
13750 lt_prog_compiler_pic_CXX='+Z'
13751 fi
13752 ;;
13753 aCC*)
13754 lt_prog_compiler_wl_CXX='-Wl,'
13755 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13756 case $host_cpu in
13757 hppa*64*|ia64*)
13758 # +Z the default
13759 ;;
13760 *)
13761 lt_prog_compiler_pic_CXX='+Z'
13762 ;;
13763 esac
13764 ;;
13765 *)
13766 ;;
13767 esac
13768 ;;
13769 interix*)
13770 # This is c89, which is MS Visual C++ (no shared libs)
13771 # Anyone wants to do a port?
13772 ;;
13773 irix5* | irix6* | nonstopux*)
13774 case $cc_basename in
13775 CC*)
13776 lt_prog_compiler_wl_CXX='-Wl,'
13777 lt_prog_compiler_static_CXX='-non_shared'
13778 # CC pic flag -KPIC is the default.
13779 ;;
13780 *)
13781 ;;
13782 esac
13783 ;;
13784 linux* | k*bsd*-gnu)
13785 case $cc_basename in
13786 KCC*)
13787 # KAI C++ Compiler
13788 lt_prog_compiler_wl_CXX='--backend -Wl,'
13789 lt_prog_compiler_pic_CXX='-fPIC'
13790 ;;
13791 icpc* | ecpc*)
13792 # Intel C++
13793 lt_prog_compiler_wl_CXX='-Wl,'
13794 lt_prog_compiler_pic_CXX='-KPIC'
13795 lt_prog_compiler_static_CXX='-static'
13796 ;;
13797 pgCC* | pgcpp*)
13798 # Portland Group C++ compiler.
13799 lt_prog_compiler_wl_CXX='-Wl,'
13800 lt_prog_compiler_pic_CXX='-fpic'
13801 lt_prog_compiler_static_CXX='-Bstatic'
13802 ;;
13803 cxx*)
13804 # Compaq C++
13805 # Make sure the PIC flag is empty. It appears that all Alpha
13806 # Linux and Compaq Tru64 Unix objects are PIC.
13807 lt_prog_compiler_pic_CXX=
13808 lt_prog_compiler_static_CXX='-non_shared'
13809 ;;
13810 *)
13811 case `$CC -V 2>&1 | sed 5q` in
13812 *Sun\ C*)
13813 # Sun C++ 5.9
13814 lt_prog_compiler_pic_CXX='-KPIC'
13815 lt_prog_compiler_static_CXX='-Bstatic'
13816 lt_prog_compiler_wl_CXX='-Qoption ld '
13817 ;;
13818 esac
13819 ;;
13820 esac
13821 ;;
13822 lynxos*)
13823 ;;
13824 m88k*)
13825 ;;
13826 mvs*)
13827 case $cc_basename in
13828 cxx*)
13829 lt_prog_compiler_pic_CXX='-W c,exportall'
13830 ;;
13831 *)
13832 ;;
13833 esac
13834 ;;
13835 netbsd* | netbsdelf*-gnu)
13836 ;;
13837 osf3* | osf4* | osf5*)
13838 case $cc_basename in
13839 KCC*)
13840 lt_prog_compiler_wl_CXX='--backend -Wl,'
13841 ;;
13842 RCC*)
13843 # Rational C++ 2.4.1
13844 lt_prog_compiler_pic_CXX='-pic'
13845 ;;
13846 cxx*)
13847 # Digital/Compaq C++
13848 lt_prog_compiler_wl_CXX='-Wl,'
13849 # Make sure the PIC flag is empty. It appears that all Alpha
13850 # Linux and Compaq Tru64 Unix objects are PIC.
13851 lt_prog_compiler_pic_CXX=
13852 lt_prog_compiler_static_CXX='-non_shared'
13853 ;;
13854 *)
13855 ;;
13856 esac
13857 ;;
13858 psos*)
13859 ;;
13860 solaris*)
13861 case $cc_basename in
13862 CC*)
13863 # Sun C++ 4.2, 5.x and Centerline C++
13864 lt_prog_compiler_pic_CXX='-KPIC'
13865 lt_prog_compiler_static_CXX='-Bstatic'
13866 lt_prog_compiler_wl_CXX='-Qoption ld '
13867 ;;
13868 gcx*)
13869 # Green Hills C++ Compiler
13870 lt_prog_compiler_pic_CXX='-PIC'
13871 ;;
13872 *)
13873 ;;
13874 esac
13875 ;;
13876 sunos4*)
13877 case $cc_basename in
13878 CC*)
13879 # Sun C++ 4.x
13880 lt_prog_compiler_pic_CXX='-pic'
13881 lt_prog_compiler_static_CXX='-Bstatic'
13882 ;;
13883 lcc*)
13884 # Lucid
13885 lt_prog_compiler_pic_CXX='-pic'
13886 ;;
13887 *)
13888 ;;
13889 esac
13890 ;;
13891 tandem*)
13892 case $cc_basename in
13893 NCC*)
13894 # NonStop-UX NCC 3.20
13895 lt_prog_compiler_pic_CXX='-KPIC'
13896 ;;
13897 *)
13898 ;;
13899 esac
13900 ;;
13901 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13902 case $cc_basename in
13903 CC*)
13904 lt_prog_compiler_wl_CXX='-Wl,'
13905 lt_prog_compiler_pic_CXX='-KPIC'
13906 lt_prog_compiler_static_CXX='-Bstatic'
13907 ;;
13908 esac
13909 ;;
13910 vxworks*)
13911 ;;
13912 *)
13913 lt_prog_compiler_can_build_shared_CXX=no
13914 ;;
13915 esac
13916 fi
13917
13918 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13919 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13920
13921 #
13922 # Check to make sure the PIC flag actually works.
13923 #
13924 if test -n "$lt_prog_compiler_pic_CXX"; then
13925
13926 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13927 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13928 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931 lt_cv_prog_compiler_pic_works_CXX=no
13932 ac_outfile=conftest.$ac_objext
13933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13934 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13935 # Insert the option either (1) after the last *FLAGS variable, or
13936 # (2) before a word containing "conftest.", or (3) at the end.
13937 # Note that $ac_compile itself does not contain backslashes and begins
13938 # with a dollar sign (not a hyphen), so the echo should work correctly.
13939 # The option is referenced via a variable to avoid confusing sed.
13940 lt_compile=`echo "$ac_compile" | $SED \
13941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13943 -e 's:$: $lt_compiler_flag:'`
13944 (eval echo "\"\$as_me:13944: $lt_compile\"" >&5)
13945 (eval "$lt_compile" 2>conftest.err)
13946 ac_status=$?
13947 cat conftest.err >&5
13948 echo "$as_me:13948: \$? = $ac_status" >&5
13949 if (exit $ac_status) && test -s "$ac_outfile"; then
13950 # The compiler can only warn and ignore the option if not recognized
13951 # So say no if there are warnings other than the usual output.
13952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13955 lt_cv_prog_compiler_pic_works_CXX=yes
13956 fi
13957 fi
13958 $rm conftest*
13959
13960 fi
13961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13962 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13963
13964 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13965 case $lt_prog_compiler_pic_CXX in
13966 "" | " "*) ;;
13967 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13968 esac
13969 else
13970 lt_prog_compiler_pic_CXX=
13971 lt_prog_compiler_can_build_shared_CXX=no
13972 fi
13973
13974 fi
13975 case $host_os in
13976 # For platforms which do not support PIC, -DPIC is meaningless:
13977 *djgpp*)
13978 lt_prog_compiler_pic_CXX=
13979 ;;
13980 *)
13981 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13982 ;;
13983 esac
13984
13985 #
13986 # Check to make sure the static flag actually works.
13987 #
13988 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13989 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13990 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13991 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994 lt_cv_prog_compiler_static_works_CXX=no
13995 save_LDFLAGS="$LDFLAGS"
13996 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13997 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13999 # The linker can only warn and ignore the option if not recognized
14000 # So say no if there are warnings
14001 if test -s conftest.err; then
14002 # Append any errors to the config.log.
14003 cat conftest.err 1>&5
14004 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14006 if diff conftest.exp conftest.er2 >/dev/null; then
14007 lt_cv_prog_compiler_static_works_CXX=yes
14008 fi
14009 else
14010 lt_cv_prog_compiler_static_works_CXX=yes
14011 fi
14012 fi
14013 $rm -r conftest*
14014 LDFLAGS="$save_LDFLAGS"
14015
14016 fi
14017 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14018 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14019
14020 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14021 :
14022 else
14023 lt_prog_compiler_static_CXX=
14024 fi
14025
14026
14027 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14028 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14029 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 else
14032 lt_cv_prog_compiler_c_o_CXX=no
14033 $rm -r conftest 2>/dev/null
14034 mkdir conftest
14035 cd conftest
14036 mkdir out
14037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14038
14039 lt_compiler_flag="-o out/conftest2.$ac_objext"
14040 # Insert the option either (1) after the last *FLAGS variable, or
14041 # (2) before a word containing "conftest.", or (3) at the end.
14042 # Note that $ac_compile itself does not contain backslashes and begins
14043 # with a dollar sign (not a hyphen), so the echo should work correctly.
14044 lt_compile=`echo "$ac_compile" | $SED \
14045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047 -e 's:$: $lt_compiler_flag:'`
14048 (eval echo "\"\$as_me:14048: $lt_compile\"" >&5)
14049 (eval "$lt_compile" 2>out/conftest.err)
14050 ac_status=$?
14051 cat out/conftest.err >&5
14052 echo "$as_me:14052: \$? = $ac_status" >&5
14053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14054 then
14055 # The compiler can only warn and ignore the option if not recognized
14056 # So say no if there are warnings
14057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14060 lt_cv_prog_compiler_c_o_CXX=yes
14061 fi
14062 fi
14063 chmod u+w . 2>&5
14064 $rm conftest*
14065 # SGI C++ compiler will create directory out/ii_files/ for
14066 # template instantiation
14067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14068 $rm out/* && rmdir out
14069 cd ..
14070 rmdir conftest
14071 $rm conftest*
14072
14073 fi
14074 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14076
14077
14078 hard_links="nottested"
14079 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14080 # do not overwrite the value of need_locks provided by the user
14081 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14083 hard_links=yes
14084 $rm conftest*
14085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14086 touch conftest.a
14087 ln conftest.a conftest.b 2>&5 || hard_links=no
14088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14089 { echo "$as_me:$LINENO: result: $hard_links" >&5
14090 echo "${ECHO_T}$hard_links" >&6; }
14091 if test "$hard_links" = no; then
14092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14094 need_locks=warn
14095 fi
14096 else
14097 need_locks=no
14098 fi
14099
14100 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14102
14103 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14104 case $host_os in
14105 aix[4-9]*)
14106 # If we're using GNU nm, then we don't want the "-C" option.
14107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14108 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14109 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'
14110 else
14111 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'
14112 fi
14113 ;;
14114 pw32*)
14115 export_symbols_cmds_CXX="$ltdll_cmds"
14116 ;;
14117 cygwin* | mingw*)
14118 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'
14119 ;;
14120 linux* | k*bsd*-gnu)
14121 link_all_deplibs_CXX=no
14122 ;;
14123 *)
14124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14125 ;;
14126 esac
14127 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14128
14129 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14130 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14131 test "$ld_shlibs_CXX" = no && can_build_shared=no
14132
14133 #
14134 # Do we need to explicitly link libc?
14135 #
14136 case "x$archive_cmds_need_lc_CXX" in
14137 x|xyes)
14138 # Assume -lc should be added
14139 archive_cmds_need_lc_CXX=yes
14140
14141 if test "$enable_shared" = yes && test "$GCC" = yes; then
14142 case $archive_cmds_CXX in
14143 *'~'*)
14144 # FIXME: we may have to deal with multi-command sequences.
14145 ;;
14146 '$CC '*)
14147 # Test whether the compiler implicitly links with -lc since on some
14148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14149 # to ld, don't add -lc before -lgcc.
14150 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14151 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14152 $rm conftest*
14153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14154
14155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14156 (eval $ac_compile) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } 2>conftest.err; then
14160 soname=conftest
14161 lib=conftest
14162 libobjs=conftest.$ac_objext
14163 deplibs=
14164 wl=$lt_prog_compiler_wl_CXX
14165 pic_flag=$lt_prog_compiler_pic_CXX
14166 compiler_flags=-v
14167 linker_flags=-v
14168 verstring=
14169 output_objdir=.
14170 libname=conftest
14171 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14172 allow_undefined_flag_CXX=
14173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14174 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }
14178 then
14179 archive_cmds_need_lc_CXX=no
14180 else
14181 archive_cmds_need_lc_CXX=yes
14182 fi
14183 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14184 else
14185 cat conftest.err 1>&5
14186 fi
14187 $rm conftest*
14188 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14189 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14190 ;;
14191 esac
14192 fi
14193 ;;
14194 esac
14195
14196 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14197 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14198 library_names_spec=
14199 libname_spec='lib$name'
14200 soname_spec=
14201 shrext_cmds=".so"
14202 postinstall_cmds=
14203 postuninstall_cmds=
14204 finish_cmds=
14205 finish_eval=
14206 shlibpath_var=
14207 shlibpath_overrides_runpath=unknown
14208 version_type=none
14209 dynamic_linker="$host_os ld.so"
14210 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14211
14212 need_lib_prefix=unknown
14213 hardcode_into_libs=no
14214
14215 # when you set need_version to no, make sure it does not cause -set_version
14216 # flags to be left without arguments
14217 need_version=unknown
14218
14219 case $host_os in
14220 aix3*)
14221 version_type=linux
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14223 shlibpath_var=LIBPATH
14224
14225 # AIX 3 has no versioning support, so we append a major version to the name.
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 ;;
14228
14229 aix[4-9]*)
14230 version_type=linux
14231 need_lib_prefix=no
14232 need_version=no
14233 hardcode_into_libs=yes
14234 if test "$host_cpu" = ia64; then
14235 # AIX 5 supports IA64
14236 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14237 shlibpath_var=LD_LIBRARY_PATH
14238 else
14239 # With GCC up to 2.95.x, collect2 would create an import file
14240 # for dependence libraries. The import file would start with
14241 # the line `#! .'. This would cause the generated library to
14242 # depend on `.', always an invalid library. This was fixed in
14243 # development snapshots of GCC prior to 3.0.
14244 case $host_os in
14245 aix4 | aix4.[01] | aix4.[01].*)
14246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14247 echo ' yes '
14248 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14249 :
14250 else
14251 can_build_shared=no
14252 fi
14253 ;;
14254 esac
14255 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14256 # soname into executable. Probably we can add versioning support to
14257 # collect2, so additional links can be useful in future.
14258 if test "$aix_use_runtimelinking" = yes; then
14259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14260 # instead of lib<name>.a to let people know that these are not
14261 # typical AIX shared libraries.
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263 else
14264 # We preserve .a as extension for shared libraries through AIX4.2
14265 # and later when we are not doing run time linking.
14266 library_names_spec='${libname}${release}.a $libname.a'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 fi
14269 shlibpath_var=LIBPATH
14270 fi
14271 ;;
14272
14273 amigaos*)
14274 library_names_spec='$libname.ixlibrary $libname.a'
14275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14276 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'
14277 ;;
14278
14279 beos*)
14280 library_names_spec='${libname}${shared_ext}'
14281 dynamic_linker="$host_os ld.so"
14282 shlibpath_var=LIBRARY_PATH
14283 ;;
14284
14285 bsdi[45]*)
14286 version_type=linux
14287 need_version=no
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289 soname_spec='${libname}${release}${shared_ext}$major'
14290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14291 shlibpath_var=LD_LIBRARY_PATH
14292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14294 # the default ld.so.conf also contains /usr/contrib/lib and
14295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14296 # libtool to hard-code these into programs
14297 ;;
14298
14299 cygwin* | mingw* | pw32*)
14300 version_type=windows
14301 shrext_cmds=".dll"
14302 need_version=no
14303 need_lib_prefix=no
14304
14305 case $GCC,$host_os in
14306 yes,cygwin* | yes,mingw* | yes,pw32*)
14307 library_names_spec='$libname.dll.a'
14308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14309 postinstall_cmds='base_file=`basename \${file}`~
14310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14311 dldir=$destdir/`dirname \$dlpath`~
14312 test -d \$dldir || mkdir -p \$dldir~
14313 $install_prog $dir/$dlname \$dldir/$dlname~
14314 chmod a+x \$dldir/$dlname'
14315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14316 dlpath=$dir/\$dldll~
14317 $rm \$dlpath'
14318 shlibpath_overrides_runpath=yes
14319
14320 case $host_os in
14321 cygwin*)
14322 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14323 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14324 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14325 ;;
14326 mingw*)
14327 # MinGW DLLs use traditional 'lib' prefix
14328 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14329 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14330 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14331 # It is most probably a Windows format PATH printed by
14332 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14333 # path with ; separators, and with drive letters. We can handle the
14334 # drive letters (cygwin fileutils understands them), so leave them,
14335 # especially as we might pass files found there to a mingw objdump,
14336 # which wouldn't understand a cygwinified path. Ahh.
14337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14338 else
14339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14340 fi
14341 ;;
14342 pw32*)
14343 # pw32 DLLs use 'pw' prefix rather than 'lib'
14344 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14345 ;;
14346 esac
14347 ;;
14348
14349 *)
14350 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14351 ;;
14352 esac
14353 dynamic_linker='Win32 ld.exe'
14354 # FIXME: first we should search . and the directory the executable is in
14355 shlibpath_var=PATH
14356 ;;
14357
14358 darwin* | rhapsody*)
14359 dynamic_linker="$host_os dyld"
14360 version_type=darwin
14361 need_lib_prefix=no
14362 need_version=no
14363 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14364 soname_spec='${libname}${release}${major}$shared_ext'
14365 shlibpath_overrides_runpath=yes
14366 shlibpath_var=DYLD_LIBRARY_PATH
14367 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14368
14369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14370 ;;
14371
14372 dgux*)
14373 version_type=linux
14374 need_lib_prefix=no
14375 need_version=no
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14377 soname_spec='${libname}${release}${shared_ext}$major'
14378 shlibpath_var=LD_LIBRARY_PATH
14379 ;;
14380
14381 freebsd1*)
14382 dynamic_linker=no
14383 ;;
14384
14385 freebsd* | dragonfly*)
14386 # DragonFly does not have aout. When/if they implement a new
14387 # versioning mechanism, adjust this.
14388 if test -x /usr/bin/objformat; then
14389 objformat=`/usr/bin/objformat`
14390 else
14391 case $host_os in
14392 freebsd[123]*) objformat=aout ;;
14393 *) objformat=elf ;;
14394 esac
14395 fi
14396 version_type=freebsd-$objformat
14397 case $version_type in
14398 freebsd-elf*)
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14400 need_version=no
14401 need_lib_prefix=no
14402 ;;
14403 freebsd-*)
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14405 need_version=yes
14406 ;;
14407 esac
14408 shlibpath_var=LD_LIBRARY_PATH
14409 case $host_os in
14410 freebsd2*)
14411 shlibpath_overrides_runpath=yes
14412 ;;
14413 freebsd3.[01]* | freebsdelf3.[01]*)
14414 shlibpath_overrides_runpath=yes
14415 hardcode_into_libs=yes
14416 ;;
14417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14419 shlibpath_overrides_runpath=no
14420 hardcode_into_libs=yes
14421 ;;
14422 *) # from 4.6 on, and DragonFly
14423 shlibpath_overrides_runpath=yes
14424 hardcode_into_libs=yes
14425 ;;
14426 esac
14427 ;;
14428
14429 gnu*)
14430 version_type=linux
14431 need_lib_prefix=no
14432 need_version=no
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 hardcode_into_libs=yes
14437 ;;
14438
14439 hpux9* | hpux10* | hpux11*)
14440 # Give a soname corresponding to the major version so that dld.sl refuses to
14441 # link against other versions.
14442 version_type=sunos
14443 need_lib_prefix=no
14444 need_version=no
14445 case $host_cpu in
14446 ia64*)
14447 shrext_cmds='.so'
14448 hardcode_into_libs=yes
14449 dynamic_linker="$host_os dld.so"
14450 shlibpath_var=LD_LIBRARY_PATH
14451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 if test "X$HPUX_IA64_MODE" = X32; then
14455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14456 else
14457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14458 fi
14459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14460 ;;
14461 hppa*64*)
14462 shrext_cmds='.sl'
14463 hardcode_into_libs=yes
14464 dynamic_linker="$host_os dld.sl"
14465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14471 ;;
14472 *)
14473 shrext_cmds='.sl'
14474 dynamic_linker="$host_os dld.sl"
14475 shlibpath_var=SHLIB_PATH
14476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 ;;
14480 esac
14481 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14482 postinstall_cmds='chmod 555 $lib'
14483 ;;
14484
14485 interix[3-9]*)
14486 version_type=linux
14487 need_lib_prefix=no
14488 need_version=no
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath=no
14494 hardcode_into_libs=yes
14495 ;;
14496
14497 irix5* | irix6* | nonstopux*)
14498 case $host_os in
14499 nonstopux*) version_type=nonstopux ;;
14500 *)
14501 if test "$lt_cv_prog_gnu_ld" = yes; then
14502 version_type=linux
14503 else
14504 version_type=irix
14505 fi ;;
14506 esac
14507 need_lib_prefix=no
14508 need_version=no
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14511 case $host_os in
14512 irix5* | nonstopux*)
14513 libsuff= shlibsuff=
14514 ;;
14515 *)
14516 case $LD in # libtool.m4 will add one of these switches to LD
14517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14518 libsuff= shlibsuff= libmagic=32-bit;;
14519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14520 libsuff=32 shlibsuff=N32 libmagic=N32;;
14521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14522 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14523 *) libsuff= shlibsuff= libmagic=never-match;;
14524 esac
14525 ;;
14526 esac
14527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14528 shlibpath_overrides_runpath=no
14529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14531 hardcode_into_libs=yes
14532 ;;
14533
14534 # No shared lib support for Linux oldld, aout, or coff.
14535 linux*oldld* | linux*aout* | linux*coff*)
14536 dynamic_linker=no
14537 ;;
14538
14539 # This must be Linux ELF.
14540 linux* | k*bsd*-gnu)
14541 version_type=linux
14542 need_lib_prefix=no
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=no
14549 # This implies no fast_install, which is unacceptable.
14550 # Some rework will be needed to allow for fast_install
14551 # before this can be enabled.
14552 hardcode_into_libs=yes
14553
14554 # Append ld.so.conf contents to the search path
14555 if test -f /etc/ld.so.conf; then
14556 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' ' '`
14557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14558 fi
14559
14560 # We used to test for /lib/ld.so.1 and disable shared libraries on
14561 # powerpc, because MkLinux only supported shared libraries with the
14562 # GNU dynamic linker. Since this was broken with cross compilers,
14563 # most powerpc-linux boxes support dynamic linking these days and
14564 # people can always --disable-shared, the test was removed, and we
14565 # assume the GNU/Linux dynamic linker is in use.
14566 dynamic_linker='GNU/Linux ld.so'
14567 ;;
14568
14569 netbsdelf*-gnu)
14570 version_type=linux
14571 need_lib_prefix=no
14572 need_version=no
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=no
14577 hardcode_into_libs=yes
14578 dynamic_linker='NetBSD ld.elf_so'
14579 ;;
14580
14581 netbsd*)
14582 version_type=sunos
14583 need_lib_prefix=no
14584 need_version=no
14585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14588 dynamic_linker='NetBSD (a.out) ld.so'
14589 else
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 dynamic_linker='NetBSD ld.elf_so'
14593 fi
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes
14596 hardcode_into_libs=yes
14597 ;;
14598
14599 newsos6)
14600 version_type=linux
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes
14604 ;;
14605
14606 nto-qnx*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 ;;
14615
14616 openbsd*)
14617 version_type=sunos
14618 sys_lib_dlsearch_path_spec="/usr/lib"
14619 need_lib_prefix=no
14620 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14621 case $host_os in
14622 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14623 *) need_version=no ;;
14624 esac
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14629 case $host_os in
14630 openbsd2.[89] | openbsd2.[89].*)
14631 shlibpath_overrides_runpath=no
14632 ;;
14633 *)
14634 shlibpath_overrides_runpath=yes
14635 ;;
14636 esac
14637 else
14638 shlibpath_overrides_runpath=yes
14639 fi
14640 ;;
14641
14642 os2*)
14643 libname_spec='$name'
14644 shrext_cmds=".dll"
14645 need_lib_prefix=no
14646 library_names_spec='$libname${shared_ext} $libname.a'
14647 dynamic_linker='OS/2 ld.exe'
14648 shlibpath_var=LIBPATH
14649 ;;
14650
14651 osf3* | osf4* | osf5*)
14652 version_type=osf
14653 need_lib_prefix=no
14654 need_version=no
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14659 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14660 ;;
14661
14662 rdos*)
14663 dynamic_linker=no
14664 ;;
14665
14666 solaris*)
14667 version_type=linux
14668 need_lib_prefix=no
14669 need_version=no
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes
14674 hardcode_into_libs=yes
14675 # ldd complains unless libraries are executable
14676 postinstall_cmds='chmod +x $lib'
14677 ;;
14678
14679 sunos4*)
14680 version_type=sunos
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14682 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes
14685 if test "$with_gnu_ld" = yes; then
14686 need_lib_prefix=no
14687 fi
14688 need_version=yes
14689 ;;
14690
14691 sysv4 | sysv4.3*)
14692 version_type=linux
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 case $host_vendor in
14697 sni)
14698 shlibpath_overrides_runpath=no
14699 need_lib_prefix=no
14700 export_dynamic_flag_spec='${wl}-Blargedynsym'
14701 runpath_var=LD_RUN_PATH
14702 ;;
14703 siemens)
14704 need_lib_prefix=no
14705 ;;
14706 motorola)
14707 need_lib_prefix=no
14708 need_version=no
14709 shlibpath_overrides_runpath=no
14710 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14711 ;;
14712 esac
14713 ;;
14714
14715 sysv4*MP*)
14716 if test -d /usr/nec ;then
14717 version_type=linux
14718 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14719 soname_spec='$libname${shared_ext}.$major'
14720 shlibpath_var=LD_LIBRARY_PATH
14721 fi
14722 ;;
14723
14724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14725 version_type=freebsd-elf
14726 need_lib_prefix=no
14727 need_version=no
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14729 soname_spec='${libname}${release}${shared_ext}$major'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 hardcode_into_libs=yes
14732 if test "$with_gnu_ld" = yes; then
14733 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14734 shlibpath_overrides_runpath=no
14735 else
14736 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14737 shlibpath_overrides_runpath=yes
14738 case $host_os in
14739 sco3.2v5*)
14740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14741 ;;
14742 esac
14743 fi
14744 sys_lib_dlsearch_path_spec='/usr/lib'
14745 ;;
14746
14747 uts4*)
14748 version_type=linux
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 ;;
14753
14754 *)
14755 dynamic_linker=no
14756 ;;
14757 esac
14758 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14759 echo "${ECHO_T}$dynamic_linker" >&6; }
14760 test "$dynamic_linker" = no && can_build_shared=no
14761
14762 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14766 fi
14767
14768 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14773 fi
14774
14775 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14776
14777 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14778 if test "$GCC" = yes; then
14779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14780 fi
14781
14782 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14783 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14784 hardcode_action_CXX=
14785 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14786 test -n "$runpath_var_CXX" || \
14787 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14788
14789 # We can hardcode non-existant directories.
14790 if test "$hardcode_direct_CXX" != no &&
14791 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14792 # have to relink, otherwise we might link with an installed library
14793 # when we should be linking with a yet-to-be-installed one
14794 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14795 test "$hardcode_minus_L_CXX" != no; then
14796 # Linking always hardcodes the temporary library directory.
14797 hardcode_action_CXX=relink
14798 else
14799 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14800 hardcode_action_CXX=immediate
14801 fi
14802 else
14803 # We cannot hardcode anything, or else we can only hardcode existing
14804 # directories.
14805 hardcode_action_CXX=unsupported
14806 fi
14807 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14808 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14809
14810 if test "$hardcode_action_CXX" = relink; then
14811 # Fast installation is not supported
14812 enable_fast_install=no
14813 elif test "$shlibpath_overrides_runpath" = yes ||
14814 test "$enable_shared" = no; then
14815 # Fast installation is not necessary
14816 enable_fast_install=needless
14817 fi
14818
14819
14820 # The else clause should only fire when bootstrapping the
14821 # libtool distribution, otherwise you forgot to ship ltmain.sh
14822 # with your package, and you will get complaints that there are
14823 # no rules to generate ltmain.sh.
14824 if test -f "$ltmain"; then
14825 # See if we are running on zsh, and set the options which allow our commands through
14826 # without removal of \ escapes.
14827 if test -n "${ZSH_VERSION+set}" ; then
14828 setopt NO_GLOB_SUBST
14829 fi
14830 # Now quote all the things that may contain metacharacters while being
14831 # careful not to overquote the AC_SUBSTed values. We take copies of the
14832 # variables and quote the copies for generation of the libtool script.
14833 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14834 SED SHELL STRIP \
14835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14837 deplibs_check_method reload_flag reload_cmds need_locks \
14838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14839 lt_cv_sys_global_symbol_to_c_name_address \
14840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14841 old_postinstall_cmds old_postuninstall_cmds \
14842 compiler_CXX \
14843 CC_CXX \
14844 LD_CXX \
14845 lt_prog_compiler_wl_CXX \
14846 lt_prog_compiler_pic_CXX \
14847 lt_prog_compiler_static_CXX \
14848 lt_prog_compiler_no_builtin_flag_CXX \
14849 export_dynamic_flag_spec_CXX \
14850 thread_safe_flag_spec_CXX \
14851 whole_archive_flag_spec_CXX \
14852 enable_shared_with_static_runtimes_CXX \
14853 old_archive_cmds_CXX \
14854 old_archive_from_new_cmds_CXX \
14855 predep_objects_CXX \
14856 postdep_objects_CXX \
14857 predeps_CXX \
14858 postdeps_CXX \
14859 compiler_lib_search_path_CXX \
14860 compiler_lib_search_dirs_CXX \
14861 archive_cmds_CXX \
14862 archive_expsym_cmds_CXX \
14863 postinstall_cmds_CXX \
14864 postuninstall_cmds_CXX \
14865 old_archive_from_expsyms_cmds_CXX \
14866 allow_undefined_flag_CXX \
14867 no_undefined_flag_CXX \
14868 export_symbols_cmds_CXX \
14869 hardcode_libdir_flag_spec_CXX \
14870 hardcode_libdir_flag_spec_ld_CXX \
14871 hardcode_libdir_separator_CXX \
14872 hardcode_automatic_CXX \
14873 module_cmds_CXX \
14874 module_expsym_cmds_CXX \
14875 lt_cv_prog_compiler_c_o_CXX \
14876 fix_srcfile_path_CXX \
14877 exclude_expsyms_CXX \
14878 include_expsyms_CXX; do
14879
14880 case $var in
14881 old_archive_cmds_CXX | \
14882 old_archive_from_new_cmds_CXX | \
14883 archive_cmds_CXX | \
14884 archive_expsym_cmds_CXX | \
14885 module_cmds_CXX | \
14886 module_expsym_cmds_CXX | \
14887 old_archive_from_expsyms_cmds_CXX | \
14888 export_symbols_cmds_CXX | \
14889 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14890 postinstall_cmds | postuninstall_cmds | \
14891 old_postinstall_cmds | old_postuninstall_cmds | \
14892 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14893 # Double-quote double-evaled strings.
14894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14895 ;;
14896 *)
14897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14898 ;;
14899 esac
14900 done
14901
14902 case $lt_echo in
14903 *'\$0 --fallback-echo"')
14904 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14905 ;;
14906 esac
14907
14908 cfgfile="$ofile"
14909
14910 cat <<__EOF__ >> "$cfgfile"
14911 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14912
14913 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14914
14915 # Shell to use when invoking shell scripts.
14916 SHELL=$lt_SHELL
14917
14918 # Whether or not to build shared libraries.
14919 build_libtool_libs=$enable_shared
14920
14921 # Whether or not to build static libraries.
14922 build_old_libs=$enable_static
14923
14924 # Whether or not to add -lc for building shared libraries.
14925 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14926
14927 # Whether or not to disallow shared libs when runtime libs are static
14928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14929
14930 # Whether or not to optimize for fast installation.
14931 fast_install=$enable_fast_install
14932
14933 # The host system.
14934 host_alias=$host_alias
14935 host=$host
14936 host_os=$host_os
14937
14938 # The build system.
14939 build_alias=$build_alias
14940 build=$build
14941 build_os=$build_os
14942
14943 # An echo program that does not interpret backslashes.
14944 echo=$lt_echo
14945
14946 # The archiver.
14947 AR=$lt_AR
14948 AR_FLAGS=$lt_AR_FLAGS
14949
14950 # A C compiler.
14951 LTCC=$lt_LTCC
14952
14953 # LTCC compiler flags.
14954 LTCFLAGS=$lt_LTCFLAGS
14955
14956 # A language-specific compiler.
14957 CC=$lt_compiler_CXX
14958
14959 # Is the compiler the GNU C compiler?
14960 with_gcc=$GCC_CXX
14961
14962 # An ERE matcher.
14963 EGREP=$lt_EGREP
14964
14965 # The linker used to build libraries.
14966 LD=$lt_LD_CXX
14967
14968 # Whether we need hard or soft links.
14969 LN_S=$lt_LN_S
14970
14971 # A BSD-compatible nm program.
14972 NM=$lt_NM
14973
14974 # A symbol stripping program
14975 STRIP=$lt_STRIP
14976
14977 # Used to examine libraries when file_magic_cmd begins "file"
14978 MAGIC_CMD=$MAGIC_CMD
14979
14980 # Used on cygwin: DLL creation program.
14981 DLLTOOL="$DLLTOOL"
14982
14983 # Used on cygwin: object dumper.
14984 OBJDUMP="$OBJDUMP"
14985
14986 # Used on cygwin: assembler.
14987 AS="$AS"
14988
14989 # The name of the directory that contains temporary libtool files.
14990 objdir=$objdir
14991
14992 # How to create reloadable object files.
14993 reload_flag=$lt_reload_flag
14994 reload_cmds=$lt_reload_cmds
14995
14996 # How to pass a linker flag through the compiler.
14997 wl=$lt_lt_prog_compiler_wl_CXX
14998
14999 # Object file suffix (normally "o").
15000 objext="$ac_objext"
15001
15002 # Old archive suffix (normally "a").
15003 libext="$libext"
15004
15005 # Shared library suffix (normally ".so").
15006 shrext_cmds='$shrext_cmds'
15007
15008 # Executable file suffix (normally "").
15009 exeext="$exeext"
15010
15011 # Additional compiler flags for building library objects.
15012 pic_flag=$lt_lt_prog_compiler_pic_CXX
15013 pic_mode=$pic_mode
15014
15015 # What is the maximum length of a command?
15016 max_cmd_len=$lt_cv_sys_max_cmd_len
15017
15018 # Does compiler simultaneously support -c and -o options?
15019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15020
15021 # Must we lock files when doing compilation?
15022 need_locks=$lt_need_locks
15023
15024 # Do we need the lib prefix for modules?
15025 need_lib_prefix=$need_lib_prefix
15026
15027 # Do we need a version for libraries?
15028 need_version=$need_version
15029
15030 # Whether dlopen is supported.
15031 dlopen_support=$enable_dlopen
15032
15033 # Whether dlopen of programs is supported.
15034 dlopen_self=$enable_dlopen_self
15035
15036 # Whether dlopen of statically linked programs is supported.
15037 dlopen_self_static=$enable_dlopen_self_static
15038
15039 # Compiler flag to prevent dynamic linking.
15040 link_static_flag=$lt_lt_prog_compiler_static_CXX
15041
15042 # Compiler flag to turn off builtin functions.
15043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15044
15045 # Compiler flag to allow reflexive dlopens.
15046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15047
15048 # Compiler flag to generate shared objects directly from archives.
15049 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15050
15051 # Compiler flag to generate thread-safe objects.
15052 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15053
15054 # Library versioning type.
15055 version_type=$version_type
15056
15057 # Format of library name prefix.
15058 libname_spec=$lt_libname_spec
15059
15060 # List of archive names. First name is the real one, the rest are links.
15061 # The last name is the one that the linker finds with -lNAME.
15062 library_names_spec=$lt_library_names_spec
15063
15064 # The coded name of the library, if different from the real name.
15065 soname_spec=$lt_soname_spec
15066
15067 # Commands used to build and install an old-style archive.
15068 RANLIB=$lt_RANLIB
15069 old_archive_cmds=$lt_old_archive_cmds_CXX
15070 old_postinstall_cmds=$lt_old_postinstall_cmds
15071 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15072
15073 # Create an old-style archive from a shared archive.
15074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15075
15076 # Create a temporary old-style archive to link instead of a shared archive.
15077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15078
15079 # Commands used to build and install a shared archive.
15080 archive_cmds=$lt_archive_cmds_CXX
15081 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15082 postinstall_cmds=$lt_postinstall_cmds
15083 postuninstall_cmds=$lt_postuninstall_cmds
15084
15085 # Commands used to build a loadable module (assumed same as above if empty)
15086 module_cmds=$lt_module_cmds_CXX
15087 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15088
15089 # Commands to strip libraries.
15090 old_striplib=$lt_old_striplib
15091 striplib=$lt_striplib
15092
15093 # Dependencies to place before the objects being linked to create a
15094 # shared library.
15095 predep_objects=$lt_predep_objects_CXX
15096
15097 # Dependencies to place after the objects being linked to create a
15098 # shared library.
15099 postdep_objects=$lt_postdep_objects_CXX
15100
15101 # Dependencies to place before the objects being linked to create a
15102 # shared library.
15103 predeps=$lt_predeps_CXX
15104
15105 # Dependencies to place after the objects being linked to create a
15106 # shared library.
15107 postdeps=$lt_postdeps_CXX
15108
15109 # The directories searched by this compiler when creating a shared
15110 # library
15111 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15112
15113 # The library search path used internally by the compiler when linking
15114 # a shared library.
15115 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15116
15117 # Method to check whether dependent libraries are shared objects.
15118 deplibs_check_method=$lt_deplibs_check_method
15119
15120 # Command to use when deplibs_check_method == file_magic.
15121 file_magic_cmd=$lt_file_magic_cmd
15122
15123 # Flag that allows shared libraries with undefined symbols to be built.
15124 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15125
15126 # Flag that forces no undefined symbols.
15127 no_undefined_flag=$lt_no_undefined_flag_CXX
15128
15129 # Commands used to finish a libtool library installation in a directory.
15130 finish_cmds=$lt_finish_cmds
15131
15132 # Same as above, but a single script fragment to be evaled but not shown.
15133 finish_eval=$lt_finish_eval
15134
15135 # Take the output of nm and produce a listing of raw symbols and C names.
15136 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15137
15138 # Transform the output of nm in a proper C declaration
15139 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15140
15141 # Transform the output of nm in a C name address pair
15142 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15143
15144 # This is the shared library runtime path variable.
15145 runpath_var=$runpath_var
15146
15147 # This is the shared library path variable.
15148 shlibpath_var=$shlibpath_var
15149
15150 # Is shlibpath searched before the hard-coded library search path?
15151 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15152
15153 # How to hardcode a shared library path into an executable.
15154 hardcode_action=$hardcode_action_CXX
15155
15156 # Whether we should hardcode library paths into libraries.
15157 hardcode_into_libs=$hardcode_into_libs
15158
15159 # Flag to hardcode \$libdir into a binary during linking.
15160 # This must work even if \$libdir does not exist.
15161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15162
15163 # If ld is used when linking, flag to hardcode \$libdir into
15164 # a binary during linking. This must work even if \$libdir does
15165 # not exist.
15166 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15167
15168 # Whether we need a single -rpath flag with a separated argument.
15169 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15170
15171 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15172 # resulting binary.
15173 hardcode_direct=$hardcode_direct_CXX
15174
15175 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15176 # resulting binary.
15177 hardcode_minus_L=$hardcode_minus_L_CXX
15178
15179 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15180 # the resulting binary.
15181 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15182
15183 # Set to yes if building a shared library automatically hardcodes DIR into the library
15184 # and all subsequent libraries and executables linked against it.
15185 hardcode_automatic=$hardcode_automatic_CXX
15186
15187 # Variables whose values should be saved in libtool wrapper scripts and
15188 # restored at relink time.
15189 variables_saved_for_relink="$variables_saved_for_relink"
15190
15191 # Whether libtool must link a program against all its dependency libraries.
15192 link_all_deplibs=$link_all_deplibs_CXX
15193
15194 # Compile-time system search path for libraries
15195 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15196
15197 # Run-time system search path for libraries
15198 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15199
15200 # Fix the shell variable \$srcfile for the compiler.
15201 fix_srcfile_path=$lt_fix_srcfile_path
15202
15203 # Set to yes if exported symbols are required.
15204 always_export_symbols=$always_export_symbols_CXX
15205
15206 # The commands to list exported symbols.
15207 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15208
15209 # The commands to extract the exported symbol list from a shared archive.
15210 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15211
15212 # Symbols that should not be listed in the preloaded symbols.
15213 exclude_expsyms=$lt_exclude_expsyms_CXX
15214
15215 # Symbols that must always be exported.
15216 include_expsyms=$lt_include_expsyms_CXX
15217
15218 # ### END LIBTOOL TAG CONFIG: $tagname
15219
15220 __EOF__
15221
15222
15223 else
15224 # If there is no Makefile yet, we rely on a make rule to execute
15225 # `config.status --recheck' to rerun these tests and create the
15226 # libtool script then.
15227 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15228 if test -f "$ltmain_in"; then
15229 test -f Makefile && make "$ltmain"
15230 fi
15231 fi
15232
15233
15234 ac_ext=c
15235 ac_cpp='$CPP $CPPFLAGS'
15236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15239
15240 CC=$lt_save_CC
15241 LDCXX=$LD
15242 LD=$lt_save_LD
15243 GCC=$lt_save_GCC
15244 with_gnu_ldcxx=$with_gnu_ld
15245 with_gnu_ld=$lt_save_with_gnu_ld
15246 lt_cv_path_LDCXX=$lt_cv_path_LD
15247 lt_cv_path_LD=$lt_save_path_LD
15248 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15249 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15250
15251 else
15252 tagname=""
15253 fi
15254 ;;
15255
15256 F77)
15257 if test -n "$F77" && test "X$F77" != "Xno"; then
15258
15259 ac_ext=f
15260 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15261 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15262 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15263
15264
15265 archive_cmds_need_lc_F77=no
15266 allow_undefined_flag_F77=
15267 always_export_symbols_F77=no
15268 archive_expsym_cmds_F77=
15269 export_dynamic_flag_spec_F77=
15270 hardcode_direct_F77=no
15271 hardcode_libdir_flag_spec_F77=
15272 hardcode_libdir_flag_spec_ld_F77=
15273 hardcode_libdir_separator_F77=
15274 hardcode_minus_L_F77=no
15275 hardcode_automatic_F77=no
15276 module_cmds_F77=
15277 module_expsym_cmds_F77=
15278 link_all_deplibs_F77=unknown
15279 old_archive_cmds_F77=$old_archive_cmds
15280 no_undefined_flag_F77=
15281 whole_archive_flag_spec_F77=
15282 enable_shared_with_static_runtimes_F77=no
15283
15284 # Source file extension for f77 test sources.
15285 ac_ext=f
15286
15287 # Object file extension for compiled f77 test sources.
15288 objext=o
15289 objext_F77=$objext
15290
15291 # Code to be used in simple compile tests
15292 lt_simple_compile_test_code="\
15293 subroutine t
15294 return
15295 end
15296 "
15297
15298 # Code to be used in simple link tests
15299 lt_simple_link_test_code="\
15300 program t
15301 end
15302 "
15303
15304 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15305
15306 # If no C compiler was specified, use CC.
15307 LTCC=${LTCC-"$CC"}
15308
15309 # If no C compiler flags were specified, use CFLAGS.
15310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15311
15312 # Allow CC to be a program name with arguments.
15313 compiler=$CC
15314
15315
15316 # save warnings/boilerplate of simple test code
15317 ac_outfile=conftest.$ac_objext
15318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15320 _lt_compiler_boilerplate=`cat conftest.err`
15321 $rm conftest*
15322
15323 ac_outfile=conftest.$ac_objext
15324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15326 _lt_linker_boilerplate=`cat conftest.err`
15327 $rm -r conftest*
15328
15329
15330 # Allow CC to be a program name with arguments.
15331 lt_save_CC="$CC"
15332 CC=${F77-"f77"}
15333 compiler=$CC
15334 compiler_F77=$CC
15335 for cc_temp in $compiler""; do
15336 case $cc_temp in
15337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15339 \-*) ;;
15340 *) break;;
15341 esac
15342 done
15343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15344
15345
15346 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15347 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15348 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15349 echo "${ECHO_T}$can_build_shared" >&6; }
15350
15351 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15352 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15353 test "$can_build_shared" = "no" && enable_shared=no
15354
15355 # On AIX, shared libraries and static libraries use the same namespace, and
15356 # are all built from PIC.
15357 case $host_os in
15358 aix3*)
15359 test "$enable_shared" = yes && enable_static=no
15360 if test -n "$RANLIB"; then
15361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15362 postinstall_cmds='$RANLIB $lib'
15363 fi
15364 ;;
15365 aix[4-9]*)
15366 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15367 test "$enable_shared" = yes && enable_static=no
15368 fi
15369 ;;
15370 esac
15371 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15372 echo "${ECHO_T}$enable_shared" >&6; }
15373
15374 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15375 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15376 # Make sure either enable_shared or enable_static is yes.
15377 test "$enable_shared" = yes || enable_static=yes
15378 { echo "$as_me:$LINENO: result: $enable_static" >&5
15379 echo "${ECHO_T}$enable_static" >&6; }
15380
15381 GCC_F77="$G77"
15382 LD_F77="$LD"
15383
15384 lt_prog_compiler_wl_F77=
15385 lt_prog_compiler_pic_F77=
15386 lt_prog_compiler_static_F77=
15387
15388 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15389 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15390
15391 if test "$GCC" = yes; then
15392 lt_prog_compiler_wl_F77='-Wl,'
15393 lt_prog_compiler_static_F77='-static'
15394
15395 case $host_os in
15396 aix*)
15397 # All AIX code is PIC.
15398 if test "$host_cpu" = ia64; then
15399 # AIX 5 now supports IA64 processor
15400 lt_prog_compiler_static_F77='-Bstatic'
15401 fi
15402 ;;
15403
15404 amigaos*)
15405 # FIXME: we need at least 68020 code to build shared libraries, but
15406 # adding the `-m68020' flag to GCC prevents building anything better,
15407 # like `-m68040'.
15408 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15409 ;;
15410
15411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15412 # PIC is the default for these OSes.
15413 ;;
15414
15415 mingw* | cygwin* | pw32* | os2*)
15416 # This hack is so that the source file can tell whether it is being
15417 # built for inclusion in a dll (and should export symbols for example).
15418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15419 # (--disable-auto-import) libraries
15420 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15421 ;;
15422
15423 darwin* | rhapsody*)
15424 # PIC is the default on this platform
15425 # Common symbols not allowed in MH_DYLIB files
15426 lt_prog_compiler_pic_F77='-fno-common'
15427 ;;
15428
15429 interix[3-9]*)
15430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15431 # Instead, we relocate shared libraries at runtime.
15432 ;;
15433
15434 msdosdjgpp*)
15435 # Just because we use GCC doesn't mean we suddenly get shared libraries
15436 # on systems that don't support them.
15437 lt_prog_compiler_can_build_shared_F77=no
15438 enable_shared=no
15439 ;;
15440
15441 sysv4*MP*)
15442 if test -d /usr/nec; then
15443 lt_prog_compiler_pic_F77=-Kconform_pic
15444 fi
15445 ;;
15446
15447 hpux*)
15448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15449 # not for PA HP-UX.
15450 case $host_cpu in
15451 hppa*64*|ia64*)
15452 # +Z the default
15453 ;;
15454 *)
15455 lt_prog_compiler_pic_F77='-fPIC'
15456 ;;
15457 esac
15458 ;;
15459
15460 *)
15461 lt_prog_compiler_pic_F77='-fPIC'
15462 ;;
15463 esac
15464 else
15465 # PORTME Check for flag to pass linker flags through the system compiler.
15466 case $host_os in
15467 aix*)
15468 lt_prog_compiler_wl_F77='-Wl,'
15469 if test "$host_cpu" = ia64; then
15470 # AIX 5 now supports IA64 processor
15471 lt_prog_compiler_static_F77='-Bstatic'
15472 else
15473 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15474 fi
15475 ;;
15476 darwin*)
15477 # PIC is the default on this platform
15478 # Common symbols not allowed in MH_DYLIB files
15479 case $cc_basename in
15480 xlc*)
15481 lt_prog_compiler_pic_F77='-qnocommon'
15482 lt_prog_compiler_wl_F77='-Wl,'
15483 ;;
15484 esac
15485 ;;
15486
15487 mingw* | cygwin* | pw32* | os2*)
15488 # This hack is so that the source file can tell whether it is being
15489 # built for inclusion in a dll (and should export symbols for example).
15490 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15491 ;;
15492
15493 hpux9* | hpux10* | hpux11*)
15494 lt_prog_compiler_wl_F77='-Wl,'
15495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15496 # not for PA HP-UX.
15497 case $host_cpu in
15498 hppa*64*|ia64*)
15499 # +Z the default
15500 ;;
15501 *)
15502 lt_prog_compiler_pic_F77='+Z'
15503 ;;
15504 esac
15505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15506 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15507 ;;
15508
15509 irix5* | irix6* | nonstopux*)
15510 lt_prog_compiler_wl_F77='-Wl,'
15511 # PIC (with -KPIC) is the default.
15512 lt_prog_compiler_static_F77='-non_shared'
15513 ;;
15514
15515 newsos6)
15516 lt_prog_compiler_pic_F77='-KPIC'
15517 lt_prog_compiler_static_F77='-Bstatic'
15518 ;;
15519
15520 linux* | k*bsd*-gnu)
15521 case $cc_basename in
15522 icc* | ecc*)
15523 lt_prog_compiler_wl_F77='-Wl,'
15524 lt_prog_compiler_pic_F77='-KPIC'
15525 lt_prog_compiler_static_F77='-static'
15526 ;;
15527 pgcc* | pgf77* | pgf90* | pgf95*)
15528 # Portland Group compilers (*not* the Pentium gcc compiler,
15529 # which looks to be a dead project)
15530 lt_prog_compiler_wl_F77='-Wl,'
15531 lt_prog_compiler_pic_F77='-fpic'
15532 lt_prog_compiler_static_F77='-Bstatic'
15533 ;;
15534 ccc*)
15535 lt_prog_compiler_wl_F77='-Wl,'
15536 # All Alpha code is PIC.
15537 lt_prog_compiler_static_F77='-non_shared'
15538 ;;
15539 *)
15540 case `$CC -V 2>&1 | sed 5q` in
15541 *Sun\ C*)
15542 # Sun C 5.9
15543 lt_prog_compiler_pic_F77='-KPIC'
15544 lt_prog_compiler_static_F77='-Bstatic'
15545 lt_prog_compiler_wl_F77='-Wl,'
15546 ;;
15547 *Sun\ F*)
15548 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15549 lt_prog_compiler_pic_F77='-KPIC'
15550 lt_prog_compiler_static_F77='-Bstatic'
15551 lt_prog_compiler_wl_F77=''
15552 ;;
15553 esac
15554 ;;
15555 esac
15556 ;;
15557
15558 osf3* | osf4* | osf5*)
15559 lt_prog_compiler_wl_F77='-Wl,'
15560 # All OSF/1 code is PIC.
15561 lt_prog_compiler_static_F77='-non_shared'
15562 ;;
15563
15564 rdos*)
15565 lt_prog_compiler_static_F77='-non_shared'
15566 ;;
15567
15568 solaris*)
15569 lt_prog_compiler_pic_F77='-KPIC'
15570 lt_prog_compiler_static_F77='-Bstatic'
15571 case $cc_basename in
15572 f77* | f90* | f95*)
15573 lt_prog_compiler_wl_F77='-Qoption ld ';;
15574 *)
15575 lt_prog_compiler_wl_F77='-Wl,';;
15576 esac
15577 ;;
15578
15579 sunos4*)
15580 lt_prog_compiler_wl_F77='-Qoption ld '
15581 lt_prog_compiler_pic_F77='-PIC'
15582 lt_prog_compiler_static_F77='-Bstatic'
15583 ;;
15584
15585 sysv4 | sysv4.2uw2* | sysv4.3*)
15586 lt_prog_compiler_wl_F77='-Wl,'
15587 lt_prog_compiler_pic_F77='-KPIC'
15588 lt_prog_compiler_static_F77='-Bstatic'
15589 ;;
15590
15591 sysv4*MP*)
15592 if test -d /usr/nec ;then
15593 lt_prog_compiler_pic_F77='-Kconform_pic'
15594 lt_prog_compiler_static_F77='-Bstatic'
15595 fi
15596 ;;
15597
15598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15599 lt_prog_compiler_wl_F77='-Wl,'
15600 lt_prog_compiler_pic_F77='-KPIC'
15601 lt_prog_compiler_static_F77='-Bstatic'
15602 ;;
15603
15604 unicos*)
15605 lt_prog_compiler_wl_F77='-Wl,'
15606 lt_prog_compiler_can_build_shared_F77=no
15607 ;;
15608
15609 uts4*)
15610 lt_prog_compiler_pic_F77='-pic'
15611 lt_prog_compiler_static_F77='-Bstatic'
15612 ;;
15613
15614 *)
15615 lt_prog_compiler_can_build_shared_F77=no
15616 ;;
15617 esac
15618 fi
15619
15620 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15621 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15622
15623 #
15624 # Check to make sure the PIC flag actually works.
15625 #
15626 if test -n "$lt_prog_compiler_pic_F77"; then
15627
15628 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15629 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15630 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633 lt_cv_prog_compiler_pic_works_F77=no
15634 ac_outfile=conftest.$ac_objext
15635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15636 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15637 # Insert the option either (1) after the last *FLAGS variable, or
15638 # (2) before a word containing "conftest.", or (3) at the end.
15639 # Note that $ac_compile itself does not contain backslashes and begins
15640 # with a dollar sign (not a hyphen), so the echo should work correctly.
15641 # The option is referenced via a variable to avoid confusing sed.
15642 lt_compile=`echo "$ac_compile" | $SED \
15643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15645 -e 's:$: $lt_compiler_flag:'`
15646 (eval echo "\"\$as_me:15646: $lt_compile\"" >&5)
15647 (eval "$lt_compile" 2>conftest.err)
15648 ac_status=$?
15649 cat conftest.err >&5
15650 echo "$as_me:15650: \$? = $ac_status" >&5
15651 if (exit $ac_status) && test -s "$ac_outfile"; then
15652 # The compiler can only warn and ignore the option if not recognized
15653 # So say no if there are warnings other than the usual output.
15654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15657 lt_cv_prog_compiler_pic_works_F77=yes
15658 fi
15659 fi
15660 $rm conftest*
15661
15662 fi
15663 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15664 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15665
15666 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15667 case $lt_prog_compiler_pic_F77 in
15668 "" | " "*) ;;
15669 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15670 esac
15671 else
15672 lt_prog_compiler_pic_F77=
15673 lt_prog_compiler_can_build_shared_F77=no
15674 fi
15675
15676 fi
15677 case $host_os in
15678 # For platforms which do not support PIC, -DPIC is meaningless:
15679 *djgpp*)
15680 lt_prog_compiler_pic_F77=
15681 ;;
15682 *)
15683 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15684 ;;
15685 esac
15686
15687 #
15688 # Check to make sure the static flag actually works.
15689 #
15690 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15691 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15692 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15693 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696 lt_cv_prog_compiler_static_works_F77=no
15697 save_LDFLAGS="$LDFLAGS"
15698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15699 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15701 # The linker can only warn and ignore the option if not recognized
15702 # So say no if there are warnings
15703 if test -s conftest.err; then
15704 # Append any errors to the config.log.
15705 cat conftest.err 1>&5
15706 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15708 if diff conftest.exp conftest.er2 >/dev/null; then
15709 lt_cv_prog_compiler_static_works_F77=yes
15710 fi
15711 else
15712 lt_cv_prog_compiler_static_works_F77=yes
15713 fi
15714 fi
15715 $rm -r conftest*
15716 LDFLAGS="$save_LDFLAGS"
15717
15718 fi
15719 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15720 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15721
15722 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15723 :
15724 else
15725 lt_prog_compiler_static_F77=
15726 fi
15727
15728
15729 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15730 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15731 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 else
15734 lt_cv_prog_compiler_c_o_F77=no
15735 $rm -r conftest 2>/dev/null
15736 mkdir conftest
15737 cd conftest
15738 mkdir out
15739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15740
15741 lt_compiler_flag="-o out/conftest2.$ac_objext"
15742 # Insert the option either (1) after the last *FLAGS variable, or
15743 # (2) before a word containing "conftest.", or (3) at the end.
15744 # Note that $ac_compile itself does not contain backslashes and begins
15745 # with a dollar sign (not a hyphen), so the echo should work correctly.
15746 lt_compile=`echo "$ac_compile" | $SED \
15747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749 -e 's:$: $lt_compiler_flag:'`
15750 (eval echo "\"\$as_me:15750: $lt_compile\"" >&5)
15751 (eval "$lt_compile" 2>out/conftest.err)
15752 ac_status=$?
15753 cat out/conftest.err >&5
15754 echo "$as_me:15754: \$? = $ac_status" >&5
15755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15756 then
15757 # The compiler can only warn and ignore the option if not recognized
15758 # So say no if there are warnings
15759 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15762 lt_cv_prog_compiler_c_o_F77=yes
15763 fi
15764 fi
15765 chmod u+w . 2>&5
15766 $rm conftest*
15767 # SGI C++ compiler will create directory out/ii_files/ for
15768 # template instantiation
15769 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15770 $rm out/* && rmdir out
15771 cd ..
15772 rmdir conftest
15773 $rm conftest*
15774
15775 fi
15776 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15777 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15778
15779
15780 hard_links="nottested"
15781 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15782 # do not overwrite the value of need_locks provided by the user
15783 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15784 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15785 hard_links=yes
15786 $rm conftest*
15787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15788 touch conftest.a
15789 ln conftest.a conftest.b 2>&5 || hard_links=no
15790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15791 { echo "$as_me:$LINENO: result: $hard_links" >&5
15792 echo "${ECHO_T}$hard_links" >&6; }
15793 if test "$hard_links" = no; then
15794 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15795 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15796 need_locks=warn
15797 fi
15798 else
15799 need_locks=no
15800 fi
15801
15802 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15803 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15804
15805 runpath_var=
15806 allow_undefined_flag_F77=
15807 enable_shared_with_static_runtimes_F77=no
15808 archive_cmds_F77=
15809 archive_expsym_cmds_F77=
15810 old_archive_From_new_cmds_F77=
15811 old_archive_from_expsyms_cmds_F77=
15812 export_dynamic_flag_spec_F77=
15813 whole_archive_flag_spec_F77=
15814 thread_safe_flag_spec_F77=
15815 hardcode_libdir_flag_spec_F77=
15816 hardcode_libdir_flag_spec_ld_F77=
15817 hardcode_libdir_separator_F77=
15818 hardcode_direct_F77=no
15819 hardcode_minus_L_F77=no
15820 hardcode_shlibpath_var_F77=unsupported
15821 link_all_deplibs_F77=unknown
15822 hardcode_automatic_F77=no
15823 module_cmds_F77=
15824 module_expsym_cmds_F77=
15825 always_export_symbols_F77=no
15826 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15827 # include_expsyms should be a list of space-separated symbols to be *always*
15828 # included in the symbol list
15829 include_expsyms_F77=
15830 # exclude_expsyms can be an extended regexp of symbols to exclude
15831 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15832 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15833 # as well as any symbol that contains `d'.
15834 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15835 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15836 # platforms (ab)use it in PIC code, but their linkers get confused if
15837 # the symbol is explicitly referenced. Since portable code cannot
15838 # rely on this symbol name, it's probably fine to never include it in
15839 # preloaded symbol tables.
15840 # Exclude shared library initialization/finalization symbols.
15841 extract_expsyms_cmds=
15842 # Just being paranoid about ensuring that cc_basename is set.
15843 for cc_temp in $compiler""; do
15844 case $cc_temp in
15845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15847 \-*) ;;
15848 *) break;;
15849 esac
15850 done
15851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15852
15853 case $host_os in
15854 cygwin* | mingw* | pw32*)
15855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15856 # When not using gcc, we currently assume that we are using
15857 # Microsoft Visual C++.
15858 if test "$GCC" != yes; then
15859 with_gnu_ld=no
15860 fi
15861 ;;
15862 interix*)
15863 # we just hope/assume this is gcc and not c89 (= MSVC++)
15864 with_gnu_ld=yes
15865 ;;
15866 openbsd*)
15867 with_gnu_ld=no
15868 ;;
15869 esac
15870
15871 ld_shlibs_F77=yes
15872 if test "$with_gnu_ld" = yes; then
15873 # If archive_cmds runs LD, not CC, wlarc should be empty
15874 wlarc='${wl}'
15875
15876 # Set some defaults for GNU ld with shared library support. These
15877 # are reset later if shared libraries are not supported. Putting them
15878 # here allows them to be overridden if necessary.
15879 runpath_var=LD_RUN_PATH
15880 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15881 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15882 # ancient GNU ld didn't support --whole-archive et. al.
15883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15884 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15885 else
15886 whole_archive_flag_spec_F77=
15887 fi
15888 supports_anon_versioning=no
15889 case `$LD -v 2>/dev/null` in
15890 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15891 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15892 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15893 *\ 2.11.*) ;; # other 2.11 versions
15894 *) supports_anon_versioning=yes ;;
15895 esac
15896
15897 # See if GNU ld supports shared libraries.
15898 case $host_os in
15899 aix[3-9]*)
15900 # On AIX/PPC, the GNU linker is very broken
15901 if test "$host_cpu" != ia64; then
15902 ld_shlibs_F77=no
15903 cat <<EOF 1>&2
15904
15905 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15906 *** to be unable to reliably create shared libraries on AIX.
15907 *** Therefore, libtool is disabling shared libraries support. If you
15908 *** really care for shared libraries, you may want to modify your PATH
15909 *** so that a non-GNU linker is found, and then restart.
15910
15911 EOF
15912 fi
15913 ;;
15914
15915 amigaos*)
15916 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)'
15917 hardcode_libdir_flag_spec_F77='-L$libdir'
15918 hardcode_minus_L_F77=yes
15919
15920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15921 # that the semantics of dynamic libraries on AmigaOS, at least up
15922 # to version 4, is to share data among multiple programs linked
15923 # with the same dynamic library. Since this doesn't match the
15924 # behavior of shared libraries on other platforms, we can't use
15925 # them.
15926 ld_shlibs_F77=no
15927 ;;
15928
15929 beos*)
15930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15931 allow_undefined_flag_F77=unsupported
15932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15933 # support --undefined. This deserves some investigation. FIXME
15934 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15935 else
15936 ld_shlibs_F77=no
15937 fi
15938 ;;
15939
15940 cygwin* | mingw* | pw32*)
15941 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15942 # as there is no search path for DLLs.
15943 hardcode_libdir_flag_spec_F77='-L$libdir'
15944 allow_undefined_flag_F77=unsupported
15945 always_export_symbols_F77=no
15946 enable_shared_with_static_runtimes_F77=yes
15947 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15948
15949 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15950 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15951 # If the export-symbols file already is a .def file (1st line
15952 # is EXPORTS), use it as is; otherwise, prepend...
15953 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15954 cp $export_symbols $output_objdir/$soname.def;
15955 else
15956 echo EXPORTS > $output_objdir/$soname.def;
15957 cat $export_symbols >> $output_objdir/$soname.def;
15958 fi~
15959 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15960 else
15961 ld_shlibs_F77=no
15962 fi
15963 ;;
15964
15965 interix[3-9]*)
15966 hardcode_direct_F77=no
15967 hardcode_shlibpath_var_F77=no
15968 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15969 export_dynamic_flag_spec_F77='${wl}-E'
15970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15971 # Instead, shared libraries are loaded at an image base (0x10000000 by
15972 # default) and relocated if they conflict, which is a slow very memory
15973 # consuming and fragmenting process. To avoid this, we pick a random,
15974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15976 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'
15977 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'
15978 ;;
15979
15980 gnu* | linux* | k*bsd*-gnu)
15981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15982 tmp_addflag=
15983 case $cc_basename,$host_cpu in
15984 pgcc*) # Portland Group C compiler
15985 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'
15986 tmp_addflag=' $pic_flag'
15987 ;;
15988 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15989 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'
15990 tmp_addflag=' $pic_flag -Mnomain' ;;
15991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15992 tmp_addflag=' -i_dynamic' ;;
15993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15994 tmp_addflag=' -i_dynamic -nofor_main' ;;
15995 ifc* | ifort*) # Intel Fortran compiler
15996 tmp_addflag=' -nofor_main' ;;
15997 esac
15998 case `$CC -V 2>&1 | sed 5q` in
15999 *Sun\ C*) # Sun C 5.9
16000 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'
16001 tmp_sharedflag='-G' ;;
16002 *Sun\ F*) # Sun Fortran 8.3
16003 tmp_sharedflag='-G' ;;
16004 *)
16005 tmp_sharedflag='-shared' ;;
16006 esac
16007 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16008
16009 if test $supports_anon_versioning = yes; then
16010 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16012 $echo "local: *; };" >> $output_objdir/$libname.ver~
16013 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16014 fi
16015 link_all_deplibs_F77=no
16016 else
16017 ld_shlibs_F77=no
16018 fi
16019 ;;
16020
16021 netbsd* | netbsdelf*-gnu)
16022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16023 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16024 wlarc=
16025 else
16026 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16027 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16028 fi
16029 ;;
16030
16031 solaris*)
16032 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16033 ld_shlibs_F77=no
16034 cat <<EOF 1>&2
16035
16036 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16037 *** create shared libraries on Solaris systems. Therefore, libtool
16038 *** is disabling shared libraries support. We urge you to upgrade GNU
16039 *** binutils to release 2.9.1 or newer. Another option is to modify
16040 *** your PATH or compiler configuration so that the native linker is
16041 *** used, and then restart.
16042
16043 EOF
16044 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16045 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16046 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16047 else
16048 ld_shlibs_F77=no
16049 fi
16050 ;;
16051
16052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16053 case `$LD -v 2>&1` in
16054 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16055 ld_shlibs_F77=no
16056 cat <<_LT_EOF 1>&2
16057
16058 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16059 *** reliably create shared libraries on SCO systems. Therefore, libtool
16060 *** is disabling shared libraries support. We urge you to upgrade GNU
16061 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16062 *** your PATH or compiler configuration so that the native linker is
16063 *** used, and then restart.
16064
16065 _LT_EOF
16066 ;;
16067 *)
16068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16069 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16070 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16071 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16072 else
16073 ld_shlibs_F77=no
16074 fi
16075 ;;
16076 esac
16077 ;;
16078
16079 sunos4*)
16080 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16081 wlarc=
16082 hardcode_direct_F77=yes
16083 hardcode_shlibpath_var_F77=no
16084 ;;
16085
16086 *)
16087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16088 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16090 else
16091 ld_shlibs_F77=no
16092 fi
16093 ;;
16094 esac
16095
16096 if test "$ld_shlibs_F77" = no; then
16097 runpath_var=
16098 hardcode_libdir_flag_spec_F77=
16099 export_dynamic_flag_spec_F77=
16100 whole_archive_flag_spec_F77=
16101 fi
16102 else
16103 # PORTME fill in a description of your system's linker (not GNU ld)
16104 case $host_os in
16105 aix3*)
16106 allow_undefined_flag_F77=unsupported
16107 always_export_symbols_F77=yes
16108 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'
16109 # Note: this linker hardcodes the directories in LIBPATH if there
16110 # are no directories specified by -L.
16111 hardcode_minus_L_F77=yes
16112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16113 # Neither direct hardcoding nor static linking is supported with a
16114 # broken collect2.
16115 hardcode_direct_F77=unsupported
16116 fi
16117 ;;
16118
16119 aix[4-9]*)
16120 if test "$host_cpu" = ia64; then
16121 # On IA64, the linker does run time linking by default, so we don't
16122 # have to do anything special.
16123 aix_use_runtimelinking=no
16124 exp_sym_flag='-Bexport'
16125 no_entry_flag=""
16126 else
16127 # If we're using GNU nm, then we don't want the "-C" option.
16128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16130 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'
16131 else
16132 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'
16133 fi
16134 aix_use_runtimelinking=no
16135
16136 # Test if we are trying to use run time linking or normal
16137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16138 # need to do runtime linking.
16139 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16140 for ld_flag in $LDFLAGS; do
16141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16142 aix_use_runtimelinking=yes
16143 break
16144 fi
16145 done
16146 ;;
16147 esac
16148
16149 exp_sym_flag='-bexport'
16150 no_entry_flag='-bnoentry'
16151 fi
16152
16153 # When large executables or shared objects are built, AIX ld can
16154 # have problems creating the table of contents. If linking a library
16155 # or program results in "error TOC overflow" add -mminimal-toc to
16156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16158
16159 archive_cmds_F77=''
16160 hardcode_direct_F77=yes
16161 hardcode_libdir_separator_F77=':'
16162 link_all_deplibs_F77=yes
16163
16164 if test "$GCC" = yes; then
16165 case $host_os in aix4.[012]|aix4.[012].*)
16166 # We only want to do this on AIX 4.2 and lower, the check
16167 # below for broken collect2 doesn't work under 4.3+
16168 collect2name=`${CC} -print-prog-name=collect2`
16169 if test -f "$collect2name" && \
16170 strings "$collect2name" | grep resolve_lib_name >/dev/null
16171 then
16172 # We have reworked collect2
16173 :
16174 else
16175 # We have old collect2
16176 hardcode_direct_F77=unsupported
16177 # It fails to find uninstalled libraries when the uninstalled
16178 # path is not listed in the libpath. Setting hardcode_minus_L
16179 # to unsupported forces relinking
16180 hardcode_minus_L_F77=yes
16181 hardcode_libdir_flag_spec_F77='-L$libdir'
16182 hardcode_libdir_separator_F77=
16183 fi
16184 ;;
16185 esac
16186 shared_flag='-shared'
16187 if test "$aix_use_runtimelinking" = yes; then
16188 shared_flag="$shared_flag "'${wl}-G'
16189 fi
16190 else
16191 # not using gcc
16192 if test "$host_cpu" = ia64; then
16193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16194 # chokes on -Wl,-G. The following line is correct:
16195 shared_flag='-G'
16196 else
16197 if test "$aix_use_runtimelinking" = yes; then
16198 shared_flag='${wl}-G'
16199 else
16200 shared_flag='${wl}-bM:SRE'
16201 fi
16202 fi
16203 fi
16204
16205 # It seems that -bexpall does not export symbols beginning with
16206 # underscore (_), so it is better to generate a list of symbols to export.
16207 always_export_symbols_F77=yes
16208 if test "$aix_use_runtimelinking" = yes; then
16209 # Warning - without using the other runtime loading flags (-brtl),
16210 # -berok will link without error, but may produce a broken library.
16211 allow_undefined_flag_F77='-berok'
16212 # Determine the default libpath from the value encoded in an empty executable.
16213 cat >conftest.$ac_ext <<_ACEOF
16214 program main
16215
16216 end
16217 _ACEOF
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (ac_try="$ac_link"
16220 case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16223 esac
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_link") 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } && {
16232 test -z "$ac_f77_werror_flag" ||
16233 test ! -s conftest.err
16234 } && test -s conftest$ac_exeext &&
16235 $as_test_x conftest$ac_exeext; then
16236
16237 lt_aix_libpath_sed='
16238 /Import File Strings/,/^$/ {
16239 /^0/ {
16240 s/^0 *\(.*\)$/\1/
16241 p
16242 }
16243 }'
16244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16245 # Check for a 64-bit object if we didn't find anything.
16246 if test -z "$aix_libpath"; then
16247 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16248 fi
16249 else
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16259
16260 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16261 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"
16262 else
16263 if test "$host_cpu" = ia64; then
16264 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16265 allow_undefined_flag_F77="-z nodefs"
16266 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"
16267 else
16268 # Determine the default libpath from the value encoded in an empty executable.
16269 cat >conftest.$ac_ext <<_ACEOF
16270 program main
16271
16272 end
16273 _ACEOF
16274 rm -f conftest.$ac_objext conftest$ac_exeext
16275 if { (ac_try="$ac_link"
16276 case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16279 esac
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_link") 2>conftest.er1
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_f77_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest$ac_exeext &&
16291 $as_test_x conftest$ac_exeext; then
16292
16293 lt_aix_libpath_sed='
16294 /Import File Strings/,/^$/ {
16295 /^0/ {
16296 s/^0 *\(.*\)$/\1/
16297 p
16298 }
16299 }'
16300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16301 # Check for a 64-bit object if we didn't find anything.
16302 if test -z "$aix_libpath"; then
16303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16304 fi
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16308
16309
16310 fi
16311
16312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16313 conftest$ac_exeext conftest.$ac_ext
16314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16315
16316 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16317 # Warning - without using the other run time loading flags,
16318 # -berok will link without error, but may produce a broken library.
16319 no_undefined_flag_F77=' ${wl}-bernotok'
16320 allow_undefined_flag_F77=' ${wl}-berok'
16321 # Exported symbols can be pulled into shared objects from archives
16322 whole_archive_flag_spec_F77='$convenience'
16323 archive_cmds_need_lc_F77=yes
16324 # This is similar to how AIX traditionally builds its shared libraries.
16325 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'
16326 fi
16327 fi
16328 ;;
16329
16330 amigaos*)
16331 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)'
16332 hardcode_libdir_flag_spec_F77='-L$libdir'
16333 hardcode_minus_L_F77=yes
16334 # see comment about different semantics on the GNU ld section
16335 ld_shlibs_F77=no
16336 ;;
16337
16338 bsdi[45]*)
16339 export_dynamic_flag_spec_F77=-rdynamic
16340 ;;
16341
16342 cygwin* | mingw* | pw32*)
16343 # When not using gcc, we currently assume that we are using
16344 # Microsoft Visual C++.
16345 # hardcode_libdir_flag_spec is actually meaningless, as there is
16346 # no search path for DLLs.
16347 hardcode_libdir_flag_spec_F77=' '
16348 allow_undefined_flag_F77=unsupported
16349 # Tell ltmain to make .lib files, not .a files.
16350 libext=lib
16351 # Tell ltmain to make .dll files, not .so files.
16352 shrext_cmds=".dll"
16353 # FIXME: Setting linknames here is a bad hack.
16354 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16355 # The linker will automatically build a .lib file if we build a DLL.
16356 old_archive_From_new_cmds_F77='true'
16357 # FIXME: Should let the user specify the lib program.
16358 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16359 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16360 enable_shared_with_static_runtimes_F77=yes
16361 ;;
16362
16363 darwin* | rhapsody*)
16364 case $host_os in
16365 rhapsody* | darwin1.[012])
16366 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16367 ;;
16368 *) # Darwin 1.3 on
16369 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16370 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16371 else
16372 case ${MACOSX_DEPLOYMENT_TARGET} in
16373 10.[012])
16374 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16375 ;;
16376 10.*)
16377 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16378 ;;
16379 esac
16380 fi
16381 ;;
16382 esac
16383 archive_cmds_need_lc_F77=no
16384 hardcode_direct_F77=no
16385 hardcode_automatic_F77=yes
16386 hardcode_shlibpath_var_F77=unsupported
16387 whole_archive_flag_spec_F77=''
16388 link_all_deplibs_F77=yes
16389 if test "$GCC" = yes ; then
16390 output_verbose_link_cmd='echo'
16391 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16392 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16393 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16394 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16395 else
16396 case $cc_basename in
16397 xlc*)
16398 output_verbose_link_cmd='echo'
16399 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16400 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16401 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16402 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}'
16403 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}'
16404 ;;
16405 *)
16406 ld_shlibs_F77=no
16407 ;;
16408 esac
16409 fi
16410 ;;
16411
16412 dgux*)
16413 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_libdir_flag_spec_F77='-L$libdir'
16415 hardcode_shlibpath_var_F77=no
16416 ;;
16417
16418 freebsd1*)
16419 ld_shlibs_F77=no
16420 ;;
16421
16422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16423 # support. Future versions do this automatically, but an explicit c++rt0.o
16424 # does not break anything, and helps significantly (at the cost of a little
16425 # extra space).
16426 freebsd2.2*)
16427 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16428 hardcode_libdir_flag_spec_F77='-R$libdir'
16429 hardcode_direct_F77=yes
16430 hardcode_shlibpath_var_F77=no
16431 ;;
16432
16433 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16434 freebsd2*)
16435 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_direct_F77=yes
16437 hardcode_minus_L_F77=yes
16438 hardcode_shlibpath_var_F77=no
16439 ;;
16440
16441 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16442 freebsd* | dragonfly*)
16443 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16444 hardcode_libdir_flag_spec_F77='-R$libdir'
16445 hardcode_direct_F77=yes
16446 hardcode_shlibpath_var_F77=no
16447 ;;
16448
16449 hpux9*)
16450 if test "$GCC" = yes; then
16451 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'
16452 else
16453 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'
16454 fi
16455 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16456 hardcode_libdir_separator_F77=:
16457 hardcode_direct_F77=yes
16458
16459 # hardcode_minus_L: Not really in the search PATH,
16460 # but as the default location of the library.
16461 hardcode_minus_L_F77=yes
16462 export_dynamic_flag_spec_F77='${wl}-E'
16463 ;;
16464
16465 hpux10*)
16466 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16467 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16468 else
16469 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16470 fi
16471 if test "$with_gnu_ld" = no; then
16472 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16473 hardcode_libdir_separator_F77=:
16474
16475 hardcode_direct_F77=yes
16476 export_dynamic_flag_spec_F77='${wl}-E'
16477
16478 # hardcode_minus_L: Not really in the search PATH,
16479 # but as the default location of the library.
16480 hardcode_minus_L_F77=yes
16481 fi
16482 ;;
16483
16484 hpux11*)
16485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16486 case $host_cpu in
16487 hppa*64*)
16488 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 ;;
16490 ia64*)
16491 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16492 ;;
16493 *)
16494 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16495 ;;
16496 esac
16497 else
16498 case $host_cpu in
16499 hppa*64*)
16500 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16501 ;;
16502 ia64*)
16503 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16504 ;;
16505 *)
16506 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16507 ;;
16508 esac
16509 fi
16510 if test "$with_gnu_ld" = no; then
16511 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16512 hardcode_libdir_separator_F77=:
16513
16514 case $host_cpu in
16515 hppa*64*|ia64*)
16516 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16517 hardcode_direct_F77=no
16518 hardcode_shlibpath_var_F77=no
16519 ;;
16520 *)
16521 hardcode_direct_F77=yes
16522 export_dynamic_flag_spec_F77='${wl}-E'
16523
16524 # hardcode_minus_L: Not really in the search PATH,
16525 # but as the default location of the library.
16526 hardcode_minus_L_F77=yes
16527 ;;
16528 esac
16529 fi
16530 ;;
16531
16532 irix5* | irix6* | nonstopux*)
16533 if test "$GCC" = yes; then
16534 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'
16535 else
16536 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'
16537 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16538 fi
16539 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16540 hardcode_libdir_separator_F77=:
16541 link_all_deplibs_F77=yes
16542 ;;
16543
16544 netbsd* | netbsdelf*-gnu)
16545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16546 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16547 else
16548 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16549 fi
16550 hardcode_libdir_flag_spec_F77='-R$libdir'
16551 hardcode_direct_F77=yes
16552 hardcode_shlibpath_var_F77=no
16553 ;;
16554
16555 newsos6)
16556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_direct_F77=yes
16558 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16559 hardcode_libdir_separator_F77=:
16560 hardcode_shlibpath_var_F77=no
16561 ;;
16562
16563 openbsd*)
16564 if test -f /usr/libexec/ld.so; then
16565 hardcode_direct_F77=yes
16566 hardcode_shlibpath_var_F77=no
16567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16568 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16570 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16571 export_dynamic_flag_spec_F77='${wl}-E'
16572 else
16573 case $host_os in
16574 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16575 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16576 hardcode_libdir_flag_spec_F77='-R$libdir'
16577 ;;
16578 *)
16579 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16580 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16581 ;;
16582 esac
16583 fi
16584 else
16585 ld_shlibs_F77=no
16586 fi
16587 ;;
16588
16589 os2*)
16590 hardcode_libdir_flag_spec_F77='-L$libdir'
16591 hardcode_minus_L_F77=yes
16592 allow_undefined_flag_F77=unsupported
16593 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'
16594 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16595 ;;
16596
16597 osf3*)
16598 if test "$GCC" = yes; then
16599 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16600 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16601 else
16602 allow_undefined_flag_F77=' -expect_unresolved \*'
16603 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'
16604 fi
16605 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16606 hardcode_libdir_separator_F77=:
16607 ;;
16608
16609 osf4* | osf5*) # as osf3* with the addition of -msym flag
16610 if test "$GCC" = yes; then
16611 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16612 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'
16613 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16614 else
16615 allow_undefined_flag_F77=' -expect_unresolved \*'
16616 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'
16617 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~
16618 $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'
16619
16620 # Both c and cxx compiler support -rpath directly
16621 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16622 fi
16623 hardcode_libdir_separator_F77=:
16624 ;;
16625
16626 solaris*)
16627 no_undefined_flag_F77=' -z text'
16628 if test "$GCC" = yes; then
16629 wlarc='${wl}'
16630 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16632 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16633 else
16634 wlarc=''
16635 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16637 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16638 fi
16639 hardcode_libdir_flag_spec_F77='-R$libdir'
16640 hardcode_shlibpath_var_F77=no
16641 case $host_os in
16642 solaris2.[0-5] | solaris2.[0-5].*) ;;
16643 *)
16644 # The compiler driver will combine and reorder linker options,
16645 # but understands `-z linker_flag'. GCC discards it without `$wl',
16646 # but is careful enough not to reorder.
16647 # Supported since Solaris 2.6 (maybe 2.5.1?)
16648 if test "$GCC" = yes; then
16649 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16650 else
16651 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16652 fi
16653 ;;
16654 esac
16655 link_all_deplibs_F77=yes
16656 ;;
16657
16658 sunos4*)
16659 if test "x$host_vendor" = xsequent; then
16660 # Use $CC to link under sequent, because it throws in some extra .o
16661 # files that make .init and .fini sections work.
16662 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16663 else
16664 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16665 fi
16666 hardcode_libdir_flag_spec_F77='-L$libdir'
16667 hardcode_direct_F77=yes
16668 hardcode_minus_L_F77=yes
16669 hardcode_shlibpath_var_F77=no
16670 ;;
16671
16672 sysv4)
16673 case $host_vendor in
16674 sni)
16675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676 hardcode_direct_F77=yes # is this really true???
16677 ;;
16678 siemens)
16679 ## LD is ld it makes a PLAMLIB
16680 ## CC just makes a GrossModule.
16681 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16682 reload_cmds_F77='$CC -r -o $output$reload_objs'
16683 hardcode_direct_F77=no
16684 ;;
16685 motorola)
16686 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16688 ;;
16689 esac
16690 runpath_var='LD_RUN_PATH'
16691 hardcode_shlibpath_var_F77=no
16692 ;;
16693
16694 sysv4.3*)
16695 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696 hardcode_shlibpath_var_F77=no
16697 export_dynamic_flag_spec_F77='-Bexport'
16698 ;;
16699
16700 sysv4*MP*)
16701 if test -d /usr/nec; then
16702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_shlibpath_var_F77=no
16704 runpath_var=LD_RUN_PATH
16705 hardcode_runpath_var=yes
16706 ld_shlibs_F77=yes
16707 fi
16708 ;;
16709
16710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16711 no_undefined_flag_F77='${wl}-z,text'
16712 archive_cmds_need_lc_F77=no
16713 hardcode_shlibpath_var_F77=no
16714 runpath_var='LD_RUN_PATH'
16715
16716 if test "$GCC" = yes; then
16717 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16719 else
16720 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16722 fi
16723 ;;
16724
16725 sysv5* | sco3.2v5* | sco5v6*)
16726 # Note: We can NOT use -z defs as we might desire, because we do not
16727 # link with -lc, and that would cause any symbols used from libc to
16728 # always be unresolved, which means just about no library would
16729 # ever link correctly. If we're not using GNU ld we use -z text
16730 # though, which does catch some bad symbols but isn't as heavy-handed
16731 # as -z defs.
16732 no_undefined_flag_F77='${wl}-z,text'
16733 allow_undefined_flag_F77='${wl}-z,nodefs'
16734 archive_cmds_need_lc_F77=no
16735 hardcode_shlibpath_var_F77=no
16736 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16737 hardcode_libdir_separator_F77=':'
16738 link_all_deplibs_F77=yes
16739 export_dynamic_flag_spec_F77='${wl}-Bexport'
16740 runpath_var='LD_RUN_PATH'
16741
16742 if test "$GCC" = yes; then
16743 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 else
16746 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 fi
16749 ;;
16750
16751 uts4*)
16752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16753 hardcode_libdir_flag_spec_F77='-L$libdir'
16754 hardcode_shlibpath_var_F77=no
16755 ;;
16756
16757 *)
16758 ld_shlibs_F77=no
16759 ;;
16760 esac
16761 fi
16762
16763 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16764 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16765 test "$ld_shlibs_F77" = no && can_build_shared=no
16766
16767 #
16768 # Do we need to explicitly link libc?
16769 #
16770 case "x$archive_cmds_need_lc_F77" in
16771 x|xyes)
16772 # Assume -lc should be added
16773 archive_cmds_need_lc_F77=yes
16774
16775 if test "$enable_shared" = yes && test "$GCC" = yes; then
16776 case $archive_cmds_F77 in
16777 *'~'*)
16778 # FIXME: we may have to deal with multi-command sequences.
16779 ;;
16780 '$CC '*)
16781 # Test whether the compiler implicitly links with -lc since on some
16782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16783 # to ld, don't add -lc before -lgcc.
16784 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16785 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16786 $rm conftest*
16787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16788
16789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790 (eval $ac_compile) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } 2>conftest.err; then
16794 soname=conftest
16795 lib=conftest
16796 libobjs=conftest.$ac_objext
16797 deplibs=
16798 wl=$lt_prog_compiler_wl_F77
16799 pic_flag=$lt_prog_compiler_pic_F77
16800 compiler_flags=-v
16801 linker_flags=-v
16802 verstring=
16803 output_objdir=.
16804 libname=conftest
16805 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16806 allow_undefined_flag_F77=
16807 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16808 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }
16812 then
16813 archive_cmds_need_lc_F77=no
16814 else
16815 archive_cmds_need_lc_F77=yes
16816 fi
16817 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16818 else
16819 cat conftest.err 1>&5
16820 fi
16821 $rm conftest*
16822 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16823 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16824 ;;
16825 esac
16826 fi
16827 ;;
16828 esac
16829
16830 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16831 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16832 library_names_spec=
16833 libname_spec='lib$name'
16834 soname_spec=
16835 shrext_cmds=".so"
16836 postinstall_cmds=
16837 postuninstall_cmds=
16838 finish_cmds=
16839 finish_eval=
16840 shlibpath_var=
16841 shlibpath_overrides_runpath=unknown
16842 version_type=none
16843 dynamic_linker="$host_os ld.so"
16844 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16845
16846 need_lib_prefix=unknown
16847 hardcode_into_libs=no
16848
16849 # when you set need_version to no, make sure it does not cause -set_version
16850 # flags to be left without arguments
16851 need_version=unknown
16852
16853 case $host_os in
16854 aix3*)
16855 version_type=linux
16856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16857 shlibpath_var=LIBPATH
16858
16859 # AIX 3 has no versioning support, so we append a major version to the name.
16860 soname_spec='${libname}${release}${shared_ext}$major'
16861 ;;
16862
16863 aix[4-9]*)
16864 version_type=linux
16865 need_lib_prefix=no
16866 need_version=no
16867 hardcode_into_libs=yes
16868 if test "$host_cpu" = ia64; then
16869 # AIX 5 supports IA64
16870 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 else
16873 # With GCC up to 2.95.x, collect2 would create an import file
16874 # for dependence libraries. The import file would start with
16875 # the line `#! .'. This would cause the generated library to
16876 # depend on `.', always an invalid library. This was fixed in
16877 # development snapshots of GCC prior to 3.0.
16878 case $host_os in
16879 aix4 | aix4.[01] | aix4.[01].*)
16880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16881 echo ' yes '
16882 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16883 :
16884 else
16885 can_build_shared=no
16886 fi
16887 ;;
16888 esac
16889 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16890 # soname into executable. Probably we can add versioning support to
16891 # collect2, so additional links can be useful in future.
16892 if test "$aix_use_runtimelinking" = yes; then
16893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16894 # instead of lib<name>.a to let people know that these are not
16895 # typical AIX shared libraries.
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897 else
16898 # We preserve .a as extension for shared libraries through AIX4.2
16899 # and later when we are not doing run time linking.
16900 library_names_spec='${libname}${release}.a $libname.a'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 fi
16903 shlibpath_var=LIBPATH
16904 fi
16905 ;;
16906
16907 amigaos*)
16908 library_names_spec='$libname.ixlibrary $libname.a'
16909 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16910 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'
16911 ;;
16912
16913 beos*)
16914 library_names_spec='${libname}${shared_ext}'
16915 dynamic_linker="$host_os ld.so"
16916 shlibpath_var=LIBRARY_PATH
16917 ;;
16918
16919 bsdi[45]*)
16920 version_type=linux
16921 need_version=no
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16925 shlibpath_var=LD_LIBRARY_PATH
16926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16928 # the default ld.so.conf also contains /usr/contrib/lib and
16929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16930 # libtool to hard-code these into programs
16931 ;;
16932
16933 cygwin* | mingw* | pw32*)
16934 version_type=windows
16935 shrext_cmds=".dll"
16936 need_version=no
16937 need_lib_prefix=no
16938
16939 case $GCC,$host_os in
16940 yes,cygwin* | yes,mingw* | yes,pw32*)
16941 library_names_spec='$libname.dll.a'
16942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16943 postinstall_cmds='base_file=`basename \${file}`~
16944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16945 dldir=$destdir/`dirname \$dlpath`~
16946 test -d \$dldir || mkdir -p \$dldir~
16947 $install_prog $dir/$dlname \$dldir/$dlname~
16948 chmod a+x \$dldir/$dlname'
16949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16950 dlpath=$dir/\$dldll~
16951 $rm \$dlpath'
16952 shlibpath_overrides_runpath=yes
16953
16954 case $host_os in
16955 cygwin*)
16956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16958 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16959 ;;
16960 mingw*)
16961 # MinGW DLLs use traditional 'lib' prefix
16962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16963 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16964 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16965 # It is most probably a Windows format PATH printed by
16966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16967 # path with ; separators, and with drive letters. We can handle the
16968 # drive letters (cygwin fileutils understands them), so leave them,
16969 # especially as we might pass files found there to a mingw objdump,
16970 # which wouldn't understand a cygwinified path. Ahh.
16971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16972 else
16973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16974 fi
16975 ;;
16976 pw32*)
16977 # pw32 DLLs use 'pw' prefix rather than 'lib'
16978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16979 ;;
16980 esac
16981 ;;
16982
16983 *)
16984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16985 ;;
16986 esac
16987 dynamic_linker='Win32 ld.exe'
16988 # FIXME: first we should search . and the directory the executable is in
16989 shlibpath_var=PATH
16990 ;;
16991
16992 darwin* | rhapsody*)
16993 dynamic_linker="$host_os dyld"
16994 version_type=darwin
16995 need_lib_prefix=no
16996 need_version=no
16997 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16998 soname_spec='${libname}${release}${major}$shared_ext'
16999 shlibpath_overrides_runpath=yes
17000 shlibpath_var=DYLD_LIBRARY_PATH
17001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17002
17003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17004 ;;
17005
17006 dgux*)
17007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 ;;
17014
17015 freebsd1*)
17016 dynamic_linker=no
17017 ;;
17018
17019 freebsd* | dragonfly*)
17020 # DragonFly does not have aout. When/if they implement a new
17021 # versioning mechanism, adjust this.
17022 if test -x /usr/bin/objformat; then
17023 objformat=`/usr/bin/objformat`
17024 else
17025 case $host_os in
17026 freebsd[123]*) objformat=aout ;;
17027 *) objformat=elf ;;
17028 esac
17029 fi
17030 version_type=freebsd-$objformat
17031 case $version_type in
17032 freebsd-elf*)
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17034 need_version=no
17035 need_lib_prefix=no
17036 ;;
17037 freebsd-*)
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17039 need_version=yes
17040 ;;
17041 esac
17042 shlibpath_var=LD_LIBRARY_PATH
17043 case $host_os in
17044 freebsd2*)
17045 shlibpath_overrides_runpath=yes
17046 ;;
17047 freebsd3.[01]* | freebsdelf3.[01]*)
17048 shlibpath_overrides_runpath=yes
17049 hardcode_into_libs=yes
17050 ;;
17051 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17052 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17053 shlibpath_overrides_runpath=no
17054 hardcode_into_libs=yes
17055 ;;
17056 *) # from 4.6 on, and DragonFly
17057 shlibpath_overrides_runpath=yes
17058 hardcode_into_libs=yes
17059 ;;
17060 esac
17061 ;;
17062
17063 gnu*)
17064 version_type=linux
17065 need_lib_prefix=no
17066 need_version=no
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17068 soname_spec='${libname}${release}${shared_ext}$major'
17069 shlibpath_var=LD_LIBRARY_PATH
17070 hardcode_into_libs=yes
17071 ;;
17072
17073 hpux9* | hpux10* | hpux11*)
17074 # Give a soname corresponding to the major version so that dld.sl refuses to
17075 # link against other versions.
17076 version_type=sunos
17077 need_lib_prefix=no
17078 need_version=no
17079 case $host_cpu in
17080 ia64*)
17081 shrext_cmds='.so'
17082 hardcode_into_libs=yes
17083 dynamic_linker="$host_os dld.so"
17084 shlibpath_var=LD_LIBRARY_PATH
17085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 if test "X$HPUX_IA64_MODE" = X32; then
17089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17090 else
17091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17092 fi
17093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17094 ;;
17095 hppa*64*)
17096 shrext_cmds='.sl'
17097 hardcode_into_libs=yes
17098 dynamic_linker="$host_os dld.sl"
17099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17105 ;;
17106 *)
17107 shrext_cmds='.sl'
17108 dynamic_linker="$host_os dld.sl"
17109 shlibpath_var=SHLIB_PATH
17110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 ;;
17114 esac
17115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17116 postinstall_cmds='chmod 555 $lib'
17117 ;;
17118
17119 interix[3-9]*)
17120 version_type=linux
17121 need_lib_prefix=no
17122 need_version=no
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath=no
17128 hardcode_into_libs=yes
17129 ;;
17130
17131 irix5* | irix6* | nonstopux*)
17132 case $host_os in
17133 nonstopux*) version_type=nonstopux ;;
17134 *)
17135 if test "$lt_cv_prog_gnu_ld" = yes; then
17136 version_type=linux
17137 else
17138 version_type=irix
17139 fi ;;
17140 esac
17141 need_lib_prefix=no
17142 need_version=no
17143 soname_spec='${libname}${release}${shared_ext}$major'
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17145 case $host_os in
17146 irix5* | nonstopux*)
17147 libsuff= shlibsuff=
17148 ;;
17149 *)
17150 case $LD in # libtool.m4 will add one of these switches to LD
17151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17152 libsuff= shlibsuff= libmagic=32-bit;;
17153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17154 libsuff=32 shlibsuff=N32 libmagic=N32;;
17155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17156 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17157 *) libsuff= shlibsuff= libmagic=never-match;;
17158 esac
17159 ;;
17160 esac
17161 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17162 shlibpath_overrides_runpath=no
17163 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17164 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17165 hardcode_into_libs=yes
17166 ;;
17167
17168 # No shared lib support for Linux oldld, aout, or coff.
17169 linux*oldld* | linux*aout* | linux*coff*)
17170 dynamic_linker=no
17171 ;;
17172
17173 # This must be Linux ELF.
17174 linux* | k*bsd*-gnu)
17175 version_type=linux
17176 need_lib_prefix=no
17177 need_version=no
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179 soname_spec='${libname}${release}${shared_ext}$major'
17180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=no
17183 # This implies no fast_install, which is unacceptable.
17184 # Some rework will be needed to allow for fast_install
17185 # before this can be enabled.
17186 hardcode_into_libs=yes
17187
17188 # Append ld.so.conf contents to the search path
17189 if test -f /etc/ld.so.conf; then
17190 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' ' '`
17191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17192 fi
17193
17194 # We used to test for /lib/ld.so.1 and disable shared libraries on
17195 # powerpc, because MkLinux only supported shared libraries with the
17196 # GNU dynamic linker. Since this was broken with cross compilers,
17197 # most powerpc-linux boxes support dynamic linking these days and
17198 # people can always --disable-shared, the test was removed, and we
17199 # assume the GNU/Linux dynamic linker is in use.
17200 dynamic_linker='GNU/Linux ld.so'
17201 ;;
17202
17203 netbsdelf*-gnu)
17204 version_type=linux
17205 need_lib_prefix=no
17206 need_version=no
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17208 soname_spec='${libname}${release}${shared_ext}$major'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 shlibpath_overrides_runpath=no
17211 hardcode_into_libs=yes
17212 dynamic_linker='NetBSD ld.elf_so'
17213 ;;
17214
17215 netbsd*)
17216 version_type=sunos
17217 need_lib_prefix=no
17218 need_version=no
17219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17222 dynamic_linker='NetBSD (a.out) ld.so'
17223 else
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 dynamic_linker='NetBSD ld.elf_so'
17227 fi
17228 shlibpath_var=LD_LIBRARY_PATH
17229 shlibpath_overrides_runpath=yes
17230 hardcode_into_libs=yes
17231 ;;
17232
17233 newsos6)
17234 version_type=linux
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=yes
17238 ;;
17239
17240 nto-qnx*)
17241 version_type=linux
17242 need_lib_prefix=no
17243 need_version=no
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17248 ;;
17249
17250 openbsd*)
17251 version_type=sunos
17252 sys_lib_dlsearch_path_spec="/usr/lib"
17253 need_lib_prefix=no
17254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17255 case $host_os in
17256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17257 *) need_version=no ;;
17258 esac
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17263 case $host_os in
17264 openbsd2.[89] | openbsd2.[89].*)
17265 shlibpath_overrides_runpath=no
17266 ;;
17267 *)
17268 shlibpath_overrides_runpath=yes
17269 ;;
17270 esac
17271 else
17272 shlibpath_overrides_runpath=yes
17273 fi
17274 ;;
17275
17276 os2*)
17277 libname_spec='$name'
17278 shrext_cmds=".dll"
17279 need_lib_prefix=no
17280 library_names_spec='$libname${shared_ext} $libname.a'
17281 dynamic_linker='OS/2 ld.exe'
17282 shlibpath_var=LIBPATH
17283 ;;
17284
17285 osf3* | osf4* | osf5*)
17286 version_type=osf
17287 need_lib_prefix=no
17288 need_version=no
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17294 ;;
17295
17296 rdos*)
17297 dynamic_linker=no
17298 ;;
17299
17300 solaris*)
17301 version_type=linux
17302 need_lib_prefix=no
17303 need_version=no
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath=yes
17308 hardcode_into_libs=yes
17309 # ldd complains unless libraries are executable
17310 postinstall_cmds='chmod +x $lib'
17311 ;;
17312
17313 sunos4*)
17314 version_type=sunos
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes
17319 if test "$with_gnu_ld" = yes; then
17320 need_lib_prefix=no
17321 fi
17322 need_version=yes
17323 ;;
17324
17325 sysv4 | sysv4.3*)
17326 version_type=linux
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 case $host_vendor in
17331 sni)
17332 shlibpath_overrides_runpath=no
17333 need_lib_prefix=no
17334 export_dynamic_flag_spec='${wl}-Blargedynsym'
17335 runpath_var=LD_RUN_PATH
17336 ;;
17337 siemens)
17338 need_lib_prefix=no
17339 ;;
17340 motorola)
17341 need_lib_prefix=no
17342 need_version=no
17343 shlibpath_overrides_runpath=no
17344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17345 ;;
17346 esac
17347 ;;
17348
17349 sysv4*MP*)
17350 if test -d /usr/nec ;then
17351 version_type=linux
17352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17353 soname_spec='$libname${shared_ext}.$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 fi
17356 ;;
17357
17358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17359 version_type=freebsd-elf
17360 need_lib_prefix=no
17361 need_version=no
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 hardcode_into_libs=yes
17366 if test "$with_gnu_ld" = yes; then
17367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17368 shlibpath_overrides_runpath=no
17369 else
17370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17371 shlibpath_overrides_runpath=yes
17372 case $host_os in
17373 sco3.2v5*)
17374 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17375 ;;
17376 esac
17377 fi
17378 sys_lib_dlsearch_path_spec='/usr/lib'
17379 ;;
17380
17381 uts4*)
17382 version_type=linux
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 ;;
17387
17388 *)
17389 dynamic_linker=no
17390 ;;
17391 esac
17392 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17393 echo "${ECHO_T}$dynamic_linker" >&6; }
17394 test "$dynamic_linker" = no && can_build_shared=no
17395
17396 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17400 fi
17401
17402 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17403 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17407 fi
17408
17409 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17410
17411 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17412 if test "$GCC" = yes; then
17413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17414 fi
17415
17416 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17417 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17418 hardcode_action_F77=
17419 if test -n "$hardcode_libdir_flag_spec_F77" || \
17420 test -n "$runpath_var_F77" || \
17421 test "X$hardcode_automatic_F77" = "Xyes" ; then
17422
17423 # We can hardcode non-existant directories.
17424 if test "$hardcode_direct_F77" != no &&
17425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17426 # have to relink, otherwise we might link with an installed library
17427 # when we should be linking with a yet-to-be-installed one
17428 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17429 test "$hardcode_minus_L_F77" != no; then
17430 # Linking always hardcodes the temporary library directory.
17431 hardcode_action_F77=relink
17432 else
17433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17434 hardcode_action_F77=immediate
17435 fi
17436 else
17437 # We cannot hardcode anything, or else we can only hardcode existing
17438 # directories.
17439 hardcode_action_F77=unsupported
17440 fi
17441 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17442 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17443
17444 if test "$hardcode_action_F77" = relink; then
17445 # Fast installation is not supported
17446 enable_fast_install=no
17447 elif test "$shlibpath_overrides_runpath" = yes ||
17448 test "$enable_shared" = no; then
17449 # Fast installation is not necessary
17450 enable_fast_install=needless
17451 fi
17452
17453
17454 # The else clause should only fire when bootstrapping the
17455 # libtool distribution, otherwise you forgot to ship ltmain.sh
17456 # with your package, and you will get complaints that there are
17457 # no rules to generate ltmain.sh.
17458 if test -f "$ltmain"; then
17459 # See if we are running on zsh, and set the options which allow our commands through
17460 # without removal of \ escapes.
17461 if test -n "${ZSH_VERSION+set}" ; then
17462 setopt NO_GLOB_SUBST
17463 fi
17464 # Now quote all the things that may contain metacharacters while being
17465 # careful not to overquote the AC_SUBSTed values. We take copies of the
17466 # variables and quote the copies for generation of the libtool script.
17467 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17468 SED SHELL STRIP \
17469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17471 deplibs_check_method reload_flag reload_cmds need_locks \
17472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17473 lt_cv_sys_global_symbol_to_c_name_address \
17474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17475 old_postinstall_cmds old_postuninstall_cmds \
17476 compiler_F77 \
17477 CC_F77 \
17478 LD_F77 \
17479 lt_prog_compiler_wl_F77 \
17480 lt_prog_compiler_pic_F77 \
17481 lt_prog_compiler_static_F77 \
17482 lt_prog_compiler_no_builtin_flag_F77 \
17483 export_dynamic_flag_spec_F77 \
17484 thread_safe_flag_spec_F77 \
17485 whole_archive_flag_spec_F77 \
17486 enable_shared_with_static_runtimes_F77 \
17487 old_archive_cmds_F77 \
17488 old_archive_from_new_cmds_F77 \
17489 predep_objects_F77 \
17490 postdep_objects_F77 \
17491 predeps_F77 \
17492 postdeps_F77 \
17493 compiler_lib_search_path_F77 \
17494 compiler_lib_search_dirs_F77 \
17495 archive_cmds_F77 \
17496 archive_expsym_cmds_F77 \
17497 postinstall_cmds_F77 \
17498 postuninstall_cmds_F77 \
17499 old_archive_from_expsyms_cmds_F77 \
17500 allow_undefined_flag_F77 \
17501 no_undefined_flag_F77 \
17502 export_symbols_cmds_F77 \
17503 hardcode_libdir_flag_spec_F77 \
17504 hardcode_libdir_flag_spec_ld_F77 \
17505 hardcode_libdir_separator_F77 \
17506 hardcode_automatic_F77 \
17507 module_cmds_F77 \
17508 module_expsym_cmds_F77 \
17509 lt_cv_prog_compiler_c_o_F77 \
17510 fix_srcfile_path_F77 \
17511 exclude_expsyms_F77 \
17512 include_expsyms_F77; do
17513
17514 case $var in
17515 old_archive_cmds_F77 | \
17516 old_archive_from_new_cmds_F77 | \
17517 archive_cmds_F77 | \
17518 archive_expsym_cmds_F77 | \
17519 module_cmds_F77 | \
17520 module_expsym_cmds_F77 | \
17521 old_archive_from_expsyms_cmds_F77 | \
17522 export_symbols_cmds_F77 | \
17523 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17524 postinstall_cmds | postuninstall_cmds | \
17525 old_postinstall_cmds | old_postuninstall_cmds | \
17526 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17527 # Double-quote double-evaled strings.
17528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17529 ;;
17530 *)
17531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17532 ;;
17533 esac
17534 done
17535
17536 case $lt_echo in
17537 *'\$0 --fallback-echo"')
17538 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17539 ;;
17540 esac
17541
17542 cfgfile="$ofile"
17543
17544 cat <<__EOF__ >> "$cfgfile"
17545 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17546
17547 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17548
17549 # Shell to use when invoking shell scripts.
17550 SHELL=$lt_SHELL
17551
17552 # Whether or not to build shared libraries.
17553 build_libtool_libs=$enable_shared
17554
17555 # Whether or not to build static libraries.
17556 build_old_libs=$enable_static
17557
17558 # Whether or not to add -lc for building shared libraries.
17559 build_libtool_need_lc=$archive_cmds_need_lc_F77
17560
17561 # Whether or not to disallow shared libs when runtime libs are static
17562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17563
17564 # Whether or not to optimize for fast installation.
17565 fast_install=$enable_fast_install
17566
17567 # The host system.
17568 host_alias=$host_alias
17569 host=$host
17570 host_os=$host_os
17571
17572 # The build system.
17573 build_alias=$build_alias
17574 build=$build
17575 build_os=$build_os
17576
17577 # An echo program that does not interpret backslashes.
17578 echo=$lt_echo
17579
17580 # The archiver.
17581 AR=$lt_AR
17582 AR_FLAGS=$lt_AR_FLAGS
17583
17584 # A C compiler.
17585 LTCC=$lt_LTCC
17586
17587 # LTCC compiler flags.
17588 LTCFLAGS=$lt_LTCFLAGS
17589
17590 # A language-specific compiler.
17591 CC=$lt_compiler_F77
17592
17593 # Is the compiler the GNU C compiler?
17594 with_gcc=$GCC_F77
17595
17596 # An ERE matcher.
17597 EGREP=$lt_EGREP
17598
17599 # The linker used to build libraries.
17600 LD=$lt_LD_F77
17601
17602 # Whether we need hard or soft links.
17603 LN_S=$lt_LN_S
17604
17605 # A BSD-compatible nm program.
17606 NM=$lt_NM
17607
17608 # A symbol stripping program
17609 STRIP=$lt_STRIP
17610
17611 # Used to examine libraries when file_magic_cmd begins "file"
17612 MAGIC_CMD=$MAGIC_CMD
17613
17614 # Used on cygwin: DLL creation program.
17615 DLLTOOL="$DLLTOOL"
17616
17617 # Used on cygwin: object dumper.
17618 OBJDUMP="$OBJDUMP"
17619
17620 # Used on cygwin: assembler.
17621 AS="$AS"
17622
17623 # The name of the directory that contains temporary libtool files.
17624 objdir=$objdir
17625
17626 # How to create reloadable object files.
17627 reload_flag=$lt_reload_flag
17628 reload_cmds=$lt_reload_cmds
17629
17630 # How to pass a linker flag through the compiler.
17631 wl=$lt_lt_prog_compiler_wl_F77
17632
17633 # Object file suffix (normally "o").
17634 objext="$ac_objext"
17635
17636 # Old archive suffix (normally "a").
17637 libext="$libext"
17638
17639 # Shared library suffix (normally ".so").
17640 shrext_cmds='$shrext_cmds'
17641
17642 # Executable file suffix (normally "").
17643 exeext="$exeext"
17644
17645 # Additional compiler flags for building library objects.
17646 pic_flag=$lt_lt_prog_compiler_pic_F77
17647 pic_mode=$pic_mode
17648
17649 # What is the maximum length of a command?
17650 max_cmd_len=$lt_cv_sys_max_cmd_len
17651
17652 # Does compiler simultaneously support -c and -o options?
17653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17654
17655 # Must we lock files when doing compilation?
17656 need_locks=$lt_need_locks
17657
17658 # Do we need the lib prefix for modules?
17659 need_lib_prefix=$need_lib_prefix
17660
17661 # Do we need a version for libraries?
17662 need_version=$need_version
17663
17664 # Whether dlopen is supported.
17665 dlopen_support=$enable_dlopen
17666
17667 # Whether dlopen of programs is supported.
17668 dlopen_self=$enable_dlopen_self
17669
17670 # Whether dlopen of statically linked programs is supported.
17671 dlopen_self_static=$enable_dlopen_self_static
17672
17673 # Compiler flag to prevent dynamic linking.
17674 link_static_flag=$lt_lt_prog_compiler_static_F77
17675
17676 # Compiler flag to turn off builtin functions.
17677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17678
17679 # Compiler flag to allow reflexive dlopens.
17680 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17681
17682 # Compiler flag to generate shared objects directly from archives.
17683 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17684
17685 # Compiler flag to generate thread-safe objects.
17686 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17687
17688 # Library versioning type.
17689 version_type=$version_type
17690
17691 # Format of library name prefix.
17692 libname_spec=$lt_libname_spec
17693
17694 # List of archive names. First name is the real one, the rest are links.
17695 # The last name is the one that the linker finds with -lNAME.
17696 library_names_spec=$lt_library_names_spec
17697
17698 # The coded name of the library, if different from the real name.
17699 soname_spec=$lt_soname_spec
17700
17701 # Commands used to build and install an old-style archive.
17702 RANLIB=$lt_RANLIB
17703 old_archive_cmds=$lt_old_archive_cmds_F77
17704 old_postinstall_cmds=$lt_old_postinstall_cmds
17705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17706
17707 # Create an old-style archive from a shared archive.
17708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17709
17710 # Create a temporary old-style archive to link instead of a shared archive.
17711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17712
17713 # Commands used to build and install a shared archive.
17714 archive_cmds=$lt_archive_cmds_F77
17715 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17716 postinstall_cmds=$lt_postinstall_cmds
17717 postuninstall_cmds=$lt_postuninstall_cmds
17718
17719 # Commands used to build a loadable module (assumed same as above if empty)
17720 module_cmds=$lt_module_cmds_F77
17721 module_expsym_cmds=$lt_module_expsym_cmds_F77
17722
17723 # Commands to strip libraries.
17724 old_striplib=$lt_old_striplib
17725 striplib=$lt_striplib
17726
17727 # Dependencies to place before the objects being linked to create a
17728 # shared library.
17729 predep_objects=$lt_predep_objects_F77
17730
17731 # Dependencies to place after the objects being linked to create a
17732 # shared library.
17733 postdep_objects=$lt_postdep_objects_F77
17734
17735 # Dependencies to place before the objects being linked to create a
17736 # shared library.
17737 predeps=$lt_predeps_F77
17738
17739 # Dependencies to place after the objects being linked to create a
17740 # shared library.
17741 postdeps=$lt_postdeps_F77
17742
17743 # The directories searched by this compiler when creating a shared
17744 # library
17745 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17746
17747 # The library search path used internally by the compiler when linking
17748 # a shared library.
17749 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17750
17751 # Method to check whether dependent libraries are shared objects.
17752 deplibs_check_method=$lt_deplibs_check_method
17753
17754 # Command to use when deplibs_check_method == file_magic.
17755 file_magic_cmd=$lt_file_magic_cmd
17756
17757 # Flag that allows shared libraries with undefined symbols to be built.
17758 allow_undefined_flag=$lt_allow_undefined_flag_F77
17759
17760 # Flag that forces no undefined symbols.
17761 no_undefined_flag=$lt_no_undefined_flag_F77
17762
17763 # Commands used to finish a libtool library installation in a directory.
17764 finish_cmds=$lt_finish_cmds
17765
17766 # Same as above, but a single script fragment to be evaled but not shown.
17767 finish_eval=$lt_finish_eval
17768
17769 # Take the output of nm and produce a listing of raw symbols and C names.
17770 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17771
17772 # Transform the output of nm in a proper C declaration
17773 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17774
17775 # Transform the output of nm in a C name address pair
17776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17777
17778 # This is the shared library runtime path variable.
17779 runpath_var=$runpath_var
17780
17781 # This is the shared library path variable.
17782 shlibpath_var=$shlibpath_var
17783
17784 # Is shlibpath searched before the hard-coded library search path?
17785 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17786
17787 # How to hardcode a shared library path into an executable.
17788 hardcode_action=$hardcode_action_F77
17789
17790 # Whether we should hardcode library paths into libraries.
17791 hardcode_into_libs=$hardcode_into_libs
17792
17793 # Flag to hardcode \$libdir into a binary during linking.
17794 # This must work even if \$libdir does not exist.
17795 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17796
17797 # If ld is used when linking, flag to hardcode \$libdir into
17798 # a binary during linking. This must work even if \$libdir does
17799 # not exist.
17800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17801
17802 # Whether we need a single -rpath flag with a separated argument.
17803 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17804
17805 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17806 # resulting binary.
17807 hardcode_direct=$hardcode_direct_F77
17808
17809 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17810 # resulting binary.
17811 hardcode_minus_L=$hardcode_minus_L_F77
17812
17813 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17814 # the resulting binary.
17815 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17816
17817 # Set to yes if building a shared library automatically hardcodes DIR into the library
17818 # and all subsequent libraries and executables linked against it.
17819 hardcode_automatic=$hardcode_automatic_F77
17820
17821 # Variables whose values should be saved in libtool wrapper scripts and
17822 # restored at relink time.
17823 variables_saved_for_relink="$variables_saved_for_relink"
17824
17825 # Whether libtool must link a program against all its dependency libraries.
17826 link_all_deplibs=$link_all_deplibs_F77
17827
17828 # Compile-time system search path for libraries
17829 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17830
17831 # Run-time system search path for libraries
17832 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17833
17834 # Fix the shell variable \$srcfile for the compiler.
17835 fix_srcfile_path=$lt_fix_srcfile_path
17836
17837 # Set to yes if exported symbols are required.
17838 always_export_symbols=$always_export_symbols_F77
17839
17840 # The commands to list exported symbols.
17841 export_symbols_cmds=$lt_export_symbols_cmds_F77
17842
17843 # The commands to extract the exported symbol list from a shared archive.
17844 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17845
17846 # Symbols that should not be listed in the preloaded symbols.
17847 exclude_expsyms=$lt_exclude_expsyms_F77
17848
17849 # Symbols that must always be exported.
17850 include_expsyms=$lt_include_expsyms_F77
17851
17852 # ### END LIBTOOL TAG CONFIG: $tagname
17853
17854 __EOF__
17855
17856
17857 else
17858 # If there is no Makefile yet, we rely on a make rule to execute
17859 # `config.status --recheck' to rerun these tests and create the
17860 # libtool script then.
17861 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17862 if test -f "$ltmain_in"; then
17863 test -f Makefile && make "$ltmain"
17864 fi
17865 fi
17866
17867
17868 ac_ext=c
17869 ac_cpp='$CPP $CPPFLAGS'
17870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17873
17874 CC="$lt_save_CC"
17875
17876 else
17877 tagname=""
17878 fi
17879 ;;
17880
17881 GCJ)
17882 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17883
17884
17885 # Source file extension for Java test sources.
17886 ac_ext=java
17887
17888 # Object file extension for compiled Java test sources.
17889 objext=o
17890 objext_GCJ=$objext
17891
17892 # Code to be used in simple compile tests
17893 lt_simple_compile_test_code="class foo {}"
17894
17895 # Code to be used in simple link tests
17896 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17897
17898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17899
17900 # If no C compiler was specified, use CC.
17901 LTCC=${LTCC-"$CC"}
17902
17903 # If no C compiler flags were specified, use CFLAGS.
17904 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17905
17906 # Allow CC to be a program name with arguments.
17907 compiler=$CC
17908
17909
17910 # save warnings/boilerplate of simple test code
17911 ac_outfile=conftest.$ac_objext
17912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17914 _lt_compiler_boilerplate=`cat conftest.err`
17915 $rm conftest*
17916
17917 ac_outfile=conftest.$ac_objext
17918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17920 _lt_linker_boilerplate=`cat conftest.err`
17921 $rm -r conftest*
17922
17923
17924 # Allow CC to be a program name with arguments.
17925 lt_save_CC="$CC"
17926 CC=${GCJ-"gcj"}
17927 compiler=$CC
17928 compiler_GCJ=$CC
17929 for cc_temp in $compiler""; do
17930 case $cc_temp in
17931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17933 \-*) ;;
17934 *) break;;
17935 esac
17936 done
17937 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17938
17939
17940 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17941 archive_cmds_need_lc_GCJ=no
17942
17943 old_archive_cmds_GCJ=$old_archive_cmds
17944
17945
17946 lt_prog_compiler_no_builtin_flag_GCJ=
17947
17948 if test "$GCC" = yes; then
17949 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17950
17951
17952 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17953 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17954 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956 else
17957 lt_cv_prog_compiler_rtti_exceptions=no
17958 ac_outfile=conftest.$ac_objext
17959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17960 lt_compiler_flag="-fno-rtti -fno-exceptions"
17961 # Insert the option either (1) after the last *FLAGS variable, or
17962 # (2) before a word containing "conftest.", or (3) at the end.
17963 # Note that $ac_compile itself does not contain backslashes and begins
17964 # with a dollar sign (not a hyphen), so the echo should work correctly.
17965 # The option is referenced via a variable to avoid confusing sed.
17966 lt_compile=`echo "$ac_compile" | $SED \
17967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17969 -e 's:$: $lt_compiler_flag:'`
17970 (eval echo "\"\$as_me:17970: $lt_compile\"" >&5)
17971 (eval "$lt_compile" 2>conftest.err)
17972 ac_status=$?
17973 cat conftest.err >&5
17974 echo "$as_me:17974: \$? = $ac_status" >&5
17975 if (exit $ac_status) && test -s "$ac_outfile"; then
17976 # The compiler can only warn and ignore the option if not recognized
17977 # So say no if there are warnings other than the usual output.
17978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17981 lt_cv_prog_compiler_rtti_exceptions=yes
17982 fi
17983 fi
17984 $rm conftest*
17985
17986 fi
17987 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17988 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17989
17990 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17991 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17992 else
17993 :
17994 fi
17995
17996 fi
17997
17998 lt_prog_compiler_wl_GCJ=
17999 lt_prog_compiler_pic_GCJ=
18000 lt_prog_compiler_static_GCJ=
18001
18002 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18003 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18004
18005 if test "$GCC" = yes; then
18006 lt_prog_compiler_wl_GCJ='-Wl,'
18007 lt_prog_compiler_static_GCJ='-static'
18008
18009 case $host_os in
18010 aix*)
18011 # All AIX code is PIC.
18012 if test "$host_cpu" = ia64; then
18013 # AIX 5 now supports IA64 processor
18014 lt_prog_compiler_static_GCJ='-Bstatic'
18015 fi
18016 ;;
18017
18018 amigaos*)
18019 # FIXME: we need at least 68020 code to build shared libraries, but
18020 # adding the `-m68020' flag to GCC prevents building anything better,
18021 # like `-m68040'.
18022 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18023 ;;
18024
18025 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18026 # PIC is the default for these OSes.
18027 ;;
18028
18029 mingw* | cygwin* | pw32* | os2*)
18030 # This hack is so that the source file can tell whether it is being
18031 # built for inclusion in a dll (and should export symbols for example).
18032 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18033 # (--disable-auto-import) libraries
18034
18035 ;;
18036
18037 darwin* | rhapsody*)
18038 # PIC is the default on this platform
18039 # Common symbols not allowed in MH_DYLIB files
18040 lt_prog_compiler_pic_GCJ='-fno-common'
18041 ;;
18042
18043 interix[3-9]*)
18044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18045 # Instead, we relocate shared libraries at runtime.
18046 ;;
18047
18048 msdosdjgpp*)
18049 # Just because we use GCC doesn't mean we suddenly get shared libraries
18050 # on systems that don't support them.
18051 lt_prog_compiler_can_build_shared_GCJ=no
18052 enable_shared=no
18053 ;;
18054
18055 sysv4*MP*)
18056 if test -d /usr/nec; then
18057 lt_prog_compiler_pic_GCJ=-Kconform_pic
18058 fi
18059 ;;
18060
18061 hpux*)
18062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18063 # not for PA HP-UX.
18064 case $host_cpu in
18065 hppa*64*|ia64*)
18066 # +Z the default
18067 ;;
18068 *)
18069 lt_prog_compiler_pic_GCJ='-fPIC'
18070 ;;
18071 esac
18072 ;;
18073
18074 *)
18075 lt_prog_compiler_pic_GCJ='-fPIC'
18076 ;;
18077 esac
18078 else
18079 # PORTME Check for flag to pass linker flags through the system compiler.
18080 case $host_os in
18081 aix*)
18082 lt_prog_compiler_wl_GCJ='-Wl,'
18083 if test "$host_cpu" = ia64; then
18084 # AIX 5 now supports IA64 processor
18085 lt_prog_compiler_static_GCJ='-Bstatic'
18086 else
18087 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18088 fi
18089 ;;
18090 darwin*)
18091 # PIC is the default on this platform
18092 # Common symbols not allowed in MH_DYLIB files
18093 case $cc_basename in
18094 xlc*)
18095 lt_prog_compiler_pic_GCJ='-qnocommon'
18096 lt_prog_compiler_wl_GCJ='-Wl,'
18097 ;;
18098 esac
18099 ;;
18100
18101 mingw* | cygwin* | pw32* | os2*)
18102 # This hack is so that the source file can tell whether it is being
18103 # built for inclusion in a dll (and should export symbols for example).
18104
18105 ;;
18106
18107 hpux9* | hpux10* | hpux11*)
18108 lt_prog_compiler_wl_GCJ='-Wl,'
18109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18110 # not for PA HP-UX.
18111 case $host_cpu in
18112 hppa*64*|ia64*)
18113 # +Z the default
18114 ;;
18115 *)
18116 lt_prog_compiler_pic_GCJ='+Z'
18117 ;;
18118 esac
18119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18120 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18121 ;;
18122
18123 irix5* | irix6* | nonstopux*)
18124 lt_prog_compiler_wl_GCJ='-Wl,'
18125 # PIC (with -KPIC) is the default.
18126 lt_prog_compiler_static_GCJ='-non_shared'
18127 ;;
18128
18129 newsos6)
18130 lt_prog_compiler_pic_GCJ='-KPIC'
18131 lt_prog_compiler_static_GCJ='-Bstatic'
18132 ;;
18133
18134 linux* | k*bsd*-gnu)
18135 case $cc_basename in
18136 icc* | ecc*)
18137 lt_prog_compiler_wl_GCJ='-Wl,'
18138 lt_prog_compiler_pic_GCJ='-KPIC'
18139 lt_prog_compiler_static_GCJ='-static'
18140 ;;
18141 pgcc* | pgf77* | pgf90* | pgf95*)
18142 # Portland Group compilers (*not* the Pentium gcc compiler,
18143 # which looks to be a dead project)
18144 lt_prog_compiler_wl_GCJ='-Wl,'
18145 lt_prog_compiler_pic_GCJ='-fpic'
18146 lt_prog_compiler_static_GCJ='-Bstatic'
18147 ;;
18148 ccc*)
18149 lt_prog_compiler_wl_GCJ='-Wl,'
18150 # All Alpha code is PIC.
18151 lt_prog_compiler_static_GCJ='-non_shared'
18152 ;;
18153 *)
18154 case `$CC -V 2>&1 | sed 5q` in
18155 *Sun\ C*)
18156 # Sun C 5.9
18157 lt_prog_compiler_pic_GCJ='-KPIC'
18158 lt_prog_compiler_static_GCJ='-Bstatic'
18159 lt_prog_compiler_wl_GCJ='-Wl,'
18160 ;;
18161 *Sun\ F*)
18162 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18163 lt_prog_compiler_pic_GCJ='-KPIC'
18164 lt_prog_compiler_static_GCJ='-Bstatic'
18165 lt_prog_compiler_wl_GCJ=''
18166 ;;
18167 esac
18168 ;;
18169 esac
18170 ;;
18171
18172 osf3* | osf4* | osf5*)
18173 lt_prog_compiler_wl_GCJ='-Wl,'
18174 # All OSF/1 code is PIC.
18175 lt_prog_compiler_static_GCJ='-non_shared'
18176 ;;
18177
18178 rdos*)
18179 lt_prog_compiler_static_GCJ='-non_shared'
18180 ;;
18181
18182 solaris*)
18183 lt_prog_compiler_pic_GCJ='-KPIC'
18184 lt_prog_compiler_static_GCJ='-Bstatic'
18185 case $cc_basename in
18186 f77* | f90* | f95*)
18187 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18188 *)
18189 lt_prog_compiler_wl_GCJ='-Wl,';;
18190 esac
18191 ;;
18192
18193 sunos4*)
18194 lt_prog_compiler_wl_GCJ='-Qoption ld '
18195 lt_prog_compiler_pic_GCJ='-PIC'
18196 lt_prog_compiler_static_GCJ='-Bstatic'
18197 ;;
18198
18199 sysv4 | sysv4.2uw2* | sysv4.3*)
18200 lt_prog_compiler_wl_GCJ='-Wl,'
18201 lt_prog_compiler_pic_GCJ='-KPIC'
18202 lt_prog_compiler_static_GCJ='-Bstatic'
18203 ;;
18204
18205 sysv4*MP*)
18206 if test -d /usr/nec ;then
18207 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18208 lt_prog_compiler_static_GCJ='-Bstatic'
18209 fi
18210 ;;
18211
18212 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18213 lt_prog_compiler_wl_GCJ='-Wl,'
18214 lt_prog_compiler_pic_GCJ='-KPIC'
18215 lt_prog_compiler_static_GCJ='-Bstatic'
18216 ;;
18217
18218 unicos*)
18219 lt_prog_compiler_wl_GCJ='-Wl,'
18220 lt_prog_compiler_can_build_shared_GCJ=no
18221 ;;
18222
18223 uts4*)
18224 lt_prog_compiler_pic_GCJ='-pic'
18225 lt_prog_compiler_static_GCJ='-Bstatic'
18226 ;;
18227
18228 *)
18229 lt_prog_compiler_can_build_shared_GCJ=no
18230 ;;
18231 esac
18232 fi
18233
18234 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18235 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18236
18237 #
18238 # Check to make sure the PIC flag actually works.
18239 #
18240 if test -n "$lt_prog_compiler_pic_GCJ"; then
18241
18242 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18243 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18244 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 lt_cv_prog_compiler_pic_works_GCJ=no
18248 ac_outfile=conftest.$ac_objext
18249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18250 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18251 # Insert the option either (1) after the last *FLAGS variable, or
18252 # (2) before a word containing "conftest.", or (3) at the end.
18253 # Note that $ac_compile itself does not contain backslashes and begins
18254 # with a dollar sign (not a hyphen), so the echo should work correctly.
18255 # The option is referenced via a variable to avoid confusing sed.
18256 lt_compile=`echo "$ac_compile" | $SED \
18257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18259 -e 's:$: $lt_compiler_flag:'`
18260 (eval echo "\"\$as_me:18260: $lt_compile\"" >&5)
18261 (eval "$lt_compile" 2>conftest.err)
18262 ac_status=$?
18263 cat conftest.err >&5
18264 echo "$as_me:18264: \$? = $ac_status" >&5
18265 if (exit $ac_status) && test -s "$ac_outfile"; then
18266 # The compiler can only warn and ignore the option if not recognized
18267 # So say no if there are warnings other than the usual output.
18268 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18271 lt_cv_prog_compiler_pic_works_GCJ=yes
18272 fi
18273 fi
18274 $rm conftest*
18275
18276 fi
18277 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18278 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18279
18280 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18281 case $lt_prog_compiler_pic_GCJ in
18282 "" | " "*) ;;
18283 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18284 esac
18285 else
18286 lt_prog_compiler_pic_GCJ=
18287 lt_prog_compiler_can_build_shared_GCJ=no
18288 fi
18289
18290 fi
18291 case $host_os in
18292 # For platforms which do not support PIC, -DPIC is meaningless:
18293 *djgpp*)
18294 lt_prog_compiler_pic_GCJ=
18295 ;;
18296 *)
18297 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18298 ;;
18299 esac
18300
18301 #
18302 # Check to make sure the static flag actually works.
18303 #
18304 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18305 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18306 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18307 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310 lt_cv_prog_compiler_static_works_GCJ=no
18311 save_LDFLAGS="$LDFLAGS"
18312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18315 # The linker can only warn and ignore the option if not recognized
18316 # So say no if there are warnings
18317 if test -s conftest.err; then
18318 # Append any errors to the config.log.
18319 cat conftest.err 1>&5
18320 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18322 if diff conftest.exp conftest.er2 >/dev/null; then
18323 lt_cv_prog_compiler_static_works_GCJ=yes
18324 fi
18325 else
18326 lt_cv_prog_compiler_static_works_GCJ=yes
18327 fi
18328 fi
18329 $rm -r conftest*
18330 LDFLAGS="$save_LDFLAGS"
18331
18332 fi
18333 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18334 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18335
18336 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18337 :
18338 else
18339 lt_prog_compiler_static_GCJ=
18340 fi
18341
18342
18343 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18344 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18345 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 else
18348 lt_cv_prog_compiler_c_o_GCJ=no
18349 $rm -r conftest 2>/dev/null
18350 mkdir conftest
18351 cd conftest
18352 mkdir out
18353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18354
18355 lt_compiler_flag="-o out/conftest2.$ac_objext"
18356 # Insert the option either (1) after the last *FLAGS variable, or
18357 # (2) before a word containing "conftest.", or (3) at the end.
18358 # Note that $ac_compile itself does not contain backslashes and begins
18359 # with a dollar sign (not a hyphen), so the echo should work correctly.
18360 lt_compile=`echo "$ac_compile" | $SED \
18361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18363 -e 's:$: $lt_compiler_flag:'`
18364 (eval echo "\"\$as_me:18364: $lt_compile\"" >&5)
18365 (eval "$lt_compile" 2>out/conftest.err)
18366 ac_status=$?
18367 cat out/conftest.err >&5
18368 echo "$as_me:18368: \$? = $ac_status" >&5
18369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18370 then
18371 # The compiler can only warn and ignore the option if not recognized
18372 # So say no if there are warnings
18373 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18376 lt_cv_prog_compiler_c_o_GCJ=yes
18377 fi
18378 fi
18379 chmod u+w . 2>&5
18380 $rm conftest*
18381 # SGI C++ compiler will create directory out/ii_files/ for
18382 # template instantiation
18383 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18384 $rm out/* && rmdir out
18385 cd ..
18386 rmdir conftest
18387 $rm conftest*
18388
18389 fi
18390 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18391 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18392
18393
18394 hard_links="nottested"
18395 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18396 # do not overwrite the value of need_locks provided by the user
18397 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18398 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18399 hard_links=yes
18400 $rm conftest*
18401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18402 touch conftest.a
18403 ln conftest.a conftest.b 2>&5 || hard_links=no
18404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18405 { echo "$as_me:$LINENO: result: $hard_links" >&5
18406 echo "${ECHO_T}$hard_links" >&6; }
18407 if test "$hard_links" = no; then
18408 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18409 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18410 need_locks=warn
18411 fi
18412 else
18413 need_locks=no
18414 fi
18415
18416 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18417 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18418
18419 runpath_var=
18420 allow_undefined_flag_GCJ=
18421 enable_shared_with_static_runtimes_GCJ=no
18422 archive_cmds_GCJ=
18423 archive_expsym_cmds_GCJ=
18424 old_archive_From_new_cmds_GCJ=
18425 old_archive_from_expsyms_cmds_GCJ=
18426 export_dynamic_flag_spec_GCJ=
18427 whole_archive_flag_spec_GCJ=
18428 thread_safe_flag_spec_GCJ=
18429 hardcode_libdir_flag_spec_GCJ=
18430 hardcode_libdir_flag_spec_ld_GCJ=
18431 hardcode_libdir_separator_GCJ=
18432 hardcode_direct_GCJ=no
18433 hardcode_minus_L_GCJ=no
18434 hardcode_shlibpath_var_GCJ=unsupported
18435 link_all_deplibs_GCJ=unknown
18436 hardcode_automatic_GCJ=no
18437 module_cmds_GCJ=
18438 module_expsym_cmds_GCJ=
18439 always_export_symbols_GCJ=no
18440 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18441 # include_expsyms should be a list of space-separated symbols to be *always*
18442 # included in the symbol list
18443 include_expsyms_GCJ=
18444 # exclude_expsyms can be an extended regexp of symbols to exclude
18445 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18447 # as well as any symbol that contains `d'.
18448 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18450 # platforms (ab)use it in PIC code, but their linkers get confused if
18451 # the symbol is explicitly referenced. Since portable code cannot
18452 # rely on this symbol name, it's probably fine to never include it in
18453 # preloaded symbol tables.
18454 # Exclude shared library initialization/finalization symbols.
18455 extract_expsyms_cmds=
18456 # Just being paranoid about ensuring that cc_basename is set.
18457 for cc_temp in $compiler""; do
18458 case $cc_temp in
18459 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18460 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18461 \-*) ;;
18462 *) break;;
18463 esac
18464 done
18465 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18466
18467 case $host_os in
18468 cygwin* | mingw* | pw32*)
18469 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18470 # When not using gcc, we currently assume that we are using
18471 # Microsoft Visual C++.
18472 if test "$GCC" != yes; then
18473 with_gnu_ld=no
18474 fi
18475 ;;
18476 interix*)
18477 # we just hope/assume this is gcc and not c89 (= MSVC++)
18478 with_gnu_ld=yes
18479 ;;
18480 openbsd*)
18481 with_gnu_ld=no
18482 ;;
18483 esac
18484
18485 ld_shlibs_GCJ=yes
18486 if test "$with_gnu_ld" = yes; then
18487 # If archive_cmds runs LD, not CC, wlarc should be empty
18488 wlarc='${wl}'
18489
18490 # Set some defaults for GNU ld with shared library support. These
18491 # are reset later if shared libraries are not supported. Putting them
18492 # here allows them to be overridden if necessary.
18493 runpath_var=LD_RUN_PATH
18494 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18495 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18496 # ancient GNU ld didn't support --whole-archive et. al.
18497 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18498 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18499 else
18500 whole_archive_flag_spec_GCJ=
18501 fi
18502 supports_anon_versioning=no
18503 case `$LD -v 2>/dev/null` in
18504 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18505 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18506 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18507 *\ 2.11.*) ;; # other 2.11 versions
18508 *) supports_anon_versioning=yes ;;
18509 esac
18510
18511 # See if GNU ld supports shared libraries.
18512 case $host_os in
18513 aix[3-9]*)
18514 # On AIX/PPC, the GNU linker is very broken
18515 if test "$host_cpu" != ia64; then
18516 ld_shlibs_GCJ=no
18517 cat <<EOF 1>&2
18518
18519 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18520 *** to be unable to reliably create shared libraries on AIX.
18521 *** Therefore, libtool is disabling shared libraries support. If you
18522 *** really care for shared libraries, you may want to modify your PATH
18523 *** so that a non-GNU linker is found, and then restart.
18524
18525 EOF
18526 fi
18527 ;;
18528
18529 amigaos*)
18530 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)'
18531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18532 hardcode_minus_L_GCJ=yes
18533
18534 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18535 # that the semantics of dynamic libraries on AmigaOS, at least up
18536 # to version 4, is to share data among multiple programs linked
18537 # with the same dynamic library. Since this doesn't match the
18538 # behavior of shared libraries on other platforms, we can't use
18539 # them.
18540 ld_shlibs_GCJ=no
18541 ;;
18542
18543 beos*)
18544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18545 allow_undefined_flag_GCJ=unsupported
18546 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18547 # support --undefined. This deserves some investigation. FIXME
18548 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18549 else
18550 ld_shlibs_GCJ=no
18551 fi
18552 ;;
18553
18554 cygwin* | mingw* | pw32*)
18555 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18556 # as there is no search path for DLLs.
18557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18558 allow_undefined_flag_GCJ=unsupported
18559 always_export_symbols_GCJ=no
18560 enable_shared_with_static_runtimes_GCJ=yes
18561 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18562
18563 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18564 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18565 # If the export-symbols file already is a .def file (1st line
18566 # is EXPORTS), use it as is; otherwise, prepend...
18567 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18568 cp $export_symbols $output_objdir/$soname.def;
18569 else
18570 echo EXPORTS > $output_objdir/$soname.def;
18571 cat $export_symbols >> $output_objdir/$soname.def;
18572 fi~
18573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18574 else
18575 ld_shlibs_GCJ=no
18576 fi
18577 ;;
18578
18579 interix[3-9]*)
18580 hardcode_direct_GCJ=no
18581 hardcode_shlibpath_var_GCJ=no
18582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18583 export_dynamic_flag_spec_GCJ='${wl}-E'
18584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18585 # Instead, shared libraries are loaded at an image base (0x10000000 by
18586 # default) and relocated if they conflict, which is a slow very memory
18587 # consuming and fragmenting process. To avoid this, we pick a random,
18588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18590 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'
18591 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'
18592 ;;
18593
18594 gnu* | linux* | k*bsd*-gnu)
18595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18596 tmp_addflag=
18597 case $cc_basename,$host_cpu in
18598 pgcc*) # Portland Group C compiler
18599 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'
18600 tmp_addflag=' $pic_flag'
18601 ;;
18602 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18603 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'
18604 tmp_addflag=' $pic_flag -Mnomain' ;;
18605 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18606 tmp_addflag=' -i_dynamic' ;;
18607 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18608 tmp_addflag=' -i_dynamic -nofor_main' ;;
18609 ifc* | ifort*) # Intel Fortran compiler
18610 tmp_addflag=' -nofor_main' ;;
18611 esac
18612 case `$CC -V 2>&1 | sed 5q` in
18613 *Sun\ C*) # Sun C 5.9
18614 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'
18615 tmp_sharedflag='-G' ;;
18616 *Sun\ F*) # Sun Fortran 8.3
18617 tmp_sharedflag='-G' ;;
18618 *)
18619 tmp_sharedflag='-shared' ;;
18620 esac
18621 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18622
18623 if test $supports_anon_versioning = yes; then
18624 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18626 $echo "local: *; };" >> $output_objdir/$libname.ver~
18627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18628 fi
18629 link_all_deplibs_GCJ=no
18630 else
18631 ld_shlibs_GCJ=no
18632 fi
18633 ;;
18634
18635 netbsd* | netbsdelf*-gnu)
18636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18637 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18638 wlarc=
18639 else
18640 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18641 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18642 fi
18643 ;;
18644
18645 solaris*)
18646 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18647 ld_shlibs_GCJ=no
18648 cat <<EOF 1>&2
18649
18650 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18651 *** create shared libraries on Solaris systems. Therefore, libtool
18652 *** is disabling shared libraries support. We urge you to upgrade GNU
18653 *** binutils to release 2.9.1 or newer. Another option is to modify
18654 *** your PATH or compiler configuration so that the native linker is
18655 *** used, and then restart.
18656
18657 EOF
18658 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18659 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18660 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18661 else
18662 ld_shlibs_GCJ=no
18663 fi
18664 ;;
18665
18666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18667 case `$LD -v 2>&1` in
18668 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18669 ld_shlibs_GCJ=no
18670 cat <<_LT_EOF 1>&2
18671
18672 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18673 *** reliably create shared libraries on SCO systems. Therefore, libtool
18674 *** is disabling shared libraries support. We urge you to upgrade GNU
18675 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18676 *** your PATH or compiler configuration so that the native linker is
18677 *** used, and then restart.
18678
18679 _LT_EOF
18680 ;;
18681 *)
18682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18683 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18684 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18685 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18686 else
18687 ld_shlibs_GCJ=no
18688 fi
18689 ;;
18690 esac
18691 ;;
18692
18693 sunos4*)
18694 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18695 wlarc=
18696 hardcode_direct_GCJ=yes
18697 hardcode_shlibpath_var_GCJ=no
18698 ;;
18699
18700 *)
18701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18704 else
18705 ld_shlibs_GCJ=no
18706 fi
18707 ;;
18708 esac
18709
18710 if test "$ld_shlibs_GCJ" = no; then
18711 runpath_var=
18712 hardcode_libdir_flag_spec_GCJ=
18713 export_dynamic_flag_spec_GCJ=
18714 whole_archive_flag_spec_GCJ=
18715 fi
18716 else
18717 # PORTME fill in a description of your system's linker (not GNU ld)
18718 case $host_os in
18719 aix3*)
18720 allow_undefined_flag_GCJ=unsupported
18721 always_export_symbols_GCJ=yes
18722 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'
18723 # Note: this linker hardcodes the directories in LIBPATH if there
18724 # are no directories specified by -L.
18725 hardcode_minus_L_GCJ=yes
18726 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18727 # Neither direct hardcoding nor static linking is supported with a
18728 # broken collect2.
18729 hardcode_direct_GCJ=unsupported
18730 fi
18731 ;;
18732
18733 aix[4-9]*)
18734 if test "$host_cpu" = ia64; then
18735 # On IA64, the linker does run time linking by default, so we don't
18736 # have to do anything special.
18737 aix_use_runtimelinking=no
18738 exp_sym_flag='-Bexport'
18739 no_entry_flag=""
18740 else
18741 # If we're using GNU nm, then we don't want the "-C" option.
18742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18743 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18744 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'
18745 else
18746 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'
18747 fi
18748 aix_use_runtimelinking=no
18749
18750 # Test if we are trying to use run time linking or normal
18751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18752 # need to do runtime linking.
18753 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18754 for ld_flag in $LDFLAGS; do
18755 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18756 aix_use_runtimelinking=yes
18757 break
18758 fi
18759 done
18760 ;;
18761 esac
18762
18763 exp_sym_flag='-bexport'
18764 no_entry_flag='-bnoentry'
18765 fi
18766
18767 # When large executables or shared objects are built, AIX ld can
18768 # have problems creating the table of contents. If linking a library
18769 # or program results in "error TOC overflow" add -mminimal-toc to
18770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18772
18773 archive_cmds_GCJ=''
18774 hardcode_direct_GCJ=yes
18775 hardcode_libdir_separator_GCJ=':'
18776 link_all_deplibs_GCJ=yes
18777
18778 if test "$GCC" = yes; then
18779 case $host_os in aix4.[012]|aix4.[012].*)
18780 # We only want to do this on AIX 4.2 and lower, the check
18781 # below for broken collect2 doesn't work under 4.3+
18782 collect2name=`${CC} -print-prog-name=collect2`
18783 if test -f "$collect2name" && \
18784 strings "$collect2name" | grep resolve_lib_name >/dev/null
18785 then
18786 # We have reworked collect2
18787 :
18788 else
18789 # We have old collect2
18790 hardcode_direct_GCJ=unsupported
18791 # It fails to find uninstalled libraries when the uninstalled
18792 # path is not listed in the libpath. Setting hardcode_minus_L
18793 # to unsupported forces relinking
18794 hardcode_minus_L_GCJ=yes
18795 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18796 hardcode_libdir_separator_GCJ=
18797 fi
18798 ;;
18799 esac
18800 shared_flag='-shared'
18801 if test "$aix_use_runtimelinking" = yes; then
18802 shared_flag="$shared_flag "'${wl}-G'
18803 fi
18804 else
18805 # not using gcc
18806 if test "$host_cpu" = ia64; then
18807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18808 # chokes on -Wl,-G. The following line is correct:
18809 shared_flag='-G'
18810 else
18811 if test "$aix_use_runtimelinking" = yes; then
18812 shared_flag='${wl}-G'
18813 else
18814 shared_flag='${wl}-bM:SRE'
18815 fi
18816 fi
18817 fi
18818
18819 # It seems that -bexpall does not export symbols beginning with
18820 # underscore (_), so it is better to generate a list of symbols to export.
18821 always_export_symbols_GCJ=yes
18822 if test "$aix_use_runtimelinking" = yes; then
18823 # Warning - without using the other runtime loading flags (-brtl),
18824 # -berok will link without error, but may produce a broken library.
18825 allow_undefined_flag_GCJ='-berok'
18826 # Determine the default libpath from the value encoded in an empty executable.
18827 cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h. */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833
18834 int
18835 main ()
18836 {
18837
18838 ;
18839 return 0;
18840 }
18841 _ACEOF
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (ac_try="$ac_link"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_link") 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } && {
18856 test -z "$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 } && test -s conftest$ac_exeext &&
18859 $as_test_x conftest$ac_exeext; then
18860
18861 lt_aix_libpath_sed='
18862 /Import File Strings/,/^$/ {
18863 /^0/ {
18864 s/^0 *\(.*\)$/\1/
18865 p
18866 }
18867 }'
18868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18869 # Check for a 64-bit object if we didn't find anything.
18870 if test -z "$aix_libpath"; then
18871 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18872 fi
18873 else
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877
18878 fi
18879
18880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18881 conftest$ac_exeext conftest.$ac_ext
18882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18883
18884 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18885 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"
18886 else
18887 if test "$host_cpu" = ia64; then
18888 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18889 allow_undefined_flag_GCJ="-z nodefs"
18890 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"
18891 else
18892 # Determine the default libpath from the value encoded in an empty executable.
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h. */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899
18900 int
18901 main ()
18902 {
18903
18904 ;
18905 return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (ac_try="$ac_link"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913 esac
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_link") 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } && {
18922 test -z "$ac_c_werror_flag" ||
18923 test ! -s conftest.err
18924 } && test -s conftest$ac_exeext &&
18925 $as_test_x conftest$ac_exeext; then
18926
18927 lt_aix_libpath_sed='
18928 /Import File Strings/,/^$/ {
18929 /^0/ {
18930 s/^0 *\(.*\)$/\1/
18931 p
18932 }
18933 }'
18934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18935 # Check for a 64-bit object if we didn't find anything.
18936 if test -z "$aix_libpath"; then
18937 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18938 fi
18939 else
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18942
18943
18944 fi
18945
18946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947 conftest$ac_exeext conftest.$ac_ext
18948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18949
18950 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18951 # Warning - without using the other run time loading flags,
18952 # -berok will link without error, but may produce a broken library.
18953 no_undefined_flag_GCJ=' ${wl}-bernotok'
18954 allow_undefined_flag_GCJ=' ${wl}-berok'
18955 # Exported symbols can be pulled into shared objects from archives
18956 whole_archive_flag_spec_GCJ='$convenience'
18957 archive_cmds_need_lc_GCJ=yes
18958 # This is similar to how AIX traditionally builds its shared libraries.
18959 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'
18960 fi
18961 fi
18962 ;;
18963
18964 amigaos*)
18965 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)'
18966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18967 hardcode_minus_L_GCJ=yes
18968 # see comment about different semantics on the GNU ld section
18969 ld_shlibs_GCJ=no
18970 ;;
18971
18972 bsdi[45]*)
18973 export_dynamic_flag_spec_GCJ=-rdynamic
18974 ;;
18975
18976 cygwin* | mingw* | pw32*)
18977 # When not using gcc, we currently assume that we are using
18978 # Microsoft Visual C++.
18979 # hardcode_libdir_flag_spec is actually meaningless, as there is
18980 # no search path for DLLs.
18981 hardcode_libdir_flag_spec_GCJ=' '
18982 allow_undefined_flag_GCJ=unsupported
18983 # Tell ltmain to make .lib files, not .a files.
18984 libext=lib
18985 # Tell ltmain to make .dll files, not .so files.
18986 shrext_cmds=".dll"
18987 # FIXME: Setting linknames here is a bad hack.
18988 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18989 # The linker will automatically build a .lib file if we build a DLL.
18990 old_archive_From_new_cmds_GCJ='true'
18991 # FIXME: Should let the user specify the lib program.
18992 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18993 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18994 enable_shared_with_static_runtimes_GCJ=yes
18995 ;;
18996
18997 darwin* | rhapsody*)
18998 case $host_os in
18999 rhapsody* | darwin1.[012])
19000 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19001 ;;
19002 *) # Darwin 1.3 on
19003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19004 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19005 else
19006 case ${MACOSX_DEPLOYMENT_TARGET} in
19007 10.[012])
19008 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19009 ;;
19010 10.*)
19011 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19012 ;;
19013 esac
19014 fi
19015 ;;
19016 esac
19017 archive_cmds_need_lc_GCJ=no
19018 hardcode_direct_GCJ=no
19019 hardcode_automatic_GCJ=yes
19020 hardcode_shlibpath_var_GCJ=unsupported
19021 whole_archive_flag_spec_GCJ=''
19022 link_all_deplibs_GCJ=yes
19023 if test "$GCC" = yes ; then
19024 output_verbose_link_cmd='echo'
19025 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19026 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19027 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19028 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19029 else
19030 case $cc_basename in
19031 xlc*)
19032 output_verbose_link_cmd='echo'
19033 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19034 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19035 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19036 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}'
19037 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}'
19038 ;;
19039 *)
19040 ld_shlibs_GCJ=no
19041 ;;
19042 esac
19043 fi
19044 ;;
19045
19046 dgux*)
19047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19049 hardcode_shlibpath_var_GCJ=no
19050 ;;
19051
19052 freebsd1*)
19053 ld_shlibs_GCJ=no
19054 ;;
19055
19056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19057 # support. Future versions do this automatically, but an explicit c++rt0.o
19058 # does not break anything, and helps significantly (at the cost of a little
19059 # extra space).
19060 freebsd2.2*)
19061 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19062 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19063 hardcode_direct_GCJ=yes
19064 hardcode_shlibpath_var_GCJ=no
19065 ;;
19066
19067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19068 freebsd2*)
19069 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19070 hardcode_direct_GCJ=yes
19071 hardcode_minus_L_GCJ=yes
19072 hardcode_shlibpath_var_GCJ=no
19073 ;;
19074
19075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19076 freebsd* | dragonfly*)
19077 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19078 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19079 hardcode_direct_GCJ=yes
19080 hardcode_shlibpath_var_GCJ=no
19081 ;;
19082
19083 hpux9*)
19084 if test "$GCC" = yes; then
19085 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'
19086 else
19087 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'
19088 fi
19089 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19090 hardcode_libdir_separator_GCJ=:
19091 hardcode_direct_GCJ=yes
19092
19093 # hardcode_minus_L: Not really in the search PATH,
19094 # but as the default location of the library.
19095 hardcode_minus_L_GCJ=yes
19096 export_dynamic_flag_spec_GCJ='${wl}-E'
19097 ;;
19098
19099 hpux10*)
19100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19101 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19102 else
19103 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19104 fi
19105 if test "$with_gnu_ld" = no; then
19106 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19107 hardcode_libdir_separator_GCJ=:
19108
19109 hardcode_direct_GCJ=yes
19110 export_dynamic_flag_spec_GCJ='${wl}-E'
19111
19112 # hardcode_minus_L: Not really in the search PATH,
19113 # but as the default location of the library.
19114 hardcode_minus_L_GCJ=yes
19115 fi
19116 ;;
19117
19118 hpux11*)
19119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19120 case $host_cpu in
19121 hppa*64*)
19122 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19123 ;;
19124 ia64*)
19125 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19126 ;;
19127 *)
19128 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19129 ;;
19130 esac
19131 else
19132 case $host_cpu in
19133 hppa*64*)
19134 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19135 ;;
19136 ia64*)
19137 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19138 ;;
19139 *)
19140 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19141 ;;
19142 esac
19143 fi
19144 if test "$with_gnu_ld" = no; then
19145 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19146 hardcode_libdir_separator_GCJ=:
19147
19148 case $host_cpu in
19149 hppa*64*|ia64*)
19150 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19151 hardcode_direct_GCJ=no
19152 hardcode_shlibpath_var_GCJ=no
19153 ;;
19154 *)
19155 hardcode_direct_GCJ=yes
19156 export_dynamic_flag_spec_GCJ='${wl}-E'
19157
19158 # hardcode_minus_L: Not really in the search PATH,
19159 # but as the default location of the library.
19160 hardcode_minus_L_GCJ=yes
19161 ;;
19162 esac
19163 fi
19164 ;;
19165
19166 irix5* | irix6* | nonstopux*)
19167 if test "$GCC" = yes; then
19168 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'
19169 else
19170 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'
19171 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19172 fi
19173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19174 hardcode_libdir_separator_GCJ=:
19175 link_all_deplibs_GCJ=yes
19176 ;;
19177
19178 netbsd* | netbsdelf*-gnu)
19179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19181 else
19182 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19183 fi
19184 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19185 hardcode_direct_GCJ=yes
19186 hardcode_shlibpath_var_GCJ=no
19187 ;;
19188
19189 newsos6)
19190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19191 hardcode_direct_GCJ=yes
19192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19193 hardcode_libdir_separator_GCJ=:
19194 hardcode_shlibpath_var_GCJ=no
19195 ;;
19196
19197 openbsd*)
19198 if test -f /usr/libexec/ld.so; then
19199 hardcode_direct_GCJ=yes
19200 hardcode_shlibpath_var_GCJ=no
19201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19202 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19203 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19205 export_dynamic_flag_spec_GCJ='${wl}-E'
19206 else
19207 case $host_os in
19208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19209 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19210 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19211 ;;
19212 *)
19213 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19214 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19215 ;;
19216 esac
19217 fi
19218 else
19219 ld_shlibs_GCJ=no
19220 fi
19221 ;;
19222
19223 os2*)
19224 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19225 hardcode_minus_L_GCJ=yes
19226 allow_undefined_flag_GCJ=unsupported
19227 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'
19228 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19229 ;;
19230
19231 osf3*)
19232 if test "$GCC" = yes; then
19233 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19234 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19235 else
19236 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19237 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'
19238 fi
19239 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19240 hardcode_libdir_separator_GCJ=:
19241 ;;
19242
19243 osf4* | osf5*) # as osf3* with the addition of -msym flag
19244 if test "$GCC" = yes; then
19245 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19246 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'
19247 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19248 else
19249 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19250 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'
19251 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~
19252 $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'
19253
19254 # Both c and cxx compiler support -rpath directly
19255 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19256 fi
19257 hardcode_libdir_separator_GCJ=:
19258 ;;
19259
19260 solaris*)
19261 no_undefined_flag_GCJ=' -z text'
19262 if test "$GCC" = yes; then
19263 wlarc='${wl}'
19264 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19266 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19267 else
19268 wlarc=''
19269 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19270 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19271 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19272 fi
19273 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19274 hardcode_shlibpath_var_GCJ=no
19275 case $host_os in
19276 solaris2.[0-5] | solaris2.[0-5].*) ;;
19277 *)
19278 # The compiler driver will combine and reorder linker options,
19279 # but understands `-z linker_flag'. GCC discards it without `$wl',
19280 # but is careful enough not to reorder.
19281 # Supported since Solaris 2.6 (maybe 2.5.1?)
19282 if test "$GCC" = yes; then
19283 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19284 else
19285 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19286 fi
19287 ;;
19288 esac
19289 link_all_deplibs_GCJ=yes
19290 ;;
19291
19292 sunos4*)
19293 if test "x$host_vendor" = xsequent; then
19294 # Use $CC to link under sequent, because it throws in some extra .o
19295 # files that make .init and .fini sections work.
19296 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19297 else
19298 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19299 fi
19300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19301 hardcode_direct_GCJ=yes
19302 hardcode_minus_L_GCJ=yes
19303 hardcode_shlibpath_var_GCJ=no
19304 ;;
19305
19306 sysv4)
19307 case $host_vendor in
19308 sni)
19309 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19310 hardcode_direct_GCJ=yes # is this really true???
19311 ;;
19312 siemens)
19313 ## LD is ld it makes a PLAMLIB
19314 ## CC just makes a GrossModule.
19315 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19316 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19317 hardcode_direct_GCJ=no
19318 ;;
19319 motorola)
19320 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19321 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19322 ;;
19323 esac
19324 runpath_var='LD_RUN_PATH'
19325 hardcode_shlibpath_var_GCJ=no
19326 ;;
19327
19328 sysv4.3*)
19329 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19330 hardcode_shlibpath_var_GCJ=no
19331 export_dynamic_flag_spec_GCJ='-Bexport'
19332 ;;
19333
19334 sysv4*MP*)
19335 if test -d /usr/nec; then
19336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19337 hardcode_shlibpath_var_GCJ=no
19338 runpath_var=LD_RUN_PATH
19339 hardcode_runpath_var=yes
19340 ld_shlibs_GCJ=yes
19341 fi
19342 ;;
19343
19344 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19345 no_undefined_flag_GCJ='${wl}-z,text'
19346 archive_cmds_need_lc_GCJ=no
19347 hardcode_shlibpath_var_GCJ=no
19348 runpath_var='LD_RUN_PATH'
19349
19350 if test "$GCC" = yes; then
19351 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19352 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19353 else
19354 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19355 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19356 fi
19357 ;;
19358
19359 sysv5* | sco3.2v5* | sco5v6*)
19360 # Note: We can NOT use -z defs as we might desire, because we do not
19361 # link with -lc, and that would cause any symbols used from libc to
19362 # always be unresolved, which means just about no library would
19363 # ever link correctly. If we're not using GNU ld we use -z text
19364 # though, which does catch some bad symbols but isn't as heavy-handed
19365 # as -z defs.
19366 no_undefined_flag_GCJ='${wl}-z,text'
19367 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19368 archive_cmds_need_lc_GCJ=no
19369 hardcode_shlibpath_var_GCJ=no
19370 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19371 hardcode_libdir_separator_GCJ=':'
19372 link_all_deplibs_GCJ=yes
19373 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19374 runpath_var='LD_RUN_PATH'
19375
19376 if test "$GCC" = yes; then
19377 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19378 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19379 else
19380 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19381 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19382 fi
19383 ;;
19384
19385 uts4*)
19386 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19388 hardcode_shlibpath_var_GCJ=no
19389 ;;
19390
19391 *)
19392 ld_shlibs_GCJ=no
19393 ;;
19394 esac
19395 fi
19396
19397 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19398 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19399 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19400
19401 #
19402 # Do we need to explicitly link libc?
19403 #
19404 case "x$archive_cmds_need_lc_GCJ" in
19405 x|xyes)
19406 # Assume -lc should be added
19407 archive_cmds_need_lc_GCJ=yes
19408
19409 if test "$enable_shared" = yes && test "$GCC" = yes; then
19410 case $archive_cmds_GCJ in
19411 *'~'*)
19412 # FIXME: we may have to deal with multi-command sequences.
19413 ;;
19414 '$CC '*)
19415 # Test whether the compiler implicitly links with -lc since on some
19416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19417 # to ld, don't add -lc before -lgcc.
19418 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19419 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19420 $rm conftest*
19421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19422
19423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424 (eval $ac_compile) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } 2>conftest.err; then
19428 soname=conftest
19429 lib=conftest
19430 libobjs=conftest.$ac_objext
19431 deplibs=
19432 wl=$lt_prog_compiler_wl_GCJ
19433 pic_flag=$lt_prog_compiler_pic_GCJ
19434 compiler_flags=-v
19435 linker_flags=-v
19436 verstring=
19437 output_objdir=.
19438 libname=conftest
19439 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19440 allow_undefined_flag_GCJ=
19441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19442 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }
19446 then
19447 archive_cmds_need_lc_GCJ=no
19448 else
19449 archive_cmds_need_lc_GCJ=yes
19450 fi
19451 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19452 else
19453 cat conftest.err 1>&5
19454 fi
19455 $rm conftest*
19456 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19457 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19458 ;;
19459 esac
19460 fi
19461 ;;
19462 esac
19463
19464 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19465 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19466 library_names_spec=
19467 libname_spec='lib$name'
19468 soname_spec=
19469 shrext_cmds=".so"
19470 postinstall_cmds=
19471 postuninstall_cmds=
19472 finish_cmds=
19473 finish_eval=
19474 shlibpath_var=
19475 shlibpath_overrides_runpath=unknown
19476 version_type=none
19477 dynamic_linker="$host_os ld.so"
19478 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19479
19480 need_lib_prefix=unknown
19481 hardcode_into_libs=no
19482
19483 # when you set need_version to no, make sure it does not cause -set_version
19484 # flags to be left without arguments
19485 need_version=unknown
19486
19487 case $host_os in
19488 aix3*)
19489 version_type=linux
19490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19491 shlibpath_var=LIBPATH
19492
19493 # AIX 3 has no versioning support, so we append a major version to the name.
19494 soname_spec='${libname}${release}${shared_ext}$major'
19495 ;;
19496
19497 aix[4-9]*)
19498 version_type=linux
19499 need_lib_prefix=no
19500 need_version=no
19501 hardcode_into_libs=yes
19502 if test "$host_cpu" = ia64; then
19503 # AIX 5 supports IA64
19504 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19505 shlibpath_var=LD_LIBRARY_PATH
19506 else
19507 # With GCC up to 2.95.x, collect2 would create an import file
19508 # for dependence libraries. The import file would start with
19509 # the line `#! .'. This would cause the generated library to
19510 # depend on `.', always an invalid library. This was fixed in
19511 # development snapshots of GCC prior to 3.0.
19512 case $host_os in
19513 aix4 | aix4.[01] | aix4.[01].*)
19514 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19515 echo ' yes '
19516 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19517 :
19518 else
19519 can_build_shared=no
19520 fi
19521 ;;
19522 esac
19523 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19524 # soname into executable. Probably we can add versioning support to
19525 # collect2, so additional links can be useful in future.
19526 if test "$aix_use_runtimelinking" = yes; then
19527 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19528 # instead of lib<name>.a to let people know that these are not
19529 # typical AIX shared libraries.
19530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19531 else
19532 # We preserve .a as extension for shared libraries through AIX4.2
19533 # and later when we are not doing run time linking.
19534 library_names_spec='${libname}${release}.a $libname.a'
19535 soname_spec='${libname}${release}${shared_ext}$major'
19536 fi
19537 shlibpath_var=LIBPATH
19538 fi
19539 ;;
19540
19541 amigaos*)
19542 library_names_spec='$libname.ixlibrary $libname.a'
19543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19544 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'
19545 ;;
19546
19547 beos*)
19548 library_names_spec='${libname}${shared_ext}'
19549 dynamic_linker="$host_os ld.so"
19550 shlibpath_var=LIBRARY_PATH
19551 ;;
19552
19553 bsdi[45]*)
19554 version_type=linux
19555 need_version=no
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 soname_spec='${libname}${release}${shared_ext}$major'
19558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19559 shlibpath_var=LD_LIBRARY_PATH
19560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19562 # the default ld.so.conf also contains /usr/contrib/lib and
19563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19564 # libtool to hard-code these into programs
19565 ;;
19566
19567 cygwin* | mingw* | pw32*)
19568 version_type=windows
19569 shrext_cmds=".dll"
19570 need_version=no
19571 need_lib_prefix=no
19572
19573 case $GCC,$host_os in
19574 yes,cygwin* | yes,mingw* | yes,pw32*)
19575 library_names_spec='$libname.dll.a'
19576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19577 postinstall_cmds='base_file=`basename \${file}`~
19578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19579 dldir=$destdir/`dirname \$dlpath`~
19580 test -d \$dldir || mkdir -p \$dldir~
19581 $install_prog $dir/$dlname \$dldir/$dlname~
19582 chmod a+x \$dldir/$dlname'
19583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19584 dlpath=$dir/\$dldll~
19585 $rm \$dlpath'
19586 shlibpath_overrides_runpath=yes
19587
19588 case $host_os in
19589 cygwin*)
19590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19591 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19592 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19593 ;;
19594 mingw*)
19595 # MinGW DLLs use traditional 'lib' prefix
19596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19597 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19598 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19599 # It is most probably a Windows format PATH printed by
19600 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19601 # path with ; separators, and with drive letters. We can handle the
19602 # drive letters (cygwin fileutils understands them), so leave them,
19603 # especially as we might pass files found there to a mingw objdump,
19604 # which wouldn't understand a cygwinified path. Ahh.
19605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19606 else
19607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19608 fi
19609 ;;
19610 pw32*)
19611 # pw32 DLLs use 'pw' prefix rather than 'lib'
19612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19613 ;;
19614 esac
19615 ;;
19616
19617 *)
19618 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19619 ;;
19620 esac
19621 dynamic_linker='Win32 ld.exe'
19622 # FIXME: first we should search . and the directory the executable is in
19623 shlibpath_var=PATH
19624 ;;
19625
19626 darwin* | rhapsody*)
19627 dynamic_linker="$host_os dyld"
19628 version_type=darwin
19629 need_lib_prefix=no
19630 need_version=no
19631 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19632 soname_spec='${libname}${release}${major}$shared_ext'
19633 shlibpath_overrides_runpath=yes
19634 shlibpath_var=DYLD_LIBRARY_PATH
19635 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19636
19637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19638 ;;
19639
19640 dgux*)
19641 version_type=linux
19642 need_lib_prefix=no
19643 need_version=no
19644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19645 soname_spec='${libname}${release}${shared_ext}$major'
19646 shlibpath_var=LD_LIBRARY_PATH
19647 ;;
19648
19649 freebsd1*)
19650 dynamic_linker=no
19651 ;;
19652
19653 freebsd* | dragonfly*)
19654 # DragonFly does not have aout. When/if they implement a new
19655 # versioning mechanism, adjust this.
19656 if test -x /usr/bin/objformat; then
19657 objformat=`/usr/bin/objformat`
19658 else
19659 case $host_os in
19660 freebsd[123]*) objformat=aout ;;
19661 *) objformat=elf ;;
19662 esac
19663 fi
19664 version_type=freebsd-$objformat
19665 case $version_type in
19666 freebsd-elf*)
19667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19668 need_version=no
19669 need_lib_prefix=no
19670 ;;
19671 freebsd-*)
19672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19673 need_version=yes
19674 ;;
19675 esac
19676 shlibpath_var=LD_LIBRARY_PATH
19677 case $host_os in
19678 freebsd2*)
19679 shlibpath_overrides_runpath=yes
19680 ;;
19681 freebsd3.[01]* | freebsdelf3.[01]*)
19682 shlibpath_overrides_runpath=yes
19683 hardcode_into_libs=yes
19684 ;;
19685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19687 shlibpath_overrides_runpath=no
19688 hardcode_into_libs=yes
19689 ;;
19690 *) # from 4.6 on, and DragonFly
19691 shlibpath_overrides_runpath=yes
19692 hardcode_into_libs=yes
19693 ;;
19694 esac
19695 ;;
19696
19697 gnu*)
19698 version_type=linux
19699 need_lib_prefix=no
19700 need_version=no
19701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19702 soname_spec='${libname}${release}${shared_ext}$major'
19703 shlibpath_var=LD_LIBRARY_PATH
19704 hardcode_into_libs=yes
19705 ;;
19706
19707 hpux9* | hpux10* | hpux11*)
19708 # Give a soname corresponding to the major version so that dld.sl refuses to
19709 # link against other versions.
19710 version_type=sunos
19711 need_lib_prefix=no
19712 need_version=no
19713 case $host_cpu in
19714 ia64*)
19715 shrext_cmds='.so'
19716 hardcode_into_libs=yes
19717 dynamic_linker="$host_os dld.so"
19718 shlibpath_var=LD_LIBRARY_PATH
19719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19721 soname_spec='${libname}${release}${shared_ext}$major'
19722 if test "X$HPUX_IA64_MODE" = X32; then
19723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19724 else
19725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19726 fi
19727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19728 ;;
19729 hppa*64*)
19730 shrext_cmds='.sl'
19731 hardcode_into_libs=yes
19732 dynamic_linker="$host_os dld.sl"
19733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19736 soname_spec='${libname}${release}${shared_ext}$major'
19737 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19739 ;;
19740 *)
19741 shrext_cmds='.sl'
19742 dynamic_linker="$host_os dld.sl"
19743 shlibpath_var=SHLIB_PATH
19744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19746 soname_spec='${libname}${release}${shared_ext}$major'
19747 ;;
19748 esac
19749 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19750 postinstall_cmds='chmod 555 $lib'
19751 ;;
19752
19753 interix[3-9]*)
19754 version_type=linux
19755 need_lib_prefix=no
19756 need_version=no
19757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19758 soname_spec='${libname}${release}${shared_ext}$major'
19759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19760 shlibpath_var=LD_LIBRARY_PATH
19761 shlibpath_overrides_runpath=no
19762 hardcode_into_libs=yes
19763 ;;
19764
19765 irix5* | irix6* | nonstopux*)
19766 case $host_os in
19767 nonstopux*) version_type=nonstopux ;;
19768 *)
19769 if test "$lt_cv_prog_gnu_ld" = yes; then
19770 version_type=linux
19771 else
19772 version_type=irix
19773 fi ;;
19774 esac
19775 need_lib_prefix=no
19776 need_version=no
19777 soname_spec='${libname}${release}${shared_ext}$major'
19778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19779 case $host_os in
19780 irix5* | nonstopux*)
19781 libsuff= shlibsuff=
19782 ;;
19783 *)
19784 case $LD in # libtool.m4 will add one of these switches to LD
19785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19786 libsuff= shlibsuff= libmagic=32-bit;;
19787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19788 libsuff=32 shlibsuff=N32 libmagic=N32;;
19789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19791 *) libsuff= shlibsuff= libmagic=never-match;;
19792 esac
19793 ;;
19794 esac
19795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19796 shlibpath_overrides_runpath=no
19797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19799 hardcode_into_libs=yes
19800 ;;
19801
19802 # No shared lib support for Linux oldld, aout, or coff.
19803 linux*oldld* | linux*aout* | linux*coff*)
19804 dynamic_linker=no
19805 ;;
19806
19807 # This must be Linux ELF.
19808 linux* | k*bsd*-gnu)
19809 version_type=linux
19810 need_lib_prefix=no
19811 need_version=no
19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813 soname_spec='${libname}${release}${shared_ext}$major'
19814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19815 shlibpath_var=LD_LIBRARY_PATH
19816 shlibpath_overrides_runpath=no
19817 # This implies no fast_install, which is unacceptable.
19818 # Some rework will be needed to allow for fast_install
19819 # before this can be enabled.
19820 hardcode_into_libs=yes
19821
19822 # Append ld.so.conf contents to the search path
19823 if test -f /etc/ld.so.conf; then
19824 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' ' '`
19825 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19826 fi
19827
19828 # We used to test for /lib/ld.so.1 and disable shared libraries on
19829 # powerpc, because MkLinux only supported shared libraries with the
19830 # GNU dynamic linker. Since this was broken with cross compilers,
19831 # most powerpc-linux boxes support dynamic linking these days and
19832 # people can always --disable-shared, the test was removed, and we
19833 # assume the GNU/Linux dynamic linker is in use.
19834 dynamic_linker='GNU/Linux ld.so'
19835 ;;
19836
19837 netbsdelf*-gnu)
19838 version_type=linux
19839 need_lib_prefix=no
19840 need_version=no
19841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19842 soname_spec='${libname}${release}${shared_ext}$major'
19843 shlibpath_var=LD_LIBRARY_PATH
19844 shlibpath_overrides_runpath=no
19845 hardcode_into_libs=yes
19846 dynamic_linker='NetBSD ld.elf_so'
19847 ;;
19848
19849 netbsd*)
19850 version_type=sunos
19851 need_lib_prefix=no
19852 need_version=no
19853 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19856 dynamic_linker='NetBSD (a.out) ld.so'
19857 else
19858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19859 soname_spec='${libname}${release}${shared_ext}$major'
19860 dynamic_linker='NetBSD ld.elf_so'
19861 fi
19862 shlibpath_var=LD_LIBRARY_PATH
19863 shlibpath_overrides_runpath=yes
19864 hardcode_into_libs=yes
19865 ;;
19866
19867 newsos6)
19868 version_type=linux
19869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19870 shlibpath_var=LD_LIBRARY_PATH
19871 shlibpath_overrides_runpath=yes
19872 ;;
19873
19874 nto-qnx*)
19875 version_type=linux
19876 need_lib_prefix=no
19877 need_version=no
19878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19879 soname_spec='${libname}${release}${shared_ext}$major'
19880 shlibpath_var=LD_LIBRARY_PATH
19881 shlibpath_overrides_runpath=yes
19882 ;;
19883
19884 openbsd*)
19885 version_type=sunos
19886 sys_lib_dlsearch_path_spec="/usr/lib"
19887 need_lib_prefix=no
19888 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19889 case $host_os in
19890 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19891 *) need_version=no ;;
19892 esac
19893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19895 shlibpath_var=LD_LIBRARY_PATH
19896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19897 case $host_os in
19898 openbsd2.[89] | openbsd2.[89].*)
19899 shlibpath_overrides_runpath=no
19900 ;;
19901 *)
19902 shlibpath_overrides_runpath=yes
19903 ;;
19904 esac
19905 else
19906 shlibpath_overrides_runpath=yes
19907 fi
19908 ;;
19909
19910 os2*)
19911 libname_spec='$name'
19912 shrext_cmds=".dll"
19913 need_lib_prefix=no
19914 library_names_spec='$libname${shared_ext} $libname.a'
19915 dynamic_linker='OS/2 ld.exe'
19916 shlibpath_var=LIBPATH
19917 ;;
19918
19919 osf3* | osf4* | osf5*)
19920 version_type=osf
19921 need_lib_prefix=no
19922 need_version=no
19923 soname_spec='${libname}${release}${shared_ext}$major'
19924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19925 shlibpath_var=LD_LIBRARY_PATH
19926 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19927 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19928 ;;
19929
19930 rdos*)
19931 dynamic_linker=no
19932 ;;
19933
19934 solaris*)
19935 version_type=linux
19936 need_lib_prefix=no
19937 need_version=no
19938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19939 soname_spec='${libname}${release}${shared_ext}$major'
19940 shlibpath_var=LD_LIBRARY_PATH
19941 shlibpath_overrides_runpath=yes
19942 hardcode_into_libs=yes
19943 # ldd complains unless libraries are executable
19944 postinstall_cmds='chmod +x $lib'
19945 ;;
19946
19947 sunos4*)
19948 version_type=sunos
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19950 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19951 shlibpath_var=LD_LIBRARY_PATH
19952 shlibpath_overrides_runpath=yes
19953 if test "$with_gnu_ld" = yes; then
19954 need_lib_prefix=no
19955 fi
19956 need_version=yes
19957 ;;
19958
19959 sysv4 | sysv4.3*)
19960 version_type=linux
19961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19962 soname_spec='${libname}${release}${shared_ext}$major'
19963 shlibpath_var=LD_LIBRARY_PATH
19964 case $host_vendor in
19965 sni)
19966 shlibpath_overrides_runpath=no
19967 need_lib_prefix=no
19968 export_dynamic_flag_spec='${wl}-Blargedynsym'
19969 runpath_var=LD_RUN_PATH
19970 ;;
19971 siemens)
19972 need_lib_prefix=no
19973 ;;
19974 motorola)
19975 need_lib_prefix=no
19976 need_version=no
19977 shlibpath_overrides_runpath=no
19978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19979 ;;
19980 esac
19981 ;;
19982
19983 sysv4*MP*)
19984 if test -d /usr/nec ;then
19985 version_type=linux
19986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19987 soname_spec='$libname${shared_ext}.$major'
19988 shlibpath_var=LD_LIBRARY_PATH
19989 fi
19990 ;;
19991
19992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19993 version_type=freebsd-elf
19994 need_lib_prefix=no
19995 need_version=no
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 shlibpath_var=LD_LIBRARY_PATH
19999 hardcode_into_libs=yes
20000 if test "$with_gnu_ld" = yes; then
20001 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20002 shlibpath_overrides_runpath=no
20003 else
20004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20005 shlibpath_overrides_runpath=yes
20006 case $host_os in
20007 sco3.2v5*)
20008 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20009 ;;
20010 esac
20011 fi
20012 sys_lib_dlsearch_path_spec='/usr/lib'
20013 ;;
20014
20015 uts4*)
20016 version_type=linux
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 shlibpath_var=LD_LIBRARY_PATH
20020 ;;
20021
20022 *)
20023 dynamic_linker=no
20024 ;;
20025 esac
20026 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20027 echo "${ECHO_T}$dynamic_linker" >&6; }
20028 test "$dynamic_linker" = no && can_build_shared=no
20029
20030 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20034 fi
20035
20036 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20037 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20041 fi
20042
20043 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20044
20045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20046 if test "$GCC" = yes; then
20047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20048 fi
20049
20050 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20051 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20052 hardcode_action_GCJ=
20053 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20054 test -n "$runpath_var_GCJ" || \
20055 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20056
20057 # We can hardcode non-existant directories.
20058 if test "$hardcode_direct_GCJ" != no &&
20059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20060 # have to relink, otherwise we might link with an installed library
20061 # when we should be linking with a yet-to-be-installed one
20062 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20063 test "$hardcode_minus_L_GCJ" != no; then
20064 # Linking always hardcodes the temporary library directory.
20065 hardcode_action_GCJ=relink
20066 else
20067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20068 hardcode_action_GCJ=immediate
20069 fi
20070 else
20071 # We cannot hardcode anything, or else we can only hardcode existing
20072 # directories.
20073 hardcode_action_GCJ=unsupported
20074 fi
20075 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20076 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20077
20078 if test "$hardcode_action_GCJ" = relink; then
20079 # Fast installation is not supported
20080 enable_fast_install=no
20081 elif test "$shlibpath_overrides_runpath" = yes ||
20082 test "$enable_shared" = no; then
20083 # Fast installation is not necessary
20084 enable_fast_install=needless
20085 fi
20086
20087
20088 # The else clause should only fire when bootstrapping the
20089 # libtool distribution, otherwise you forgot to ship ltmain.sh
20090 # with your package, and you will get complaints that there are
20091 # no rules to generate ltmain.sh.
20092 if test -f "$ltmain"; then
20093 # See if we are running on zsh, and set the options which allow our commands through
20094 # without removal of \ escapes.
20095 if test -n "${ZSH_VERSION+set}" ; then
20096 setopt NO_GLOB_SUBST
20097 fi
20098 # Now quote all the things that may contain metacharacters while being
20099 # careful not to overquote the AC_SUBSTed values. We take copies of the
20100 # variables and quote the copies for generation of the libtool script.
20101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20102 SED SHELL STRIP \
20103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20105 deplibs_check_method reload_flag reload_cmds need_locks \
20106 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20107 lt_cv_sys_global_symbol_to_c_name_address \
20108 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20109 old_postinstall_cmds old_postuninstall_cmds \
20110 compiler_GCJ \
20111 CC_GCJ \
20112 LD_GCJ \
20113 lt_prog_compiler_wl_GCJ \
20114 lt_prog_compiler_pic_GCJ \
20115 lt_prog_compiler_static_GCJ \
20116 lt_prog_compiler_no_builtin_flag_GCJ \
20117 export_dynamic_flag_spec_GCJ \
20118 thread_safe_flag_spec_GCJ \
20119 whole_archive_flag_spec_GCJ \
20120 enable_shared_with_static_runtimes_GCJ \
20121 old_archive_cmds_GCJ \
20122 old_archive_from_new_cmds_GCJ \
20123 predep_objects_GCJ \
20124 postdep_objects_GCJ \
20125 predeps_GCJ \
20126 postdeps_GCJ \
20127 compiler_lib_search_path_GCJ \
20128 compiler_lib_search_dirs_GCJ \
20129 archive_cmds_GCJ \
20130 archive_expsym_cmds_GCJ \
20131 postinstall_cmds_GCJ \
20132 postuninstall_cmds_GCJ \
20133 old_archive_from_expsyms_cmds_GCJ \
20134 allow_undefined_flag_GCJ \
20135 no_undefined_flag_GCJ \
20136 export_symbols_cmds_GCJ \
20137 hardcode_libdir_flag_spec_GCJ \
20138 hardcode_libdir_flag_spec_ld_GCJ \
20139 hardcode_libdir_separator_GCJ \
20140 hardcode_automatic_GCJ \
20141 module_cmds_GCJ \
20142 module_expsym_cmds_GCJ \
20143 lt_cv_prog_compiler_c_o_GCJ \
20144 fix_srcfile_path_GCJ \
20145 exclude_expsyms_GCJ \
20146 include_expsyms_GCJ; do
20147
20148 case $var in
20149 old_archive_cmds_GCJ | \
20150 old_archive_from_new_cmds_GCJ | \
20151 archive_cmds_GCJ | \
20152 archive_expsym_cmds_GCJ | \
20153 module_cmds_GCJ | \
20154 module_expsym_cmds_GCJ | \
20155 old_archive_from_expsyms_cmds_GCJ | \
20156 export_symbols_cmds_GCJ | \
20157 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20158 postinstall_cmds | postuninstall_cmds | \
20159 old_postinstall_cmds | old_postuninstall_cmds | \
20160 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20161 # Double-quote double-evaled strings.
20162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20163 ;;
20164 *)
20165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20166 ;;
20167 esac
20168 done
20169
20170 case $lt_echo in
20171 *'\$0 --fallback-echo"')
20172 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20173 ;;
20174 esac
20175
20176 cfgfile="$ofile"
20177
20178 cat <<__EOF__ >> "$cfgfile"
20179 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20180
20181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20182
20183 # Shell to use when invoking shell scripts.
20184 SHELL=$lt_SHELL
20185
20186 # Whether or not to build shared libraries.
20187 build_libtool_libs=$enable_shared
20188
20189 # Whether or not to build static libraries.
20190 build_old_libs=$enable_static
20191
20192 # Whether or not to add -lc for building shared libraries.
20193 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20194
20195 # Whether or not to disallow shared libs when runtime libs are static
20196 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20197
20198 # Whether or not to optimize for fast installation.
20199 fast_install=$enable_fast_install
20200
20201 # The host system.
20202 host_alias=$host_alias
20203 host=$host
20204 host_os=$host_os
20205
20206 # The build system.
20207 build_alias=$build_alias
20208 build=$build
20209 build_os=$build_os
20210
20211 # An echo program that does not interpret backslashes.
20212 echo=$lt_echo
20213
20214 # The archiver.
20215 AR=$lt_AR
20216 AR_FLAGS=$lt_AR_FLAGS
20217
20218 # A C compiler.
20219 LTCC=$lt_LTCC
20220
20221 # LTCC compiler flags.
20222 LTCFLAGS=$lt_LTCFLAGS
20223
20224 # A language-specific compiler.
20225 CC=$lt_compiler_GCJ
20226
20227 # Is the compiler the GNU C compiler?
20228 with_gcc=$GCC_GCJ
20229
20230 # An ERE matcher.
20231 EGREP=$lt_EGREP
20232
20233 # The linker used to build libraries.
20234 LD=$lt_LD_GCJ
20235
20236 # Whether we need hard or soft links.
20237 LN_S=$lt_LN_S
20238
20239 # A BSD-compatible nm program.
20240 NM=$lt_NM
20241
20242 # A symbol stripping program
20243 STRIP=$lt_STRIP
20244
20245 # Used to examine libraries when file_magic_cmd begins "file"
20246 MAGIC_CMD=$MAGIC_CMD
20247
20248 # Used on cygwin: DLL creation program.
20249 DLLTOOL="$DLLTOOL"
20250
20251 # Used on cygwin: object dumper.
20252 OBJDUMP="$OBJDUMP"
20253
20254 # Used on cygwin: assembler.
20255 AS="$AS"
20256
20257 # The name of the directory that contains temporary libtool files.
20258 objdir=$objdir
20259
20260 # How to create reloadable object files.
20261 reload_flag=$lt_reload_flag
20262 reload_cmds=$lt_reload_cmds
20263
20264 # How to pass a linker flag through the compiler.
20265 wl=$lt_lt_prog_compiler_wl_GCJ
20266
20267 # Object file suffix (normally "o").
20268 objext="$ac_objext"
20269
20270 # Old archive suffix (normally "a").
20271 libext="$libext"
20272
20273 # Shared library suffix (normally ".so").
20274 shrext_cmds='$shrext_cmds'
20275
20276 # Executable file suffix (normally "").
20277 exeext="$exeext"
20278
20279 # Additional compiler flags for building library objects.
20280 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20281 pic_mode=$pic_mode
20282
20283 # What is the maximum length of a command?
20284 max_cmd_len=$lt_cv_sys_max_cmd_len
20285
20286 # Does compiler simultaneously support -c and -o options?
20287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20288
20289 # Must we lock files when doing compilation?
20290 need_locks=$lt_need_locks
20291
20292 # Do we need the lib prefix for modules?
20293 need_lib_prefix=$need_lib_prefix
20294
20295 # Do we need a version for libraries?
20296 need_version=$need_version
20297
20298 # Whether dlopen is supported.
20299 dlopen_support=$enable_dlopen
20300
20301 # Whether dlopen of programs is supported.
20302 dlopen_self=$enable_dlopen_self
20303
20304 # Whether dlopen of statically linked programs is supported.
20305 dlopen_self_static=$enable_dlopen_self_static
20306
20307 # Compiler flag to prevent dynamic linking.
20308 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20309
20310 # Compiler flag to turn off builtin functions.
20311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20312
20313 # Compiler flag to allow reflexive dlopens.
20314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20315
20316 # Compiler flag to generate shared objects directly from archives.
20317 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20318
20319 # Compiler flag to generate thread-safe objects.
20320 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20321
20322 # Library versioning type.
20323 version_type=$version_type
20324
20325 # Format of library name prefix.
20326 libname_spec=$lt_libname_spec
20327
20328 # List of archive names. First name is the real one, the rest are links.
20329 # The last name is the one that the linker finds with -lNAME.
20330 library_names_spec=$lt_library_names_spec
20331
20332 # The coded name of the library, if different from the real name.
20333 soname_spec=$lt_soname_spec
20334
20335 # Commands used to build and install an old-style archive.
20336 RANLIB=$lt_RANLIB
20337 old_archive_cmds=$lt_old_archive_cmds_GCJ
20338 old_postinstall_cmds=$lt_old_postinstall_cmds
20339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20340
20341 # Create an old-style archive from a shared archive.
20342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20343
20344 # Create a temporary old-style archive to link instead of a shared archive.
20345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20346
20347 # Commands used to build and install a shared archive.
20348 archive_cmds=$lt_archive_cmds_GCJ
20349 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20350 postinstall_cmds=$lt_postinstall_cmds
20351 postuninstall_cmds=$lt_postuninstall_cmds
20352
20353 # Commands used to build a loadable module (assumed same as above if empty)
20354 module_cmds=$lt_module_cmds_GCJ
20355 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20356
20357 # Commands to strip libraries.
20358 old_striplib=$lt_old_striplib
20359 striplib=$lt_striplib
20360
20361 # Dependencies to place before the objects being linked to create a
20362 # shared library.
20363 predep_objects=$lt_predep_objects_GCJ
20364
20365 # Dependencies to place after the objects being linked to create a
20366 # shared library.
20367 postdep_objects=$lt_postdep_objects_GCJ
20368
20369 # Dependencies to place before the objects being linked to create a
20370 # shared library.
20371 predeps=$lt_predeps_GCJ
20372
20373 # Dependencies to place after the objects being linked to create a
20374 # shared library.
20375 postdeps=$lt_postdeps_GCJ
20376
20377 # The directories searched by this compiler when creating a shared
20378 # library
20379 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20380
20381 # The library search path used internally by the compiler when linking
20382 # a shared library.
20383 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20384
20385 # Method to check whether dependent libraries are shared objects.
20386 deplibs_check_method=$lt_deplibs_check_method
20387
20388 # Command to use when deplibs_check_method == file_magic.
20389 file_magic_cmd=$lt_file_magic_cmd
20390
20391 # Flag that allows shared libraries with undefined symbols to be built.
20392 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20393
20394 # Flag that forces no undefined symbols.
20395 no_undefined_flag=$lt_no_undefined_flag_GCJ
20396
20397 # Commands used to finish a libtool library installation in a directory.
20398 finish_cmds=$lt_finish_cmds
20399
20400 # Same as above, but a single script fragment to be evaled but not shown.
20401 finish_eval=$lt_finish_eval
20402
20403 # Take the output of nm and produce a listing of raw symbols and C names.
20404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20405
20406 # Transform the output of nm in a proper C declaration
20407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20408
20409 # Transform the output of nm in a C name address pair
20410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20411
20412 # This is the shared library runtime path variable.
20413 runpath_var=$runpath_var
20414
20415 # This is the shared library path variable.
20416 shlibpath_var=$shlibpath_var
20417
20418 # Is shlibpath searched before the hard-coded library search path?
20419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20420
20421 # How to hardcode a shared library path into an executable.
20422 hardcode_action=$hardcode_action_GCJ
20423
20424 # Whether we should hardcode library paths into libraries.
20425 hardcode_into_libs=$hardcode_into_libs
20426
20427 # Flag to hardcode \$libdir into a binary during linking.
20428 # This must work even if \$libdir does not exist.
20429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20430
20431 # If ld is used when linking, flag to hardcode \$libdir into
20432 # a binary during linking. This must work even if \$libdir does
20433 # not exist.
20434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20435
20436 # Whether we need a single -rpath flag with a separated argument.
20437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20438
20439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20440 # resulting binary.
20441 hardcode_direct=$hardcode_direct_GCJ
20442
20443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20444 # resulting binary.
20445 hardcode_minus_L=$hardcode_minus_L_GCJ
20446
20447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20448 # the resulting binary.
20449 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20450
20451 # Set to yes if building a shared library automatically hardcodes DIR into the library
20452 # and all subsequent libraries and executables linked against it.
20453 hardcode_automatic=$hardcode_automatic_GCJ
20454
20455 # Variables whose values should be saved in libtool wrapper scripts and
20456 # restored at relink time.
20457 variables_saved_for_relink="$variables_saved_for_relink"
20458
20459 # Whether libtool must link a program against all its dependency libraries.
20460 link_all_deplibs=$link_all_deplibs_GCJ
20461
20462 # Compile-time system search path for libraries
20463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20464
20465 # Run-time system search path for libraries
20466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20467
20468 # Fix the shell variable \$srcfile for the compiler.
20469 fix_srcfile_path=$lt_fix_srcfile_path
20470
20471 # Set to yes if exported symbols are required.
20472 always_export_symbols=$always_export_symbols_GCJ
20473
20474 # The commands to list exported symbols.
20475 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20476
20477 # The commands to extract the exported symbol list from a shared archive.
20478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20479
20480 # Symbols that should not be listed in the preloaded symbols.
20481 exclude_expsyms=$lt_exclude_expsyms_GCJ
20482
20483 # Symbols that must always be exported.
20484 include_expsyms=$lt_include_expsyms_GCJ
20485
20486 # ### END LIBTOOL TAG CONFIG: $tagname
20487
20488 __EOF__
20489
20490
20491 else
20492 # If there is no Makefile yet, we rely on a make rule to execute
20493 # `config.status --recheck' to rerun these tests and create the
20494 # libtool script then.
20495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20496 if test -f "$ltmain_in"; then
20497 test -f Makefile && make "$ltmain"
20498 fi
20499 fi
20500
20501
20502 ac_ext=c
20503 ac_cpp='$CPP $CPPFLAGS'
20504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20507
20508 CC="$lt_save_CC"
20509
20510 else
20511 tagname=""
20512 fi
20513 ;;
20514
20515 RC)
20516
20517
20518 # Source file extension for RC test sources.
20519 ac_ext=rc
20520
20521 # Object file extension for compiled RC test sources.
20522 objext=o
20523 objext_RC=$objext
20524
20525 # Code to be used in simple compile tests
20526 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20527
20528 # Code to be used in simple link tests
20529 lt_simple_link_test_code="$lt_simple_compile_test_code"
20530
20531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20532
20533 # If no C compiler was specified, use CC.
20534 LTCC=${LTCC-"$CC"}
20535
20536 # If no C compiler flags were specified, use CFLAGS.
20537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20538
20539 # Allow CC to be a program name with arguments.
20540 compiler=$CC
20541
20542
20543 # save warnings/boilerplate of simple test code
20544 ac_outfile=conftest.$ac_objext
20545 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20547 _lt_compiler_boilerplate=`cat conftest.err`
20548 $rm conftest*
20549
20550 ac_outfile=conftest.$ac_objext
20551 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20553 _lt_linker_boilerplate=`cat conftest.err`
20554 $rm -r conftest*
20555
20556
20557 # Allow CC to be a program name with arguments.
20558 lt_save_CC="$CC"
20559 CC=${RC-"windres"}
20560 compiler=$CC
20561 compiler_RC=$CC
20562 for cc_temp in $compiler""; do
20563 case $cc_temp in
20564 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20565 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20566 \-*) ;;
20567 *) break;;
20568 esac
20569 done
20570 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20571
20572 lt_cv_prog_compiler_c_o_RC=yes
20573
20574 # The else clause should only fire when bootstrapping the
20575 # libtool distribution, otherwise you forgot to ship ltmain.sh
20576 # with your package, and you will get complaints that there are
20577 # no rules to generate ltmain.sh.
20578 if test -f "$ltmain"; then
20579 # See if we are running on zsh, and set the options which allow our commands through
20580 # without removal of \ escapes.
20581 if test -n "${ZSH_VERSION+set}" ; then
20582 setopt NO_GLOB_SUBST
20583 fi
20584 # Now quote all the things that may contain metacharacters while being
20585 # careful not to overquote the AC_SUBSTed values. We take copies of the
20586 # variables and quote the copies for generation of the libtool script.
20587 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20588 SED SHELL STRIP \
20589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20591 deplibs_check_method reload_flag reload_cmds need_locks \
20592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20593 lt_cv_sys_global_symbol_to_c_name_address \
20594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20595 old_postinstall_cmds old_postuninstall_cmds \
20596 compiler_RC \
20597 CC_RC \
20598 LD_RC \
20599 lt_prog_compiler_wl_RC \
20600 lt_prog_compiler_pic_RC \
20601 lt_prog_compiler_static_RC \
20602 lt_prog_compiler_no_builtin_flag_RC \
20603 export_dynamic_flag_spec_RC \
20604 thread_safe_flag_spec_RC \
20605 whole_archive_flag_spec_RC \
20606 enable_shared_with_static_runtimes_RC \
20607 old_archive_cmds_RC \
20608 old_archive_from_new_cmds_RC \
20609 predep_objects_RC \
20610 postdep_objects_RC \
20611 predeps_RC \
20612 postdeps_RC \
20613 compiler_lib_search_path_RC \
20614 compiler_lib_search_dirs_RC \
20615 archive_cmds_RC \
20616 archive_expsym_cmds_RC \
20617 postinstall_cmds_RC \
20618 postuninstall_cmds_RC \
20619 old_archive_from_expsyms_cmds_RC \
20620 allow_undefined_flag_RC \
20621 no_undefined_flag_RC \
20622 export_symbols_cmds_RC \
20623 hardcode_libdir_flag_spec_RC \
20624 hardcode_libdir_flag_spec_ld_RC \
20625 hardcode_libdir_separator_RC \
20626 hardcode_automatic_RC \
20627 module_cmds_RC \
20628 module_expsym_cmds_RC \
20629 lt_cv_prog_compiler_c_o_RC \
20630 fix_srcfile_path_RC \
20631 exclude_expsyms_RC \
20632 include_expsyms_RC; do
20633
20634 case $var in
20635 old_archive_cmds_RC | \
20636 old_archive_from_new_cmds_RC | \
20637 archive_cmds_RC | \
20638 archive_expsym_cmds_RC | \
20639 module_cmds_RC | \
20640 module_expsym_cmds_RC | \
20641 old_archive_from_expsyms_cmds_RC | \
20642 export_symbols_cmds_RC | \
20643 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20644 postinstall_cmds | postuninstall_cmds | \
20645 old_postinstall_cmds | old_postuninstall_cmds | \
20646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20647 # Double-quote double-evaled strings.
20648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20649 ;;
20650 *)
20651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20652 ;;
20653 esac
20654 done
20655
20656 case $lt_echo in
20657 *'\$0 --fallback-echo"')
20658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20659 ;;
20660 esac
20661
20662 cfgfile="$ofile"
20663
20664 cat <<__EOF__ >> "$cfgfile"
20665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20666
20667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20668
20669 # Shell to use when invoking shell scripts.
20670 SHELL=$lt_SHELL
20671
20672 # Whether or not to build shared libraries.
20673 build_libtool_libs=$enable_shared
20674
20675 # Whether or not to build static libraries.
20676 build_old_libs=$enable_static
20677
20678 # Whether or not to add -lc for building shared libraries.
20679 build_libtool_need_lc=$archive_cmds_need_lc_RC
20680
20681 # Whether or not to disallow shared libs when runtime libs are static
20682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20683
20684 # Whether or not to optimize for fast installation.
20685 fast_install=$enable_fast_install
20686
20687 # The host system.
20688 host_alias=$host_alias
20689 host=$host
20690 host_os=$host_os
20691
20692 # The build system.
20693 build_alias=$build_alias
20694 build=$build
20695 build_os=$build_os
20696
20697 # An echo program that does not interpret backslashes.
20698 echo=$lt_echo
20699
20700 # The archiver.
20701 AR=$lt_AR
20702 AR_FLAGS=$lt_AR_FLAGS
20703
20704 # A C compiler.
20705 LTCC=$lt_LTCC
20706
20707 # LTCC compiler flags.
20708 LTCFLAGS=$lt_LTCFLAGS
20709
20710 # A language-specific compiler.
20711 CC=$lt_compiler_RC
20712
20713 # Is the compiler the GNU C compiler?
20714 with_gcc=$GCC_RC
20715
20716 # An ERE matcher.
20717 EGREP=$lt_EGREP
20718
20719 # The linker used to build libraries.
20720 LD=$lt_LD_RC
20721
20722 # Whether we need hard or soft links.
20723 LN_S=$lt_LN_S
20724
20725 # A BSD-compatible nm program.
20726 NM=$lt_NM
20727
20728 # A symbol stripping program
20729 STRIP=$lt_STRIP
20730
20731 # Used to examine libraries when file_magic_cmd begins "file"
20732 MAGIC_CMD=$MAGIC_CMD
20733
20734 # Used on cygwin: DLL creation program.
20735 DLLTOOL="$DLLTOOL"
20736
20737 # Used on cygwin: object dumper.
20738 OBJDUMP="$OBJDUMP"
20739
20740 # Used on cygwin: assembler.
20741 AS="$AS"
20742
20743 # The name of the directory that contains temporary libtool files.
20744 objdir=$objdir
20745
20746 # How to create reloadable object files.
20747 reload_flag=$lt_reload_flag
20748 reload_cmds=$lt_reload_cmds
20749
20750 # How to pass a linker flag through the compiler.
20751 wl=$lt_lt_prog_compiler_wl_RC
20752
20753 # Object file suffix (normally "o").
20754 objext="$ac_objext"
20755
20756 # Old archive suffix (normally "a").
20757 libext="$libext"
20758
20759 # Shared library suffix (normally ".so").
20760 shrext_cmds='$shrext_cmds'
20761
20762 # Executable file suffix (normally "").
20763 exeext="$exeext"
20764
20765 # Additional compiler flags for building library objects.
20766 pic_flag=$lt_lt_prog_compiler_pic_RC
20767 pic_mode=$pic_mode
20768
20769 # What is the maximum length of a command?
20770 max_cmd_len=$lt_cv_sys_max_cmd_len
20771
20772 # Does compiler simultaneously support -c and -o options?
20773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20774
20775 # Must we lock files when doing compilation?
20776 need_locks=$lt_need_locks
20777
20778 # Do we need the lib prefix for modules?
20779 need_lib_prefix=$need_lib_prefix
20780
20781 # Do we need a version for libraries?
20782 need_version=$need_version
20783
20784 # Whether dlopen is supported.
20785 dlopen_support=$enable_dlopen
20786
20787 # Whether dlopen of programs is supported.
20788 dlopen_self=$enable_dlopen_self
20789
20790 # Whether dlopen of statically linked programs is supported.
20791 dlopen_self_static=$enable_dlopen_self_static
20792
20793 # Compiler flag to prevent dynamic linking.
20794 link_static_flag=$lt_lt_prog_compiler_static_RC
20795
20796 # Compiler flag to turn off builtin functions.
20797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20798
20799 # Compiler flag to allow reflexive dlopens.
20800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20801
20802 # Compiler flag to generate shared objects directly from archives.
20803 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20804
20805 # Compiler flag to generate thread-safe objects.
20806 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20807
20808 # Library versioning type.
20809 version_type=$version_type
20810
20811 # Format of library name prefix.
20812 libname_spec=$lt_libname_spec
20813
20814 # List of archive names. First name is the real one, the rest are links.
20815 # The last name is the one that the linker finds with -lNAME.
20816 library_names_spec=$lt_library_names_spec
20817
20818 # The coded name of the library, if different from the real name.
20819 soname_spec=$lt_soname_spec
20820
20821 # Commands used to build and install an old-style archive.
20822 RANLIB=$lt_RANLIB
20823 old_archive_cmds=$lt_old_archive_cmds_RC
20824 old_postinstall_cmds=$lt_old_postinstall_cmds
20825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20826
20827 # Create an old-style archive from a shared archive.
20828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20829
20830 # Create a temporary old-style archive to link instead of a shared archive.
20831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20832
20833 # Commands used to build and install a shared archive.
20834 archive_cmds=$lt_archive_cmds_RC
20835 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20836 postinstall_cmds=$lt_postinstall_cmds
20837 postuninstall_cmds=$lt_postuninstall_cmds
20838
20839 # Commands used to build a loadable module (assumed same as above if empty)
20840 module_cmds=$lt_module_cmds_RC
20841 module_expsym_cmds=$lt_module_expsym_cmds_RC
20842
20843 # Commands to strip libraries.
20844 old_striplib=$lt_old_striplib
20845 striplib=$lt_striplib
20846
20847 # Dependencies to place before the objects being linked to create a
20848 # shared library.
20849 predep_objects=$lt_predep_objects_RC
20850
20851 # Dependencies to place after the objects being linked to create a
20852 # shared library.
20853 postdep_objects=$lt_postdep_objects_RC
20854
20855 # Dependencies to place before the objects being linked to create a
20856 # shared library.
20857 predeps=$lt_predeps_RC
20858
20859 # Dependencies to place after the objects being linked to create a
20860 # shared library.
20861 postdeps=$lt_postdeps_RC
20862
20863 # The directories searched by this compiler when creating a shared
20864 # library
20865 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20866
20867 # The library search path used internally by the compiler when linking
20868 # a shared library.
20869 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20870
20871 # Method to check whether dependent libraries are shared objects.
20872 deplibs_check_method=$lt_deplibs_check_method
20873
20874 # Command to use when deplibs_check_method == file_magic.
20875 file_magic_cmd=$lt_file_magic_cmd
20876
20877 # Flag that allows shared libraries with undefined symbols to be built.
20878 allow_undefined_flag=$lt_allow_undefined_flag_RC
20879
20880 # Flag that forces no undefined symbols.
20881 no_undefined_flag=$lt_no_undefined_flag_RC
20882
20883 # Commands used to finish a libtool library installation in a directory.
20884 finish_cmds=$lt_finish_cmds
20885
20886 # Same as above, but a single script fragment to be evaled but not shown.
20887 finish_eval=$lt_finish_eval
20888
20889 # Take the output of nm and produce a listing of raw symbols and C names.
20890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20891
20892 # Transform the output of nm in a proper C declaration
20893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20894
20895 # Transform the output of nm in a C name address pair
20896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20897
20898 # This is the shared library runtime path variable.
20899 runpath_var=$runpath_var
20900
20901 # This is the shared library path variable.
20902 shlibpath_var=$shlibpath_var
20903
20904 # Is shlibpath searched before the hard-coded library search path?
20905 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20906
20907 # How to hardcode a shared library path into an executable.
20908 hardcode_action=$hardcode_action_RC
20909
20910 # Whether we should hardcode library paths into libraries.
20911 hardcode_into_libs=$hardcode_into_libs
20912
20913 # Flag to hardcode \$libdir into a binary during linking.
20914 # This must work even if \$libdir does not exist.
20915 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20916
20917 # If ld is used when linking, flag to hardcode \$libdir into
20918 # a binary during linking. This must work even if \$libdir does
20919 # not exist.
20920 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20921
20922 # Whether we need a single -rpath flag with a separated argument.
20923 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20924
20925 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20926 # resulting binary.
20927 hardcode_direct=$hardcode_direct_RC
20928
20929 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20930 # resulting binary.
20931 hardcode_minus_L=$hardcode_minus_L_RC
20932
20933 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20934 # the resulting binary.
20935 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20936
20937 # Set to yes if building a shared library automatically hardcodes DIR into the library
20938 # and all subsequent libraries and executables linked against it.
20939 hardcode_automatic=$hardcode_automatic_RC
20940
20941 # Variables whose values should be saved in libtool wrapper scripts and
20942 # restored at relink time.
20943 variables_saved_for_relink="$variables_saved_for_relink"
20944
20945 # Whether libtool must link a program against all its dependency libraries.
20946 link_all_deplibs=$link_all_deplibs_RC
20947
20948 # Compile-time system search path for libraries
20949 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20950
20951 # Run-time system search path for libraries
20952 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20953
20954 # Fix the shell variable \$srcfile for the compiler.
20955 fix_srcfile_path=$lt_fix_srcfile_path
20956
20957 # Set to yes if exported symbols are required.
20958 always_export_symbols=$always_export_symbols_RC
20959
20960 # The commands to list exported symbols.
20961 export_symbols_cmds=$lt_export_symbols_cmds_RC
20962
20963 # The commands to extract the exported symbol list from a shared archive.
20964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20965
20966 # Symbols that should not be listed in the preloaded symbols.
20967 exclude_expsyms=$lt_exclude_expsyms_RC
20968
20969 # Symbols that must always be exported.
20970 include_expsyms=$lt_include_expsyms_RC
20971
20972 # ### END LIBTOOL TAG CONFIG: $tagname
20973
20974 __EOF__
20975
20976
20977 else
20978 # If there is no Makefile yet, we rely on a make rule to execute
20979 # `config.status --recheck' to rerun these tests and create the
20980 # libtool script then.
20981 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20982 if test -f "$ltmain_in"; then
20983 test -f Makefile && make "$ltmain"
20984 fi
20985 fi
20986
20987
20988 ac_ext=c
20989 ac_cpp='$CPP $CPPFLAGS'
20990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20993
20994 CC="$lt_save_CC"
20995
20996 ;;
20997
20998 *)
20999 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21000 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21001 { (exit 1); exit 1; }; }
21002 ;;
21003 esac
21004
21005 # Append the new tag name to the list of available tags.
21006 if test -n "$tagname" ; then
21007 available_tags="$available_tags $tagname"
21008 fi
21009 fi
21010 done
21011 IFS="$lt_save_ifs"
21012
21013 # Now substitute the updated list of available tags.
21014 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21015 mv "${ofile}T" "$ofile"
21016 chmod +x "$ofile"
21017 else
21018 rm -f "${ofile}T"
21019 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21020 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21021 { (exit 1); exit 1; }; }
21022 fi
21023 fi
21024
21025
21026
21027 # This can be used to rebuild libtool when needed
21028 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21029
21030 # Always use our own libtool.
21031 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21032
21033 # Prevent multiple expansion
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055 LIBTOOL="$LIBTOOL --silent"
21056
21057 subdirs="$subdirs libltdl"
21058
21059
21060
21061 case "$host_os" in
21062 *cygwin*)
21063
21064 cat >>confdefs.h <<_ACEOF
21065 #define CYGWIN 1
21066 _ACEOF
21067
21068
21069 cat >>confdefs.h <<_ACEOF
21070 #define WINDOWS 1
21071 _ACEOF
21072
21073 ;;
21074 *mingw*)
21075
21076 cat >>confdefs.h <<_ACEOF
21077 #define MINGW 1
21078 _ACEOF
21079
21080
21081 cat >>confdefs.h <<_ACEOF
21082 #define WINDOWS 1
21083 _ACEOF
21084
21085 if test "${ac_cv_header_windows_h+set}" = set; then
21086 { echo "$as_me:$LINENO: checking for windows.h" >&5
21087 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21088 if test "${ac_cv_header_windows_h+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21090 fi
21091 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21092 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21093 else
21094 # Is the header compilable?
21095 { echo "$as_me:$LINENO: checking windows.h usability" >&5
21096 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
21097 cat >conftest.$ac_ext <<_ACEOF
21098 /* confdefs.h. */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 $ac_includes_default
21104 #include <windows.h>
21105 _ACEOF
21106 rm -f conftest.$ac_objext
21107 if { (ac_try="$ac_compile"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21114 ac_status=$?
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 ac_header_compiler=yes
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_header_compiler=no
21129 fi
21130
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21133 echo "${ECHO_T}$ac_header_compiler" >&6; }
21134
21135 # Is the header present?
21136 { echo "$as_me:$LINENO: checking windows.h presence" >&5
21137 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
21138 cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h. */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 #include <windows.h>
21145 _ACEOF
21146 if { (ac_try="$ac_cpp conftest.$ac_ext"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } >/dev/null && {
21159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 }; then
21162 ac_header_preproc=yes
21163 else
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 ac_header_preproc=no
21168 fi
21169
21170 rm -f conftest.err conftest.$ac_ext
21171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172 echo "${ECHO_T}$ac_header_preproc" >&6; }
21173
21174 # So? What about this header?
21175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21176 yes:no: )
21177 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21178 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21180 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21181 ac_header_preproc=yes
21182 ;;
21183 no:yes:* )
21184 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21185 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21187 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21189 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21191 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21193 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21195 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21196
21197 ;;
21198 esac
21199 { echo "$as_me:$LINENO: checking for windows.h" >&5
21200 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21201 if test "${ac_cv_header_windows_h+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204 ac_cv_header_windows_h=$ac_header_preproc
21205 fi
21206 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21207 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21208
21209 fi
21210 if test $ac_cv_header_windows_h = yes; then
21211 :
21212 else
21213 { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
21214 echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
21215 { (exit 1); exit 1; }; }
21216 fi
21217
21218
21219 if test "${ac_cv_header_winsock2_h+set}" = set; then
21220 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21221 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21222 if test "${ac_cv_header_winsock2_h+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224 fi
21225 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21226 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21227 else
21228 # Is the header compilable?
21229 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
21230 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
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 #include <winsock2.h>
21239 _ACEOF
21240 rm -f conftest.$ac_objext
21241 if { (ac_try="$ac_compile"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
21248 ac_status=$?
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest.$ac_objext; then
21257 ac_header_compiler=yes
21258 else
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 ac_header_compiler=no
21263 fi
21264
21265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21267 echo "${ECHO_T}$ac_header_compiler" >&6; }
21268
21269 # Is the header present?
21270 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
21271 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h. */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 #include <winsock2.h>
21279 _ACEOF
21280 if { (ac_try="$ac_cpp conftest.$ac_ext"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21287 ac_status=$?
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } >/dev/null && {
21293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 }; then
21296 ac_header_preproc=yes
21297 else
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21300
21301 ac_header_preproc=no
21302 fi
21303
21304 rm -f conftest.err conftest.$ac_ext
21305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21306 echo "${ECHO_T}$ac_header_preproc" >&6; }
21307
21308 # So? What about this header?
21309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21310 yes:no: )
21311 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
21312 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
21314 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
21315 ac_header_preproc=yes
21316 ;;
21317 no:yes:* )
21318 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
21319 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
21321 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
21323 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
21325 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
21327 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
21329 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
21330
21331 ;;
21332 esac
21333 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21334 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21335 if test "${ac_cv_header_winsock2_h+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338 ac_cv_header_winsock2_h=$ac_header_preproc
21339 fi
21340 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21341 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21342
21343 fi
21344 if test $ac_cv_header_winsock2_h = yes; then
21345 :
21346 else
21347 { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
21348 echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
21349 { (exit 1); exit 1; }; }
21350 fi
21351
21352
21353 LIBS="$LIBS -lws2_32 -liphlpapi"
21354 is_mingw="yes"
21355 ;;
21356 *interix*)
21357 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
21358 ;;
21359 *solaris*|*sunos*)
21360 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -D__EXTENSIONS__"
21361 ;;
21362 *)
21363 ;;
21364 esac
21365
21366 if test "$is_mingw" = "yes"; then
21367 MINGW_TRUE=
21368 MINGW_FALSE='#'
21369 else
21370 MINGW_TRUE='#'
21371 MINGW_FALSE=
21372 fi
21373
21374
21375
21376 # backwards support for IRC_CFLAGS
21377 CFLAGS="$IRC_CFLAGS $CFLAGS -O0 -Wall"
21378
21379 if test "$libexecdir" = '${exec_prefix}/libexec' &&
21380 test "$localstatedir" = '${prefix}/var'; then
21381 libexecdir='${bindir}'
21382 localstatedir='${prefix}'
21383 fi
21384
21385 { echo "$as_me:$LINENO: checking for pid_t" >&5
21386 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21387 if test "${ac_cv_type_pid_t+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 else
21390 cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h. */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 $ac_includes_default
21397 typedef pid_t ac__type_new_;
21398 int
21399 main ()
21400 {
21401 if ((ac__type_new_ *) 0)
21402 return 0;
21403 if (sizeof (ac__type_new_))
21404 return 0;
21405 ;
21406 return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_compile") 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && {
21423 test -z "$ac_c_werror_flag" ||
21424 test ! -s conftest.err
21425 } && test -s conftest.$ac_objext; then
21426 ac_cv_type_pid_t=yes
21427 else
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ac_cv_type_pid_t=no
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 fi
21436 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21437 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21438 if test $ac_cv_type_pid_t = yes; then
21439 :
21440 else
21441
21442 cat >>confdefs.h <<_ACEOF
21443 #define pid_t int
21444 _ACEOF
21445
21446 fi
21447
21448 { echo "$as_me:$LINENO: checking for size_t" >&5
21449 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21450 if test "${ac_cv_type_size_t+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h. */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 $ac_includes_default
21460 typedef size_t ac__type_new_;
21461 int
21462 main ()
21463 {
21464 if ((ac__type_new_ *) 0)
21465 return 0;
21466 if (sizeof (ac__type_new_))
21467 return 0;
21468 ;
21469 return 0;
21470 }
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (ac_try="$ac_compile"
21474 case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21477 esac
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_compile") 2>conftest.er1
21480 ac_status=$?
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } && {
21486 test -z "$ac_c_werror_flag" ||
21487 test ! -s conftest.err
21488 } && test -s conftest.$ac_objext; then
21489 ac_cv_type_size_t=yes
21490 else
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21493
21494 ac_cv_type_size_t=no
21495 fi
21496
21497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21498 fi
21499 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21500 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21501 if test $ac_cv_type_size_t = yes; then
21502 :
21503 else
21504
21505 cat >>confdefs.h <<_ACEOF
21506 #define size_t unsigned int
21507 _ACEOF
21508
21509 fi
21510
21511 { echo "$as_me:$LINENO: checking for ssize_t" >&5
21512 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21513 if test "${ac_cv_type_ssize_t+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 $ac_includes_default
21523 typedef ssize_t ac__type_new_;
21524 int
21525 main ()
21526 {
21527 if ((ac__type_new_ *) 0)
21528 return 0;
21529 if (sizeof (ac__type_new_))
21530 return 0;
21531 ;
21532 return 0;
21533 }
21534 _ACEOF
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_c_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest.$ac_objext; then
21552 ac_cv_type_ssize_t=yes
21553 else
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21556
21557 ac_cv_type_ssize_t=no
21558 fi
21559
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561 fi
21562 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21563 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
21564 if test $ac_cv_type_ssize_t = yes; then
21565 :
21566 else
21567
21568 cat >>confdefs.h <<_ACEOF
21569 #define ssize_t int
21570 _ACEOF
21571
21572 fi
21573
21574 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21575 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21576 if test "${ac_cv_type_uid_t+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <sys/types.h>
21586
21587 _ACEOF
21588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21589 $EGREP "uid_t" >/dev/null 2>&1; then
21590 ac_cv_type_uid_t=yes
21591 else
21592 ac_cv_type_uid_t=no
21593 fi
21594 rm -f conftest*
21595
21596 fi
21597 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21598 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21599 if test $ac_cv_type_uid_t = no; then
21600
21601 cat >>confdefs.h <<\_ACEOF
21602 #define uid_t int
21603 _ACEOF
21604
21605
21606 cat >>confdefs.h <<\_ACEOF
21607 #define gid_t int
21608 _ACEOF
21609
21610 fi
21611
21612
21613
21614 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21615 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21616 if test "${ac_cv_header_stdc+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 else
21619 cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h. */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 #include <stdlib.h>
21626 #include <stdarg.h>
21627 #include <string.h>
21628 #include <float.h>
21629
21630 int
21631 main ()
21632 {
21633
21634 ;
21635 return 0;
21636 }
21637 _ACEOF
21638 rm -f conftest.$ac_objext
21639 if { (ac_try="$ac_compile"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_compile") 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest.$ac_objext; then
21655 ac_cv_header_stdc=yes
21656 else
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21659
21660 ac_cv_header_stdc=no
21661 fi
21662
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664
21665 if test $ac_cv_header_stdc = yes; then
21666 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 #include <string.h>
21674
21675 _ACEOF
21676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21677 $EGREP "memchr" >/dev/null 2>&1; then
21678 :
21679 else
21680 ac_cv_header_stdc=no
21681 fi
21682 rm -f conftest*
21683
21684 fi
21685
21686 if test $ac_cv_header_stdc = yes; then
21687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21688 cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h. */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21694 #include <stdlib.h>
21695
21696 _ACEOF
21697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21698 $EGREP "free" >/dev/null 2>&1; then
21699 :
21700 else
21701 ac_cv_header_stdc=no
21702 fi
21703 rm -f conftest*
21704
21705 fi
21706
21707 if test $ac_cv_header_stdc = yes; then
21708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21709 if test "$cross_compiling" = yes; then
21710 :
21711 else
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 #include <ctype.h>
21719 #include <stdlib.h>
21720 #if ((' ' & 0x0FF) == 0x020)
21721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21723 #else
21724 # define ISLOWER(c) \
21725 (('a' <= (c) && (c) <= 'i') \
21726 || ('j' <= (c) && (c) <= 'r') \
21727 || ('s' <= (c) && (c) <= 'z'))
21728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21729 #endif
21730
21731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21732 int
21733 main ()
21734 {
21735 int i;
21736 for (i = 0; i < 256; i++)
21737 if (XOR (islower (i), ISLOWER (i))
21738 || toupper (i) != TOUPPER (i))
21739 return 2;
21740 return 0;
21741 }
21742 _ACEOF
21743 rm -f conftest$ac_exeext
21744 if { (ac_try="$ac_link"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21748 esac
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750 (eval "$ac_link") 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21754 { (case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_try") 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21763 :
21764 else
21765 echo "$as_me: program exited with status $ac_status" >&5
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769 ( exit $ac_status )
21770 ac_cv_header_stdc=no
21771 fi
21772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21773 fi
21774
21775
21776 fi
21777 fi
21778 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21779 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21780 if test $ac_cv_header_stdc = yes; then
21781
21782 cat >>confdefs.h <<\_ACEOF
21783 #define STDC_HEADERS 1
21784 _ACEOF
21785
21786 fi
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808 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
21809 do
21810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 fi
21817 ac_res=`eval echo '${'$as_ac_Header'}'`
21818 { echo "$as_me:$LINENO: result: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21820 else
21821 # Is the header compilable?
21822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21824 cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h. */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 $ac_includes_default
21831 #include <$ac_header>
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_compile") 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && {
21847 test -z "$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 } && test -s conftest.$ac_objext; then
21850 ac_header_compiler=yes
21851 else
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855 ac_header_compiler=no
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21860 echo "${ECHO_T}$ac_header_compiler" >&6; }
21861
21862 # Is the header present?
21863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h. */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <$ac_header>
21872 _ACEOF
21873 if { (ac_try="$ac_cpp conftest.$ac_ext"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21877 esac
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } >/dev/null && {
21886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21887 test ! -s conftest.err
21888 }; then
21889 ac_header_preproc=yes
21890 else
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21893
21894 ac_header_preproc=no
21895 fi
21896
21897 rm -f conftest.err conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21899 echo "${ECHO_T}$ac_header_preproc" >&6; }
21900
21901 # So? What about this header?
21902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21903 yes:no: )
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21908 ac_header_preproc=yes
21909 ;;
21910 no:yes:* )
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21923
21924 ;;
21925 esac
21926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21929 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 else
21931 eval "$as_ac_Header=\$ac_header_preproc"
21932 fi
21933 ac_res=`eval echo '${'$as_ac_Header'}'`
21934 { echo "$as_me:$LINENO: result: $ac_res" >&5
21935 echo "${ECHO_T}$ac_res" >&6; }
21936
21937 fi
21938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21941 _ACEOF
21942
21943 fi
21944
21945 done
21946
21947 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21948 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21949 if test "${ac_cv_header_time+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 #include <sys/types.h>
21959 #include <sys/time.h>
21960 #include <time.h>
21961
21962 int
21963 main ()
21964 {
21965 if ((struct tm *) 0)
21966 return 0;
21967 ;
21968 return 0;
21969 }
21970 _ACEOF
21971 rm -f conftest.$ac_objext
21972 if { (ac_try="$ac_compile"
21973 case "(($ac_try" in
21974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975 *) ac_try_echo=$ac_try;;
21976 esac
21977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978 (eval "$ac_compile") 2>conftest.er1
21979 ac_status=$?
21980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } && {
21985 test -z "$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21987 } && test -s conftest.$ac_objext; then
21988 ac_cv_header_time=yes
21989 else
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993 ac_cv_header_time=no
21994 fi
21995
21996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21997 fi
21998 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21999 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22000 if test $ac_cv_header_time = yes; then
22001
22002 cat >>confdefs.h <<\_ACEOF
22003 #define TIME_WITH_SYS_TIME 1
22004 _ACEOF
22005
22006 fi
22007
22008
22009
22010 { echo "$as_me:$LINENO: checking for library containing socket" >&5
22011 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
22012 if test "${ac_cv_search_socket+set}" = set; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22014 else
22015 ac_func_search_save_LIBS=$LIBS
22016 cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h. */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22022
22023 /* Override any GCC internal prototype to avoid an error.
22024 Use char because int might match the return type of a GCC
22025 builtin and then its argument prototype would still apply. */
22026 #ifdef __cplusplus
22027 extern "C"
22028 #endif
22029 char socket ();
22030 int
22031 main ()
22032 {
22033 return socket ();
22034 ;
22035 return 0;
22036 }
22037 _ACEOF
22038 for ac_lib in '' socket; do
22039 if test -z "$ac_lib"; then
22040 ac_res="none required"
22041 else
22042 ac_res=-l$ac_lib
22043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22044 fi
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (ac_try="$ac_link"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_link") 2>conftest.er1
22053 ac_status=$?
22054 grep -v '^ *+' conftest.er1 >conftest.err
22055 rm -f conftest.er1
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest$ac_exeext &&
22062 $as_test_x conftest$ac_exeext; then
22063 ac_cv_search_socket=$ac_res
22064 else
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068
22069 fi
22070
22071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22072 conftest$ac_exeext
22073 if test "${ac_cv_search_socket+set}" = set; then
22074 break
22075 fi
22076 done
22077 if test "${ac_cv_search_socket+set}" = set; then
22078 :
22079 else
22080 ac_cv_search_socket=no
22081 fi
22082 rm conftest.$ac_ext
22083 LIBS=$ac_func_search_save_LIBS
22084 fi
22085 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
22086 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
22087 ac_res=$ac_cv_search_socket
22088 if test "$ac_res" != no; then
22089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22090
22091 fi
22092
22093
22094
22095 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22096 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22097 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100 cat >conftest.$ac_ext <<_ACEOF
22101 /* confdefs.h. */
22102 _ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22106
22107 #ifdef HAVE_SYS_TYPES_H
22108 #include <sys/types.h>
22109 #endif
22110 #ifdef HAVE_SYS_SOCKET_H
22111 #include <sys/socket.h>
22112 #endif
22113 #ifdef HAVE_WINSOCK2_H
22114 #include <winsock2.h>
22115 #endif
22116
22117
22118 int
22119 main ()
22120 {
22121 static struct sockaddr ac_aggr;
22122 if (ac_aggr.sa_len)
22123 return 0;
22124 ;
22125 return 0;
22126 }
22127 _ACEOF
22128 rm -f conftest.$ac_objext
22129 if { (ac_try="$ac_compile"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_compile") 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest.$ac_objext; then
22145 ac_cv_member_struct_sockaddr_sa_len=yes
22146 else
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22149
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
22157 #ifdef HAVE_SYS_TYPES_H
22158 #include <sys/types.h>
22159 #endif
22160 #ifdef HAVE_SYS_SOCKET_H
22161 #include <sys/socket.h>
22162 #endif
22163 #ifdef HAVE_WINSOCK2_H
22164 #include <winsock2.h>
22165 #endif
22166
22167
22168 int
22169 main ()
22170 {
22171 static struct sockaddr ac_aggr;
22172 if (sizeof ac_aggr.sa_len)
22173 return 0;
22174 ;
22175 return 0;
22176 }
22177 _ACEOF
22178 rm -f conftest.$ac_objext
22179 if { (ac_try="$ac_compile"
22180 case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_compile") 2>conftest.er1
22186 ac_status=$?
22187 grep -v '^ *+' conftest.er1 >conftest.err
22188 rm -f conftest.er1
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } && {
22192 test -z "$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22194 } && test -s conftest.$ac_objext; then
22195 ac_cv_member_struct_sockaddr_sa_len=yes
22196 else
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200 ac_cv_member_struct_sockaddr_sa_len=no
22201 fi
22202
22203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 fi
22205
22206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207 fi
22208 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22209 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22210 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22211
22212 cat >>confdefs.h <<\_ACEOF
22213 #define SOCKADDR_IN_HAS_LEN 1
22214 _ACEOF
22215
22216 fi
22217
22218
22219 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22220 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22221 if test "${ac_cv_type_socklen_t+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22224 cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h. */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230 #include <sys/types.h>
22231 #include <sys/socket.h>
22232
22233 typedef socklen_t ac__type_new_;
22234 int
22235 main ()
22236 {
22237 if ((ac__type_new_ *) 0)
22238 return 0;
22239 if (sizeof (ac__type_new_))
22240 return 0;
22241 ;
22242 return 0;
22243 }
22244 _ACEOF
22245 rm -f conftest.$ac_objext
22246 if { (ac_try="$ac_compile"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22250 esac
22251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22252 (eval "$ac_compile") 2>conftest.er1
22253 ac_status=$?
22254 grep -v '^ *+' conftest.er1 >conftest.err
22255 rm -f conftest.er1
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } && {
22259 test -z "$ac_c_werror_flag" ||
22260 test ! -s conftest.err
22261 } && test -s conftest.$ac_objext; then
22262 ac_cv_type_socklen_t=yes
22263 else
22264 echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22266
22267 ac_cv_type_socklen_t=no
22268 fi
22269
22270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22271 fi
22272 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22273 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22274 if test $ac_cv_type_socklen_t = yes; then
22275 rb_socklen_t=socklen_t
22276 else
22277
22278 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22279 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
22280 if test "${rb_socklen_t+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283
22284 # Systems have either "struct sockaddr *" or
22285 # "void *" as the second argument to getpeername
22286 rb_socklen_t=
22287 for arg2 in "struct sockaddr" void; do
22288 for t in int size_t unsigned long "unsigned long"; do
22289 cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h. */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295
22296 #include <sys/types.h>
22297 #include <sys/socket.h>
22298
22299 int getpeername (int, $arg2 *, $t *);
22300
22301 int
22302 main ()
22303 {
22304
22305 $t len;
22306 getpeername(0,0,&len);
22307
22308 ;
22309 return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_compile") 2>conftest.er1
22320 ac_status=$?
22321 grep -v '^ *+' conftest.er1 >conftest.err
22322 rm -f conftest.er1
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } && {
22326 test -z "$ac_c_werror_flag" ||
22327 test ! -s conftest.err
22328 } && test -s conftest.$ac_objext; then
22329
22330 rb_socklen_t="$t"
22331 break
22332
22333 else
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22336
22337
22338 fi
22339
22340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22341 done
22342 done
22343
22344 if test "x$rb_socklen_t" = x; then
22345 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
22346 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
22347 { (exit 1); exit 1; }; }
22348 fi
22349
22350 fi
22351
22352 { echo "$as_me:$LINENO: result: $rb_socklen_t" >&5
22353 echo "${ECHO_T}$rb_socklen_t" >&6; }
22354 fi
22355
22356
22357
22358
22359
22360
22361 # Check whether --enable-ipv6 was given.
22362 if test "${enable_ipv6+set}" = set; then
22363 enableval=$enable_ipv6; ipv6=$enableval
22364 else
22365 ipv6=yes
22366 fi
22367
22368
22369 if test x$ipv6 != xyes; then
22370 have_v6="no"
22371 else
22372
22373 have_v6=yes
22374
22375 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
22376 echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
22377 if test "${rb_cv_proto_inet6+set}" = set; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
22379 else
22380
22381 cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h. */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22387
22388 #include <sys/types.h>
22389 #include <sys/socket.h>
22390
22391 #ifndef PF_INET6
22392 #error Missing PF_INET6
22393 #endif
22394 #ifndef AF_INET6
22395 #error Mlssing AF_INET6
22396 #endif
22397
22398 _ACEOF
22399 if { (ac_try="$ac_cpp conftest.$ac_ext"
22400 case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22403 esac
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22406 ac_status=$?
22407 grep -v '^ *+' conftest.er1 >conftest.err
22408 rm -f conftest.er1
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } >/dev/null && {
22412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22413 test ! -s conftest.err
22414 }; then
22415
22416 rb_cv_proto_inet6=yes
22417
22418 else
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422
22423 rb_cv_proto_inet6=no
22424
22425 fi
22426
22427 rm -f conftest.err conftest.$ac_ext
22428
22429 fi
22430 { echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
22431 echo "${ECHO_T}$rb_cv_proto_inet6" >&6; }
22432
22433 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
22434
22435 else :
22436
22437 { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
22438 echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
22439 have_v6=no
22440
22441 fi
22442
22443
22444 if test "X$have_v6" = "Xyes"; then
22445
22446 rb_have_sockaddr_in6=
22447 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22448 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
22449 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22450 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 else
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h. */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458
22459 #include <sys/types.h>
22460 #include <sys/socket.h>
22461 #include <netinet/in.h>
22462
22463
22464 typedef struct sockaddr_in6 ac__type_new_;
22465 int
22466 main ()
22467 {
22468 if ((ac__type_new_ *) 0)
22469 return 0;
22470 if (sizeof (ac__type_new_))
22471 return 0;
22472 ;
22473 return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22481 esac
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22484 ac_status=$?
22485 grep -v '^ *+' conftest.er1 >conftest.err
22486 rm -f conftest.er1
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } && {
22490 test -z "$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22492 } && test -s conftest.$ac_objext; then
22493 ac_cv_type_struct_sockaddr_in6=yes
22494 else
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 ac_cv_type_struct_sockaddr_in6=no
22499 fi
22500
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 fi
22503 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
22504 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
22505 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
22506
22507 cat >>confdefs.h <<_ACEOF
22508 #define HAVE_STRUCT_SOCKADDR_IN6 1
22509 _ACEOF
22510
22511
22512 rb_have_sockaddr_in6=yes
22513
22514 else
22515
22516 rb_have_sockaddr_in6=no
22517
22518 fi
22519
22520
22521 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
22522
22523 else :
22524
22525 { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
22526 echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
22527 have_v6=no
22528
22529 fi
22530
22531 fi
22532
22533 fi
22534
22535 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22536 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
22537 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540 cat >conftest.$ac_ext <<_ACEOF
22541 /* confdefs.h. */
22542 _ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h. */
22546
22547 #include <sys/types.h>
22548 #include <sys/socket.h>
22549
22550
22551 typedef struct sockaddr_storage ac__type_new_;
22552 int
22553 main ()
22554 {
22555 if ((ac__type_new_ *) 0)
22556 return 0;
22557 if (sizeof (ac__type_new_))
22558 return 0;
22559 ;
22560 return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext
22564 if { (ac_try="$ac_compile"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_compile") 2>conftest.er1
22571 ac_status=$?
22572 grep -v '^ *+' conftest.er1 >conftest.err
22573 rm -f conftest.er1
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } && {
22577 test -z "$ac_c_werror_flag" ||
22578 test ! -s conftest.err
22579 } && test -s conftest.$ac_objext; then
22580 ac_cv_type_struct_sockaddr_storage=yes
22581 else
22582 echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585 ac_cv_type_struct_sockaddr_storage=no
22586 fi
22587
22588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22589 fi
22590 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22591 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
22592 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22593
22594 cat >>confdefs.h <<_ACEOF
22595 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22596 _ACEOF
22597
22598
22599 rb_have_sockaddr_storage=yes
22600
22601 fi
22602
22603
22604
22605 save_LIBS=$LIBS
22606 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22607 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22608 if test "${ac_cv_search_crypt+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22611 ac_func_search_save_LIBS=$LIBS
22612 cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h. */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618
22619 /* Override any GCC internal prototype to avoid an error.
22620 Use char because int might match the return type of a GCC
22621 builtin and then its argument prototype would still apply. */
22622 #ifdef __cplusplus
22623 extern "C"
22624 #endif
22625 char crypt ();
22626 int
22627 main ()
22628 {
22629 return crypt ();
22630 ;
22631 return 0;
22632 }
22633 _ACEOF
22634 for ac_lib in '' crypt descrypt; do
22635 if test -z "$ac_lib"; then
22636 ac_res="none required"
22637 else
22638 ac_res=-l$ac_lib
22639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22640 fi
22641 rm -f conftest.$ac_objext conftest$ac_exeext
22642 if { (ac_try="$ac_link"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22646 esac
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648 (eval "$ac_link") 2>conftest.er1
22649 ac_status=$?
22650 grep -v '^ *+' conftest.er1 >conftest.err
22651 rm -f conftest.er1
22652 cat conftest.err >&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest$ac_exeext &&
22658 $as_test_x conftest$ac_exeext; then
22659 ac_cv_search_crypt=$ac_res
22660 else
22661 echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22663
22664
22665 fi
22666
22667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22668 conftest$ac_exeext
22669 if test "${ac_cv_search_crypt+set}" = set; then
22670 break
22671 fi
22672 done
22673 if test "${ac_cv_search_crypt+set}" = set; then
22674 :
22675 else
22676 ac_cv_search_crypt=no
22677 fi
22678 rm conftest.$ac_ext
22679 LIBS=$ac_func_search_save_LIBS
22680 fi
22681 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22682 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22683 ac_res=$ac_cv_search_crypt
22684 if test "$ac_res" != no; then
22685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22686
22687 fi
22688
22689 LIBS=$save_LIBS
22690
22691 CRYPT_LIB=$ac_cv_search_crypt
22692
22693 if test "$CRYPT_LIB" = "none required"; then
22694 unset CRYPT_LIB
22695 elif test "$CRYPT_LIB" = no; then
22696 need_crypt=yes;
22697
22698 cat >>confdefs.h <<\_ACEOF
22699 #define NEED_CRYPT 1
22700 _ACEOF
22701
22702 unset CRYPT_LIB
22703 fi
22704
22705 if test x"$need_crypt" = "xyes"; then
22706 NEED_CRYPT_TRUE=
22707 NEED_CRYPT_FALSE='#'
22708 else
22709 NEED_CRYPT_TRUE='#'
22710 NEED_CRYPT_FALSE=
22711 fi
22712
22713
22714
22715
22716
22717 if test "${ac_cv_header_stdarg_h+set}" = set; then
22718 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
22719 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
22720 if test "${ac_cv_header_stdarg_h+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 fi
22723 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
22724 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
22725 else
22726 # Is the header compilable?
22727 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
22728 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
22729 cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h. */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 $ac_includes_default
22736 #include <stdarg.h>
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743 esac
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22746 ac_status=$?
22747 grep -v '^ *+' conftest.er1 >conftest.err
22748 rm -f conftest.er1
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22755 ac_header_compiler=yes
22756 else
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22759
22760 ac_header_compiler=no
22761 fi
22762
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22765 echo "${ECHO_T}$ac_header_compiler" >&6; }
22766
22767 # Is the header present?
22768 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
22769 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
22770 cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h. */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 #include <stdarg.h>
22777 _ACEOF
22778 if { (ac_try="$ac_cpp conftest.$ac_ext"
22779 case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22782 esac
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } >/dev/null && {
22791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 }; then
22794 ac_header_preproc=yes
22795 else
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ac_header_preproc=no
22800 fi
22801
22802 rm -f conftest.err conftest.$ac_ext
22803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22804 echo "${ECHO_T}$ac_header_preproc" >&6; }
22805
22806 # So? What about this header?
22807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22808 yes:no: )
22809 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
22810 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22811 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
22812 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
22813 ac_header_preproc=yes
22814 ;;
22815 no:yes:* )
22816 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
22817 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
22818 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
22819 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
22820 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
22821 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
22823 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
22824 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
22825 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
22826 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
22827 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
22828
22829 ;;
22830 esac
22831 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
22832 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
22833 if test "${ac_cv_header_stdarg_h+set}" = set; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 else
22836 ac_cv_header_stdarg_h=$ac_header_preproc
22837 fi
22838 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
22839 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
22840
22841 fi
22842 if test $ac_cv_header_stdarg_h = yes; then
22843 :
22844 else
22845 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
22846 echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
22847 { (exit 1); exit 1; }; }
22848 fi
22849
22850
22851
22852 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
22853 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22854 if test "${ac_cv_type_sa_family_t+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857 cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h. */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 #include <sys/types.h>
22864 #include <sys/socket.h>
22865
22866 typedef sa_family_t ac__type_new_;
22867 int
22868 main ()
22869 {
22870 if ((ac__type_new_ *) 0)
22871 return 0;
22872 if (sizeof (ac__type_new_))
22873 return 0;
22874 ;
22875 return 0;
22876 }
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22883 esac
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_compile") 2>conftest.er1
22886 ac_status=$?
22887 grep -v '^ *+' conftest.er1 >conftest.err
22888 rm -f conftest.er1
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && {
22892 test -z "$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 } && test -s conftest.$ac_objext; then
22895 ac_cv_type_sa_family_t=yes
22896 else
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900 ac_cv_type_sa_family_t=no
22901 fi
22902
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 fi
22905 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
22906 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
22907 if test $ac_cv_type_sa_family_t = yes; then
22908 :
22909 else
22910
22911 cat >>confdefs.h <<\_ACEOF
22912 #define sa_family_t u_int16_t
22913 _ACEOF
22914
22915 fi
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939 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 arc4random getrusage
22940 do
22941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
22946 else
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h. */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22955 #define $ac_func innocuous_$ac_func
22956
22957 /* System header to define __stub macros and hopefully few prototypes,
22958 which can conflict with char $ac_func (); below.
22959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22960 <limits.h> exists even on freestanding compilers. */
22961
22962 #ifdef __STDC__
22963 # include <limits.h>
22964 #else
22965 # include <assert.h>
22966 #endif
22967
22968 #undef $ac_func
22969
22970 /* Override any GCC internal prototype to avoid an error.
22971 Use char because int might match the return type of a GCC
22972 builtin and then its argument prototype would still apply. */
22973 #ifdef __cplusplus
22974 extern "C"
22975 #endif
22976 char $ac_func ();
22977 /* The GNU C library defines this for functions which it implements
22978 to always fail with ENOSYS. Some functions are actually named
22979 something starting with __ and the normal name is an alias. */
22980 #if defined __stub_$ac_func || defined __stub___$ac_func
22981 choke me
22982 #endif
22983
22984 int
22985 main ()
22986 {
22987 return $ac_func ();
22988 ;
22989 return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext conftest$ac_exeext
22993 if { (ac_try="$ac_link"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_link") 2>conftest.er1
23000 ac_status=$?
23001 grep -v '^ *+' conftest.er1 >conftest.err
23002 rm -f conftest.er1
23003 cat conftest.err >&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } && {
23006 test -z "$ac_c_werror_flag" ||
23007 test ! -s conftest.err
23008 } && test -s conftest$ac_exeext &&
23009 $as_test_x conftest$ac_exeext; then
23010 eval "$as_ac_var=yes"
23011 else
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23014
23015 eval "$as_ac_var=no"
23016 fi
23017
23018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23019 conftest$ac_exeext conftest.$ac_ext
23020 fi
23021 ac_res=`eval echo '${'$as_ac_var'}'`
23022 { echo "$as_me:$LINENO: result: $ac_res" >&5
23023 echo "${ECHO_T}$ac_res" >&6; }
23024 if test `eval echo '${'$as_ac_var'}'` = yes; then
23025 cat >>confdefs.h <<_ACEOF
23026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23027 _ACEOF
23028
23029 fi
23030 done
23031
23032
23033 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
23034 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
23035 if test "${ac_cv_search_nanosleep+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 else
23038 ac_func_search_save_LIBS=$LIBS
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h. */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045
23046 /* Override any GCC internal prototype to avoid an error.
23047 Use char because int might match the return type of a GCC
23048 builtin and then its argument prototype would still apply. */
23049 #ifdef __cplusplus
23050 extern "C"
23051 #endif
23052 char nanosleep ();
23053 int
23054 main ()
23055 {
23056 return nanosleep ();
23057 ;
23058 return 0;
23059 }
23060 _ACEOF
23061 for ac_lib in '' rt posix4; do
23062 if test -z "$ac_lib"; then
23063 ac_res="none required"
23064 else
23065 ac_res=-l$ac_lib
23066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23067 fi
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (ac_try="$ac_link"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_link") 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest$ac_exeext &&
23085 $as_test_x conftest$ac_exeext; then
23086 ac_cv_search_nanosleep=$ac_res
23087 else
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091
23092 fi
23093
23094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23095 conftest$ac_exeext
23096 if test "${ac_cv_search_nanosleep+set}" = set; then
23097 break
23098 fi
23099 done
23100 if test "${ac_cv_search_nanosleep+set}" = set; then
23101 :
23102 else
23103 ac_cv_search_nanosleep=no
23104 fi
23105 rm conftest.$ac_ext
23106 LIBS=$ac_func_search_save_LIBS
23107 fi
23108 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
23109 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
23110 ac_res=$ac_cv_search_nanosleep
23111 if test "$ac_res" != no; then
23112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23113
23114 cat >>confdefs.h <<\_ACEOF
23115 #define HAVE_NANOSLEEP 1
23116 _ACEOF
23117
23118 fi
23119
23120 { echo "$as_me:$LINENO: checking for library containing timer_create" >&5
23121 echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; }
23122 if test "${ac_cv_search_timer_create+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125 ac_func_search_save_LIBS=$LIBS
23126 cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h. */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23132
23133 /* Override any GCC internal prototype to avoid an error.
23134 Use char because int might match the return type of a GCC
23135 builtin and then its argument prototype would still apply. */
23136 #ifdef __cplusplus
23137 extern "C"
23138 #endif
23139 char timer_create ();
23140 int
23141 main ()
23142 {
23143 return timer_create ();
23144 ;
23145 return 0;
23146 }
23147 _ACEOF
23148 for ac_lib in '' rt; do
23149 if test -z "$ac_lib"; then
23150 ac_res="none required"
23151 else
23152 ac_res=-l$ac_lib
23153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23154 fi
23155 rm -f conftest.$ac_objext conftest$ac_exeext
23156 if { (ac_try="$ac_link"
23157 case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_link") 2>conftest.er1
23163 ac_status=$?
23164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } && {
23169 test -z "$ac_c_werror_flag" ||
23170 test ! -s conftest.err
23171 } && test -s conftest$ac_exeext &&
23172 $as_test_x conftest$ac_exeext; then
23173 ac_cv_search_timer_create=$ac_res
23174 else
23175 echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23177
23178
23179 fi
23180
23181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23182 conftest$ac_exeext
23183 if test "${ac_cv_search_timer_create+set}" = set; then
23184 break
23185 fi
23186 done
23187 if test "${ac_cv_search_timer_create+set}" = set; then
23188 :
23189 else
23190 ac_cv_search_timer_create=no
23191 fi
23192 rm conftest.$ac_ext
23193 LIBS=$ac_func_search_save_LIBS
23194 fi
23195 { echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
23196 echo "${ECHO_T}$ac_cv_search_timer_create" >&6; }
23197 ac_res=$ac_cv_search_timer_create
23198 if test "$ac_res" != no; then
23199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23200
23201 cat >>confdefs.h <<\_ACEOF
23202 #define HAVE_TIMER_CREATE 1
23203 _ACEOF
23204
23205 fi
23206
23207 { echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
23208 echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
23209 if test "${rb__cv_timer_create_works+set}" = set; then
23210 echo $ECHO_N "(cached) $ECHO_C" >&6
23211 else
23212 if test "$cross_compiling" = yes; then
23213 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23214 See \`config.log' for more details." >&5
23215 echo "$as_me: error: cannot run test program while cross compiling
23216 See \`config.log' for more details." >&2;}
23217 { (exit 1); exit 1; }; }
23218 else
23219 cat >conftest.$ac_ext <<_ACEOF
23220 /* confdefs.h. */
23221 _ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h. */
23225
23226 #ifdef HAVE_TIME_H
23227 #include <time.h>
23228 #endif
23229 #ifdef HAVE_SIGNAL_H
23230 #include <signal.h>
23231 #endif
23232 #ifdef HAVE_UNISTD_H
23233 #include <unistd.h>
23234 #endif
23235 int main(int argc, char *argv[])
23236 {
23237 #if HAVE_TIMER_CREATE
23238 struct sigevent ev;
23239 timer_t timer;
23240 ev.sigev_notify = SIGEV_SIGNAL;
23241 ev.sigev_signo = SIGVTALRM;
23242 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
23243 return 1;
23244 }
23245 #else
23246 return 1;
23247 #endif
23248 return 0;
23249 }
23250
23251 _ACEOF
23252 rm -f conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23257 esac
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259 (eval "$ac_link") 2>&5
23260 ac_status=$?
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23263 { (case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_try") 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; }; then
23272 rb__cv_timer_create_works=yes
23273 else
23274 echo "$as_me: program exited with status $ac_status" >&5
23275 echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23277
23278 ( exit $ac_status )
23279 rb__cv_timer_create_works=no
23280 fi
23281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23282 fi
23283
23284
23285
23286 fi
23287 { echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
23288 echo "${ECHO_T}$rb__cv_timer_create_works" >&6; }
23289 case $rb__cv_timer_create_works in
23290 yes)
23291 cat >>confdefs.h <<\_ACEOF
23292 #define USE_TIMER_CREATE 1
23293 _ACEOF
23294 ;;
23295 esac
23296
23297
23298 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23299 # for constant arguments. Useless!
23300 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23301 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23302 if test "${ac_cv_working_alloca_h+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 else
23305 cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h. */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 #include <alloca.h>
23312 int
23313 main ()
23314 {
23315 char *p = (char *) alloca (2 * sizeof (int));
23316 if (p) return 0;
23317 ;
23318 return 0;
23319 }
23320 _ACEOF
23321 rm -f conftest.$ac_objext conftest$ac_exeext
23322 if { (ac_try="$ac_link"
23323 case "(($ac_try" in
23324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325 *) ac_try_echo=$ac_try;;
23326 esac
23327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23328 (eval "$ac_link") 2>conftest.er1
23329 ac_status=$?
23330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } && {
23335 test -z "$ac_c_werror_flag" ||
23336 test ! -s conftest.err
23337 } && test -s conftest$ac_exeext &&
23338 $as_test_x conftest$ac_exeext; then
23339 ac_cv_working_alloca_h=yes
23340 else
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23343
23344 ac_cv_working_alloca_h=no
23345 fi
23346
23347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23348 conftest$ac_exeext conftest.$ac_ext
23349 fi
23350 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23351 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23352 if test $ac_cv_working_alloca_h = yes; then
23353
23354 cat >>confdefs.h <<\_ACEOF
23355 #define HAVE_ALLOCA_H 1
23356 _ACEOF
23357
23358 fi
23359
23360 { echo "$as_me:$LINENO: checking for alloca" >&5
23361 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23362 if test "${ac_cv_func_alloca_works+set}" = set; then
23363 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 else
23365 cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h. */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23371 #ifdef __GNUC__
23372 # define alloca __builtin_alloca
23373 #else
23374 # ifdef _MSC_VER
23375 # include <malloc.h>
23376 # define alloca _alloca
23377 # else
23378 # ifdef HAVE_ALLOCA_H
23379 # include <alloca.h>
23380 # else
23381 # ifdef _AIX
23382 #pragma alloca
23383 # else
23384 # ifndef alloca /* predefined by HP cc +Olibcalls */
23385 char *alloca ();
23386 # endif
23387 # endif
23388 # endif
23389 # endif
23390 #endif
23391
23392 int
23393 main ()
23394 {
23395 char *p = (char *) alloca (1);
23396 if (p) return 0;
23397 ;
23398 return 0;
23399 }
23400 _ACEOF
23401 rm -f conftest.$ac_objext conftest$ac_exeext
23402 if { (ac_try="$ac_link"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_link") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest$ac_exeext &&
23418 $as_test_x conftest$ac_exeext; then
23419 ac_cv_func_alloca_works=yes
23420 else
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424 ac_cv_func_alloca_works=no
23425 fi
23426
23427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23428 conftest$ac_exeext conftest.$ac_ext
23429 fi
23430 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23431 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23432
23433 if test $ac_cv_func_alloca_works = yes; then
23434
23435 cat >>confdefs.h <<\_ACEOF
23436 #define HAVE_ALLOCA 1
23437 _ACEOF
23438
23439 else
23440 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23441 # that cause trouble. Some versions do not even contain alloca or
23442 # contain a buggy version. If you still want to use their alloca,
23443 # use ar to extract alloca.o from them instead of compiling alloca.c.
23444
23445 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23446
23447 cat >>confdefs.h <<\_ACEOF
23448 #define C_ALLOCA 1
23449 _ACEOF
23450
23451
23452 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23453 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23454 if test "${ac_cv_os_cray+set}" = set; then
23455 echo $ECHO_N "(cached) $ECHO_C" >&6
23456 else
23457 cat >conftest.$ac_ext <<_ACEOF
23458 /* confdefs.h. */
23459 _ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 #if defined CRAY && ! defined CRAY2
23464 webecray
23465 #else
23466 wenotbecray
23467 #endif
23468
23469 _ACEOF
23470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23471 $EGREP "webecray" >/dev/null 2>&1; then
23472 ac_cv_os_cray=yes
23473 else
23474 ac_cv_os_cray=no
23475 fi
23476 rm -f conftest*
23477
23478 fi
23479 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23480 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23481 if test $ac_cv_os_cray = yes; then
23482 for ac_func in _getb67 GETB67 getb67; do
23483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489 cat >conftest.$ac_ext <<_ACEOF
23490 /* confdefs.h. */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23497 #define $ac_func innocuous_$ac_func
23498
23499 /* System header to define __stub macros and hopefully few prototypes,
23500 which can conflict with char $ac_func (); below.
23501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23502 <limits.h> exists even on freestanding compilers. */
23503
23504 #ifdef __STDC__
23505 # include <limits.h>
23506 #else
23507 # include <assert.h>
23508 #endif
23509
23510 #undef $ac_func
23511
23512 /* Override any GCC internal prototype to avoid an error.
23513 Use char because int might match the return type of a GCC
23514 builtin and then its argument prototype would still apply. */
23515 #ifdef __cplusplus
23516 extern "C"
23517 #endif
23518 char $ac_func ();
23519 /* The GNU C library defines this for functions which it implements
23520 to always fail with ENOSYS. Some functions are actually named
23521 something starting with __ and the normal name is an alias. */
23522 #if defined __stub_$ac_func || defined __stub___$ac_func
23523 choke me
23524 #endif
23525
23526 int
23527 main ()
23528 {
23529 return $ac_func ();
23530 ;
23531 return 0;
23532 }
23533 _ACEOF
23534 rm -f conftest.$ac_objext conftest$ac_exeext
23535 if { (ac_try="$ac_link"
23536 case "(($ac_try" in
23537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538 *) ac_try_echo=$ac_try;;
23539 esac
23540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541 (eval "$ac_link") 2>conftest.er1
23542 ac_status=$?
23543 grep -v '^ *+' conftest.er1 >conftest.err
23544 rm -f conftest.er1
23545 cat conftest.err >&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); } && {
23548 test -z "$ac_c_werror_flag" ||
23549 test ! -s conftest.err
23550 } && test -s conftest$ac_exeext &&
23551 $as_test_x conftest$ac_exeext; then
23552 eval "$as_ac_var=yes"
23553 else
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557 eval "$as_ac_var=no"
23558 fi
23559
23560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23561 conftest$ac_exeext conftest.$ac_ext
23562 fi
23563 ac_res=`eval echo '${'$as_ac_var'}'`
23564 { echo "$as_me:$LINENO: result: $ac_res" >&5
23565 echo "${ECHO_T}$ac_res" >&6; }
23566 if test `eval echo '${'$as_ac_var'}'` = yes; then
23567
23568 cat >>confdefs.h <<_ACEOF
23569 #define CRAY_STACKSEG_END $ac_func
23570 _ACEOF
23571
23572 break
23573 fi
23574
23575 done
23576 fi
23577
23578 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23579 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23580 if test "${ac_cv_c_stack_direction+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23582 else
23583 if test "$cross_compiling" = yes; then
23584 ac_cv_c_stack_direction=0
23585 else
23586 cat >conftest.$ac_ext <<_ACEOF
23587 /* confdefs.h. */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23592 $ac_includes_default
23593 int
23594 find_stack_direction ()
23595 {
23596 static char *addr = 0;
23597 auto char dummy;
23598 if (addr == 0)
23599 {
23600 addr = &dummy;
23601 return find_stack_direction ();
23602 }
23603 else
23604 return (&dummy > addr) ? 1 : -1;
23605 }
23606
23607 int
23608 main ()
23609 {
23610 return find_stack_direction () < 0;
23611 }
23612 _ACEOF
23613 rm -f conftest$ac_exeext
23614 if { (ac_try="$ac_link"
23615 case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_link") 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23624 { (case "(($ac_try" in
23625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626 *) ac_try_echo=$ac_try;;
23627 esac
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629 (eval "$ac_try") 2>&5
23630 ac_status=$?
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); }; }; then
23633 ac_cv_c_stack_direction=1
23634 else
23635 echo "$as_me: program exited with status $ac_status" >&5
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 ( exit $ac_status )
23640 ac_cv_c_stack_direction=-1
23641 fi
23642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23643 fi
23644
23645
23646 fi
23647 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23648 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23649
23650 cat >>confdefs.h <<_ACEOF
23651 #define STACK_DIRECTION $ac_cv_c_stack_direction
23652 _ACEOF
23653
23654
23655 fi
23656
23657
23658 for ac_header in vfork.h
23659 do
23660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 fi
23667 ac_res=`eval echo '${'$as_ac_Header'}'`
23668 { echo "$as_me:$LINENO: result: $ac_res" >&5
23669 echo "${ECHO_T}$ac_res" >&6; }
23670 else
23671 # Is the header compilable?
23672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23674 cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h. */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23680 $ac_includes_default
23681 #include <$ac_header>
23682 _ACEOF
23683 rm -f conftest.$ac_objext
23684 if { (ac_try="$ac_compile"
23685 case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23688 esac
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_compile") 2>conftest.er1
23691 ac_status=$?
23692 grep -v '^ *+' conftest.er1 >conftest.err
23693 rm -f conftest.er1
23694 cat conftest.err >&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest.$ac_objext; then
23700 ac_header_compiler=yes
23701 else
23702 echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23704
23705 ac_header_compiler=no
23706 fi
23707
23708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23710 echo "${ECHO_T}$ac_header_compiler" >&6; }
23711
23712 # Is the header present?
23713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23715 cat >conftest.$ac_ext <<_ACEOF
23716 /* confdefs.h. */
23717 _ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h. */
23721 #include <$ac_header>
23722 _ACEOF
23723 if { (ac_try="$ac_cpp conftest.$ac_ext"
23724 case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23727 esac
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23730 ac_status=$?
23731 grep -v '^ *+' conftest.er1 >conftest.err
23732 rm -f conftest.er1
23733 cat conftest.err >&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } >/dev/null && {
23736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 }; then
23739 ac_header_preproc=yes
23740 else
23741 echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23743
23744 ac_header_preproc=no
23745 fi
23746
23747 rm -f conftest.err conftest.$ac_ext
23748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23749 echo "${ECHO_T}$ac_header_preproc" >&6; }
23750
23751 # So? What about this header?
23752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23753 yes:no: )
23754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23758 ac_header_preproc=yes
23759 ;;
23760 no:yes:* )
23761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23773
23774 ;;
23775 esac
23776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781 eval "$as_ac_Header=\$ac_header_preproc"
23782 fi
23783 ac_res=`eval echo '${'$as_ac_Header'}'`
23784 { echo "$as_me:$LINENO: result: $ac_res" >&5
23785 echo "${ECHO_T}$ac_res" >&6; }
23786
23787 fi
23788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23789 cat >>confdefs.h <<_ACEOF
23790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23791 _ACEOF
23792
23793 fi
23794
23795 done
23796
23797
23798
23799 for ac_func in fork vfork
23800 do
23801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23802 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23804 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807 cat >conftest.$ac_ext <<_ACEOF
23808 /* confdefs.h. */
23809 _ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h. */
23813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23815 #define $ac_func innocuous_$ac_func
23816
23817 /* System header to define __stub macros and hopefully few prototypes,
23818 which can conflict with char $ac_func (); below.
23819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23820 <limits.h> exists even on freestanding compilers. */
23821
23822 #ifdef __STDC__
23823 # include <limits.h>
23824 #else
23825 # include <assert.h>
23826 #endif
23827
23828 #undef $ac_func
23829
23830 /* Override any GCC internal prototype to avoid an error.
23831 Use char because int might match the return type of a GCC
23832 builtin and then its argument prototype would still apply. */
23833 #ifdef __cplusplus
23834 extern "C"
23835 #endif
23836 char $ac_func ();
23837 /* The GNU C library defines this for functions which it implements
23838 to always fail with ENOSYS. Some functions are actually named
23839 something starting with __ and the normal name is an alias. */
23840 #if defined __stub_$ac_func || defined __stub___$ac_func
23841 choke me
23842 #endif
23843
23844 int
23845 main ()
23846 {
23847 return $ac_func ();
23848 ;
23849 return 0;
23850 }
23851 _ACEOF
23852 rm -f conftest.$ac_objext conftest$ac_exeext
23853 if { (ac_try="$ac_link"
23854 case "(($ac_try" in
23855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23857 esac
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859 (eval "$ac_link") 2>conftest.er1
23860 ac_status=$?
23861 grep -v '^ *+' conftest.er1 >conftest.err
23862 rm -f conftest.er1
23863 cat conftest.err >&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); } && {
23866 test -z "$ac_c_werror_flag" ||
23867 test ! -s conftest.err
23868 } && test -s conftest$ac_exeext &&
23869 $as_test_x conftest$ac_exeext; then
23870 eval "$as_ac_var=yes"
23871 else
23872 echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 eval "$as_ac_var=no"
23876 fi
23877
23878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23879 conftest$ac_exeext conftest.$ac_ext
23880 fi
23881 ac_res=`eval echo '${'$as_ac_var'}'`
23882 { echo "$as_me:$LINENO: result: $ac_res" >&5
23883 echo "${ECHO_T}$ac_res" >&6; }
23884 if test `eval echo '${'$as_ac_var'}'` = yes; then
23885 cat >>confdefs.h <<_ACEOF
23886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23887 _ACEOF
23888
23889 fi
23890 done
23891
23892 if test "x$ac_cv_func_fork" = xyes; then
23893 { echo "$as_me:$LINENO: checking for working fork" >&5
23894 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23895 if test "${ac_cv_func_fork_works+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898 if test "$cross_compiling" = yes; then
23899 ac_cv_func_fork_works=cross
23900 else
23901 cat >conftest.$ac_ext <<_ACEOF
23902 /* confdefs.h. */
23903 _ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h. */
23907 $ac_includes_default
23908 int
23909 main ()
23910 {
23911
23912 /* By Ruediger Kuhlmann. */
23913 return fork () < 0;
23914
23915 ;
23916 return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest$ac_exeext
23920 if { (ac_try="$ac_link"
23921 case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926 (eval "$ac_link") 2>&5
23927 ac_status=$?
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23930 { (case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935 (eval "$ac_try") 2>&5
23936 ac_status=$?
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; }; then
23939 ac_cv_func_fork_works=yes
23940 else
23941 echo "$as_me: program exited with status $ac_status" >&5
23942 echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23944
23945 ( exit $ac_status )
23946 ac_cv_func_fork_works=no
23947 fi
23948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23949 fi
23950
23951
23952 fi
23953 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23954 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23955
23956 else
23957 ac_cv_func_fork_works=$ac_cv_func_fork
23958 fi
23959 if test "x$ac_cv_func_fork_works" = xcross; then
23960 case $host in
23961 *-*-amigaos* | *-*-msdosdjgpp*)
23962 # Override, as these systems have only a dummy fork() stub
23963 ac_cv_func_fork_works=no
23964 ;;
23965 *)
23966 ac_cv_func_fork_works=yes
23967 ;;
23968 esac
23969 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23970 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23971 fi
23972 ac_cv_func_vfork_works=$ac_cv_func_vfork
23973 if test "x$ac_cv_func_vfork" = xyes; then
23974 { echo "$as_me:$LINENO: checking for working vfork" >&5
23975 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23976 if test "${ac_cv_func_vfork_works+set}" = set; then
23977 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 else
23979 if test "$cross_compiling" = yes; then
23980 ac_cv_func_vfork_works=cross
23981 else
23982 cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h. */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 /* Thanks to Paul Eggert for this test. */
23989 $ac_includes_default
23990 #include <sys/wait.h>
23991 #ifdef HAVE_VFORK_H
23992 # include <vfork.h>
23993 #endif
23994 /* On some sparc systems, changes by the child to local and incoming
23995 argument registers are propagated back to the parent. The compiler
23996 is told about this with #include <vfork.h>, but some compilers
23997 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23998 static variable whose address is put into a register that is
23999 clobbered by the vfork. */
24000 static void
24001 #ifdef __cplusplus
24002 sparc_address_test (int arg)
24003 # else
24004 sparc_address_test (arg) int arg;
24005 #endif
24006 {
24007 static pid_t child;
24008 if (!child) {
24009 child = vfork ();
24010 if (child < 0) {
24011 perror ("vfork");
24012 _exit(2);
24013 }
24014 if (!child) {
24015 arg = getpid();
24016 write(-1, "", 0);
24017 _exit (arg);
24018 }
24019 }
24020 }
24021
24022 int
24023 main ()
24024 {
24025 pid_t parent = getpid ();
24026 pid_t child;
24027
24028 sparc_address_test (0);
24029
24030 child = vfork ();
24031
24032 if (child == 0) {
24033 /* Here is another test for sparc vfork register problems. This
24034 test uses lots of local variables, at least as many local
24035 variables as main has allocated so far including compiler
24036 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24037 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24038 reuse the register of parent for one of the local variables,
24039 since it will think that parent can't possibly be used any more
24040 in this routine. Assigning to the local variable will thus
24041 munge parent in the parent process. */
24042 pid_t
24043 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24044 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24045 /* Convince the compiler that p..p7 are live; otherwise, it might
24046 use the same hardware register for all 8 local variables. */
24047 if (p != p1 || p != p2 || p != p3 || p != p4
24048 || p != p5 || p != p6 || p != p7)
24049 _exit(1);
24050
24051 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24052 from child file descriptors. If the child closes a descriptor
24053 before it execs or exits, this munges the parent's descriptor
24054 as well. Test for this by closing stdout in the child. */
24055 _exit(close(fileno(stdout)) != 0);
24056 } else {
24057 int status;
24058 struct stat st;
24059
24060 while (wait(&status) != child)
24061 ;
24062 return (
24063 /* Was there some problem with vforking? */
24064 child < 0
24065
24066 /* Did the child fail? (This shouldn't happen.) */
24067 || status
24068
24069 /* Did the vfork/compiler bug occur? */
24070 || parent != getpid()
24071
24072 /* Did the file descriptor bug occur? */
24073 || fstat(fileno(stdout), &st) != 0
24074 );
24075 }
24076 }
24077 _ACEOF
24078 rm -f conftest$ac_exeext
24079 if { (ac_try="$ac_link"
24080 case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24083 esac
24084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24085 (eval "$ac_link") 2>&5
24086 ac_status=$?
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24089 { (case "(($ac_try" in
24090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091 *) ac_try_echo=$ac_try;;
24092 esac
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094 (eval "$ac_try") 2>&5
24095 ac_status=$?
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); }; }; then
24098 ac_cv_func_vfork_works=yes
24099 else
24100 echo "$as_me: program exited with status $ac_status" >&5
24101 echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24103
24104 ( exit $ac_status )
24105 ac_cv_func_vfork_works=no
24106 fi
24107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24108 fi
24109
24110
24111 fi
24112 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24113 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24114
24115 fi;
24116 if test "x$ac_cv_func_fork_works" = xcross; then
24117 ac_cv_func_vfork_works=$ac_cv_func_vfork
24118 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24119 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24120 fi
24121
24122 if test "x$ac_cv_func_vfork_works" = xyes; then
24123
24124 cat >>confdefs.h <<\_ACEOF
24125 #define HAVE_WORKING_VFORK 1
24126 _ACEOF
24127
24128 else
24129
24130 cat >>confdefs.h <<\_ACEOF
24131 #define vfork fork
24132 _ACEOF
24133
24134 fi
24135 if test "x$ac_cv_func_fork_works" = xyes; then
24136
24137 cat >>confdefs.h <<\_ACEOF
24138 #define HAVE_WORKING_FORK 1
24139 _ACEOF
24140
24141 fi
24142
24143
24144
24145 for ac_header in stdlib.h unistd.h
24146 do
24147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 fi
24154 ac_res=`eval echo '${'$as_ac_Header'}'`
24155 { echo "$as_me:$LINENO: result: $ac_res" >&5
24156 echo "${ECHO_T}$ac_res" >&6; }
24157 else
24158 # Is the header compilable?
24159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24161 cat >conftest.$ac_ext <<_ACEOF
24162 /* confdefs.h. */
24163 _ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h. */
24167 $ac_includes_default
24168 #include <$ac_header>
24169 _ACEOF
24170 rm -f conftest.$ac_objext
24171 if { (ac_try="$ac_compile"
24172 case "(($ac_try" in
24173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24174 *) ac_try_echo=$ac_try;;
24175 esac
24176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24177 (eval "$ac_compile") 2>conftest.er1
24178 ac_status=$?
24179 grep -v '^ *+' conftest.er1 >conftest.err
24180 rm -f conftest.er1
24181 cat conftest.err >&5
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); } && {
24184 test -z "$ac_c_werror_flag" ||
24185 test ! -s conftest.err
24186 } && test -s conftest.$ac_objext; then
24187 ac_header_compiler=yes
24188 else
24189 echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191
24192 ac_header_compiler=no
24193 fi
24194
24195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24197 echo "${ECHO_T}$ac_header_compiler" >&6; }
24198
24199 # Is the header present?
24200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24202 cat >conftest.$ac_ext <<_ACEOF
24203 /* confdefs.h. */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h. */
24208 #include <$ac_header>
24209 _ACEOF
24210 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
24223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24224 test ! -s conftest.err
24225 }; then
24226 ac_header_preproc=yes
24227 else
24228 echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231 ac_header_preproc=no
24232 fi
24233
24234 rm -f conftest.err conftest.$ac_ext
24235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24236 echo "${ECHO_T}$ac_header_preproc" >&6; }
24237
24238 # So? What about this header?
24239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24240 yes:no: )
24241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24245 ac_header_preproc=yes
24246 ;;
24247 no:yes:* )
24248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24260
24261 ;;
24262 esac
24263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24267 else
24268 eval "$as_ac_Header=\$ac_header_preproc"
24269 fi
24270 ac_res=`eval echo '${'$as_ac_Header'}'`
24271 { echo "$as_me:$LINENO: result: $ac_res" >&5
24272 echo "${ECHO_T}$ac_res" >&6; }
24273
24274 fi
24275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24276 cat >>confdefs.h <<_ACEOF
24277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24278 _ACEOF
24279
24280 fi
24281
24282 done
24283
24284
24285 for ac_func in getpagesize
24286 do
24287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 else
24293 cat >conftest.$ac_ext <<_ACEOF
24294 /* confdefs.h. */
24295 _ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24301 #define $ac_func innocuous_$ac_func
24302
24303 /* System header to define __stub macros and hopefully few prototypes,
24304 which can conflict with char $ac_func (); below.
24305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24306 <limits.h> exists even on freestanding compilers. */
24307
24308 #ifdef __STDC__
24309 # include <limits.h>
24310 #else
24311 # include <assert.h>
24312 #endif
24313
24314 #undef $ac_func
24315
24316 /* Override any GCC internal prototype to avoid an error.
24317 Use char because int might match the return type of a GCC
24318 builtin and then its argument prototype would still apply. */
24319 #ifdef __cplusplus
24320 extern "C"
24321 #endif
24322 char $ac_func ();
24323 /* The GNU C library defines this for functions which it implements
24324 to always fail with ENOSYS. Some functions are actually named
24325 something starting with __ and the normal name is an alias. */
24326 #if defined __stub_$ac_func || defined __stub___$ac_func
24327 choke me
24328 #endif
24329
24330 int
24331 main ()
24332 {
24333 return $ac_func ();
24334 ;
24335 return 0;
24336 }
24337 _ACEOF
24338 rm -f conftest.$ac_objext conftest$ac_exeext
24339 if { (ac_try="$ac_link"
24340 case "(($ac_try" in
24341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342 *) ac_try_echo=$ac_try;;
24343 esac
24344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345 (eval "$ac_link") 2>conftest.er1
24346 ac_status=$?
24347 grep -v '^ *+' conftest.er1 >conftest.err
24348 rm -f conftest.er1
24349 cat conftest.err >&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest$ac_exeext &&
24355 $as_test_x conftest$ac_exeext; then
24356 eval "$as_ac_var=yes"
24357 else
24358 echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24360
24361 eval "$as_ac_var=no"
24362 fi
24363
24364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24365 conftest$ac_exeext conftest.$ac_ext
24366 fi
24367 ac_res=`eval echo '${'$as_ac_var'}'`
24368 { echo "$as_me:$LINENO: result: $ac_res" >&5
24369 echo "${ECHO_T}$ac_res" >&6; }
24370 if test `eval echo '${'$as_ac_var'}'` = yes; then
24371 cat >>confdefs.h <<_ACEOF
24372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24373 _ACEOF
24374
24375 fi
24376 done
24377
24378 { echo "$as_me:$LINENO: checking for working mmap" >&5
24379 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
24380 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24382 else
24383 if test "$cross_compiling" = yes; then
24384 ac_cv_func_mmap_fixed_mapped=no
24385 else
24386 cat >conftest.$ac_ext <<_ACEOF
24387 /* confdefs.h. */
24388 _ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392 $ac_includes_default
24393 /* malloc might have been renamed as rpl_malloc. */
24394 #undef malloc
24395
24396 /* Thanks to Mike Haertel and Jim Avera for this test.
24397 Here is a matrix of mmap possibilities:
24398 mmap private not fixed
24399 mmap private fixed at somewhere currently unmapped
24400 mmap private fixed at somewhere already mapped
24401 mmap shared not fixed
24402 mmap shared fixed at somewhere currently unmapped
24403 mmap shared fixed at somewhere already mapped
24404 For private mappings, we should verify that changes cannot be read()
24405 back from the file, nor mmap's back from the file at a different
24406 address. (There have been systems where private was not correctly
24407 implemented like the infamous i386 svr4.0, and systems where the
24408 VM page cache was not coherent with the file system buffer cache
24409 like early versions of FreeBSD and possibly contemporary NetBSD.)
24410 For shared mappings, we should conversely verify that changes get
24411 propagated back to all the places they're supposed to be.
24412
24413 Grep wants private fixed already mapped.
24414 The main things grep needs to know about mmap are:
24415 * does it exist and is it safe to write into the mmap'd area
24416 * how to use it (BSD variants) */
24417
24418 #include <fcntl.h>
24419 #include <sys/mman.h>
24420
24421 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24422 char *malloc ();
24423 #endif
24424
24425 /* This mess was copied from the GNU getpagesize.h. */
24426 #ifndef HAVE_GETPAGESIZE
24427 /* Assume that all systems that can run configure have sys/param.h. */
24428 # ifndef HAVE_SYS_PARAM_H
24429 # define HAVE_SYS_PARAM_H 1
24430 # endif
24431
24432 # ifdef _SC_PAGESIZE
24433 # define getpagesize() sysconf(_SC_PAGESIZE)
24434 # else /* no _SC_PAGESIZE */
24435 # ifdef HAVE_SYS_PARAM_H
24436 # include <sys/param.h>
24437 # ifdef EXEC_PAGESIZE
24438 # define getpagesize() EXEC_PAGESIZE
24439 # else /* no EXEC_PAGESIZE */
24440 # ifdef NBPG
24441 # define getpagesize() NBPG * CLSIZE
24442 # ifndef CLSIZE
24443 # define CLSIZE 1
24444 # endif /* no CLSIZE */
24445 # else /* no NBPG */
24446 # ifdef NBPC
24447 # define getpagesize() NBPC
24448 # else /* no NBPC */
24449 # ifdef PAGESIZE
24450 # define getpagesize() PAGESIZE
24451 # endif /* PAGESIZE */
24452 # endif /* no NBPC */
24453 # endif /* no NBPG */
24454 # endif /* no EXEC_PAGESIZE */
24455 # else /* no HAVE_SYS_PARAM_H */
24456 # define getpagesize() 8192 /* punt totally */
24457 # endif /* no HAVE_SYS_PARAM_H */
24458 # endif /* no _SC_PAGESIZE */
24459
24460 #endif /* no HAVE_GETPAGESIZE */
24461
24462 int
24463 main ()
24464 {
24465 char *data, *data2, *data3;
24466 int i, pagesize;
24467 int fd;
24468
24469 pagesize = getpagesize ();
24470
24471 /* First, make a file with some known garbage in it. */
24472 data = (char *) malloc (pagesize);
24473 if (!data)
24474 return 1;
24475 for (i = 0; i < pagesize; ++i)
24476 *(data + i) = rand ();
24477 umask (0);
24478 fd = creat ("conftest.mmap", 0600);
24479 if (fd < 0)
24480 return 1;
24481 if (write (fd, data, pagesize) != pagesize)
24482 return 1;
24483 close (fd);
24484
24485 /* Next, try to mmap the file at a fixed address which already has
24486 something else allocated at it. If we can, also make sure that
24487 we see the same garbage. */
24488 fd = open ("conftest.mmap", O_RDWR);
24489 if (fd < 0)
24490 return 1;
24491 data2 = (char *) malloc (2 * pagesize);
24492 if (!data2)
24493 return 1;
24494 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24495 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24496 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24497 return 1;
24498 for (i = 0; i < pagesize; ++i)
24499 if (*(data + i) != *(data2 + i))
24500 return 1;
24501
24502 /* Finally, make sure that changes to the mapped area do not
24503 percolate back to the file as seen by read(). (This is a bug on
24504 some variants of i386 svr4.0.) */
24505 for (i = 0; i < pagesize; ++i)
24506 *(data2 + i) = *(data2 + i) + 1;
24507 data3 = (char *) malloc (pagesize);
24508 if (!data3)
24509 return 1;
24510 if (read (fd, data3, pagesize) != pagesize)
24511 return 1;
24512 for (i = 0; i < pagesize; ++i)
24513 if (*(data + i) != *(data3 + i))
24514 return 1;
24515 close (fd);
24516 return 0;
24517 }
24518 _ACEOF
24519 rm -f conftest$ac_exeext
24520 if { (ac_try="$ac_link"
24521 case "(($ac_try" in
24522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523 *) ac_try_echo=$ac_try;;
24524 esac
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526 (eval "$ac_link") 2>&5
24527 ac_status=$?
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24530 { (case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24533 esac
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535 (eval "$ac_try") 2>&5
24536 ac_status=$?
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; }; then
24539 ac_cv_func_mmap_fixed_mapped=yes
24540 else
24541 echo "$as_me: program exited with status $ac_status" >&5
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24544
24545 ( exit $ac_status )
24546 ac_cv_func_mmap_fixed_mapped=no
24547 fi
24548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24549 fi
24550
24551
24552 fi
24553 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24554 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24555 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24556
24557 cat >>confdefs.h <<\_ACEOF
24558 #define HAVE_MMAP 1
24559 _ACEOF
24560
24561 fi
24562 rm -f conftest.mmap
24563
24564
24565 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
24566 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
24567 if test -c "/dev/poll"; then
24568 { echo "$as_me:$LINENO: result: yes" >&5
24569 echo "${ECHO_T}yes" >&6; }
24570
24571 cat >>confdefs.h <<\_ACEOF
24572 #define HAVE_DEVPOLL 1
24573 _ACEOF
24574
24575 else
24576 { echo "$as_me:$LINENO: result: no" >&5
24577 echo "${ECHO_T}no" >&6; }
24578 fi
24579
24580
24581 if test "$is_mingw" = "yes"; then
24582
24583 cat >>confdefs.h <<\_ACEOF
24584 #define HAVE_WIN32 1
24585 _ACEOF
24586
24587 fi
24588
24589
24590 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
24591 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
24592 # Check whether --enable-openssl was given.
24593 if test "${enable_openssl+set}" = set; then
24594 enableval=$enable_openssl; cf_enable_openssl=$enableval
24595 else
24596 cf_enable_openssl="auto"
24597 fi
24598
24599
24600 if test "$cf_enable_openssl" != "no" ; then
24601 cf_openssl_basedir=""
24602 if test "$cf_enable_openssl" != "auto" &&
24603 test "$cf_enable_openssl" != "yes" ; then
24604 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
24605 else
24606 for dirs in /usr/local/ssl /usr/pkg /usr/local \
24607 /usr/local/openssl ; do
24608 if test -f "${dirs}/include/openssl/opensslv.h" ; then
24609 cf_openssl_basedir="${dirs}"
24610 break
24611 fi
24612 done
24613 unset dirs
24614 fi
24615 if test ! -z "$cf_openssl_basedir"; then
24616 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
24617 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
24618 SSL_LIBS="-L${cf_openssl_basedir}/lib"
24619 else
24620 cf_openssl_basedir=""
24621 fi
24622 else
24623 if test -f "/usr/include/openssl/opensslv.h" ; then
24624 cf_openssl_basedir="/usr"
24625 fi
24626 fi
24627
24628 if test ! -z "$cf_openssl_basedir"; then
24629 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
24630 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
24631 cf_enable_openssl="yes"
24632 else
24633 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
24634 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
24635 cf_enable_openssl="no"
24636 fi
24637 unset cf_openssl_basedir
24638 else
24639 { echo "$as_me:$LINENO: result: disabled" >&5
24640 echo "${ECHO_T}disabled" >&6; }
24641 fi
24642
24643 save_CPPFLAGS="$CPPFLAGS"
24644 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
24645 save_LIBS="$LIBS"
24646 LIBS="$LIBS $SSL_LIBS"
24647 if test "$cf_enable_openssl" != no; then
24648 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
24649 echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; }
24650 if test "$cross_compiling" = yes; then
24651 cf_enable_openssl=no
24652 else
24653 cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h. */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 #include <openssl/opensslv.h>
24660 #include <stdlib.h>
24661 int
24662 main ()
24663 {
24664 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
24665 exit(0); else exit(1);
24666 ;
24667 return 0;
24668 }
24669 _ACEOF
24670 rm -f conftest$ac_exeext
24671 if { (ac_try="$ac_link"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_link") 2>&5
24678 ac_status=$?
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24681 { (case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_try") 2>&5
24687 ac_status=$?
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; }; then
24690 cf_enable_openssl=yes
24691 else
24692 echo "$as_me: program exited with status $ac_status" >&5
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 ( exit $ac_status )
24697 cf_enable_openssl=no
24698 fi
24699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24700 fi
24701
24702
24703
24704 if test "$cf_enable_openssl" != no; then
24705 { echo "$as_me:$LINENO: result: found" >&5
24706 echo "${ECHO_T}found" >&6; }
24707 else
24708 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
24709 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
24710 fi
24711
24712 fi
24713
24714
24715 if test "$cf_enable_openssl" != no; then
24716 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
24717 { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
24718 echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; }
24719 if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722 ac_check_lib_save_LIBS=$LIBS
24723 LIBS="-lcrypto $LIBS"
24724 cat >conftest.$ac_ext <<_ACEOF
24725 /* confdefs.h. */
24726 _ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h. */
24730
24731 /* Override any GCC internal prototype to avoid an error.
24732 Use char because int might match the return type of a GCC
24733 builtin and then its argument prototype would still apply. */
24734 #ifdef __cplusplus
24735 extern "C"
24736 #endif
24737 char RAND_status ();
24738 int
24739 main ()
24740 {
24741 return RAND_status ();
24742 ;
24743 return 0;
24744 }
24745 _ACEOF
24746 rm -f conftest.$ac_objext conftest$ac_exeext
24747 if { (ac_try="$ac_link"
24748 case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24751 esac
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_link") 2>conftest.er1
24754 ac_status=$?
24755 grep -v '^ *+' conftest.er1 >conftest.err
24756 rm -f conftest.er1
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } && {
24760 test -z "$ac_c_werror_flag" ||
24761 test ! -s conftest.err
24762 } && test -s conftest$ac_exeext &&
24763 $as_test_x conftest$ac_exeext; then
24764 ac_cv_lib_crypto_RAND_status=yes
24765 else
24766 echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24768
24769 ac_cv_lib_crypto_RAND_status=no
24770 fi
24771
24772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24773 conftest$ac_exeext conftest.$ac_ext
24774 LIBS=$ac_check_lib_save_LIBS
24775 fi
24776 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
24777 echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; }
24778 if test $ac_cv_lib_crypto_RAND_status = yes; then
24779 cf_enable_openssl=yes
24780 else
24781 cf_enable_openssl=no
24782 fi
24783
24784 fi
24785
24786
24787 if test "$cf_enable_openssl" != no; then
24788 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
24789 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
24790 echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
24791 if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24793 else
24794 ac_check_lib_save_LIBS=$LIBS
24795 LIBS="-lssl -lcrypto $LIBS"
24796 cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h. */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802
24803 /* Override any GCC internal prototype to avoid an error.
24804 Use char because int might match the return type of a GCC
24805 builtin and then its argument prototype would still apply. */
24806 #ifdef __cplusplus
24807 extern "C"
24808 #endif
24809 char SSL_read ();
24810 int
24811 main ()
24812 {
24813 return SSL_read ();
24814 ;
24815 return 0;
24816 }
24817 _ACEOF
24818 rm -f conftest.$ac_objext conftest$ac_exeext
24819 if { (ac_try="$ac_link"
24820 case "(($ac_try" in
24821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822 *) ac_try_echo=$ac_try;;
24823 esac
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_link") 2>conftest.er1
24826 ac_status=$?
24827 grep -v '^ *+' conftest.er1 >conftest.err
24828 rm -f conftest.er1
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest$ac_exeext &&
24835 $as_test_x conftest$ac_exeext; then
24836 ac_cv_lib_ssl_SSL_read=yes
24837 else
24838 echo "$as_me: failed program was:" >&5
24839 sed 's/^/| /' conftest.$ac_ext >&5
24840
24841 ac_cv_lib_ssl_SSL_read=no
24842 fi
24843
24844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24845 conftest$ac_exeext conftest.$ac_ext
24846 LIBS=$ac_check_lib_save_LIBS
24847 fi
24848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
24849 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
24850 if test $ac_cv_lib_ssl_SSL_read = yes; then
24851 SSL_LIBS="-lssl -lcrypto"
24852 else
24853 cf_enable_openssl=no
24854 fi
24855
24856 fi
24857
24858
24859
24860 { echo "$as_me:$LINENO: checking for GnuTLS" >&5
24861 echo $ECHO_N "checking for GnuTLS... $ECHO_C" >&6; }
24862 # Check whether --enable-gnutls was given.
24863 if test "${enable_gnutls+set}" = set; then
24864 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
24865 else
24866 cf_enable_gnutls="auto"
24867 fi
24868
24869
24870 if test "$cf_enable_gnutls" != no; then
24871
24872
24873 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24874 if test -n "$ac_tool_prefix"; then
24875 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24876 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24879 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24880 echo $ECHO_N "(cached) $ECHO_C" >&6
24881 else
24882 case $PKG_CONFIG in
24883 [\\/]* | ?:[\\/]*)
24884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24885 ;;
24886 *)
24887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24888 for as_dir in $PATH
24889 do
24890 IFS=$as_save_IFS
24891 test -z "$as_dir" && as_dir=.
24892 for ac_exec_ext in '' $ac_executable_extensions; do
24893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24894 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24896 break 2
24897 fi
24898 done
24899 done
24900 IFS=$as_save_IFS
24901
24902 ;;
24903 esac
24904 fi
24905 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24906 if test -n "$PKG_CONFIG"; then
24907 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24908 echo "${ECHO_T}$PKG_CONFIG" >&6; }
24909 else
24910 { echo "$as_me:$LINENO: result: no" >&5
24911 echo "${ECHO_T}no" >&6; }
24912 fi
24913
24914
24915 fi
24916 if test -z "$ac_cv_path_PKG_CONFIG"; then
24917 ac_pt_PKG_CONFIG=$PKG_CONFIG
24918 # Extract the first word of "pkg-config", so it can be a program name with args.
24919 set dummy pkg-config; ac_word=$2
24920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24922 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
24923 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 else
24925 case $ac_pt_PKG_CONFIG in
24926 [\\/]* | ?:[\\/]*)
24927 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24928 ;;
24929 *)
24930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24931 for as_dir in $PATH
24932 do
24933 IFS=$as_save_IFS
24934 test -z "$as_dir" && as_dir=.
24935 for ac_exec_ext in '' $ac_executable_extensions; do
24936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24937 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24939 break 2
24940 fi
24941 done
24942 done
24943 IFS=$as_save_IFS
24944
24945 ;;
24946 esac
24947 fi
24948 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24949 if test -n "$ac_pt_PKG_CONFIG"; then
24950 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
24951 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
24952 else
24953 { echo "$as_me:$LINENO: result: no" >&5
24954 echo "${ECHO_T}no" >&6; }
24955 fi
24956
24957 if test "x$ac_pt_PKG_CONFIG" = x; then
24958 PKG_CONFIG=""
24959 else
24960 case $cross_compiling:$ac_tool_warned in
24961 yes:)
24962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24963 whose name does not start with the host triplet. If you think this
24964 configuration is useful to you, please write to autoconf@gnu.org." >&5
24965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24966 whose name does not start with the host triplet. If you think this
24967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24968 ac_tool_warned=yes ;;
24969 esac
24970 PKG_CONFIG=$ac_pt_PKG_CONFIG
24971 fi
24972 else
24973 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24974 fi
24975
24976 fi
24977 if test -n "$PKG_CONFIG"; then
24978 _pkg_min_version=0.9.0
24979 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
24980 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
24981 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24982 { echo "$as_me:$LINENO: result: yes" >&5
24983 echo "${ECHO_T}yes" >&6; }
24984 else
24985 { echo "$as_me:$LINENO: result: no" >&5
24986 echo "${ECHO_T}no" >&6; }
24987 PKG_CONFIG=""
24988 fi
24989
24990 fi
24991
24992 pkg_failed=no
24993 { echo "$as_me:$LINENO: checking for GNUTLS" >&5
24994 echo $ECHO_N "checking for GNUTLS... $ECHO_C" >&6; }
24995
24996 if test -n "$PKG_CONFIG"; then
24997 if test -n "$GNUTLS_CFLAGS"; then
24998 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
24999 else
25000 if test -n "$PKG_CONFIG" && \
25001 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
25002 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25003 ac_status=$?
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; then
25006 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
25007 else
25008 pkg_failed=yes
25009 fi
25010 fi
25011 else
25012 pkg_failed=untried
25013 fi
25014 if test -n "$PKG_CONFIG"; then
25015 if test -n "$GNUTLS_LIBS"; then
25016 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
25017 else
25018 if test -n "$PKG_CONFIG" && \
25019 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
25020 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; then
25024 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
25025 else
25026 pkg_failed=yes
25027 fi
25028 fi
25029 else
25030 pkg_failed=untried
25031 fi
25032
25033
25034
25035 if test $pkg_failed = yes; then
25036
25037 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25038 _pkg_short_errors_supported=yes
25039 else
25040 _pkg_short_errors_supported=no
25041 fi
25042 if test $_pkg_short_errors_supported = yes; then
25043 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"`
25044 else
25045 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"`
25046 fi
25047 # Put the nasty error message in config.log where it belongs
25048 echo "$GNUTLS_PKG_ERRORS" >&5
25049
25050 { echo "$as_me:$LINENO: result: no" >&5
25051 echo "${ECHO_T}no" >&6; }
25052 cf_enable_gnutls="no"
25053 elif test $pkg_failed = untried; then
25054 cf_enable_gnutls="no"
25055 else
25056 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
25057 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
25058 { echo "$as_me:$LINENO: result: yes" >&5
25059 echo "${ECHO_T}yes" >&6; }
25060
25061 cf_enable_gnutls="yes"
25062
25063 fi
25064 fi
25065
25066 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
25067 cf_enable_gnutls="no"
25068 fi
25069
25070 if test x"$cf_enable_openssl" != xno; then
25071
25072 cat >>confdefs.h <<\_ACEOF
25073 #define HAVE_OPENSSL 1
25074 _ACEOF
25075
25076 GNUTLS_CFLAGS=""
25077 GNUTLS_LIBS=""
25078 SSL_TYPE="openssl"
25079 elif test x"$cf_enable_gnutls" != xno; then
25080
25081 cat >>confdefs.h <<\_ACEOF
25082 #define HAVE_GNUTLS 1
25083 _ACEOF
25084
25085 SSL_LIBS=""
25086 SSL_CFLAGS=""
25087 SSL_TYPE="gnutls"
25088 fi
25089
25090
25091
25092
25093 CPPFLAGS="$save_CPPFLAGS"
25094 LIBS="$save_LIBS"
25095
25096
25097
25098
25099
25100
25101 # Check whether --enable-assert was given.
25102 if test "${enable_assert+set}" = set; then
25103 enableval=$enable_assert; assert=$enableval
25104 else
25105 assert=no
25106 fi
25107
25108
25109 if test "$assert" = no; then
25110
25111 cat >>confdefs.h <<\_ACEOF
25112 #define NDEBUG 1
25113 _ACEOF
25114
25115 elif test "$assert" = soft; then
25116
25117 cat >>confdefs.h <<\_ACEOF
25118 #define SOFT_ASSERT 1
25119 _ACEOF
25120
25121
25122 cat >>confdefs.h <<\_ACEOF
25123 #define NDEBUG 1
25124 _ACEOF
25125
25126 elif test "$assert" = yes; then
25127 assert = "hard";
25128 fi
25129
25130 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
25131 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
25132 # Check whether --enable-profile was given.
25133 if test "${enable_profile+set}" = set; then
25134 enableval=$enable_profile; profile=$enableval
25135 else
25136 profile=no
25137 fi
25138
25139
25140 if test "$profile" = yes; then
25141 if test "$ac_cv_c_compiler_gnu" = yes; then
25142 CFLAGS="$CFLAGS -pg -static"
25143 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
25144 echo "${ECHO_T}yes, adding -pg -static" >&6; }
25145
25146 cat >>confdefs.h <<\_ACEOF
25147 #define RATBOX_PROFILE 1
25148 _ACEOF
25149
25150 else
25151 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
25152 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
25153 fi
25154 else
25155 { echo "$as_me:$LINENO: result: no" >&5
25156 echo "${ECHO_T}no" >&6; }
25157 fi
25158
25159 # Check whether --enable-balloc was given.
25160 if test "${enable_balloc+set}" = set; then
25161 enableval=$enable_balloc; balloc=$enableval
25162 else
25163 balloc=yes
25164 fi
25165
25166
25167 if test "$balloc" = no; then
25168
25169 cat >>confdefs.h <<\_ACEOF
25170 #define NOBALLOC 1
25171 _ACEOF
25172
25173 fi
25174
25175 # Check whether --enable-warnings was given.
25176 if test "${enable_warnings+set}" = set; then
25177 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"
25178 fi
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190 if test "$prefix" = "NONE"; then
25191
25192 cat >>confdefs.h <<_ACEOF
25193 #define RB_PREFIX "$ac_default_prefix"
25194 _ACEOF
25195
25196
25197 else
25198
25199
25200 prefix=`echo $prefix | sed 's/\/$//'`
25201
25202 cat >>confdefs.h <<_ACEOF
25203 #define RB_PREFIX "$prefix"
25204 _ACEOF
25205
25206
25207 fi
25208
25209
25210
25211 ac_config_commands="$ac_config_commands include/librb-config.h"
25212
25213
25214
25215 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
25216
25217
25218 cat >confcache <<\_ACEOF
25219 # This file is a shell script that caches the results of configure
25220 # tests run on this system so they can be shared between configure
25221 # scripts and configure runs, see configure's option --config-cache.
25222 # It is not useful on other systems. If it contains results you don't
25223 # want to keep, you may remove or edit it.
25224 #
25225 # config.status only pays attention to the cache file if you give it
25226 # the --recheck option to rerun configure.
25227 #
25228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25230 # following values.
25231
25232 _ACEOF
25233
25234 # The following way of writing the cache mishandles newlines in values,
25235 # but we know of no workaround that is simple, portable, and efficient.
25236 # So, we kill variables containing newlines.
25237 # Ultrix sh set writes to stderr and can't be redirected directly,
25238 # and sets the high bit in the cache file unless we assign to the vars.
25239 (
25240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25241 eval ac_val=\$$ac_var
25242 case $ac_val in #(
25243 *${as_nl}*)
25244 case $ac_var in #(
25245 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25246 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25247 esac
25248 case $ac_var in #(
25249 _ | IFS | as_nl) ;; #(
25250 *) $as_unset $ac_var ;;
25251 esac ;;
25252 esac
25253 done
25254
25255 (set) 2>&1 |
25256 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25257 *${as_nl}ac_space=\ *)
25258 # `set' does not quote correctly, so add quotes (double-quote
25259 # substitution turns \\\\ into \\, and sed turns \\ into \).
25260 sed -n \
25261 "s/'/'\\\\''/g;
25262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25263 ;; #(
25264 *)
25265 # `set' quotes correctly as required by POSIX, so do not add quotes.
25266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25267 ;;
25268 esac |
25269 sort
25270 ) |
25271 sed '
25272 /^ac_cv_env_/b end
25273 t clear
25274 :clear
25275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25276 t end
25277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25278 :end' >>confcache
25279 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25280 if test -w "$cache_file"; then
25281 test "x$cache_file" != "x/dev/null" &&
25282 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25283 echo "$as_me: updating cache $cache_file" >&6;}
25284 cat confcache >$cache_file
25285 else
25286 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25287 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25288 fi
25289 fi
25290 rm -f confcache
25291
25292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25293 # Let make expand exec_prefix.
25294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25295
25296 DEFS=-DHAVE_CONFIG_H
25297
25298 ac_libobjs=
25299 ac_ltlibobjs=
25300 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25301 # 1. Remove the extension, and $U if already installed.
25302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25303 ac_i=`echo "$ac_i" | sed "$ac_script"`
25304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25305 # will be set to the directory where LIBOBJS objects are built.
25306 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25307 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25308 done
25309 LIBOBJS=$ac_libobjs
25310
25311 LTLIBOBJS=$ac_ltlibobjs
25312
25313
25314 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25315 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25316 Usually this means the macro was only invoked conditionally." >&5
25317 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25318 Usually this means the macro was only invoked conditionally." >&2;}
25319 { (exit 1); exit 1; }; }
25320 fi
25321 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25322 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25323 Usually this means the macro was only invoked conditionally." >&5
25324 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25325 Usually this means the macro was only invoked conditionally." >&2;}
25326 { (exit 1); exit 1; }; }
25327 fi
25328 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25329 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25330 Usually this means the macro was only invoked conditionally." >&5
25331 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25332 Usually this means the macro was only invoked conditionally." >&2;}
25333 { (exit 1); exit 1; }; }
25334 fi
25335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25336 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25337 Usually this means the macro was only invoked conditionally." >&5
25338 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25339 Usually this means the macro was only invoked conditionally." >&2;}
25340 { (exit 1); exit 1; }; }
25341 fi
25342 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
25343 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
25344 Usually this means the macro was only invoked conditionally." >&5
25345 echo "$as_me: error: conditional \"MINGW\" was never defined.
25346 Usually this means the macro was only invoked conditionally." >&2;}
25347 { (exit 1); exit 1; }; }
25348 fi
25349 if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
25350 { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
25351 Usually this means the macro was only invoked conditionally." >&5
25352 echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
25353 Usually this means the macro was only invoked conditionally." >&2;}
25354 { (exit 1); exit 1; }; }
25355 fi
25356
25357 : ${CONFIG_STATUS=./config.status}
25358 ac_clean_files_save=$ac_clean_files
25359 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25360 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25361 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25362 cat >$CONFIG_STATUS <<_ACEOF
25363 #! $SHELL
25364 # Generated by $as_me.
25365 # Run this file to recreate the current configuration.
25366 # Compiler output produced by configure, useful for debugging
25367 # configure, is in config.log if it exists.
25368
25369 debug=false
25370 ac_cs_recheck=false
25371 ac_cs_silent=false
25372 SHELL=\${CONFIG_SHELL-$SHELL}
25373 _ACEOF
25374
25375 cat >>$CONFIG_STATUS <<\_ACEOF
25376 ## --------------------- ##
25377 ## M4sh Initialization. ##
25378 ## --------------------- ##
25379
25380 # Be more Bourne compatible
25381 DUALCASE=1; export DUALCASE # for MKS sh
25382 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25383 emulate sh
25384 NULLCMD=:
25385 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25386 # is contrary to our usage. Disable this feature.
25387 alias -g '${1+"$@"}'='"$@"'
25388 setopt NO_GLOB_SUBST
25389 else
25390 case `(set -o) 2>/dev/null` in
25391 *posix*) set -o posix ;;
25392 esac
25393
25394 fi
25395
25396
25397
25398
25399 # PATH needs CR
25400 # Avoid depending upon Character Ranges.
25401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25404 as_cr_digits='0123456789'
25405 as_cr_alnum=$as_cr_Letters$as_cr_digits
25406
25407 # The user is always right.
25408 if test "${PATH_SEPARATOR+set}" != set; then
25409 echo "#! /bin/sh" >conf$$.sh
25410 echo "exit 0" >>conf$$.sh
25411 chmod +x conf$$.sh
25412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25413 PATH_SEPARATOR=';'
25414 else
25415 PATH_SEPARATOR=:
25416 fi
25417 rm -f conf$$.sh
25418 fi
25419
25420 # Support unset when possible.
25421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25422 as_unset=unset
25423 else
25424 as_unset=false
25425 fi
25426
25427
25428 # IFS
25429 # We need space, tab and new line, in precisely that order. Quoting is
25430 # there to prevent editors from complaining about space-tab.
25431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25432 # splitting by setting IFS to empty value.)
25433 as_nl='
25434 '
25435 IFS=" "" $as_nl"
25436
25437 # Find who we are. Look in the path if we contain no directory separator.
25438 case $0 in
25439 *[\\/]* ) as_myself=$0 ;;
25440 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25441 for as_dir in $PATH
25442 do
25443 IFS=$as_save_IFS
25444 test -z "$as_dir" && as_dir=.
25445 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25446 done
25447 IFS=$as_save_IFS
25448
25449 ;;
25450 esac
25451 # We did not find ourselves, most probably we were run as `sh COMMAND'
25452 # in which case we are not to be found in the path.
25453 if test "x$as_myself" = x; then
25454 as_myself=$0
25455 fi
25456 if test ! -f "$as_myself"; then
25457 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25458 { (exit 1); exit 1; }
25459 fi
25460
25461 # Work around bugs in pre-3.0 UWIN ksh.
25462 for as_var in ENV MAIL MAILPATH
25463 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25464 done
25465 PS1='$ '
25466 PS2='> '
25467 PS4='+ '
25468
25469 # NLS nuisances.
25470 for as_var in \
25471 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25472 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25473 LC_TELEPHONE LC_TIME
25474 do
25475 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25476 eval $as_var=C; export $as_var
25477 else
25478 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25479 fi
25480 done
25481
25482 # Required to use basename.
25483 if expr a : '\(a\)' >/dev/null 2>&1 &&
25484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25485 as_expr=expr
25486 else
25487 as_expr=false
25488 fi
25489
25490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25491 as_basename=basename
25492 else
25493 as_basename=false
25494 fi
25495
25496
25497 # Name of the executable.
25498 as_me=`$as_basename -- "$0" ||
25499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25500 X"$0" : 'X\(//\)$' \| \
25501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25502 echo X/"$0" |
25503 sed '/^.*\/\([^/][^/]*\)\/*$/{
25504 s//\1/
25505 q
25506 }
25507 /^X\/\(\/\/\)$/{
25508 s//\1/
25509 q
25510 }
25511 /^X\/\(\/\).*/{
25512 s//\1/
25513 q
25514 }
25515 s/.*/./; q'`
25516
25517 # CDPATH.
25518 $as_unset CDPATH
25519
25520
25521
25522 as_lineno_1=$LINENO
25523 as_lineno_2=$LINENO
25524 test "x$as_lineno_1" != "x$as_lineno_2" &&
25525 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25526
25527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25528 # uniformly replaced by the line number. The first 'sed' inserts a
25529 # line-number line after each line using $LINENO; the second 'sed'
25530 # does the real work. The second script uses 'N' to pair each
25531 # line-number line with the line containing $LINENO, and appends
25532 # trailing '-' during substitution so that $LINENO is not a special
25533 # case at line end.
25534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25535 # scripts with optimization help from Paolo Bonzini. Blame Lee
25536 # E. McMahon (1931-1989) for sed's syntax. :-)
25537 sed -n '
25538 p
25539 /[$]LINENO/=
25540 ' <$as_myself |
25541 sed '
25542 s/[$]LINENO.*/&-/
25543 t lineno
25544 b
25545 :lineno
25546 N
25547 :loop
25548 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25549 t loop
25550 s/-\n.*//
25551 ' >$as_me.lineno &&
25552 chmod +x "$as_me.lineno" ||
25553 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25554 { (exit 1); exit 1; }; }
25555
25556 # Don't try to exec as it changes $[0], causing all sort of problems
25557 # (the dirname of $[0] is not the place where we might find the
25558 # original and so on. Autoconf is especially sensitive to this).
25559 . "./$as_me.lineno"
25560 # Exit status is that of the last command.
25561 exit
25562 }
25563
25564
25565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25566 as_dirname=dirname
25567 else
25568 as_dirname=false
25569 fi
25570
25571 ECHO_C= ECHO_N= ECHO_T=
25572 case `echo -n x` in
25573 -n*)
25574 case `echo 'x\c'` in
25575 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25576 *) ECHO_C='\c';;
25577 esac;;
25578 *)
25579 ECHO_N='-n';;
25580 esac
25581
25582 if expr a : '\(a\)' >/dev/null 2>&1 &&
25583 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25584 as_expr=expr
25585 else
25586 as_expr=false
25587 fi
25588
25589 rm -f conf$$ conf$$.exe conf$$.file
25590 if test -d conf$$.dir; then
25591 rm -f conf$$.dir/conf$$.file
25592 else
25593 rm -f conf$$.dir
25594 mkdir conf$$.dir
25595 fi
25596 echo >conf$$.file
25597 if ln -s conf$$.file conf$$ 2>/dev/null; then
25598 as_ln_s='ln -s'
25599 # ... but there are two gotchas:
25600 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25601 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25602 # In both cases, we have to default to `cp -p'.
25603 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25604 as_ln_s='cp -p'
25605 elif ln conf$$.file conf$$ 2>/dev/null; then
25606 as_ln_s=ln
25607 else
25608 as_ln_s='cp -p'
25609 fi
25610 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25611 rmdir conf$$.dir 2>/dev/null
25612
25613 if mkdir -p . 2>/dev/null; then
25614 as_mkdir_p=:
25615 else
25616 test -d ./-p && rmdir ./-p
25617 as_mkdir_p=false
25618 fi
25619
25620 if test -x / >/dev/null 2>&1; then
25621 as_test_x='test -x'
25622 else
25623 if ls -dL / >/dev/null 2>&1; then
25624 as_ls_L_option=L
25625 else
25626 as_ls_L_option=
25627 fi
25628 as_test_x='
25629 eval sh -c '\''
25630 if test -d "$1"; then
25631 test -d "$1/.";
25632 else
25633 case $1 in
25634 -*)set "./$1";;
25635 esac;
25636 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25637 ???[sx]*):;;*)false;;esac;fi
25638 '\'' sh
25639 '
25640 fi
25641 as_executable_p=$as_test_x
25642
25643 # Sed expression to map a string onto a valid CPP name.
25644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25645
25646 # Sed expression to map a string onto a valid variable name.
25647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25648
25649
25650 exec 6>&1
25651
25652 # Save the log message, to keep $[0] and so on meaningful, and to
25653 # report actual input values of CONFIG_FILES etc. instead of their
25654 # values after options handling.
25655 ac_log="
25656 This file was extended by libratbox $as_me devel, which was
25657 generated by GNU Autoconf 2.61. Invocation command line was
25658
25659 CONFIG_FILES = $CONFIG_FILES
25660 CONFIG_HEADERS = $CONFIG_HEADERS
25661 CONFIG_LINKS = $CONFIG_LINKS
25662 CONFIG_COMMANDS = $CONFIG_COMMANDS
25663 $ $0 $@
25664
25665 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25666 "
25667
25668 _ACEOF
25669
25670 cat >>$CONFIG_STATUS <<_ACEOF
25671 # Files that config.status was made for.
25672 config_files="$ac_config_files"
25673 config_headers="$ac_config_headers"
25674 config_commands="$ac_config_commands"
25675
25676 _ACEOF
25677
25678 cat >>$CONFIG_STATUS <<\_ACEOF
25679 ac_cs_usage="\
25680 \`$as_me' instantiates files from templates according to the
25681 current configuration.
25682
25683 Usage: $0 [OPTIONS] [FILE]...
25684
25685 -h, --help print this help, then exit
25686 -V, --version print version number and configuration settings, then exit
25687 -q, --quiet do not print progress messages
25688 -d, --debug don't remove temporary files
25689 --recheck update $as_me by reconfiguring in the same conditions
25690 --file=FILE[:TEMPLATE]
25691 instantiate the configuration file FILE
25692 --header=FILE[:TEMPLATE]
25693 instantiate the configuration header FILE
25694
25695 Configuration files:
25696 $config_files
25697
25698 Configuration headers:
25699 $config_headers
25700
25701 Configuration commands:
25702 $config_commands
25703
25704 Report bugs to <bug-autoconf@gnu.org>."
25705
25706 _ACEOF
25707 cat >>$CONFIG_STATUS <<_ACEOF
25708 ac_cs_version="\\
25709 libratbox config.status devel
25710 configured by $0, generated by GNU Autoconf 2.61,
25711 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25712
25713 Copyright (C) 2006 Free Software Foundation, Inc.
25714 This config.status script is free software; the Free Software Foundation
25715 gives unlimited permission to copy, distribute and modify it."
25716
25717 ac_pwd='$ac_pwd'
25718 srcdir='$srcdir'
25719 INSTALL='$INSTALL'
25720 MKDIR_P='$MKDIR_P'
25721 _ACEOF
25722
25723 cat >>$CONFIG_STATUS <<\_ACEOF
25724 # If no file are specified by the user, then we need to provide default
25725 # value. By we need to know if files were specified by the user.
25726 ac_need_defaults=:
25727 while test $# != 0
25728 do
25729 case $1 in
25730 --*=*)
25731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25732 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25733 ac_shift=:
25734 ;;
25735 *)
25736 ac_option=$1
25737 ac_optarg=$2
25738 ac_shift=shift
25739 ;;
25740 esac
25741
25742 case $ac_option in
25743 # Handling of the options.
25744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25745 ac_cs_recheck=: ;;
25746 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25747 echo "$ac_cs_version"; exit ;;
25748 --debug | --debu | --deb | --de | --d | -d )
25749 debug=: ;;
25750 --file | --fil | --fi | --f )
25751 $ac_shift
25752 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25753 ac_need_defaults=false;;
25754 --header | --heade | --head | --hea )
25755 $ac_shift
25756 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25757 ac_need_defaults=false;;
25758 --he | --h)
25759 # Conflict between --help and --header
25760 { echo "$as_me: error: ambiguous option: $1
25761 Try \`$0 --help' for more information." >&2
25762 { (exit 1); exit 1; }; };;
25763 --help | --hel | -h )
25764 echo "$ac_cs_usage"; exit ;;
25765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25767 ac_cs_silent=: ;;
25768
25769 # This is an error.
25770 -*) { echo "$as_me: error: unrecognized option: $1
25771 Try \`$0 --help' for more information." >&2
25772 { (exit 1); exit 1; }; } ;;
25773
25774 *) ac_config_targets="$ac_config_targets $1"
25775 ac_need_defaults=false ;;
25776
25777 esac
25778 shift
25779 done
25780
25781 ac_configure_extra_args=
25782
25783 if $ac_cs_silent; then
25784 exec 6>/dev/null
25785 ac_configure_extra_args="$ac_configure_extra_args --silent"
25786 fi
25787
25788 _ACEOF
25789 cat >>$CONFIG_STATUS <<_ACEOF
25790 if \$ac_cs_recheck; then
25791 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25792 CONFIG_SHELL=$SHELL
25793 export CONFIG_SHELL
25794 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25795 fi
25796
25797 _ACEOF
25798 cat >>$CONFIG_STATUS <<\_ACEOF
25799 exec 5>>config.log
25800 {
25801 echo
25802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25803 ## Running $as_me. ##
25804 _ASBOX
25805 echo "$ac_log"
25806 } >&5
25807
25808 _ACEOF
25809 cat >>$CONFIG_STATUS <<_ACEOF
25810 #
25811 # INIT-COMMANDS
25812 #
25813 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25814
25815 if test x$ac_cv_header_stdc = xyes; then
25816 rb_header_stdc=yes
25817 fi
25818 if test x$ac_cv_header_stdlib_h = xyes; then
25819 rb_header_stdlib_h=yes
25820 fi
25821 if test x$ac_cv_header_string_h = xyes; then
25822 rb_header_string_h=yes
25823 fi
25824 if test x$ac_cv_header_memory_h = xyes; then
25825 rb_header_memory_h=yes
25826 fi
25827 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
25828 rb_alloca_h="$ac_cv_working_alloca_h"
25829 else
25830 rb_alloc_h="$ac_cv_header_alloca_h"
25831 fi
25832 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
25833 rb_sockaddr_sa_len=yes
25834 fi
25835 if test x$ac_cv_header_sys_socket_h = xyes; then
25836 rb_sys_socket_h=yes
25837 fi
25838 if test x$ac_cv_header_sys_types_h = xyes; then
25839 rb_sys_types_h=yes
25840 fi
25841 if test x$ac_cv_header_sys_stat_h = xyes; then
25842 rb_sys_stat_h=yes
25843 fi
25844 if test x$ac_cv_header_sys_time_h = xyes; then
25845 rb_sys_time_h=yes
25846 fi
25847 if test x$ac_cv_header_time = xyes; then
25848 rb_time_h=yes
25849 fi
25850
25851 if test x$ac_cv_header_stdint_h = xyes; then
25852 rb_stdint_h=yes
25853 fi
25854 if test x$ac_cv_header_inttypes_h = xyes; then
25855 rb_inttypes_h=yes
25856 fi
25857 if test x$ac_cv_header_netinet_in_h = xyes; then
25858 rb_netinet_in_h=yes
25859 fi
25860
25861 if test x$ac_cv_header_crypt_h = xyes; then
25862 rb_crypt_h=yes
25863 fi
25864 if test x$ac_cv_header_errno_h = xyes; then
25865 rb_errno_h=yes
25866 fi
25867 if test x$ac_cv_header_unistd_h = xyes; then
25868 rb_unistd_h=yes
25869 fi
25870 if test x$ac_cv_header_windows_h = xyes; then
25871 rb_windows_h=yes
25872 fi
25873 if test x$ac_cv_header_winsock2_h = xyes; then
25874 rb_winsock2_h=yes
25875 fi
25876
25877 rb_socklen_t=$rb_socklen_t
25878
25879 if test "x$rb_have_sockaddr_storage" = "xyes"; then
25880 rb_sockaddr_storage="yes"
25881 else
25882 rb_sockaddr_storage="no"
25883 fi
25884
25885 rb_have_ipv6="$have_v6"
25886
25887 rb_mv="$MV"
25888 rb_rm="$RM"
25889
25890
25891
25892
25893
25894
25895 _ACEOF
25896
25897 cat >>$CONFIG_STATUS <<\_ACEOF
25898
25899 # Handling of arguments.
25900 for ac_config_target in $ac_config_targets
25901 do
25902 case $ac_config_target in
25903 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
25904 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25905 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
25906 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25907 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25908 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
25909
25910 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25911 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25912 { (exit 1); exit 1; }; };;
25913 esac
25914 done
25915
25916
25917 # If the user did not use the arguments to specify the items to instantiate,
25918 # then the envvar interface is used. Set only those that are not.
25919 # We use the long form for the default assignment because of an extremely
25920 # bizarre bug on SunOS 4.1.3.
25921 if $ac_need_defaults; then
25922 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25923 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25924 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25925 fi
25926
25927 # Have a temporary directory for convenience. Make it in the build tree
25928 # simply because there is no reason against having it here, and in addition,
25929 # creating and moving files from /tmp can sometimes cause problems.
25930 # Hook for its removal unless debugging.
25931 # Note that there is a small window in which the directory will not be cleaned:
25932 # after its creation but before its name has been assigned to `$tmp'.
25933 $debug ||
25934 {
25935 tmp=
25936 trap 'exit_status=$?
25937 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25938 ' 0
25939 trap '{ (exit 1); exit 1; }' 1 2 13 15
25940 }
25941 # Create a (secure) tmp directory for tmp files.
25942
25943 {
25944 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25945 test -n "$tmp" && test -d "$tmp"
25946 } ||
25947 {
25948 tmp=./conf$$-$RANDOM
25949 (umask 077 && mkdir "$tmp")
25950 } ||
25951 {
25952 echo "$me: cannot create a temporary directory in ." >&2
25953 { (exit 1); exit 1; }
25954 }
25955
25956 #
25957 # Set up the sed scripts for CONFIG_FILES section.
25958 #
25959
25960 # No need to generate the scripts if there are no CONFIG_FILES.
25961 # This happens for instance when ./config.status config.h
25962 if test -n "$CONFIG_FILES"; then
25963
25964 _ACEOF
25965
25966
25967
25968 ac_delim='%!_!# '
25969 for ac_last_try in false false false false false :; do
25970 cat >conf$$subs.sed <<_ACEOF
25971 SHELL!$SHELL$ac_delim
25972 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25973 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25974 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25975 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25976 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25977 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25978 exec_prefix!$exec_prefix$ac_delim
25979 prefix!$prefix$ac_delim
25980 program_transform_name!$program_transform_name$ac_delim
25981 bindir!$bindir$ac_delim
25982 sbindir!$sbindir$ac_delim
25983 libexecdir!$libexecdir$ac_delim
25984 datarootdir!$datarootdir$ac_delim
25985 datadir!$datadir$ac_delim
25986 sysconfdir!$sysconfdir$ac_delim
25987 sharedstatedir!$sharedstatedir$ac_delim
25988 localstatedir!$localstatedir$ac_delim
25989 includedir!$includedir$ac_delim
25990 oldincludedir!$oldincludedir$ac_delim
25991 docdir!$docdir$ac_delim
25992 infodir!$infodir$ac_delim
25993 htmldir!$htmldir$ac_delim
25994 dvidir!$dvidir$ac_delim
25995 pdfdir!$pdfdir$ac_delim
25996 psdir!$psdir$ac_delim
25997 libdir!$libdir$ac_delim
25998 localedir!$localedir$ac_delim
25999 mandir!$mandir$ac_delim
26000 DEFS!$DEFS$ac_delim
26001 ECHO_C!$ECHO_C$ac_delim
26002 ECHO_N!$ECHO_N$ac_delim
26003 ECHO_T!$ECHO_T$ac_delim
26004 LIBS!$LIBS$ac_delim
26005 build_alias!$build_alias$ac_delim
26006 host_alias!$host_alias$ac_delim
26007 target_alias!$target_alias$ac_delim
26008 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26009 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26010 INSTALL_DATA!$INSTALL_DATA$ac_delim
26011 am__isrc!$am__isrc$ac_delim
26012 CYGPATH_W!$CYGPATH_W$ac_delim
26013 PACKAGE!$PACKAGE$ac_delim
26014 VERSION!$VERSION$ac_delim
26015 ACLOCAL!$ACLOCAL$ac_delim
26016 AUTOCONF!$AUTOCONF$ac_delim
26017 AUTOMAKE!$AUTOMAKE$ac_delim
26018 AUTOHEADER!$AUTOHEADER$ac_delim
26019 MAKEINFO!$MAKEINFO$ac_delim
26020 install_sh!$install_sh$ac_delim
26021 STRIP!$STRIP$ac_delim
26022 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26023 mkdir_p!$mkdir_p$ac_delim
26024 AWK!$AWK$ac_delim
26025 SET_MAKE!$SET_MAKE$ac_delim
26026 am__leading_dot!$am__leading_dot$ac_delim
26027 AMTAR!$AMTAR$ac_delim
26028 am__tar!$am__tar$ac_delim
26029 am__untar!$am__untar$ac_delim
26030 CC!$CC$ac_delim
26031 CFLAGS!$CFLAGS$ac_delim
26032 LDFLAGS!$LDFLAGS$ac_delim
26033 CPPFLAGS!$CPPFLAGS$ac_delim
26034 ac_ct_CC!$ac_ct_CC$ac_delim
26035 EXEEXT!$EXEEXT$ac_delim
26036 OBJEXT!$OBJEXT$ac_delim
26037 DEPDIR!$DEPDIR$ac_delim
26038 am__include!$am__include$ac_delim
26039 am__quote!$am__quote$ac_delim
26040 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26041 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26042 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26043 CCDEPMODE!$CCDEPMODE$ac_delim
26044 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26045 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26046 GREP!$GREP$ac_delim
26047 EGREP!$EGREP$ac_delim
26048 SED!$SED$ac_delim
26049 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26050 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26051 MAINT!$MAINT$ac_delim
26052 AS!$AS$ac_delim
26053 RM!$RM$ac_delim
26054 CP!$CP$ac_delim
26055 MV!$MV$ac_delim
26056 LN!$LN$ac_delim
26057 AR!$AR$ac_delim
26058 LD!$LD$ac_delim
26059 RANLIB!$RANLIB$ac_delim
26060 TOUCH!$TOUCH$ac_delim
26061 build!$build$ac_delim
26062 build_cpu!$build_cpu$ac_delim
26063 build_vendor!$build_vendor$ac_delim
26064 build_os!$build_os$ac_delim
26065 host!$host$ac_delim
26066 host_cpu!$host_cpu$ac_delim
26067 host_vendor!$host_vendor$ac_delim
26068 _ACEOF
26069
26070 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26071 break
26072 elif $ac_last_try; then
26073 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26074 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26075 { (exit 1); exit 1; }; }
26076 else
26077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26078 fi
26079 done
26080
26081 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26082 if test -n "$ac_eof"; then
26083 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26084 ac_eof=`expr $ac_eof + 1`
26085 fi
26086
26087 cat >>$CONFIG_STATUS <<_ACEOF
26088 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26090 _ACEOF
26091 sed '
26092 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26093 s/^/s,@/; s/!/@,|#_!!_#|/
26094 :n
26095 t n
26096 s/'"$ac_delim"'$/,g/; t
26097 s/$/\\/; p
26098 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26099 ' >>$CONFIG_STATUS <conf$$subs.sed
26100 rm -f conf$$subs.sed
26101 cat >>$CONFIG_STATUS <<_ACEOF
26102 CEOF$ac_eof
26103 _ACEOF
26104
26105
26106 ac_delim='%!_!# '
26107 for ac_last_try in false false false false false :; do
26108 cat >conf$$subs.sed <<_ACEOF
26109 host_os!$host_os$ac_delim
26110 LN_S!$LN_S$ac_delim
26111 ECHO!$ECHO$ac_delim
26112 DSYMUTIL!$DSYMUTIL$ac_delim
26113 NMEDIT!$NMEDIT$ac_delim
26114 CPP!$CPP$ac_delim
26115 CXX!$CXX$ac_delim
26116 CXXFLAGS!$CXXFLAGS$ac_delim
26117 ac_ct_CXX!$ac_ct_CXX$ac_delim
26118 CXXDEPMODE!$CXXDEPMODE$ac_delim
26119 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26120 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26121 CXXCPP!$CXXCPP$ac_delim
26122 F77!$F77$ac_delim
26123 FFLAGS!$FFLAGS$ac_delim
26124 ac_ct_F77!$ac_ct_F77$ac_delim
26125 LIBTOOL!$LIBTOOL$ac_delim
26126 subdirs!$subdirs$ac_delim
26127 MINGW_TRUE!$MINGW_TRUE$ac_delim
26128 MINGW_FALSE!$MINGW_FALSE$ac_delim
26129 NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim
26130 NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim
26131 CRYPT_LIB!$CRYPT_LIB$ac_delim
26132 ALLOCA!$ALLOCA$ac_delim
26133 PKG_CONFIG!$PKG_CONFIG$ac_delim
26134 GNUTLS_CFLAGS!$GNUTLS_CFLAGS$ac_delim
26135 GNUTLS_LIBS!$GNUTLS_LIBS$ac_delim
26136 PICFLAGS!$PICFLAGS$ac_delim
26137 SEDOBJ!$SEDOBJ$ac_delim
26138 SSL_CFLAGS!$SSL_CFLAGS$ac_delim
26139 SSL_LIBS!$SSL_LIBS$ac_delim
26140 RB_PREFIX!$RB_PREFIX$ac_delim
26141 LIBOBJS!$LIBOBJS$ac_delim
26142 LTLIBOBJS!$LTLIBOBJS$ac_delim
26143 _ACEOF
26144
26145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
26146 break
26147 elif $ac_last_try; then
26148 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26149 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26150 { (exit 1); exit 1; }; }
26151 else
26152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26153 fi
26154 done
26155
26156 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26157 if test -n "$ac_eof"; then
26158 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26159 ac_eof=`expr $ac_eof + 1`
26160 fi
26161
26162 cat >>$CONFIG_STATUS <<_ACEOF
26163 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26165 _ACEOF
26166 sed '
26167 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26168 s/^/s,@/; s/!/@,|#_!!_#|/
26169 :n
26170 t n
26171 s/'"$ac_delim"'$/,g/; t
26172 s/$/\\/; p
26173 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26174 ' >>$CONFIG_STATUS <conf$$subs.sed
26175 rm -f conf$$subs.sed
26176 cat >>$CONFIG_STATUS <<_ACEOF
26177 :end
26178 s/|#_!!_#|//g
26179 CEOF$ac_eof
26180 _ACEOF
26181
26182
26183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26185 # trailing colons and then remove the whole line if VPATH becomes empty
26186 # (actually we leave an empty line to preserve line numbers).
26187 if test "x$srcdir" = x.; then
26188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26189 s/:*\$(srcdir):*/:/
26190 s/:*\${srcdir}:*/:/
26191 s/:*@srcdir@:*/:/
26192 s/^\([^=]*=[ ]*\):*/\1/
26193 s/:*$//
26194 s/^[^=]*=[ ]*$//
26195 }'
26196 fi
26197
26198 cat >>$CONFIG_STATUS <<\_ACEOF
26199 fi # test -n "$CONFIG_FILES"
26200
26201
26202 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26203 do
26204 case $ac_tag in
26205 :[FHLC]) ac_mode=$ac_tag; continue;;
26206 esac
26207 case $ac_mode$ac_tag in
26208 :[FHL]*:*);;
26209 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26210 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26211 { (exit 1); exit 1; }; };;
26212 :[FH]-) ac_tag=-:-;;
26213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26214 esac
26215 ac_save_IFS=$IFS
26216 IFS=:
26217 set x $ac_tag
26218 IFS=$ac_save_IFS
26219 shift
26220 ac_file=$1
26221 shift
26222
26223 case $ac_mode in
26224 :L) ac_source=$1;;
26225 :[FH])
26226 ac_file_inputs=
26227 for ac_f
26228 do
26229 case $ac_f in
26230 -) ac_f="$tmp/stdin";;
26231 *) # Look for the file first in the build tree, then in the source tree
26232 # (if the path is not absolute). The absolute path cannot be DOS-style,
26233 # because $ac_f cannot contain `:'.
26234 test -f "$ac_f" ||
26235 case $ac_f in
26236 [\\/$]*) false;;
26237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26238 esac ||
26239 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26240 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26241 { (exit 1); exit 1; }; };;
26242 esac
26243 ac_file_inputs="$ac_file_inputs $ac_f"
26244 done
26245
26246 # Let's still pretend it is `configure' which instantiates (i.e., don't
26247 # use $as_me), people would be surprised to read:
26248 # /* config.h. Generated by config.status. */
26249 configure_input="Generated from "`IFS=:
26250 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26251 if test x"$ac_file" != x-; then
26252 configure_input="$ac_file. $configure_input"
26253 { echo "$as_me:$LINENO: creating $ac_file" >&5
26254 echo "$as_me: creating $ac_file" >&6;}
26255 fi
26256
26257 case $ac_tag in
26258 *:-:* | *:-) cat >"$tmp/stdin";;
26259 esac
26260 ;;
26261 esac
26262
26263 ac_dir=`$as_dirname -- "$ac_file" ||
26264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26265 X"$ac_file" : 'X\(//\)[^/]' \| \
26266 X"$ac_file" : 'X\(//\)$' \| \
26267 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26268 echo X"$ac_file" |
26269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26270 s//\1/
26271 q
26272 }
26273 /^X\(\/\/\)[^/].*/{
26274 s//\1/
26275 q
26276 }
26277 /^X\(\/\/\)$/{
26278 s//\1/
26279 q
26280 }
26281 /^X\(\/\).*/{
26282 s//\1/
26283 q
26284 }
26285 s/.*/./; q'`
26286 { as_dir="$ac_dir"
26287 case $as_dir in #(
26288 -*) as_dir=./$as_dir;;
26289 esac
26290 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26291 as_dirs=
26292 while :; do
26293 case $as_dir in #(
26294 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26295 *) as_qdir=$as_dir;;
26296 esac
26297 as_dirs="'$as_qdir' $as_dirs"
26298 as_dir=`$as_dirname -- "$as_dir" ||
26299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26300 X"$as_dir" : 'X\(//\)[^/]' \| \
26301 X"$as_dir" : 'X\(//\)$' \| \
26302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26303 echo X"$as_dir" |
26304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26305 s//\1/
26306 q
26307 }
26308 /^X\(\/\/\)[^/].*/{
26309 s//\1/
26310 q
26311 }
26312 /^X\(\/\/\)$/{
26313 s//\1/
26314 q
26315 }
26316 /^X\(\/\).*/{
26317 s//\1/
26318 q
26319 }
26320 s/.*/./; q'`
26321 test -d "$as_dir" && break
26322 done
26323 test -z "$as_dirs" || eval "mkdir $as_dirs"
26324 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26325 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26326 { (exit 1); exit 1; }; }; }
26327 ac_builddir=.
26328
26329 case "$ac_dir" in
26330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26331 *)
26332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26333 # A ".." for each directory in $ac_dir_suffix.
26334 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26335 case $ac_top_builddir_sub in
26336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26338 esac ;;
26339 esac
26340 ac_abs_top_builddir=$ac_pwd
26341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26342 # for backward compatibility:
26343 ac_top_builddir=$ac_top_build_prefix
26344
26345 case $srcdir in
26346 .) # We are building in place.
26347 ac_srcdir=.
26348 ac_top_srcdir=$ac_top_builddir_sub
26349 ac_abs_top_srcdir=$ac_pwd ;;
26350 [\\/]* | ?:[\\/]* ) # Absolute name.
26351 ac_srcdir=$srcdir$ac_dir_suffix;
26352 ac_top_srcdir=$srcdir
26353 ac_abs_top_srcdir=$srcdir ;;
26354 *) # Relative name.
26355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26356 ac_top_srcdir=$ac_top_build_prefix$srcdir
26357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26358 esac
26359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26360
26361
26362 case $ac_mode in
26363 :F)
26364 #
26365 # CONFIG_FILE
26366 #
26367
26368 case $INSTALL in
26369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26370 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26371 esac
26372 ac_MKDIR_P=$MKDIR_P
26373 case $MKDIR_P in
26374 [\\/$]* | ?:[\\/]* ) ;;
26375 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26376 esac
26377 _ACEOF
26378
26379 cat >>$CONFIG_STATUS <<\_ACEOF
26380 # If the template does not know about datarootdir, expand it.
26381 # FIXME: This hack should be removed a few years after 2.60.
26382 ac_datarootdir_hack=; ac_datarootdir_seen=
26383
26384 case `sed -n '/datarootdir/ {
26385 p
26386 q
26387 }
26388 /@datadir@/p
26389 /@docdir@/p
26390 /@infodir@/p
26391 /@localedir@/p
26392 /@mandir@/p
26393 ' $ac_file_inputs` in
26394 *datarootdir*) ac_datarootdir_seen=yes;;
26395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26396 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26397 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26398 _ACEOF
26399 cat >>$CONFIG_STATUS <<_ACEOF
26400 ac_datarootdir_hack='
26401 s&@datadir@&$datadir&g
26402 s&@docdir@&$docdir&g
26403 s&@infodir@&$infodir&g
26404 s&@localedir@&$localedir&g
26405 s&@mandir@&$mandir&g
26406 s&\\\${datarootdir}&$datarootdir&g' ;;
26407 esac
26408 _ACEOF
26409
26410 # Neutralize VPATH when `$srcdir' = `.'.
26411 # Shell code in configure.ac might set extrasub.
26412 # FIXME: do we really want to maintain this feature?
26413 cat >>$CONFIG_STATUS <<_ACEOF
26414 sed "$ac_vpsub
26415 $extrasub
26416 _ACEOF
26417 cat >>$CONFIG_STATUS <<\_ACEOF
26418 :t
26419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26420 s&@configure_input@&$configure_input&;t t
26421 s&@top_builddir@&$ac_top_builddir_sub&;t t
26422 s&@srcdir@&$ac_srcdir&;t t
26423 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26424 s&@top_srcdir@&$ac_top_srcdir&;t t
26425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26426 s&@builddir@&$ac_builddir&;t t
26427 s&@abs_builddir@&$ac_abs_builddir&;t t
26428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26429 s&@INSTALL@&$ac_INSTALL&;t t
26430 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26431 $ac_datarootdir_hack
26432 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26433
26434 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26435 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26436 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26437 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26438 which seems to be undefined. Please make sure it is defined." >&5
26439 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26440 which seems to be undefined. Please make sure it is defined." >&2;}
26441
26442 rm -f "$tmp/stdin"
26443 case $ac_file in
26444 -) cat "$tmp/out"; rm -f "$tmp/out";;
26445 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26446 esac
26447 ;;
26448 :H)
26449 #
26450 # CONFIG_HEADER
26451 #
26452 _ACEOF
26453
26454 # Transform confdefs.h into a sed script `conftest.defines', that
26455 # substitutes the proper values into config.h.in to produce config.h.
26456 rm -f conftest.defines conftest.tail
26457 # First, append a space to every undef/define line, to ease matching.
26458 echo 's/$/ /' >conftest.defines
26459 # Then, protect against being on the right side of a sed subst, or in
26460 # an unquoted here document, in config.status. If some macros were
26461 # called several times there might be several #defines for the same
26462 # symbol, which is useless. But do not sort them, since the last
26463 # AC_DEFINE must be honored.
26464 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26465 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26466 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26467 # PARAMS is the parameter list in the macro definition--in most cases, it's
26468 # just an empty string.
26469 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26470 ac_dB='\\)[ (].*,\\1define\\2'
26471 ac_dC=' '
26472 ac_dD=' ,'
26473
26474 uniq confdefs.h |
26475 sed -n '
26476 t rset
26477 :rset
26478 s/^[ ]*#[ ]*define[ ][ ]*//
26479 t ok
26480 d
26481 :ok
26482 s/[\\&,]/\\&/g
26483 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26484 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26485 ' >>conftest.defines
26486
26487 # Remove the space that was appended to ease matching.
26488 # Then replace #undef with comments. This is necessary, for
26489 # example, in the case of _POSIX_SOURCE, which is predefined and required
26490 # on some systems where configure will not decide to define it.
26491 # (The regexp can be short, since the line contains either #define or #undef.)
26492 echo 's/ $//
26493 s,^[ #]*u.*,/* & */,' >>conftest.defines
26494
26495 # Break up conftest.defines:
26496 ac_max_sed_lines=50
26497
26498 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26499 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26500 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26501 # et cetera.
26502 ac_in='$ac_file_inputs'
26503 ac_out='"$tmp/out1"'
26504 ac_nxt='"$tmp/out2"'
26505
26506 while :
26507 do
26508 # Write a here document:
26509 cat >>$CONFIG_STATUS <<_ACEOF
26510 # First, check the format of the line:
26511 cat >"\$tmp/defines.sed" <<\\CEOF
26512 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26513 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26514 b
26515 :def
26516 _ACEOF
26517 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26518 echo 'CEOF
26519 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26520 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26521 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26522 grep . conftest.tail >/dev/null || break
26523 rm -f conftest.defines
26524 mv conftest.tail conftest.defines
26525 done
26526 rm -f conftest.defines conftest.tail
26527
26528 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26529 cat >>$CONFIG_STATUS <<\_ACEOF
26530 if test x"$ac_file" != x-; then
26531 echo "/* $configure_input */" >"$tmp/config.h"
26532 cat "$ac_result" >>"$tmp/config.h"
26533 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26534 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26535 echo "$as_me: $ac_file is unchanged" >&6;}
26536 else
26537 rm -f $ac_file
26538 mv "$tmp/config.h" $ac_file
26539 fi
26540 else
26541 echo "/* $configure_input */"
26542 cat "$ac_result"
26543 fi
26544 rm -f "$tmp/out12"
26545 # Compute $ac_file's index in $config_headers.
26546 _am_arg=$ac_file
26547 _am_stamp_count=1
26548 for _am_header in $config_headers :; do
26549 case $_am_header in
26550 $_am_arg | $_am_arg:* )
26551 break ;;
26552 * )
26553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26554 esac
26555 done
26556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26558 X"$_am_arg" : 'X\(//\)[^/]' \| \
26559 X"$_am_arg" : 'X\(//\)$' \| \
26560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26561 echo X"$_am_arg" |
26562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26563 s//\1/
26564 q
26565 }
26566 /^X\(\/\/\)[^/].*/{
26567 s//\1/
26568 q
26569 }
26570 /^X\(\/\/\)$/{
26571 s//\1/
26572 q
26573 }
26574 /^X\(\/\).*/{
26575 s//\1/
26576 q
26577 }
26578 s/.*/./; q'`/stamp-h$_am_stamp_count
26579 ;;
26580
26581 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26582 echo "$as_me: executing $ac_file commands" >&6;}
26583 ;;
26584 esac
26585
26586
26587 case $ac_file$ac_mode in
26588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26589 # Strip MF so we end up with the name of the file.
26590 mf=`echo "$mf" | sed -e 's/:.*$//'`
26591 # Check whether this is an Automake generated Makefile or not.
26592 # We used to match only the files named `Makefile.in', but
26593 # some people rename them; so instead we look at the file content.
26594 # Grep'ing the first line is not enough: some people post-process
26595 # each Makefile.in and add a new line on top of each file to say so.
26596 # Grep'ing the whole file is not good either: AIX grep has a line
26597 # limit of 2048, but all sed's we know have understand at least 4000.
26598 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26599 dirpart=`$as_dirname -- "$mf" ||
26600 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26601 X"$mf" : 'X\(//\)[^/]' \| \
26602 X"$mf" : 'X\(//\)$' \| \
26603 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26604 echo X"$mf" |
26605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26606 s//\1/
26607 q
26608 }
26609 /^X\(\/\/\)[^/].*/{
26610 s//\1/
26611 q
26612 }
26613 /^X\(\/\/\)$/{
26614 s//\1/
26615 q
26616 }
26617 /^X\(\/\).*/{
26618 s//\1/
26619 q
26620 }
26621 s/.*/./; q'`
26622 else
26623 continue
26624 fi
26625 # Extract the definition of DEPDIR, am__include, and am__quote
26626 # from the Makefile without running `make'.
26627 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26628 test -z "$DEPDIR" && continue
26629 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26630 test -z "am__include" && continue
26631 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26632 # When using ansi2knr, U may be empty or an underscore; expand it
26633 U=`sed -n 's/^U = //p' < "$mf"`
26634 # Find all dependency output files, they are included files with
26635 # $(DEPDIR) in their names. We invoke sed twice because it is the
26636 # simplest approach to changing $(DEPDIR) to its actual value in the
26637 # expansion.
26638 for file in `sed -n "
26639 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26640 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26641 # Make sure the directory exists.
26642 test -f "$dirpart/$file" && continue
26643 fdir=`$as_dirname -- "$file" ||
26644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26645 X"$file" : 'X\(//\)[^/]' \| \
26646 X"$file" : 'X\(//\)$' \| \
26647 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26648 echo X"$file" |
26649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26650 s//\1/
26651 q
26652 }
26653 /^X\(\/\/\)[^/].*/{
26654 s//\1/
26655 q
26656 }
26657 /^X\(\/\/\)$/{
26658 s//\1/
26659 q
26660 }
26661 /^X\(\/\).*/{
26662 s//\1/
26663 q
26664 }
26665 s/.*/./; q'`
26666 { as_dir=$dirpart/$fdir
26667 case $as_dir in #(
26668 -*) as_dir=./$as_dir;;
26669 esac
26670 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26671 as_dirs=
26672 while :; do
26673 case $as_dir in #(
26674 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26675 *) as_qdir=$as_dir;;
26676 esac
26677 as_dirs="'$as_qdir' $as_dirs"
26678 as_dir=`$as_dirname -- "$as_dir" ||
26679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26680 X"$as_dir" : 'X\(//\)[^/]' \| \
26681 X"$as_dir" : 'X\(//\)$' \| \
26682 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26683 echo X"$as_dir" |
26684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26685 s//\1/
26686 q
26687 }
26688 /^X\(\/\/\)[^/].*/{
26689 s//\1/
26690 q
26691 }
26692 /^X\(\/\/\)$/{
26693 s//\1/
26694 q
26695 }
26696 /^X\(\/\).*/{
26697 s//\1/
26698 q
26699 }
26700 s/.*/./; q'`
26701 test -d "$as_dir" && break
26702 done
26703 test -z "$as_dirs" || eval "mkdir $as_dirs"
26704 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26705 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26706 { (exit 1); exit 1; }; }; }
26707 # echo "creating $dirpart/$file"
26708 echo '# dummy' > "$dirpart/$file"
26709 done
26710 done
26711 ;;
26712 "include/librb-config.h":C)
26713 outfile=include/librb-config.h.tmp
26714 cat > $outfile <<\_______EOF
26715 /*
26716 * librb-config.h: libratbox config file. Please modify configure.ac
26717 */
26718
26719 #ifndef __LIBRB_CONFIG_H
26720 #define __LIBRB_CONFIG_H
26721
26722 _______EOF
26723
26724 if test "x$rb_have_ipv6" = "xyes"; then
26725 echo "#define RB_IPV6 1" >> $outfile
26726 fi
26727
26728 if test "x$rb_windows_h" = "xyes"; then
26729 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
26730 echo '#include <windows.h>' >> $outfile
26731 echo '#include <winsock2.h>' >> $outfile
26732 echo '#include <iphlpapi.h>' >> $outfile
26733 fi
26734
26735 if test "x$rb_alloca_h" = "xyes"; then
26736 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
26737 fi
26738
26739 if test "x$rb_header_stdc" = "xyes"; then
26740 echo '#include <stdlib.h>' >> $outfile
26741 echo '#include <stddef.h>' >> $outfile
26742 elif test "x$rb_header_stdlib" = "xyes"; then
26743 echo '#include <stdlib.h>' >> $outfile
26744 fi
26745
26746 if test "x$rb_header_string_h" = "xyes"; then
26747 echo '#include <string.h>' >> $outfile
26748 fi
26749
26750 if test "x$rb_stdint_h" = "xyes"; then
26751 echo '#include <stdint.h>' >> $outfile
26752 fi
26753
26754 if test "x$rb_inttypes_h" = "xyes"; then
26755 echo '#include <inttypes.h>' >> $outfile
26756 fi
26757
26758 if test "x$rb_sys_types_h" = "xyes"; then
26759 echo '#include <sys/types.h>' >> $outfile
26760 fi
26761 if test "x$rb_sys_time_h" = "xyes"; then
26762 echo '#include <sys/time.h>' >> $outfile
26763 fi
26764 if test "x$rb_sys_stat_h" = "xyes"; then
26765 echo '#include <sys/stat.h>' >> $outfile
26766 fi
26767 if test "x$rb_time_h" = "xyes"; then
26768 echo '#include <time.h>' >> $outfile
26769 fi
26770
26771 if test "x$rb_sys_socket_h" = "xyes"; then
26772 echo '#include <sys/socket.h>' >> $outfile
26773 fi
26774
26775 if test "x$rb_netinet_in_h" = "xyes"; then
26776 echo '#include <netinet/in.h>' >> $outfile
26777 fi
26778
26779 if test "x$rb_arpa_inet_h" = "xyes"; then
26780 echo '#include <arpa/inet.h>' >> $outfile
26781 fi
26782
26783 if test "x$rb_unistd_h" = "xyes"; then
26784 echo '#include <unistd.h>' >> $outfile
26785 fi
26786
26787 if test "x$rb_crypt_h" = "xyes"; then
26788 echo '#include <crypt.h>' >> $outfile
26789 fi
26790
26791 if test "x$rb_errno_h" = "xyes"; then
26792 echo '#include <errno.h>' >> $outfile
26793 fi
26794
26795 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
26796
26797
26798 if test "x$rb_sockaddr_sa_len" = "xyes"; then
26799 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
26800 fi
26801
26802 if test "x$rb_sockaddr_storage" = "xyes"; then
26803 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
26804 else
26805 echo 'struct rb_sockaddr_storage { uint8_t _padding128; };' >> $outfile
26806 fi
26807
26808 cat >> $outfile <<\_______EOF
26809 #endif /* __LIBRB_CONFIG_H */
26810 _______EOF
26811
26812 if cmp -s $outfile include/librb-config.h; then
26813 { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
26814 echo "$as_me: include/librb-config.h is unchanged" >&6;}
26815 ${rb_rm} -f $outfile
26816 else
26817 ${rb_mv} $outfile include/librb-config.h
26818 fi
26819
26820 ;;
26821
26822 esac
26823 done # for ac_tag
26824
26825
26826 { (exit 0); exit 0; }
26827 _ACEOF
26828 chmod +x $CONFIG_STATUS
26829 ac_clean_files=$ac_clean_files_save
26830
26831
26832 # configure is writing to config.log, and then calls config.status.
26833 # config.status does its own redirection, appending to config.log.
26834 # Unfortunately, on DOS this fails, as config.log is still kept open
26835 # by configure, so config.status won't be able to write to it; its
26836 # output is simply discarded. So we exec the FD to /dev/null,
26837 # effectively closing config.log, so it can be properly (re)opened and
26838 # appended to by config.status. When coming back to configure, we
26839 # need to make the FD available again.
26840 if test "$no_create" != yes; then
26841 ac_cs_success=:
26842 ac_config_status_args=
26843 test "$silent" = yes &&
26844 ac_config_status_args="$ac_config_status_args --quiet"
26845 exec 5>/dev/null
26846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26847 exec 5>>config.log
26848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26849 # would make configure fail if this is the last instruction.
26850 $ac_cs_success || { (exit 1); exit 1; }
26851 fi
26852
26853 #
26854 # CONFIG_SUBDIRS section.
26855 #
26856 if test "$no_recursion" != yes; then
26857
26858 # Remove --cache-file and --srcdir arguments so they do not pile up.
26859 ac_sub_configure_args=
26860 ac_prev=
26861 eval "set x $ac_configure_args"
26862 shift
26863 for ac_arg
26864 do
26865 if test -n "$ac_prev"; then
26866 ac_prev=
26867 continue
26868 fi
26869 case $ac_arg in
26870 -cache-file | --cache-file | --cache-fil | --cache-fi \
26871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26872 ac_prev=cache_file ;;
26873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26875 | --c=*)
26876 ;;
26877 --config-cache | -C)
26878 ;;
26879 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26880 ac_prev=srcdir ;;
26881 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26882 ;;
26883 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26884 ac_prev=prefix ;;
26885 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26886 ;;
26887 *)
26888 case $ac_arg in
26889 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26890 esac
26891 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26892 esac
26893 done
26894
26895 # Always prepend --prefix to ensure using the same prefix
26896 # in subdir configurations.
26897 ac_arg="--prefix=$prefix"
26898 case $ac_arg in
26899 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26900 esac
26901 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26902
26903 # Pass --silent
26904 if test "$silent" = yes; then
26905 ac_sub_configure_args="--silent $ac_sub_configure_args"
26906 fi
26907
26908 ac_popdir=`pwd`
26909 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26910
26911 # Do not complain, so a configure script can configure whichever
26912 # parts of a large source tree are present.
26913 test -d "$srcdir/$ac_dir" || continue
26914
26915 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26916 echo "$as_me:$LINENO: $ac_msg" >&5
26917 echo "$ac_msg" >&6
26918 { as_dir="$ac_dir"
26919 case $as_dir in #(
26920 -*) as_dir=./$as_dir;;
26921 esac
26922 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26923 as_dirs=
26924 while :; do
26925 case $as_dir in #(
26926 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26927 *) as_qdir=$as_dir;;
26928 esac
26929 as_dirs="'$as_qdir' $as_dirs"
26930 as_dir=`$as_dirname -- "$as_dir" ||
26931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26932 X"$as_dir" : 'X\(//\)[^/]' \| \
26933 X"$as_dir" : 'X\(//\)$' \| \
26934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26935 echo X"$as_dir" |
26936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26937 s//\1/
26938 q
26939 }
26940 /^X\(\/\/\)[^/].*/{
26941 s//\1/
26942 q
26943 }
26944 /^X\(\/\/\)$/{
26945 s//\1/
26946 q
26947 }
26948 /^X\(\/\).*/{
26949 s//\1/
26950 q
26951 }
26952 s/.*/./; q'`
26953 test -d "$as_dir" && break
26954 done
26955 test -z "$as_dirs" || eval "mkdir $as_dirs"
26956 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26957 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26958 { (exit 1); exit 1; }; }; }
26959 ac_builddir=.
26960
26961 case "$ac_dir" in
26962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26963 *)
26964 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26965 # A ".." for each directory in $ac_dir_suffix.
26966 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26967 case $ac_top_builddir_sub in
26968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26970 esac ;;
26971 esac
26972 ac_abs_top_builddir=$ac_pwd
26973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26974 # for backward compatibility:
26975 ac_top_builddir=$ac_top_build_prefix
26976
26977 case $srcdir in
26978 .) # We are building in place.
26979 ac_srcdir=.
26980 ac_top_srcdir=$ac_top_builddir_sub
26981 ac_abs_top_srcdir=$ac_pwd ;;
26982 [\\/]* | ?:[\\/]* ) # Absolute name.
26983 ac_srcdir=$srcdir$ac_dir_suffix;
26984 ac_top_srcdir=$srcdir
26985 ac_abs_top_srcdir=$srcdir ;;
26986 *) # Relative name.
26987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26988 ac_top_srcdir=$ac_top_build_prefix$srcdir
26989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26990 esac
26991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26992
26993
26994 cd "$ac_dir"
26995
26996 # Check for guested configure; otherwise get Cygnus style configure.
26997 if test -f "$ac_srcdir/configure.gnu"; then
26998 ac_sub_configure=$ac_srcdir/configure.gnu
26999 elif test -f "$ac_srcdir/configure"; then
27000 ac_sub_configure=$ac_srcdir/configure
27001 elif test -f "$ac_srcdir/configure.in"; then
27002 # This should be Cygnus configure.
27003 ac_sub_configure=$ac_aux_dir/configure
27004 else
27005 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27007 ac_sub_configure=
27008 fi
27009
27010 # The recursion is here.
27011 if test -n "$ac_sub_configure"; then
27012 # Make the cache file name correct relative to the subdirectory.
27013 case $cache_file in
27014 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27015 *) # Relative name.
27016 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27017 esac
27018
27019 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27020 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27021 # The eval makes quoting arguments work.
27022 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27023 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27024 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27025 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27026 { (exit 1); exit 1; }; }
27027 fi
27028
27029 cd "$ac_popdir"
27030 done
27031 fi
27032
27033
27034
27035 echo
27036 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
27037 echo
27038
27039 echo "Installing into: $prefix"
27040
27041 echo "IPv6 support ................... $have_v6"
27042 echo "Assert debugging ............... $assert"
27043 echo "Block allocator ................ $balloc"
27044 echo "SSL Type........................ $SSL_TYPE"
27045 echo
27046